Skip to main content
The API keys page (route /api-keys, under Connect in the sidebar) is where you create and revoke the keys that let the Cloud SDK, the REST API, MCP clients and agent integrations reach your workspace. Its header reads Manage keys for programmatic access to the Cognee API., with Refresh and Create new key.
API keys page

The API keys page with the Connection panel: API base URL, Tenant ID, User ID and the request headers

At a glance

Two tiles sit at the top: Under the keys, an info bar reminds you: API keys grant full access to your account. Keep them secret, avoid client-side code, and store them in environment variables.

Create a key

1

Open the dialog

Click Create new key (or Create your first key when you have none).
2

Name it

In Create API key, enter a Key name that says where the key will be used (placeholder e.g. Production, CI/CD, Local Dev…), then click Create.
3

Copy the full key

The new key appears in the Keys table in full. Copy it now: The full value is only visible immediately after creation. After you leave the page, only a masked label is shown.
If creating fails, the dialog stays open with your name and the reason, so you can retry. Creating your first key also earns points.
Create new key is disabled while the workspace has no active subscription; a banner reads No active subscription with Subscribe to unlock data uploads, search, and all features.

Keys

The Keys table lists each key with its Name, the Key (masked, with a copy button) and Revoke. To revoke a key, click Revoke and confirm Revoke API key? The key stops working immediately, and any agent using it can no longer connect. If the list fails to load, the table reads Could not load your API keys (Refresh to try again. Your keys are unaffected.).

Connection

The Connection panel holds what a client needs, each value with a copy button: Values still loading show a placeholder until they arrive. Agent plugins and MCP configs ask for the API base URL (often called tenant URL or COGNEE_BASE_URL) and a key; they never need the Tenant ID or User ID. Paste the key value itself, not the X-Api-Key: header name.
Looking for your Cloud URL or API key? Both are on this page, in different places. Your workspace URL (also called base URL or tenant URL) is API base URL in the Connection panel. Your API key is in the Keys table, and its full value is shown only right after you create it. The Connection panel never shows the key itself.

References

The References panel links to the Swagger docs:
  • API user reference: the shared Platform API at api.aws.cognee.ai/docs.
  • API tenant reference: your workspace’s own API at https://your-tenant.aws.cognee.ai/docs, once its URL is known.

Use a key

Send the key in the X-Api-Key header. The n8n and Dify cards on Integrations fill in your Base URL and an API key for you; see Automation platforms.
Store API keys in environment variables or a secrets manager. Do not put them in source files or client-side code.

One key, every workspace

A key belongs to you, not to one workspace. It reaches every workspace you are a member of, with your own permissions in each. The URL you send it to decides which workspace a request goes to: switch workspaces in the top bar and the API base URL and Tenant ID change with it. In the API a workspace is called a tenant; they are the same thing. To give an agent a key that only reaches one workspace and only the datasets you choose, create an agent in that workspace instead (POST /api/v1/agents/create on the workspace URL). Its key starts with no access until you grant it datasets or a role. See Permissions and Access Control.

Lost or revoked a key

A key’s full value cannot be shown again, and a revoked key cannot be restored. Nothing in your workspace is lost either way: create a new key and replace the old value wherever you used it. For Claude Code, re-run the setup block from Quick Start, which rewrites COGNEE_API_KEY in ~/.cognee/.env.

Keys made by agent plugins

When you connect an agent with a one-click plugin (for example Claude Code), the plugin gets its own key for its own agent identity. Those keys belong to the agent, not to you, so they are not listed on this page. Manage or disconnect them as described in Managing connections.

Manage keys over the API

The page uses the Platform API (api.aws.cognee.ai): See Cloud SDK for the full setup.