关于
AI Gateway
人工智能与机器学习可以做什么
- Route by what a request contains. Classify OpenAI Responses, Chat Completions, and Anthropic Messages traffic; select backends by API format, model, or MCP tool name. See the unified gateway and intelligent routing examples.
- Proxy or translate provider APIs. Forward native provider traffic or serve Anthropic Messages and OpenAI Responses clients from Chat Completions-compatible backends, including streaming responses. See the Anthropic and Responses examples.
- Reach managed cloud models. Adapt OpenAI Chat Completions traffic to the managed-provider wire formats of Azure OpenAI, AWS Bedrock Converse, and Google Vertex AI Gemini — streaming included — and authenticate each upstream with AWS SigV4, Entra ID, or Google ADC. See the Azure, Bedrock, and Vertex examples.
- Code harness support. Run Codex through OpenAI Responses, Claude Code through Anthropic Messages, and OpenCode and pi through Chat Completions. The coding client guide shows each client reaching native vLLM endpoints or Chat Completions through translation, and the OpenShell guide runs the same clients inside NVIDIA OpenShell sandboxes.
实测星标增长
- 24小时
- +1
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Praxis AI is an AI gateway built on Praxis. It brings provider-aware routing, protocol translation, stateful OpenAI APIs, and agent traffic into a configurable proxy. Clients keep their API shape while the gateway selects backends and applies policy.
Conversations badges reflect the checked-in conformance report on main: route
coverage, exact owned contracts after documented upstream-spec exceptions, and
focused runtime verification against the pinned OpenAI reference. Authentication
is deployment-owned. See the conformance scope and evidence.
Responses badges track focused checks of Praxis-owned persistence, rehydration, and stored-response lifecycle behavior in the native Responses pipeline. The backend (such as vLLM) owns generation compatibility. See the state conformance boundary.
See the Responses support and qualification table for state parameters, SDK versions, and the native and translated vLLM test lanes.
For verified CLI edits, permission modes and compaction outcomes by model and API route, see Coding harness compatibility.
What can it do?
- Route by what a request contains. Classify OpenAI Responses, Chat Completions, and Anthropic Messages traffic; select backends by API format, model, or MCP tool name. See the unified gateway and intelligent routing examples.
- Proxy or translate provider APIs. Forward native provider traffic or serve Anthropic Messages and OpenAI Responses clients from Chat Completions-compatible backends, including streaming responses. See the Anthropic and Responses examples.
- Reach managed cloud models. Adapt OpenAI Chat Completions traffic to the managed-provider wire formats of Azure OpenAI, AWS Bedrock Converse, and Google Vertex AI Gemini — streaming included — and authenticate each upstream with AWS SigV4, Entra ID, or Google ADC. See the Azure, Bedrock, and Vertex examples.
- Code harness support. Run Codex through OpenAI Responses, Claude Code through Anthropic Messages, and OpenCode and pi through Chat Completions. The coding client guide shows each client reaching native vLLM endpoints or Chat Completions through translation, and the OpenShell guide runs the same clients inside NVIDIA OpenShell sandboxes.
- Manage OpenAI response state. Persist and rehydrate Responses history, serve Conversations endpoints locally, and use PostgreSQL or SQLite for storage. Fully supports both OpenAI Python SDK 2.x and 3.x client versions. See the response store guide and Conversations example.
- Connect tools and agents. Run Responses tool loops with MCP, web search, and file search; route stateless MCP calls and A2A task follow-ups. See the agentic Responses, MCP broker, and A2A routing examples.
- Apply policy and control cost. Inject upstream credentials, enrich prompts, call external guardrails, enforce token rate limits and ceilings, expose token usage, and report metering data. See the token rate limit and external metering examples, and the feature overview for the full list.
- Extend the pipeline with custom Rust filters built on Praxis's
HttpFilterinterface.
See the complete feature overview and filter reference for the full list.
Architecture
Clients keep their provider-native protocols while Praxis AI classifies, transforms, and routes traffic through one policy-driven gateway.
Praxis AI and Praxis
Praxis supplies the proxy runtime, listeners, TLS, load balancing, and filter framework. Praxis AI packages the AI-specific filters and server on top of it. Keeping them in separate repositories lets the AI integrations evolve independently while Praxis remains useful for general proxy workloads. See our conventions for the project structure and development practices.
Quick start
The fastest path is the published container image. The
Quickstart runs ghcr.io/praxis-proxy/ai
with a minimal configuration and forwards a first OpenAI Responses request.
To build from source instead, build and start the gateway with its built-in configuration:
make release
./target/release/praxis-ai
make release and cargo build -p praxis-ai-proxy build full, which excludes
experimental Responses, Conversations, and the agentic loop. Opt in with
--features openai-all,store-sqlite to run their examples; see
Cargo features.
Then check that it is running:
curl http://127.0.0.1:8080/
{"status": "ok", "server": "praxis-ai"}
Ready to connect a backend? Follow Build from source, or choose from the example configurations for OpenAI, Anthropic, MCP, A2A, routing, guardrails, token usage, and more.
Learn your way around
| If you want to… | Start here |
|---|---|
| Run Praxis AI locally | Quickstart |
| Choose an API and provider | Choose a client and provider |
| Follow a task guide | Guides |
| Browse supported capabilities | Capability overview |
| Configure a filter | Generated filter reference |
| Deploy or troubleshoot | Operations guide |
| Understand the design | Architecture docs |
| Build or test the workspace | Development guide |
| Add a new filter | Adding filters |
Praxis AI handles the AI-specific layer. For listeners, TLS, load balancing, rate limiting, health checks, and other core proxy features, visit the Praxis repository.
[!IMPORTANT] Praxis AI is alpha software. APIs, configuration, and operational behavior may change before
v1.0.0. See the security policy for the supported release line.
Released container images are available from
ghcr.io/praxis-proxy/ai. Source builds and local
development instructions are in the development guide.
docker pull ghcr.io/praxis-proxy/ai:latest
Podman can pull the same OCI image. See the quickstart to run it
and the release documentation for image contents and tagging. An image
with the experimental OpenAI Responses filters and SQLite and PostgreSQL
stores is published with an -experimental suffix (for example
nightly-experimental). A FIPS 140-3
build for Red Hat Enterprise Linux hosts is published under the same tags
with a -fips suffix (for example latest-fips); see
FIPS 140-3.
Contributing
Contributions are welcome, from bug reports and documentation fixes to new filters and protocol support. Before opening a pull request, please read the contributing guide and development setup.
For larger changes, open a feature request and follow the proposal process so we can shape the idea together.
Open an issue · Request a feature · Open a pull request
Community
Read GOVERNANCE.md to see how our community works.
Feel free to join our discussion forums to ask questions or share ideas.
Or please join us in our Slack channel on [CNCF Slack]: #praxis channel
Check the CNCF Praxis Calendar to see our community calls and other online meetups.
License
Apache 2.0
探索相关项目
加载中…