Share Claude Code sessions over local network
npx claudepluginhub tjcjc/share-sessionGenerate a local network share link for the current Claude Code session
Single-binary Bun app that:
~/.claude/projects/.../*.jsonlsource ~/.bash_profile
cd claude-session-share
bun run compile
Binary output:
./dist/claude-session-share
Claude plugin directory:
./plugin
./dist/claude-session-share list --claude-root /path/to/.claude
./dist/claude-session-share serve \
--claude-root /path/to/.claude \
--session <session-id> \
--claude-bin /path/to/claude \
--host 0.0.0.0 \
--port 3939 \
--dangerously-skip-permissions
If the Claude session belongs to another local user and you run the server as root:
./dist/claude-session-share serve \
--claude-root /home/other-user/.claude \
--session <session-id> \
--claude-bin /usr/local/bin/claude-local \
--run-as-user other-user \
--owner-home /home/other-user \
--host 0.0.0.0 \
--port 3939 \
--dangerously-skip-permissions
The server prints a random URL like:
http://127.0.0.1:3939/s/<random-token>
If you put the server behind a reverse proxy or tunnel, pass the public base URL so the printed share link is correct:
./dist/claude-session-share serve \
--claude-root /path/to/.claude \
--session <session-id> \
--claude-bin /path/to/claude \
--public-base-url https://example.com \
--dangerously-skip-permissions
./dist/claude-session-share serve \
--claude-root /path/to/.claude \
--session <session-id> \
--claude-bin /path/to/claude \
--read-only
claude -p --resume <sessionId> ....--dangerously-skip-permissions is the most reliable mode for remote continuation, but it is also the least safe.The bundled plugin adds a /share-session slash command inside Claude Code.
Run Claude with the plugin directory:
claude --plugin-dir /path/to/claude-session-share/plugin
Then, inside the Claude session:
/share-session
/share-session --read-only
/share-session --local
The command:
session_idclaude-session-share serve in a background tmux sessionRequirements for the slash command path:
tmuxcloudflared for public linksdist/claude-session-shareFor local network links, use --local and optionally pass --host 0.0.0.0.