API Keys
Every agent, script, and tool that talks to Kiomon — MCP servers, the OpenAI-compatible API, REST calls — authenticates with an API key.
Creating a key
Section titled “Creating a key”- Open the dashboard → Settings → API Keys.
- Click Generate Key (optionally give it a label, e.g. cursor, n8n, ci-scripts).
- Copy the key immediately — it’s shown only once at creation and stored securely, so it can’t be recovered later.
Using a key
Section titled “Using a key”| Surface | Where the key goes |
|---|---|
| MCP server | KIOMON_TOKEN env var (or --token) |
| OpenAI-compatible API | Authorization: Bearer <key> |
| REST API | Authorization: Bearer <key> |
| Extension | Automatic — uses your dashboard session cookie instead |
Finding your keys
Section titled “Finding your keys”GET /api/keys lists your keys with their id, prefix (first 16 chars, for identification), label, tier, and created_at. You’ll never see the full key again — only the prefix for recognition.
Managing keys
Section titled “Managing keys”- Security best practice — one key per tool, labeled, so you can revoke a single access path without breaking others.
- Revoke — delete the key (the DELETE endpoint or the dashboard). Revocation is immediate: any client using the key starts getting
401s. - Create more — Free accounts can hold 1 key; Pro up to 10. The API enforces the cap with a
402upgrade response.
Rotating a key
Section titled “Rotating a key”- Create a new key.
- Update your MCP configs / scripts to the new key.
- Delete the old key.
Because both keys work until the old one is deleted, rotation is zero-downtime.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause |
|---|---|
401 on every call |
Key wrong, revoked, or regenerated since your config was written |
402 on key creation |
At the plan’s key limit — upgrade or delete an unused key |
| MCP starts but says “No API token” | KIOMON_TOKEN isn’t set in the client’s env config |