Skip to main content
You need a root key for your assistant. See Create a root key.

Add the Unkey server

1

Set your root key

Export the key in the shell you start Claude Code from, or add it to your shell profile.
2

Add the server

Keep the single quotes. Claude Code saves ${UNKEY_ROOT_KEY} as written and reads the variable each time it connects, so the key isn’t stored in its config.To add the Compute server instead, use its URL:
3

Check the connection

The server shows Connected. Inside a session, run /mcp to see its status and tools.
The server is added for you in the current project. Add --scope user to use it in every project, or --scope project to save it to .mcp.json so your team gets it too. Each person then sets UNKEY_ROOT_KEY to their own key.

Add the docs

Claude Code can then search these docs when you ask about Unkey.

Next steps

Try some prompts

Example requests for keys, analytics, and deployments.

Fix connection problems

What to check when the server doesn’t connect.
Last modified on September 29, 2026