
Session Relay
Hand a coding-agent session to a teammate with /share and /pickup across agents
- Pricing
- Open source
- Platforms
- CLI, self-hosted
- Runs
- Locally
- Version
- 0.7.0
- Listing updated
- 2 days ago
About Session Relay
Session Relay is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
Session Relay moves the working state of a coding-agent session between people and between agents. A handoff holds the goal, the decisions made, what is done, next steps and open questions, plus the last 30 messages and the files touched. A teammate continues from it in whichever agent they prefer.
Seven agents are named as supported: Claude Code, Codex, OpenCode, Gemini CLI, Copilot CLI, Cursor and ZCode. Each agent's sessions are read in their own format and turned into one handoff. API keys, tokens, passwords and private keys are stripped on your own machine before anything is uploaded, and relay share --dry-run shows what would be sent.
The server side is separate: you need a Session Relay server for your team, which is self-hosted today, with cloud hosting listed as coming soon. The CLI package is published under AGPL-3.0-only.
Install
Run in a terminal
claude mcp add session-relay --env RELAY_TOKEN='<RELAY_TOKEN>' -- npx -y session-relayAdd to claude_desktop_config.json
{
"mcpServers": {
"session-relay": {
"command": "npx",
"args": [
"-y",
"session-relay"
],
"env": {
"RELAY_TOKEN": "<RELAY_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"session-relay": {
"command": "npx",
"args": [
"-y",
"session-relay"
],
"env": {
"RELAY_TOKEN": "<RELAY_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"session-relay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"session-relay"
],
"env": {
"RELAY_TOKEN": "<RELAY_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"session-relay": {
"command": "npx",
"args": [
"-y",
"session-relay"
],
"env": {
"RELAY_TOKEN": "<RELAY_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"session-relay": {
"command": "npx",
"args": [
"-y",
"session-relay"
],
"env": {
"RELAY_TOKEN": "<RELAY_TOKEN>"
}
}
}
}Configuration
RELAY_SERVERURL of your team's Session Relay server. Optional if you ran relay login.RELAY_TOKENPersonal access token (srk_...) from Settings → Tokens. Optional if you ran relay login.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
- share_current_session
- Shares the current agent session as a handoff.
- get_session
- Reads a shared session by id so the agent can continue it.
What it does
- Share and pick up
- /share writes a handoff; /pickup reads it in any supported agent and continues.
- Secret removal on your laptop
- Keys, tokens, passwords and private keys are removed before upload, and a dry run previews the payload.
- Live collaboration
- /live shows who is on what, warns before editing a file a teammate just changed, and passes messages between agents.
- Diff snapshots
- Attach uncommitted changes so a teammate can apply the patch with git apply.
- Handoff templates
- Require sections such as tests run or rollout notes in every handoff for a repo.
- Search and stats
- Search titles, summaries and transcripts by repo, branch, agent or person, with team digests.
Good for
- Pass half-finished work to a colleague who uses a different coding agent
- Leave a note on a session so the next agent reads it first
- Find every shared session that touched a given file
- Warn teammates before two agents edit the same file
- Keep a searchable record of what a team did with its agents
Pricing
Open source
Self-hosted server; cloud hosting not yet available
Prices change. Check relay.rahulweb.online before you buy.
Session Relay FAQ
Which agents does it work with?
Claude Code, Codex, OpenCode, Gemini CLI, Copilot CLI, Cursor and ZCode.
Do I need to run a server?
Yes. You need a Session Relay server for your team; self-hosting is documented and cloud hosting is described as coming soon.
Is anything uploaded automatically?
No. Nothing is uploaded unless you share it, though auto-share can save private drafts at session end if you switch it on.
What licence is the CLI under?
AGPL-3.0-only.
Is Session Relay free?
Yes. Session Relay is open source, so you can use and self-host it for free.
How do I add Session Relay to Claude Code?
Run this command in your terminal: claude mcp add session-relay --env RELAY_TOKEN='<RELAY_TOKEN>' -- npx -y session-relay
What are the best alternatives to Session Relay?
The closest alternatives to Session Relay are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Session Relay

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ha MCP
MCP serverMCP server for managing and automating Home Assistant from AI assistants
Runs locally- 8 tools
- Open source
- 7.9K GitHub stars
- Productivity