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.

What is axonhub?

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.

What it is

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.

Key capabilities

  • Request translation between OpenAI, Anthropic and Gemini API formats, documented under docs/zh/api-reference/openai-api.md, anthropic-api.md and gemini-api.md.
  • Text generation, image generation, rerank and embedding APIs are marked done and documented as image-generation.md, rerank-api.md and embedding-api.md; the realtime API is still listed as Todo.
  • Built-in failover and intelligent load balancing, covered by docs/zh/guides/load-balance.md.
  • Complete request tracing with thread-level observability, so a full request timeline can be inspected to locate problems faster (docs/zh/guides/tracing.md).
  • Enterprise-grade RBAC with fine-grained access control, usage quotas and data isolation (docs/zh/guides/permissions.md).
  • Cost control through real-time usage tracking and budget management.
  • A dashboard covering channels, model pricing, models, trace viewing and request monitoring.
  • Supported providers include OpenAI, Anthropic, Zhipu (GLM-4.5), Moonshot (kimi-k2), DeepSeek (DeepSeek-V3.1), ByteDance Doubao, Gemini, Jina AI, OpenRouter and ZAI, with AWS Bedrock in testing.

Who uses it and how

  • Teams running AI coding agents and CLI tools such as Claude Code and Codex, which the topic list calls out, routing them through one gateway instead of per-tool provider configuration.
  • Platform teams that need per-department access control, usage quotas and data isolation delivered by the RBAC layer.
  • Engineering organisations that want end-to-end tracing and request monitoring across all model traffic rather than per-provider logs.
  • Cost-conscious operators who need real-time usage tracking and budget management over many providers and keys.
  • Groups that want to evaluate AxonHub without local setup, running it in a browser or on a phone through Bloome and sharing that instance with a team.

Getting started

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.

How it compares

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.

When to use it — and when not to

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.

project readme (upstream, from github) — read inline

AxonHub - All-in-one AI 开发平台

任意 SDK、任意模型、零代码改动

looplj%2Faxonhub | Trendshift

测试状态 Lint 状态 Go 版本 Docker Ready Greptile: The War on Bugs

English | 中文 | 日本語


❤️ 赞助商


APIKEY.FUN
    APIKEY.FUN 是一家专业的企业级 AI 中转站,致力于为企业和个人开发者提供稳定、高效、低成本的 AI 模型 API 接入服务。<br/>
    平台支持 Claude、OpenAI、Gemini 等主流热门模型,价格低至官方原价的 7%。<br/>
    AxonHub 用户通过<a href="https://apikey.fun/register?aff=axonhub" target="_blank">专属链接注册</a>,还可享受最高充值永久 95 折专属优惠。

</td>
无限星河 Infistar.cc
无限星河 Infistar.cc

AxonHub × Infistar.cc 无限星河|高可用全模型 API

    ⚡ 企业级高并发稳定调度|官方 1 折起 · 透明倍率 · 多节点冗余<br/>
    🧠 全系模型支持|ChatGPT · Claude · Gemini · DeepSeek<br/>
    🎨 全模态接入|文本 · 图像 · 视频 · Embedding / Rerank


    AxonHub 用户通过<a href="https://lj.s.gy/DUq59H" target="_blank">专属链接</a>注册,可享专属特惠。

</td>

赞助商 详情
七牛云 AI
七牛云 AI
七牛云 AI 是七牛云(02567.HK)旗下企业级大模型 MaaS 平台,一站式调用全球 150+ 主流模型,兼容全球主流模型厂商协议,覆盖文本、图像、音频、视频、文件处理等全模态处理能力,服务超过 169 万企业及开发者用户。七牛云 AI 为 AxonHub 项目的用户提供了专属福利:通过此链接注册,企业用户免费领 1200 万 Token,开发者免费领 300 万 Token。
FennoAI
FennoAI
FennoAI 是一家面向企业研发团队和开发者的高稳定、高性能 API 中转服务商,兼容 OpenAI 与 Anthropic 协议,可无缝接入 Codex、Claude Code、OpenCode 等主流 AI 编程工具。平台具备企业级稳定性,可支撑千亿 Token/日的调用规模,并支持境内外主体公对公结算及开票,满足企业级研发与采购需求。作为 AxonHub 用户专属福利,通过专属链接购买订阅,仅需 1.99 美元即可获得价值 50 美元的 Coding Plan 额度。同时支持邀请奖励,邀请好友购买最高可获得 20% 返佣,邀请越多,奖励越高。

Bloome
想试用 AxonHub,但不想在本地配置环境?可以在 Bloome 上运行: 快速使用, 通过浏览器或手机一键启动,也可以轻松分享给你的团队。


📖 项目介绍

All-in-one AI 开发平台

AxonHub 是 AI 网关,让你无需改动一行代码即可切换模型供应商。

无论你使用的是 OpenAI SDK、Anthropic SDK 还是任何 AI SDK,AxonHub 都会透明地将你的请求转换为与任何支持的模型供应商兼容的格式。无需重构,无需更换 SDK——只需更改配置即可。

它解决了什么问题:


核心特性 Core Features

特性 你能获得什么
🔄 任意 SDK → 任意模型 用 OpenAI SDK 调用 Claude,或用 Anthropic SDK 调用 GPT。零代码改动。
🔍 完整请求追踪 线程级可观测性的完整请求时间线。更快定位问题。
🔐 企业级 RBAC 细粒度访问控制、用量配额和数据隔离。
智能负载均衡

系统仪表板
渠道管理
模型价格
模型
追踪查看
请求监控

🚀 API 类型 | API Types

API 类型 状态 描述 文档
文本生成(Text Generation) ✅ Done 对话交互接口 OpenAI APIAnthropic APIGemini API
图片生成(Image Generation) ✅ Done 图片生成 Image Generation
重排序(Rerank) ✅ Done 结果排序 Rerank API
嵌入(Embedding) ✅ Done 向量嵌入生成 Embedding API
实时对话(Realtime) 📝 Todo 实时对话功能 -

🤖 支持的提供商 | Supported Providers

提供商 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

🚀 部署指南 | Deployment Guide

让你的 Agent 读取并遵循 deploy-axonhub 来部署 AxonHub。


⚡ 快速开始 | Quick Start

部署完成后:

  1. 初始化系统
    • 打开 Agent 返回的 AxonHub 访问地址。
    • 按照初始化向导创建管理员账号。
  2. 添加渠道
    • Channels(渠道) 中添加 AI 提供商及其 API Key。
    • 配置支持的模型,测试连接并启用渠道。
  3. 创建 API Key
    • API Keys(API 密钥) 中创建供客户端使用的 AxonHub API Key。
  4. 发起第一个请求
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


👥 团队 | Team

looplj
looplj
llc1123
llc1123

🤝 致谢 | Acknowledgments


📄 许可证 | License

本项目采用多种许可证授权(Apache-2.0 和 LGPL-3.0)。授权范围详见 NOTICE,协议全文见 LICENSEllm/LICENSE


AxonHub - All-in-one AI 开发平台,让 AI 开发更简单

🏠 官网📚 文档🐛 问题反馈

Built with ❤️ by the AxonHub team

Frequently asked questions

Is axonhub free to use?

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.

What does axonhub do?

⚡️ Open-source AI Gateway — Use any SDK to call 100+ LLMs. Built-in failover, load balancing, cost control & end-to-end tracing.

What is axonhub written in?

axonhub is primarily written in Go. Its source is publicly available at https://github.com/looplj/axonhub, and it has 5,274 GitHub stars.