Connect Claude Code, Codex and Cursor
Add the agexs brain hooks and MCP server to Claude Code, Codex and Cursor with one command each: axs install claude, codex or cursor. Undo it with uninstall.
After axs login, run one line per agent:
axs install claude
axs install codex
axs install cursorEach agent gets its own device token, made from your agexs login, so logging out of one never logs out another. Every file it changes gets a backup first.
| Flag | Effect |
|---|---|
--no-brain | Leaves out agexs brain (hooks and MCP server) |
axs uninstall claude|codex|cursor takes only the axs entries out again.
Claude Code
axs install claude installs the axs plugin (axs@axs) from the marketplace axs-sh/claude: agexs brain with
one login. It replaces brain@axs if that is installed (its login stays), so no hook runs twice. The
plugin gets its own token from your agexs login, so Claude Code needs no browser login. Start a new session.
Without the CLI, install only agexs brain with the plugin brain@axs:
claude plugin marketplace add axs-sh/claude; claude plugin install brain@axsSee The plugin.
Codex
axs install codex adds the agexs brain hooks to ~/.codex/hooks.json, the MCP server to ~/.codex/config.toml (or
$CODEX_HOME). The token goes into a file only you can read
(~/.config/axs-brain/codex.json), never into the Codex config.
Then start Codex, type /hooks and trust the agexs brain hooks. Codex skips new hooks until you trust them.
Cursor
axs install cursor adds the hooks to ~/.cursor/hooks.json, and the MCP server to ~/.cursor/mcp.json. The
token goes into ~/.config/axs-brain/cursor.json.
Then in Cursor open Customize in the sidebar, find agexs brain under MCP servers and sign in.
Without the agexs CLI
The dashboard (Connect a tool) also shows a line that sets up agexs brain for Codex or Cursor without the CLI
(macOS and Linux). It downloads the small helper axs-brain and opens the browser to approve the device:
curl -fsSL https://raw.githubusercontent.com/axs-sh/claude/main/install.sh | sh -s -- codex https://brain.axs.shReplace codex with cursor for Cursor. For a script, set BRAIN_TOKEN to a device token from the dashboard
instead. To remove it:
~/.config/axs-brain/bin/axs-brain uninstall codexOn macOS the helper is in ~/Library/Application Support/axs-brain/bin/.
Devices
Every connected agent shows up under Team settings, Devices in the dashboard. Sign one out there to end its
token.
Install the agexs CLI
Install the agexs CLI on macOS, Linux or Windows with one command, log in once, and connect Claude Code, Codex and Cursor to agexs brain and agexs cred.
Connect MCP clients
Connect claude.ai, Claude Desktop, Cowork and other MCP clients to the agexs brain remote MCP server at brain.axs.sh/mcp for memory shared by your agents.