What is AxonHub?
AxonHub is an open-source AI gateway that sits between your application and the LLM providers you use. You point your existing OpenAI or Anthropic SDK at AxonHub, and it translates each request so the same code can reach Claude, GPT, Gemini, and other supported models. It sits in the Gateways & Routing category of the Evaluation & Production Ops tools and is open-source, written in Go and licensed Apache-2.0.
Overview
AxonHub is an open-source AI gateway that sits between your application and the LLM providers you use. You point your existing OpenAI or Anthropic SDK at AxonHub, and it translates each request so the same code can reach Claude, GPT, Gemini, and other supported models. Switching providers becomes a configuration change instead of a code rewrite.
It is aimed at teams that already call LLM APIs directly and want a single point of control. As an LLM gateway, it adds the operational layer that raw SDKs lack: automatic failover between channels, load balancing, per-request cost tracking, role-based access control, and end-to-end request tracing for debugging.
AxonHub is written in Go with a TypeScript and React frontend, and runs as a self-hosted service. You can start it from a release binary, Docker Compose, or a Helm chart, then send requests to its OpenAI-compatible endpoint at http://localhost:8090/v1.
What it does
- Use the OpenAI SDK to call Claude, or the Anthropic SDK to call GPT, with no code changes
- Smart load balancing with automatic failover to the healthiest channel
- Full request tracing with thread-aware timelines for faster debugging
- Real-time cost tracking with per-request breakdown of input, output, and cache tokens
- Role-based access control with usage quotas and data isolation
- Self-hosted deployment via release binary, Docker Compose, or Helm
Getting started
Run AxonHub locally from a release binary, then call it with the standard OpenAI SDK pointed at its endpoint.
Download and run the binary
Grab the latest release for your platform, extract it, and start the service. It listens on port 8090.
curl -sSL https://github.com/looplj/axonhub/releases/latest/download/axonhub_darwin_arm64.tar.gz | tar xz
cd axonhub_*
./axonhubOpen the dashboard
Once running, open http://localhost:8090 to configure providers and create an API key.
Send a request through the gateway
Point the OpenAI SDK at the AxonHub base URL and use your AxonHub API key. The same client can target models from different providers.
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:8090/v1",
api_key="your-axonhub-api-key"
)
response = client.chat.completions.create(
model="claude-3-5-sonnet",
messages=[{"role": "user", "content": "Hello!"}]
)Deploy with Docker Compose (optional)
For a server deployment, clone the repo and bring it up with Docker Compose.
git clone https://github.com/looplj/axonhub.git
cd axonhub
docker-compose up -dCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Switch an app from one LLM provider to another without touching SDK code
- Add failover and load balancing across multiple model channels for reliability
- Track and control LLM spend with per-request cost breakdowns
- Trace and debug LLM requests across a team with shared access control
How AxonHub compares
AxonHub alongside other open-source gateways & routing tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| OmniRoute | ★ 91.4k | A local-first AI gateway that fronts hundreds of model providers with one OpenAI-compatible endpoint, quota-aware auto-fallback, many routing strategies and prompt compression. |
| Free Claude Code | ★ 74.7k | A local proxy that points Claude Code, Codex, Pi, OpenCode, Cline and other agent CLIs at 50 free, paid, subscription or local model providers, with automatic failover and an admin UI. |
| LiteLLM | ★ 64.2k | A Python SDK and proxy server that gives one OpenAI-compatible API to 100+ LLM providers, with cost tracking, budgets, fallbacks, rate limiting, and an admin UI. |
| Kong Gateway | ★ 44.4k | A Lua/NGINX API gateway whose AI Gateway plugins put one universal endpoint in front of OpenAI, Anthropic, Gemini, Bedrock and other providers, with semantic routing, caching and MCP traffic governance. |
| magpie | ★ 43.7k | Menu bar app and local gateway that lets Claude Code, Codex, Gemini CLI and dozens of other coding agents run on any provider's model, with routing groups that fail over across accounts when a quota runs out. |
| 9Router | ★ 33k | Local OpenAI-compatible router for coding CLIs that tracks per-provider quota, falls back from subscription to cheap to free models, and compresses tool results to cut tokens. |
| Experiential | ★ 20.1k | An open-source gateway that puts hosted, BYOK, local and custom models behind one OpenAI-compatible API, with per-identity model and spend limits and routers fitted from your own traces. |
| AxonHub | ★ 5.5k | Use any SDK to call any LLM, with failover, cost tracking, and request tracing built in |

