Last updated: February 16, 2026
Prerequisites
Before you begin, make sure you have:- A Detrics account with at least one connected platform
- One of the supported coding agents installed:
- Claude Code by Anthropic
- Gemini CLI by Google
- Codex by OpenAI
Setup Steps
Generate an API Key
Go to the Detrics web app and generate an API key. Give it a descriptive name (e.g., “My laptop” or “Work desktop”).The key will only be shown once — copy it before closing the dialog.
Install the MCP Server
Run the command for your coding agent in your terminal. Replace
your-api-key with the key you just generated.- Claude Code
- Gemini CLI
- Codex
Updating Your API Key
If you need to replace your API key (e.g., after revoking an old one), remove the existing server and re-add it with your new key.- Claude Code
- Gemini CLI
- Codex
Troubleshooting: “detrics already exists”
If you see an error saying the server already exists, you need to remove it first before adding it again.- Claude Code
- Gemini CLI
- Codex
claude mcp add command from Step 2.