The AI gateway

The building blocks that make Praxis an AI gateway, what each one does, and where it stands today.

Anatomy of an AI gateway

Every request crosses
every layer.

An AI gateway is more than a proxy with model names. It speaks the model APIs, routes across providers, meters and limits every token, screens content, and shows you what happened, on a foundation built to stream.

  • Available in the current release
  • Experimental opt-in, off by default
  • Proposed open design proposal

Agents

Agents, tools and state Experimental

Route agent traffic and run bounded tool exchanges.

  • Classify and route MCP and A2A traffic
  • Store and rehydrate Responses history; serve Conversations
  • Agentic loop for MCP and web-search tool calls

Responses state, Conversations and the agentic loop are experimental and off by default.

Insight

Metering Available

Count what every request consumes, across provider formats.

  • Unified token counts from provider responses
  • Pre-request balance checks and post-response usage reporting
  • Token usage returned in response headers

Control

Tokenomics Proposed

Budgets for inference, and control over how fast they are spent.

  • Token, rate and cost limits per application
  • Weighted costs so expensive models spend more budget
  • Consumption reporting and optional alerts

Control

Rate limits and quotas Available

Keep usage inside the limits you set before it reaches a model.

  • Token rate limits with tiered enforcement and 429 responses
  • Token ceilings on request size and requested output
  • Request rate limits, circuit breakers and timeouts

Control

Guardrails Available

Screen content through the guardrail provider you choose.

  • External guardrail providers pass, block or redact content
  • Fails closed unless you explicitly opt out
  • Configured per route, with documented streaming limits

Control

Identity and authorization Available

Decide who and which agent may call which model or tool.

  • Validated user, agent and workload identity
  • Pluggable decisions with Cedar, CEL or OPA
  • Per-upstream token delegation and an audit event per decision

Traffic

Model routing Available

Send each request to the right model and backend.

  • Classify by API format, model, streaming and tools
  • Route by model or MCP tool name
  • Rewrite client-facing model names

Traffic

Frontier and cloud providers Available

Reach hosted and self-hosted models with their native authentication.

  • OpenAI, Anthropic and Chat Completions-compatible backends such as vLLM
  • Azure OpenAI, AWS Bedrock Converse and Vertex AI Gemini
  • AWS SigV4, Entra ID and Google ADC upstream credentials

Provider adapters work within their documented limitations.

Traffic

Model APIs Available

Keep your clients' API shape; the gateway does the translating.

  • OpenAI Responses and Chat Completions
  • Anthropic Messages, natively or translated
  • Streaming translation included

Foundation

Extensibility Available

Add your own filters in Rust and compile them in.

  • Implement HttpFilter or TcpFilter in your own crate
  • Conditional filters and branch chains
  • Compiled for native execution

Foundation

Proxy foundation Available

A Rust proxy core that streams bytes and fails closed.

  • Zero-copy streaming and StreamBuffer inspection
  • Load balancing, health checks and atomic config reload
  • Rustls TLS and unsafe_code = "deny"

To start from a task instead, such as sending a first request, connecting an application or deploying, use the documentation hub.