AxonHub - All-in-one AI 开发平台
任意 SDK、任意模型、零代码改动
❤️ 赞助商
APIKEY.FUN
|
无限星河 Infistar.cc
AxonHub × Infistar.cc 无限星河|高可用全模型 API
|
axonhub is a free, open source api development & testing project written in Go and released under Apache-2.0. It has 5,274 GitHub stars, 706 forks and 112 open issues, and was last pushed 3 hours ago. On this registry it ranks #45 of 183 tracked projects in API Development & Testing, with 5 head-to-head comparisons available.
AxonHub is an open-source AI gateway, written in Go and released under the Apache-2.0 licence, that lets an application call 100+ large language models through whichever AI SDK it already uses and switch providers without changing code — built for developers and platform teams who need one self-hostable control point for model access, failover, cost and tracing.
AxonHub sits between an application and the model providers, in the "Developer Tools / API Development & Testing" category. It accepts requests in OpenAI, Anthropic or Gemini API formats and translates them transparently into whatever format each supported provider expects, so an OpenAI SDK call can reach Claude and an Anthropic SDK call can reach GPT. The project describes itself as an all-in-one AI development platform whose core promise is "any SDK, any model, zero code changes" — switching providers is a configuration change rather than a refactor.
The concrete problem it replaces is the glue code and vendor lock-in that accumulate when an application talks to several model providers at once. The README names four failures it targets: provider lock-in (moving from GPT-4 to Claude or Gemini instantly), integration complexity (one API format against 10+ providers), observability gaps (complete request tracing out of the box), and cost control (real-time usage tracking and budget management). Rather than maintaining a separate client, key rotation scheme and logging path per vendor, a team points existing SDKs at AxonHub and manages providers centrally.
docs/zh/api-reference/openai-api.md, anthropic-api.md and gemini-api.md.image-generation.md, rerank-api.md and embedding-api.md; the realtime API is still listed as Todo.docs/zh/guides/load-balance.md.docs/zh/guides/tracing.md).docs/zh/guides/permissions.md).The project advertises Docker readiness, and a hosted instance is available at https://axonhub.onrender.com/ alongside the Bloome option for launching it from a browser or phone without configuring a local environment.
No list of paid products that AxonHub replaces is given in the facts, and no directly comparable open-source AI gateway is named there either, so it stands alone in this registry. The only third-party services described are sponsors — API relay and MaaS offerings such as APIKEY.FUN, Infistar.cc, Qiniu Cloud AI and FennoAI — which are commercial upstream providers rather than peer projects. Readers looking for a head-to-head comparison will not find one in the material supplied here.
Choosing AxonHub means operating a Go gateway yourself and keeping it between your application and every provider, which is real infrastructure to run; the facts do not spell out the backing database, object storage or SMTP requirements, so those should be confirmed from the repository before committing. The project is Apache-2.0 licensed and actively pushed, but the README is chiefly Chinese with English and Japanese translations and documentation links pointing at the docs/zh tree, the realtime API is still Todo, AWS Bedrock is only in testing, and 112 open issues suggest moving parts. Teams that need only a single provider, or who cannot accept an additional hop in the request path, are better served by calling that provider directly.
APIKEY.FUN
|
无限星河 Infistar.cc
AxonHub × Infistar.cc 无限星河|高可用全模型 API
|
| 赞助商 | 详情 |
|---|---|
七牛云 AI |
七牛云 AI 是七牛云(02567.HK)旗下企业级大模型 MaaS 平台,一站式调用全球 150+ 主流模型,兼容全球主流模型厂商协议,覆盖文本、图像、音频、视频、文件处理等全模态处理能力,服务超过 169 万企业及开发者用户。七牛云 AI 为 AxonHub 项目的用户提供了专属福利:通过此链接注册,企业用户免费领 1200 万 Token,开发者免费领 300 万 Token。 |
|
FennoAI |
FennoAI 是一家面向企业研发团队和开发者的高稳定、高性能 API 中转服务商,兼容 OpenAI 与 Anthropic 协议,可无缝接入 Codex、Claude Code、OpenCode 等主流 AI 编程工具。平台具备企业级稳定性,可支撑千亿 Token/日的调用规模,并支持境内外主体公对公结算及开票,满足企业级研发与采购需求。作为 AxonHub 用户专属福利,通过专属链接购买订阅,仅需 1.99 美元即可获得价值 50 美元的 Coding Plan 额度。同时支持邀请奖励,邀请好友购买最高可获得 20% 返佣,邀请越多,奖励越高。 |
Bloome |
想试用 AxonHub,但不想在本地配置环境?可以在 Bloome 上运行: 快速使用, 通过浏览器或手机一键启动,也可以轻松分享给你的团队。 |
AxonHub 是 AI 网关,让你无需改动一行代码即可切换模型供应商。
无论你使用的是 OpenAI SDK、Anthropic SDK 还是任何 AI SDK,AxonHub 都会透明地将你的请求转换为与任何支持的模型供应商兼容的格式。无需重构,无需更换 SDK——只需更改配置即可。
它解决了什么问题:
| 特性 | 你能获得什么 |
|---|---|
| 🔄 任意 SDK → 任意模型 | 用 OpenAI SDK 调用 Claude,或用 Anthropic SDK 调用 GPT。零代码改动。 |
| 🔍 完整请求追踪 | 线程级可观测性的完整请求时间线。更快定位问题。 |
| 🔐 企业级 RBAC | 细粒度访问控制、用量配额和数据隔离。 |
| ⚡ 智能负载均衡 |
| API 类型 | 状态 | 描述 | 文档 |
|---|---|---|---|
| 文本生成(Text Generation) | ✅ Done | 对话交互接口 | OpenAI API、Anthropic API、Gemini API |
| 图片生成(Image Generation) | ✅ Done | 图片生成 | Image Generation |
| 重排序(Rerank) | ✅ Done | 结果排序 | Rerank API |
| 嵌入(Embedding) | ✅ Done | 向量嵌入生成 | Embedding API |
| 实时对话(Realtime) | 📝 Todo | 实时对话功能 | - |
| 提供商 Provider | 状态 Status | 支持模型 Models | 兼容 API |
|---|---|---|---|
| OpenAI | ✅ 已完成 | GPT-4, GPT-4o, GPT-5 等 | OpenAI, Anthropic, Gemini, Embedding, Image Generation |
| Anthropic | ✅ 已完成 | Claude 3.5, Claude 3.0 等 | OpenAI, Anthropic, Gemini |
| 智谱 AI (Zhipu) | ✅ 已完成 | GLM-4.5, GLM-4.5-air 等 | OpenAI, Anthropic, Gemini |
| 月之暗面 (Moonshot) | ✅ 已完成 | kimi-k2 等 | OpenAI, Anthropic, Gemini |
| DeepSeek | ✅ 已完成 | DeepSeek-V3.1 等 | OpenAI, Anthropic, Gemini |
| 字节跳动豆包 | ✅ 已完成 | doubao-1.6 等 | OpenAI, Anthropic, Gemini, Image Generation |
| Gemini | ✅ 已完成 | Gemini 2.5 等 | OpenAI, Anthropic, Gemini, Image Generation |
| Jina AI | ✅ 已完成 | Embeddings, Reranker 等 | Jina Embedding, Jina Rerank |
| OpenRouter | ✅ 已完成 | 多种模型 | OpenAI, Anthropic, Gemini, Image Generation |
| ZAI | ✅ 已完成 | - | Image Generation |
| AWS Bedrock | 🔄 测试中 | Claude on AWS | OpenAI, Anthropic, Gemini |
| Google Cloud | 🔄 测试中 | Claude on GCP | OpenAI, Anthropic, Gemini |
| NanoGPT | ✅ 已完成 | 多种模型、图像生成 | OpenAI, Anthropic, Gemini, Image Generation |
让你的 Agent 读取并遵循 deploy-axonhub 来部署 AxonHub。
部署完成后:
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:8090/v1",
api_key="your-axonhub-api-key"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello, AxonHub!"}]
)
print(response.choices[0].message.content)
更多配置和 API 示例请查看完整文档索引。
详细的开发说明、架构设计和贡献指南,请查看 docs/zh/development/development.md。
本项目采用多种许可证授权(Apache-2.0 和 LGPL-3.0)。授权范围详见 NOTICE,协议全文见 LICENSE 和 llm/LICENSE。
AxonHub - All-in-one AI 开发平台,让 AI 开发更简单
Built with ❤️ by the AxonHub team
axonhub is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.
⚡️ Open-source AI Gateway — Use any SDK to call 100+ LLMs. Built-in failover, load balancing, cost control & end-to-end tracing.
axonhub is primarily written in Go. Its source is publicly available at https://github.com/looplj/axonhub, and it has 5,274 GitHub stars.