# Gateway · One safe endpoint for every AI call

[Home](https://agentkeyroute.com/) / Gateway

# One safe endpoint *for every AI call*

Your apps, Claude Code, Codex and Cursor call AgentKeyRoute instead of the AI provider. Every request is checked, cleaned, sent to a model you approved, and logged. Your code stays the same.

[Get your API key (opens in a new tab)](https://app.agentkeyroute.com/signup)[Read the quickstart](https://docs.agentkeyroute.com/quickstart)

OpenAI- and Anthropic-compatible · 25,000 free requests a month

Change one line

```
from openai import OpenAI

client = OpenAI(
  base_url="https://gateway.agentkeyroute.com/v1",
  api_key="<your API key>",
)
```

**Patient name and record number removed**Sent to the on-premises model your rule requires

Cleaned

**Provider rate limit hit**Retried on the next model your rules allow

Fallback

Why Gateway

## Every tool talks to AI its own way. Gateway gives you one control point.

### Cleans data automatically

Health, personal, payment and secret data is found and swapped for typed placeholders before the request leaves, so the model still understands the task.

### Sends data where it's allowed

Health data to your on-premises model, EU personal data to EU regions. Your ordered rules decide, and anything no rule allows is denied.

### Keeps working when providers don't

Failed calls are retried, then sent to the next approved model, so provider outages and rate limits don't reach your users.

Any model

## Connect the providers you already pay for

Add provider keys once, in AgentKeyRoute. Each tool gets its own AgentKeyRoute key and never sees the provider keys.

-   **Model providers:** OpenAI, Anthropic, Google Gemini, Mistral, xAI Grok, OpenRouter and more.
-   **Your cloud tenancy:** Azure OpenAI, AWS Bedrock and Google Vertex AI.
-   **Your own models:** Ollama, vLLM and other servers in your cloud or data centre.
-   **Subscriptions:** Claude, ChatGPT, Copilot and Gemini accounts, under the same rules. Check your vendor's terms, since consumer plans are licensed for personal use.

[See every supported provider and model →](https://agentkeyroute.com/models)

**OpenAI**Healthy

**Anthropic**Healthy

**Azure OpenAI (EU)**Healthy

**On-premises Llama**Health data only

Cost control

## Know what AI costs, team by team

Every request is metered and tagged with the team, workload and person behind it.

-   **Budgets** per key, team or agent. When one is spent, requests stop with a clear error.
-   **Prompt compression and caching** to cut cost and latency.
-   **Model verification:** the gateway checks which model actually answered. If it isn't one your policy allowed, the request fails closed.

**Engineering**$1,240 / $2,000

**Support bot**$610 / $800

**Marketing**$95 / $300

How it works

## Live in three steps

### Add your providers

Paste your provider keys, connect a subscription, or point to your own model server.

### Create a key per tool

Each app, agent or coding tool gets its own key, tied to a team, a workload and a governance profile.

### Change the base URL

Swap the provider URL for `gateway.agentkeyroute.com/v1`. That's the only code change.

Using Claude Code, Codex or Cursor? [Set it up with one prompt →](https://agentkeyroute.com/ai-setup)

Built-in routing engine

## Reliable by design, not just compliant

The routing engine keeps requests flowing when providers slow down, hit limits or fail, and it only ever uses connections your policy allows.

### Retries and fallback

A failed call is retried, then sent to the next model your rules allow.

### Circuit breaker

A struggling provider is taken out of rotation until it recovers.

### Request queue

Bursts wait their turn instead of failing when limits are reached.

### Cooldowns and rotation

Rate-limited accounts rest, and traffic spreads across several accounts of one provider.

### Concurrency limits

Cap simultaneous requests per provider to stay under rate limits.

### Risk checks

Prompt-injection checks and a risk score decide whether to allow, hold for review or block.

[See all nine checks every request goes through →](https://agentkeyroute.com/product#pipeline)

FAQ

## Gateway questions

[Read the quickstart →](https://docs.agentkeyroute.com/quickstart)

Do I need to rewrite my app?

No. The gateway speaks the OpenAI and Anthropic APIs. Change the base URL and the key, and everything else keeps working.

Does it work with Claude Code, Codex and Cursor?

Yes. Point the tool at the gateway and give it its own key. [One-prompt setup →](https://agentkeyroute.com/ai-setup)

Where are my provider keys stored?

Sealed in AgentKeyRoute. Your apps only ever see their own AgentKeyRoute key, which you can revoke at any time.

Do you resell model usage?

No. You connect your own provider accounts and pay those vendors directly. AgentKeyRoute meters and reports the cost.

Can it run without internet access?

Yes. AgentKeyRoute can run on your own servers, fully air-gapped, next to your own models.

Works with

## Better together

[**Guard**The same rules for people in the browser.](https://agentkeyroute.com/guard)[**Agent Control**Per-agent rules, budgets and an off switch.](https://agentkeyroute.com/agents)[**Audit & Compliance**A tamper-evident record of every request.](https://agentkeyroute.com/compliance)

## One URL. Every model. Your rules.

25,000 free requests a month. No credit card needed.

[Get your API key (opens in a new tab)](https://app.agentkeyroute.com/signup)[Book a demo](mailto:sales@agentkeyroute.com?subject=AgentKeyRoute%20plan)

---
Source: https://agentkeyroute.com/gateway · Markdown: https://agentkeyroute.com/gateway.md
