> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognee.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Integrations

> Connect your coding and terminal agents to Cognee Cloud for persistent, shared memory.

Give your agents persistent memory backed by your Cognee Cloud tenant. Once connected, an agent recalls relevant context before it answers and writes new knowledge back into your knowledge graph automatically — memory survives across sessions, terminals, and even across different agents that share a dataset.

This section walks through connecting each supported agent to **Cognee Cloud**. For local-only setups and full configuration references, each page links out to the dedicated [integration guide](/integrations/index).

## How agents connect

Agents read and write Cognee memory in one of a few ways. Pick the one your agent supports:

| Method                | Used by                                 | How it works                                                                                                                                           |
| --------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Lifecycle plugin**  | Claude Code, Codex                      | A plugin hooks into the agent's session lifecycle to capture prompts, tool traces, and answers, and to inject recalled context automatically. No code. |
| **MCP tool provider** | Cursor, Claude Desktop, VS Code Copilot | Cognee registers as an MCP server so the client's agent can call `remember` / `recall` / `forget` as tools.                                            |
| **Editor extension**  | VS Code (Cognee extension)              | A dedicated extension gives the editor a citable project memory with in-editor commands.                                                               |
| **Memory provider**   | OpenClaw, Hermes Agent                  | Cognee registers as the agent's memory backend, indexing memory files and recalling across scopes/sessions.                                            |
| **SDK / REST**        | Any framework                           | Call `remember` / `recall` from your own code or the REST API. See [Connecting an Agent](/cognee-cloud/connections/connecting-an-agent).               |

## Before you start

Every Cloud connection needs two values from your tenant:

<Steps>
  <Step title="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](/cognee-cloud/ui/integrations) page, which prefills it into every copy-on-click snippet.
  </Step>

  <Step title="Create an API key">
    Generate a key on the [API Keys](/cognee-cloud/ui/api-keys) page. Store it securely — treat it like a password.
  </Step>
</Steps>

Most plugins read these from environment variables:

```bash theme={null}
export COGNEE_BASE_URL="https://your-tenant.aws.cognee.ai"
export COGNEE_API_KEY="<your-api-key>"
```

<Tip>
  The in-product [Integrations](/cognee-cloud/ui/integrations) page (under **CONNECT** in the sidebar) has quickstart cards for each agent that inject your live base URL and API key into ready-to-paste snippets — the fastest path to a working connection.
</Tip>

## Choose your agent

<CardGroup cols={2}>
  <Card title="Claude Code" href="/cognee-cloud/agent-integrations/claude-code" icon="bot">
    Install the memory plugin and point it at your tenant — memory across every session.
  </Card>

  <Card title="Codex" href="/cognee-cloud/agent-integrations/codex" icon="terminal">
    Enable hooks, install the plugin, and connect to Cloud. Shares a dataset with Claude Code.
  </Card>

  <Card title="Cursor" href="/cognee-cloud/agent-integrations/cursor" icon="code">
    Register Cognee as an MCP tool provider in Cursor's Agent.
  </Card>

  <Card title="VS Code (Cognee extension)" href="/cognee-cloud/agent-integrations/vscode" icon="code">
    A citable project memory extension — remember, ask, and recall in-editor.
  </Card>

  <Card title="Claude Desktop" href="/cognee-cloud/agent-integrations/claude-desktop" icon="laptop">
    Add Cognee as an MCP server in Claude Desktop's config.
  </Card>

  <Card title="OpenClaw" href="/cognee-cloud/agent-integrations/openclaw" icon="bot">
    Register Cognee as OpenClaw's memory provider pointed at your Cloud tenant, with multi-scope recall.
  </Card>

  <Card title="Hermes Agent" href="/cognee-cloud/agent-integrations/hermes" icon="bot">
    Drop-in memory provider in remote mode — turns are captured and promoted to the graph.
  </Card>
</CardGroup>

<Note>
  Don't see your agent? Any framework can connect through the SDK, an MCP server, or the REST API — see [Connecting an Agent](/cognee-cloud/connections/connecting-an-agent) and the full [integration catalog](/integrations/index).
</Note>
