Get started with ccrelay
Follow these steps to deploy your server, set up your machine, and start sharing Claude Code sessions with your team. Every command is copyable — your token is pre-filled.
0
Deploy your server
CC Relay is open source — you run the server on your own infra. This step deploys the server and Postgres with Docker Compose in about 2 minutes. Skip this if someone else already set up the server for your team.
git clone https://github.com/xlncbasit/claude-shared-session
cd claude-shared-session
cp .env.example .env
docker compose up -d
✓ Server runs at http://localhost:8080 · Open http://localhost:8080/ui/ to access your dashboard and create an account.
1
Install the CLI
Pick your preferred install method — all three install the same ccrelay binary.
Option 1 — one-liner (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/xlncbasit/claude-shared-session/main/scripts/install.sh | sh
Option 2 — npm (requires Node 16+)
npm install -g @bytlabs/ccrelay
Option 3 — build from source (Go 1.21+)
git clone https://github.com/xlncbasit/claude-shared-session
cd claude-shared-session
go build -o /usr/local/bin/ccrelay ./ccshare/cmd/ccshare/
✓ Verify install: ccrelay --version
2
Login with your token
Authenticate the CLI with your personal token. Your token is pre-filled below — copy either command and run it.
ccrelay login --token loading…
3
Initialize your repository
Run inside your git project directory. Creates a ccrelay workspace linked to this repo and registers the git hook.
cd /path/to/your-repo
ccrelay init
4
Start a session
Creates a new shared session for the current repo. From this point, Claude Code events sync to your team in real time.
5
Start the daemon
The daemon runs in the background and continuously syncs git commits, file changes, and Claude events to the server.
6
Use inside Claude Code
Install the slash commands once per machine, then use them directly from any Claude Code session.
ccrelay install-claude-commands
/ccrelay # start or resume session sync
/ccrelay-status # check who owns the session
/ccrelay-handoff # pass context to a teammate
7
Teammate claims a handoff
When a teammate hands off to you, claim the session with its ID. Claude will have the full context — no re-explaining needed.
ccrelay claim --session-id=<id>
ccrelay daemon start
✓ Claude already knows the full conversation history, file changes, and every decision made — you pick up exactly where your teammate left off.