Skip to content

API tokens

The CLI and API authenticate with API tokens, so every deploy belongs to your account.

  1. In the dashboard, open API Tokens → Create token and give it a name (e.g. laptop, github-actions).
  2. Copy it — it’s shown only once.
  3. Use it with agent-platform init, or set AGENT_PLATFORM_TOKEN in CI.

Tokens are stored as SHA-256 hashes. Revoke one from the same page at any time; requests using it fail immediately.

Terminal window
# CI example
export AGENT_PLATFORM_API_URL=https://<platform>/trpc
export AGENT_PLATFORM_TOKEN=${{ secrets.ABSTRACTAI_TOKEN }}
agent-platform deploy --yes

To call the API directly, send Authorization: Bearer <token> — see API reference.