How agents connect
Agents read and write Cognee memory in one of a few ways. Pick the one your agent supports:Before you start
Every Cloud connection except the hosted MCP server needs two values from your tenant:1
Copy your tenant base URL
Your Cloud base URL looks like
https://your-tenant.aws.cognee.ai. It’s shown in the dashboard and in the Integrations page, which prefills it into every copy-on-click snippet.2
Create an API key
Generate a key on the API Keys page. Store it securely — treat it like a password.
COGNEE_API_KEY across several agents keeps working — Claude Code, Codex, and OpenCode installs that authenticate this way stay connected and are still recognized from the prefixes they put on their session IDs (cc_, codex_, opencode_), until that plugin gets an identity of its own. Alternatively, supported plugins (claude-code, desktop, codex, opencode, openclaw, mcp, api) can be given their own agent identity and their own labeled key, so each one can be tracked and revoked separately. See per-plugin agent identities.
Choose your agent
Claude Code
Codex
Cursor
VS Code (Cognee extension)
Claude Desktop
OpenClaw
Hermes Agent
Grok Bot
Don’t see your agent? Any framework can connect through the SDK, an MCP server, or the REST API — see Connecting an Agent and the full integration catalog.