No ceiling
A runaway script shows up at month end.
Agent Lab · Enterprise AI gateway
Cloud or on-prem models. Point Claude Code or Codex at one URL and see who spent what.
The basics
An AI gateway (or LLM gateway) is the checkpoint between a company and its AI models: every tool calls models through it, and it picks the model, enforces budgets and records each call.
Why
A runaway script shows up at month end.
One shared key, no idea who spent it.
A total, but not which tool.
Switching means editing every tool.
How it works
Each key counts against a team.
Named is used as named; auto picks.
Over the limit, it is not sent.
Every cost stays on record.
Auto model choice
| Task | Model | For example |
|---|---|---|
| Multi-step | Stronger | Edit several files |
| Analysis, coding | Standard | Explain a function |
| Chat, translation, extraction | Cheapest | Pull fields from a doc |
| Could not tell | Standard | Never quietly cheaper |
After 80% of the monthly budget, hard tasks get the standard model too. CLIs turn auto on with one header, X-AgentLab-Routing: auto.
Budgets and limits
Plus a 6-hour rolling limit.
A USD ceiling for each team.
Concurrent calls cannot overspend.
The console tells the owner.
Connect
The last header turns on auto.
export ANTHROPIC_BASE_URL=https://api.agentlab.cresclab.com
export ANTHROPIC_AUTH_TOKEN=<your API key>
export ANTHROPIC_CUSTOM_HEADERS="X-AgentLab-Routing: auto"
claudeGoes in ~/.codex/config.toml.
model_provider = "agentlab"
[model_providers.agentlab]
name = "Agent Lab"
base_url = "https://api.agentlab.cresclab.com/v1"
wire_api = "responses"
env_key = "AGENTLAB_API_KEY"
http_headers = { "X-AgentLab-Routing" = "auto" }The Anthropic SDK also just changes base_url.
client = OpenAI(
base_url="https://api.agentlab.cresclab.com/v1",
api_key=os.environ["AGENTLAB_API_KEY"],
)
client.chat.completions.create(model="auto", messages=[...])Once access is on, the console writes these settings for you.
Records and audit
Key, team, model, cost.
Down to a single key.
Revocable and audited.
Automatically after 15 minutes.
Compare
| Hosting | Budget enforcement | Auto model choice | Best for | |
|---|---|---|---|---|
| Agent Lab AI Gateway | Run by us; cloud and on-prem models | Held before sending | Auto by difficulty | Companies that do not want to run it |
| LiteLLM | Open source, self-hosted | Reserved before sending | Auto Router (beta) | Engineering teams that self-host |
| Portkey (now Prisma AIRS AI Gateway) | SaaS, hybrid, self-hosted | Per-key limits | Rule-based | Logs and guardrails first |
| Cloudflare AI Gateway | Run by Cloudflare; core free | Charged after completion | Auto Router | Teams already on Cloudflare |
| Kong / Azure APIM | Extends existing API management | Kong: next request; Azure: tokens only | Load balancing | Teams already on them |
| TrueFoundry | SaaS; enterprise self-host | Per user or model | Weight, latency | Teams that also host models |
From each vendor's docs, checked 2026-10-21: LiteLLM, Portkey, Cloudflare, Kong, Azure, TrueFoundry.
FAQ
Already have access? Sign in to the console.
We will reach you at the address you left and turn it on for your workspace.