Search Documentation
Search across all documentation pages
Connecting Agents
ExoVault connects to AI agents via the Model Context Protocol (MCP). Agents get access to 37+ tools for memory, notes, knowledge graph, tasks, and messaging. For Tier 1 agents (Claude Code, Cursor, Windsurf), the CLI also installs hooks for automatic turn capture and context injection.
Agent Keys#
Before connecting any agent, you need an agent key. Agent keys authenticate agents and scope their access to specific vaults.
- Open your vault in the ExoVault dashboard
- Navigate to Settings > Agent Keys
- Click Create Agent Key
- Assign a label (e.g., "Claude Code", "Cursor Agent") and select vault permissions
- Copy the key immediately -- it is shown only once
Security note: Each agent key is scoped to the vaults you authorize. An agent cannot access vaults outside its key scope.
Option A: CLI Setup (Recommended)#
Run exovault connect to configure MCP and install hooks in one step:
npx exovault connect ev_key_abc123...This writes your MCP configuration and sets up hooks (capture-turn.cjs, exovault-hook.cjs) for automatic turn capture and context injection. Supported for Claude Code, Cursor, and Windsurf.
Option B: Manual MCP Config#
Add ExoVault directly to your agent's MCP configuration file:
{
"mcpServers": {
"exovault": {
"command": "npx",
"args": ["-y", "exovault-mcp-server"],
"env": {
"EXOVAULT_AGENT_KEY": "ev_key_abc123...",
"EXOVAULT_API_URL": "https://exovault.co"
}
}
}
}In this mode, the agent explicitly calls tools like session_start, write_memory, and context_checkpoint for full control over memory interactions.
Scoping to Vaults#
If your agent key has access to multiple vaults, you can set a default vault:
{
"env": {
"EXOVAULT_AGENT_KEY": "ev_key_abc123...",
"EXOVAULT_API_URL": "https://exovault.co",
"EXOVAULT_DEFAULT_VAULT_ID": "vault-uuid-here"
}
}Without a default, the agent must pass vaultId explicitly on every tool call.
Multiple Agents#
You can connect multiple agents to the same vault for collaborative workflows:
- Each agent should have its own agent key with a unique label
- Agents identify themselves via
agentIdon memory writes - Use multi-agent messaging for agent-to-agent communication
- All agents in a shared vault see the same memories, notes, and tasks
Verifying the Connection#
After setup, ask your agent:
What ExoVault tools do you have available?The agent should list tools like session_start, write_memory, search_memories, create_note, and more.
Next Steps#
- Session Lifecycle -- Understand session management
- Memory Management -- Start writing and searching memories
- Multi-Agent Coordination -- Shared vault workflows