Agents

Agent Keys

Create and manage API keys for your agents

Agent keys authenticate your AI agents with Ink. Each key is scoped to your account.

Creating a key

  1. Go to Settings > Agent Keys
  2. Click Create Key
  3. Give it a name (e.g., "Claude Code", "Cursor")
  4. Copy the key — it's only shown once

Key format

Keys use the format dk_live_ followed by a random string. For example:

dk_live_a1b2c3d4e5f6...

Using a key

Pass the key as a Bearer token in the Authorization header:

Authorization: Bearer dk_live_a1b2c3d4e5f6...

Revoking a key

If a key is compromised or no longer needed:

  1. Go to Settings > Agent Keys
  2. Click the revoke button next to the key
  3. The key is immediately invalidated

Best practices

  • Create a separate key for each agent so you can revoke them independently
  • Name your keys descriptively so you know which agent uses which key
  • Rotate keys periodically for security
  • Never commit keys to source control

On this page