Skip to content

Connect your agents ​

Every agent launches the same stdio server, node <repo>/packages/cli/dist/bin.js mcp. Replace /path/to/origin below with the absolute path of your checkout. Register Origin globally, not per project, so that all projects share one memory.

AgentSessions archivedCan use Origin over MCPSetup verified
Claude Code✅✅End to end
Codex CLI✅✅Registration
CursorPlanned✅Per Cursor's docs
ZCodePlanned✅Per ZCode's docs
Grok BuildPlanned✅Per Grok's docs

Claude Code ​

bash
claude mcp add --scope user origin -- node /path/to/origin/packages/cli/dist/bin.js mcp
claude mcp list

Codex CLI ​

bash
codex mcp add origin -- node /path/to/origin/packages/cli/dist/bin.js mcp

This writes the following to ~/.codex/config.toml:

toml
[mcp_servers.origin]
command = "node"
args = ["/path/to/origin/packages/cli/dist/bin.js", "mcp"]

Cursor ​

~/.cursor/mcp.json is shared by the editor and the CLI:

json
{
  "mcpServers": {
    "origin": { "command": "node", "args": ["/path/to/origin/packages/cli/dist/bin.js", "mcp"] }
  }
}

ZCode ​

Add the server under mcp.servers in ~/.zcode/cli/config.json, or use ZCode's import of Claude Code or Codex MCP settings.

Grok Build ​

Grok reads ~/.claude.json, so the Claude Code registration above is picked up automatically. Otherwise, add an [mcp_servers.origin] table to ~/.grok/config.toml as for Codex.

What agents can do ​

ToolWhat it does
searchFull-text search over entries and session events, best match first; without a query, lists recent entries
timelineSessions in a time range, or the messages of one session
getAn entry with its sources and history, or an event with its full text
sourcesThe original log lines behind an entry or event
rememberSave an entry (memory, knowledge, or cognition) that cites its sources
correctReplace an entry with a corrected version
forgetForget an entry or event for good; agents only use it when you ask

The server tells agents how to use these tools, so you can simply ask questions in plain language. It syncs new session lines before answering, so an agent can even cite what you said a minute ago. The tools are specified in Architecture.

Using a personal hub ​

If you use agents on several machines, or cloud agents, you can run a personal hub:

  • On a device that is connected to the hub, the local origin mcp registrations above keep working. The server pushes new session lines and forwards each call to the hub.
  • Cloud agents, which have no local session logs, register the hub's /mcp URL directly with their own token. For example, in Claude Code: claude mcp add --scope user --transport http origin https://hub.example.com/mcp --header "Authorization: Bearer ogn_…".

After updating Origin ​

Agents start the server from your checkout. After you pull and run pnpm build, restart running agent sessions so that they pick up the new version.

Released under the MIT License.