Use any model through Onyx and track usage and spend in one place.
3
wire protocols
1
endpoint, one bill
0
provider keys on clients
Claude Code
Codex CLI
Cursor
Your app
Onyx Gateway
/api/gateway/v1Metered spend
$4.2130OpenAI
Anthropic
Gemini
Azure
Bedrock
DeepSeek
Zero new API keys.
Token or dollar ceilings per workspace, group, or user.
Clients hold a scoped Onyx token. Requests carry their permissions.
Chat, agents, and gateway calls in one ledger. Search by user, drill into a day, export CSV or PDF.
Per user
daily detail
Per model
negotiated rates
Per flow
chat, agents, gateway
CSV + PDF
exports
Workspace usage
Last 30 daysTotal spend
$4,218.40Gateway share
61%Active users
184Gateway
Chat
Agents
Access rules carry over.
Scoped. Revoke any time.
Or paste the agent prompt.
Set up the Onyx LLM Gateway for this project.1. Ask me for my Onyx gateway base URL (https://<my-onyx-domain>/api/gateway/v1)and a gateway-scoped personal access token (onyx_pat_...). Never echo the token.2. Call GET <base_url>/models with "Authorization: Bearer <token>" and list themodel IDs. They look like <provider-id>/<model-name>, for example 18/claude-sonnet-5.3. Configure the tools I use to route through the gateway:- Claude Code: ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL- Codex CLI: OPENAI_BASE_URL, OPENAI_API_KEY- OpenAI or Anthropic SDKs in this repo: base_url and api_key in the client configPut secrets in the environment or a gitignored .env, never in committed files.4. Send one short test request, confirm streaming works, and tell me which model answered.
Get Started
Today
Start your 14-day free trial of Onyx (no credit card required)
Secure
Enterprise-grade security and compliance. Flexible and secure deployment options.
Trusted by
top teams