API Keys & Authentication
Every public endpoint accepts the same API key in either Authorization: Bearer or x-api-key. OpenAI-compatible clients usually use Bearer; the Anthropic SDK and Claude Code use whichever header their configuration expects.
On this page
All public endpoints accept Authorization: Bearer YOUR_API_KEY and the Anthropic-standard x-api-key: YOUR_API_KEY. If you send both headers, use the same key in each.
HTTP
# OpenAI SDKs and clients
Authorization: Bearer YOUR_API_KEY
# Anthropic SDKs and Claude Code
x-api-key: YOUR_API_KEYDo not ship keys in browser code, public repositories, client bundles, or logs.
Set a name and optional expiry, then save the full key when it is shown. The key list lets you rename, pause, resume or delete a key and check its expiry and spend.