phaseo keys create --name <name> --json in the Phaseo CLI or in the dashboard, store it on your server, and send it as a bearer token with Gateway requests. Agents should use the CLI; see Manage Phaseo from an agent.
Key types
- Gateway API keys call model, provider, and generation endpoints available to your workspace.
- Management API keys call administration APIs. See Management API Keys.
- Trusted workloads (beta) let Vercel deployments and GitHub Actions jobs call the Gateway with a short-lived OIDC token instead of a stored key. See Trusted Workloads.
phaseo_v1_sk_<kid>_<secret>. Treat them like passwords and avoid storing them in client-side code or public repositories.
You can call
:free models without depositing credits. Paid models require available wallet balance.Header format
Include the key in theAuthorization header on every request:
fetch:
Key handling checklist
Common authentication errors
- 401 Unauthorized: the key is missing, invalid, or belongs to a disabled workspace.
- 403 Forbidden: the key exists but cannot access the requested provider or model.
- 429 Too Many Requests: the key or workspace exceeded a limit. See Rate limits.
- 5xx errors: retry with exponential backoff and contact support if the issue persists.