Skip to content
Mycelis Platform · Administration · 6 min min read

Manage API Keys

Overview

Under Settings → API Keys (/dashboard/api-keys), you create and govern your personal Personal Access Tokens (pat_...). These tokens authenticate calls to the OpenAI-compatible API Gateway (/api/proxy/v1) as well as the central MCP Hub (/mcp-core?token=pat_...).


Create a New API Key

  1. Open API Keys in the left sidebar.
  2. Click Create API Key.
  3. Enter a descriptive name (such as cursor-laptop or ci-pipeline).
  4. Optionally configure an expiration date, labels, or a monthly budget.
  5. Copy the displayed pat_... token immediately — for security, the raw secret is shown only once.

Key Detail Page & Governance (`/dashboard/api-keys/

Click any key to open its dedicated management and analytics view:

Settings & Guardrails

Setting Behavior
Name Rename the key at any time
Monthly Limit (USD) Hard spend cap per UTC calendar month. A meter warns at 80% utilization; at 100%, the gateway stops requests cleanly with HTTP 429.
Expires Optional expiration date after which the token is rejected
Labels Comma-separated tags (e.g., kilo, laptop) for organizing tokens
Restrict Model Access Toggle from all accessible models to an explicit allowlist of specific deployments and agents across your workspaces

Per-Key Analytics

Every API key provides its own telemetry view with a Date Range Picker (default 7d) and period-over-period deltas:

  • KPIs: Spend (USD), Requests, Tokens (Input & Output breakdown), and Average Latency.
  • Usage by Model: Daily stacked chart switchable between Spend, Requests, and Tokens, paired with a per-model share table.
  • Clients & Workspaces: Shows exactly which client channels (Cursor, OpenCode, SDK, etc.) and workspaces used this key.

Revoke vs. Delete

  • Revoke: Immediately invalidates the token while preserving its historical usage records (the key becomes read-only).
  • Delete: Permanently removes the key from your list.

Next steps