Skip to main content

AI gateway and observability for coding agents

Run your coding agent on any model, for less.

1,000+ models, one API key, up to 40% off tokens. Every run traced, every user on a budget.

Command Code
Freebuff
Datacurve
CodeAnt AI
Pricing

Coding agents run on tokens. Pay less for each one.

Bulk rates, passed on. 0% fee.

Browse all models

Gateway

Keep every run going, and every user on budget.

01

Fallbacks and retries

A rate limit halfway through a long run doesn’t end it. The next model answers.

This callUptimeDowntime / monthAnthropic directly429 · failed99.78%~1.6 hThrough Respan200 · 1.81s99.9999%~2 s
claude-opus-5-5429 · 3 tries · 0.85s
gpt-6.1-sol200 · 0.96s
glm-5.3-primestandby
02

Load balancing

Spread long runs across models, providers or keys.

claude-sonnet-5-540%
Anthropic20%
Amazon Bedrock10%
Vertex AI10%
gpt-6.1-sol40%
Primary key20%
Overflow key10%
Batch key10%
gemini-3.8-flash20%
Google20%
03

Budgets per user

Past a user’s budget, the gateway stops their agent’s calls.

ana.k$4.12 / $582%
ben.o$5 / $5blocked
chen.w$18.40 / $5036%
dmitri$212.40 / $50042%
elif.y$0.85 / $517%
Observability

See every turn, from the model call to the tool call.

01

Tracing

Your agent with the Respan SDK or OpenTelemetry. Claude Code, Codex and Cursor too.

claude.chat2.4s
Tool: Bash4.4s
claude.chat2.8s
Tool: Agent7.6s
Agent: Explore7.4s
claude.chat2.6s
Tool: Grep0.3s
claude.chat3.8s
Tool: Edit0.1s
Tool: Bash7.2s
claude.chat4.4s
02

Metrics

Spot an error spike, open the requests behind it.

Requests
Errors
Error rate
Cost
07Customers

AI teams scale to hundreds of millions of requests on Respan.

All customer stories
“We scaled from 5M to 500M+ monthly API calls quickly. Respan gave us the debugging layer to resolve production issues 10x faster.”
Read story
Zexia ZhangCTO
“Imagine jumping to a log immediately after every LLM call. This is the dream for debugging.”
Daniel WolfProduct lead
“Respan has been key in helping us scale to hundreds of millions of requests with reliable observability into our LLM calls and failure rates.”
Read story
Deshraj YadavCo-founder and CTO
FAQ

Coding agents questions.

Which models can a coding agent use through Respan?

Any of the 1,000+ models on the gateway, with one API key. The gateway serves the OpenAI, Anthropic Messages and Gemini APIs and translates between them, so an agent built on one SDK can call another provider’s model.

How do I cap what each user’s agent spends?

Send each request with a customer_identifier, such as your user’s ID, and give that user a period budget. Once their spend passes it, the gateway rejects their requests with a 402 until the next period starts. The period is monthly by default, or daily or weekly.

What happens when a provider rate-limits a long run?

Give the model your agent calls a list of fallback models. The gateway retries a failing call on the same model, then tries each fallback in order, so one 429 doesn’t end the run. Fallbacks are set in the gateway, without changing your code.

Can I trace a coding agent I build?

Yes. Instrument it with the Respan SDK or OpenTelemetry, and each turn becomes a trace: every model call with its model, tokens and cost, every tool call and every sub-agent.

Which coding agents can my team trace?

Claude Code, Codex CLI, Cursor and Gemini CLI. Claude Code traces through Respan’s session-traces plugin, one trace per turn named claude-code, and the others through their own Respan integrations.

Can Claude Code, Codex or Cursor run through the Respan gateway?

Yes. Point the coding agent at the gateway with your Respan API key, and every call it makes is logged with its tokens and cost. Setup guides cover Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Cline, Roo Code, Aider and more. Claude Code can then switch between Claude models, or stay on one provider, such as Vertex AI.

Does tracing slow Claude Code down?

No. The plugin records in a background worker and sends finished spans after each turn, so Claude Code never waits for Respan. It adds about 0.2 ms to each streamed chunk.

Can I use Claude Code with GPT or Gemini models?

Yes. Claude Code speaks the Anthropic Messages API, and the gateway serves that API for every model, translating streaming, tool calls, and reasoning. Set ANTHROPIC_BASE_URL to the gateway and pick a GPT or Gemini model. To keep Claude and log every call instead, run respan-gateway proxy --anthropic in front of Claude Code.

Run your coding agent on Respan.