An AI gateway.
Composable by design.
Connect your applications and agents. Choose your backends. Configure how requests are routed and handled, with a Rust framework you can extend.
listeners:
- name: ai
address: "0.0.0.0:8080"
filter_chains: [openai]
filter_chains:
- name: openai
filters:
- filter: ai_operation
- filter: router
routes:
- path_prefix: "/v1"
cluster: openai_backend
- filter: headers
request_set: # Host: api.openai.com
- filter: load_balancer
clusters:
- name: openai_backend
endpoints: ["api.openai.com:443"]- Listener: accept on port 8080
- ai_operation: classify the AI request
- router: match the /v1 prefix
- headers: set the Host header
- load_balancer: forward to api.openai.com over TLS
- Response: streamed back to the calling client
headers and TLS settings abridged. The animation is illustrative; the diagram omits the headers step.Highlights: OpenAI Responses, Chat Completions, Anthropic Messages, AWS Bedrock, Vertex AI, Azure OpenAI, vLLM, MCP, A2A, Token rate limits, Guardrail providers, Token usage headers, Zero-copy streaming, StreamBuffer inspection, Written in Rust, Rustls TLS, unsafe_code = "deny", Fails closed.
Why Praxis
A governed entry point
to your models and tools.
Translate provider APIs, stream large payloads, and stop unwanted requests before they reach a model, on a Rust core you can extend.
One gateway for your model traffic Alpha
The gateway classifies OpenAI Responses, Chat Completions and Anthropic Messages traffic, routes by API format, model or MCP tool name, and translates between provider APIs, streaming included.
Gateway capabilities- Anthropic Messages clients on Chat Completions-compatible backends such as vLLM
- Chat Completions adapted to Azure OpenAI, Bedrock Converse and Vertex AI Gemini, within their documented limits
- MCP and A2A classification and routing
- Token usage extracted across supported provider formats
Governed before it reaches a model
Token ceilings, token rate limits and external guardrail providers sit in the request path. Underneath, the foundation treats security as a primary design constraint: secure defaults, upstream TLS verification, and it fails closed on ambiguous configuration.
Security hardening guideunsafe_code = "deny"across the workspace- Rustls: no OpenSSL, no C FFI in the TLS path
- Root execution rejected; admin endpoints stay on loopback
- Token ceilings, token rate limits and guardrail providers
Big bodies, inspected without stalling
Each filter declares how it reads a body. Stream passes chunks straight through. StreamBuffer hands chunks to a filter as they arrive while holding them back from the upstream, then releases the buffer once the content checks out.
Payload processing- Peek-then-stream for body routing, JSON-RPC parsing and payload scanning
- AI request classification builds on the same StreamBuffer model
- Global hard ceilings on request and response size
- gzip, brotli and zstd response compression
A Rust core you can build on
The gateway runs on a proxy foundation written in Rust. Bodies stream by default: each chunk goes to the next hop as soon as it arrives. Implement the HttpFilter trait in your own crate and compile it in next to the built-in filters.
- Zero-copy streaming by default
- Round-robin, least-connections, consistent-hash, P2C, weighted
- Active and passive health checks, circuit breaker
- Custom filters compiled into your own build
Animations are illustrative; they show behavior, not measured performance.
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
Insight
Control
- TokenomicsProposed Budgets for inference, and control over how fast they are spent.
- Rate limits and quotasAvailable Keep usage inside the limits you set before it reaches a model.
- GuardrailsAvailable Screen content through the guardrail provider you choose.
- Identity and authorizationAvailable Decide who and which agent may call which model or tool.
Traffic
From first request to your own deployment
Make the gateway yours
Start with a working request, then add the capabilities your application needs.
- 1Run the gatewayForward an OpenAI Responses request with Docker and curl.
- 2Connect applicationsUnderstand the API boundary before choosing a backend.
- 3Configure the gatewayChoose routing, state, tools and request controls.
- 4Operate your deploymentPlan credentials, storage, telemetry and resource limits.
Building custom behavior? Extend the gateway in Rust · Need only a reverse proxy? Run the standalone proxy
Build in the open
Get help in the relevant project, report an issue, or propose an ecosystem change.