# Session Relay

> Session Relay is an open-source MCP server for developer tools. Hand a coding-agent session to a teammate with /share and /pickup across agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://relay.rahulweb.online
- **Repository:** https://github.com/ryrahul/session-relay/tree/HEAD/packages/cli
- **MCP Registry name:** io.github.Ryrahul/session-relay
- **Categories:** developer tools, productivity
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add session-relay --env RELAY_TOKEN='<RELAY_TOKEN>' -- npx -y session-relay
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "session-relay": {
      "command": "npx",
      "args": [
        "-y",
        "session-relay"
      ],
      "env": {
        "RELAY_TOKEN": "<RELAY_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "session-relay": {
      "command": "npx",
      "args": [
        "-y",
        "session-relay"
      ],
      "env": {
        "RELAY_TOKEN": "<RELAY_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "session-relay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "session-relay"
      ],
      "env": {
        "RELAY_TOKEN": "<RELAY_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "session-relay": {
      "command": "npx",
      "args": [
        "-y",
        "session-relay"
      ],
      "env": {
        "RELAY_TOKEN": "<RELAY_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "session-relay": {
      "command": "npx",
      "args": [
        "-y",
        "session-relay"
      ],
      "env": {
        "RELAY_TOKEN": "<RELAY_TOKEN>"
      }
    }
  }
}
```

## Tools

- `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.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/session-relay
