[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10907":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":40,"readmeContent":41,"aiSummary":42,"trendingCount":16,"starSnapshotCount":16,"syncStatus":43,"lastSyncTime":44,"discoverSource":45},10907,"axonhub","looplj\u002Faxonhub","looplj","⚡️ Open-source AI Gateway — Use any SDK to call 100+ LLMs. Built-in failover, load balancing, cost control & end-to-end tracing.",null,"https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub","Go",4247,537,12,50,0,80,182,550,240,30.19,false,"main",[25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"ai","anthropic","openai","agent","agents","anthropic-api","api-gateway","cost-management","gemini-api","llm","claude","claude-code","codex","opencode","deepseek","2026-06-12 02:02:28","\u003Cdiv align=\"center\">\n\n# AxonHub - All-in-one AI Development Platform\n### Use any SDK. Access any model. Zero code changes.\n\n\u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F16225\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F16225\" alt=\"looplj%2Faxonhub | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"\u002F>\u003C\u002Fa>\n\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n\n[![Test Status](https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub\u002Factions\u002Fworkflows\u002Ftest.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub\u002Factions\u002Fworkflows\u002Ftest.yml)\n[![Lint Status](https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub\u002Factions\u002Fworkflows\u002Flint.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub\u002Factions\u002Fworkflows\u002Flint.yml)\n[![Go Version](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fgo-mod\u002Fgo-version\u002Flooplj\u002Faxonhub?logo=go&logoColor=white)](https:\u002F\u002Fgolang.org\u002F)\n[![Docker Ready](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdocker-ready-2496ED?logo=docker&logoColor=white)](https:\u002F\u002Fdocker.com)\n\n[English](README.md) | [中文](README.zh-CN.md) | [日本語](README.ja-JP.md)\n\n\u003C\u002Fdiv>\n\n---\n\n> NOTE\n>\n> 1. This project is maintained by an individual. The author makes no warranties and assumes no liability for risks arising from its use. Please evaluate carefully.\n> 2. The core scope of this project does not include 2api (subscription-to-API conversion). If you need that, consider other open-source projects focused on 2api.\n\n---\n\n## 📖 Project Introduction\n\n### All-in-one AI Development Platform\n\n**AxonHub is the AI gateway that lets you switch between model providers without changing a single line of code.**\n\nWhether you're using OpenAI SDK, Anthropic SDK, or any AI SDK, AxonHub transparently translates your requests to work with any supported model provider. No refactoring, no SDK swaps—just change a configuration and you're done.\n\n**What it solves:**\n- 🔒 **Vendor lock-in** - Switch from GPT-4 to Claude or Gemini instantly\n- 🔧 **Integration complexity** - One API format for 10+ providers\n- 📊 **Observability gap** - Complete request tracing out of the box\n- 💸 **Cost control** - Real-time usage tracking and budget management\n\n\u003Cdiv align=\"center\">\n  \u003Cimg src=\"docs\u002Faxonhub-architecture-light.svg\" alt=\"AxonHub Architecture\" width=\"700\"\u002F>\n\u003C\u002Fdiv>\n\n### Core Features\n\n| Feature | What You Get |\n|---------|-------------|\n| 🔄 [**Any SDK → Any Model**](docs\u002Fen\u002Fapi-reference\u002Fopenai-api.md) | Use OpenAI SDK to call Claude, or Anthropic SDK to call GPT. Zero code changes. |\n| 🔍 [**Full Request Tracing**](docs\u002Fen\u002Fguides\u002Ftracing.md) | Complete request timelines with thread-aware observability. Debug faster. |\n| 🔐 [**Enterprise RBAC**](docs\u002Fen\u002Fguides\u002Fpermissions.md) | Fine-grained access control, usage quotas, and data isolation. |\n| ⚡ [**Smart Load Balancing**](docs\u002Fen\u002Fguides\u002Fload-balance.md) | Auto failover in \u003C100ms. Always route to the healthiest channel. |\n| 💰 [**Real-time Cost Tracking**](docs\u002Fen\u002Fguides\u002Fcost-tracking.md) | Per-request cost breakdown. Input, output, cache tokens—all tracked. |\n\n---\n\n## 📚 Documentation\n\nFor detailed technical documentation, API references, architecture design, and more:\n\n- 📑 **[Documentation Index](docs\u002Fen\u002Findex.md)** - Complete documentation navigation\n- [![DeepWiki](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDeepWiki-looplj%2Faxonhub-blue.svg?logo=data:image\u002Fpng;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAyCAYAAAAnWDnqAAAAAXNSR0IArs4c6QAAA05JREFUaEPtmUtyEzEQhtWTQyQLHNak2AB7ZnyXZMEjXMGeK\u002FAIi+QuHrMnbChYY7MIh8g01fJoopFb0uhhEqqcbWTp06\u002Fuv1saEDv4O3n3dV60RfP947Mm9\u002FSQc0ICFQgzfc4CYZoTPAswgSJCCUJUnAAoRHOAUOcATwbmVLWdGoH\u002F\u002FPB8mnKqScAhsD0kYP3j\u002FYt5LPQe2KvcXmGvRHcDnpxfL2zOYJ1mFwrryWTz0advv1Ut4CJgf5uhDuDj5eUcAUoahrdY\u002F56ebRWeraTjMt\u002F00Sh3UDtjgHtQNHwcRGOC98BJEAEymycmYcWwOprTgcB6VZ5JK5TAJ+fXGLBm3FDAmn6oPPjR4rKCAoJCal2eAiQp2x0vxTPB3ALO2CRkwmDy5WohzBDwSEFKRwPbknEggCPB\u002FimwrycgxX2NzoMCHhPkDwqYMr9tRcP5qNrMZHkVnOjRMWwLCcr8ohBVb1OMjxLwGCvjTikrsBOiA6fNyCrm8V1rP93iVPpwaE+gO0SsWmPiXB+jikdf6SizrT5qKasx5j8ABbHpFTx+vFXp9EnYQmLx02h1QTTrl6eDqxLnGjporxl3NL3agEvXdT0WmEost648sQOYAeJS9Q7bfUVoMGnjo4AZdUMQku50McDcMWcBPvr0SzbTAFDfvJqwLzgxwATnCgnp4wDl6Aa+Ax283gghmj+vj7feE2KBBRMW3FzOpLOADl0Isb5587h\u002FU4gGvkt5v60Z1VLG8BhYjbzRwyQZemwAd6cCR5\u002FXFWLYZRIMpX39AR0tjaGGiGzLVyhse5C9RKC6ai42ppWPKiBagOvaYk8lO7DajerabOZP46Lby5wKjw1HCRx7p9sVMOWGzb\u002FvA1hwiWc6jm3MvQDTogQkiqIhJV0nBQBTU+3okKCFDy9WwferkHjtxib7t3xIUQtHxnIwtx4mpg26\u002FHfwVNVDb4oI9RHmx5WGelRVlrtiw43zboCLaxv46AZeB3IlTkwouebTr1y2NjSpHz68WNFjHvupy3q8TFn3Hos2IAk4Ju5dCo8B3wP7VPr\u002FFGaKiG+T+v+TQqIrOqMTL1VdWV1DdmcbO8KXBz6esmYWYKPwDL5b5FA1a0hwapHiom0r\u002FcKaoqr+27\u002FXcrS5UwSMbQAAAABJRU5ErkJggg==)](https:\u002F\u002Fdeepwiki.com\u002Flooplj\u002Faxonhub)\n- [![zread](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAsk_Zread-_.svg?style=flat&color=00b0aa&labelColor=000000&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuOTYxNTYgMS42MDAxSDIuMjQxNTZDMS44ODgxIDEuNjAwMSAxLjYwMTU2IDEuODg2NjQgMS42MDE1NiAyLjI0MDFWNC45NjAxQzEuNjAxNTYgNS4zMTM1NiAxLjg4ODEgNS42MDAxIDIuMjQxNTYgNS42MDAxSDQuOTYxNTZDNS4zMTUwMiA1LjYwMDEgNS42MDE1NiA1LjMxMzU2IDUuNjAxNTYgNC45NjAxVjIuMjQwMUM1LjYwMTU2IDEuODg2NjQgNS4zMTUwMiAxLjYwMDEgNC45NjE1NiAxLjYwMDFaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00Ljk2MTU2IDEwLjM5OTlIMi4yNDE1NkMxLjg4ODEgMTAuMzk5OSAxLjYwMTU2IDEwLjY4NjQgMS42MDE1NiAxMS4wMzk5VjEzLjc1OTlDMS42MDE1NiAxNC4xMTM0IDEuODg4MSAxNC4zOTk5IDIuMjQxNTYgMTQuMzk5OUg0Ljk2MTU2QzUuMzE1MDIgMTQuMzk5OSA1LjYwMTU2IDE0LjExMzQgNS42MDE1NiAxMy43NTk5VjExLjAzOTlDNS42MDE1NiAxMC42ODY0IDUuMzE1MDIgMTAuMzk5OSA0Ljk2MTU2IDEwLjM5OTlaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik0xMy43NTg0IDEuNjAwMUgxMS4wMzg0QzEwLjY4NSAxLjYwMDEgMTAuMzk4NCAxLjg4NjY0IDEwLjM5ODQgMi4yNDAxVjQuOTYwMUMxMC4zOTg0IDUuMzEzNTYgMTAuNjg1IDUuNjAwMSAxMS4wMzg0IDUuNjAwMUgxMy43NTg0QzE0LjExMTkgNS42MDAxIDE0LjM5ODQgNS4zMTM1NiAxNC4zOTg0IDQuOTYwMVYyLjI0MDFDMTQuMzk4NCAxLjg4NjY0IDE0LjExMTkgMS42MDAxIDEzLjc1ODQgMS42MDAxWiIgZmlsbD0iI2ZmZiIvPgo8cGF0aCBkPSJNNCAxMkwxMiA0TDQgMTJaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00IDEyTDEyIDQiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K&logoColor=ffffff)](https:\u002F\u002Fzread.ai\u002Flooplj\u002Faxonhub)\n\n---\n\n## 🎯 Demo\n\nTry AxonHub live at our [demo instance](https:\u002F\u002Faxonhub.onrender.com)!\n\n**Note**：The demo instance currently configures Zhipu and OpenRouter free models.\n\n### Demo Account\n\n- **Email**: demo@example.com\n- **Password**: 12345678\n\n---\n\n## ⭐ Features\n\n### 📸 Screenshots\n\nHere are some screenshots of AxonHub in action:\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd align=\"center\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Faxonhub-dashboard.png\">\n        \u003Cimg src=\"docs\u002Fscreenshots\u002Faxonhub-dashboard.png\" alt=\"System Dashboard\" width=\"250\"\u002F>\n      \u003C\u002Fa>\n      \u003Cbr\u002F>\n      System Dashboard\n    \u003C\u002Ftd>\n    \u003Ctd align=\"center\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Faxonhub-channels.png\">\n        \u003Cimg src=\"docs\u002Fscreenshots\u002Faxonhub-channels.png\" alt=\"Channel Management\" width=\"250\"\u002F>\n      \u003C\u002Fa>\n      \u003Cbr\u002F>\n      Channel Management\n    \u003C\u002Ftd>\n    \u003Ctd align=\"center\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Faxonhub-model-price.png\">\n        \u003Cimg src=\"docs\u002Fscreenshots\u002Faxonhub-model-price.png\" alt=\"Model Price\" width=\"250\"\u002F>\n      \u003C\u002Fa>\n      \u003Cbr\u002F>\n      Model Price\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n  \u003Ctd align=\"center\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Faxonhub-models.png\">\n        \u003Cimg src=\"docs\u002Fscreenshots\u002Faxonhub-models.png\" alt=\"Models\" width=\"250\"\u002F>\n      \u003C\u002Fa>\n      \u003Cbr\u002F>\n      Models\n    \u003C\u002Ftd>\n    \u003Ctd align=\"center\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Faxonhub-trace.png\">\n        \u003Cimg src=\"docs\u002Fscreenshots\u002Faxonhub-trace.png\" alt=\"Trace Viewer\" width=\"250\"\u002F>\n      \u003C\u002Fa>\n      \u003Cbr\u002F>\n      Trace Viewer\n    \u003C\u002Ftd>\n    \u003Ctd align=\"center\">\n      \u003Ca href=\"docs\u002Fscreenshots\u002Faxonhub-requests.png\">\n        \u003Cimg src=\"docs\u002Fscreenshots\u002Faxonhub-requests.png\" alt=\"Request Monitoring\" width=\"250\"\u002F>\n      \u003C\u002Fa>\n      \u003Cbr\u002F>\n      Request Monitoring\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n---\n\n### 🚀 API Types\n\n| API Type             | Status     | Description                    | Document                                     |\n| -------------------- | ---------- | ------------------------------ | -------------------------------------------- |\n| **Text Generation**  | ✅ Done    | Conversational interface       | [OpenAI API](docs\u002Fen\u002Fapi-reference\u002Fopenai-api.md), [Anthropic API](docs\u002Fen\u002Fapi-reference\u002Fanthropic-api.md), [Gemini API](docs\u002Fen\u002Fapi-reference\u002Fgemini-api.md) |\n| **Image Generation** | ✅ Done | Image generation               | [Image Generation](docs\u002Fen\u002Fapi-reference\u002Fimage-generation.md) |\n| **Rerank**           | ✅ Done    | Results ranking                | [Rerank API](docs\u002Fen\u002Fapi-reference\u002Frerank-api.md) |\n| **Embedding**        | ✅ Done    | Vector embedding generation    | [Embedding API](docs\u002Fen\u002Fapi-reference\u002Fembedding-api.md) |\n| **Realtime**         | 📝 Todo    | Live conversation capabilities | -                                            |\n\n---\n\n### 🤖 Supported Providers\n\n| Provider               | Status     | Supported Models             | Compatible APIs |\n| ---------------------- | ---------- | ---------------------------- | --------------- |\n| **OpenAI**             | ✅ Done    | GPT-4, GPT-4o, GPT-5, etc.   | OpenAI, Anthropic, Gemini, Embedding, Image Generation |\n| **Anthropic**          | ✅ Done    | Claude 3.5, Claude 3.0, etc. | OpenAI, Anthropic, Gemini |\n| **Zhipu AI**           | ✅ Done    | GLM-4.5, GLM-4.5-air, etc.   | OpenAI, Anthropic, Gemini |\n| **Moonshot AI (Kimi)** | ✅ Done    | kimi-k2, etc.                | OpenAI, Anthropic, Gemini |\n| **DeepSeek**           | ✅ Done    | DeepSeek-V3.1, etc.          | OpenAI, Anthropic, Gemini |\n| **ByteDance Doubao**   | ✅ Done    | doubao-1.6, etc.             | OpenAI, Anthropic, Gemini, Image Generation |\n| **Gemini**             | ✅ Done    | Gemini 2.5, etc.             | OpenAI, Anthropic, Gemini, Image Generation |\n| **Fireworks**          | ✅ Done    | MiniMax-M2.5, GLM-5, Kimi K2.5, etc. | OpenAI |\n| **Jina AI**            | ✅ Done    | Embeddings, Reranker, etc.   | Jina Embedding, Jina Rerank |\n| **OpenRouter**         | ✅ Done    | Various models               | OpenAI, Anthropic, Gemini, Image Generation |\n| **ZAI**                | ✅ Done    | -                            | Image Generation |\n| **AWS Bedrock**        | 🔄 Testing | Claude on AWS                | OpenAI, Anthropic, Gemini |\n| **Google Cloud**       | 🔄 Testing | Claude on GCP                | OpenAI, Anthropic, Gemini |\n| **NanoGPT**            | ✅ Done    | Various models, Image Gen    | OpenAI, Anthropic, Gemini, Image Generation |\n\n---\n\n## 🚀 Quick Start\n\n### 30-Second Local Start\n\n```bash\n# Download and extract (macOS ARM64 example)\ncurl -sSL https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub\u002Freleases\u002Flatest\u002Fdownload\u002Faxonhub_darwin_arm64.tar.gz | tar xz\ncd axonhub_*\n\n# Run with SQLite (default)\n.\u002Faxonhub\n\n# Open http:\u002F\u002Flocalhost:8090\n# First run: Follow the setup wizard to initialize the system (create admin account, password must be at least 6 characters)\n```\n\nThat's it! Now configure your first AI channel and start calling models through AxonHub.\n\n### Zero-Code Migration Example\n\n**Your existing code works without any changes.** Just point your SDK to AxonHub:\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(\n    base_url=\"http:\u002F\u002Flocalhost:8090\u002Fv1\",  # Point to AxonHub\n    api_key=\"your-axonhub-api-key\"        # Use AxonHub API key\n)\n\n# Call Claude using OpenAI SDK!\nresponse = client.chat.completions.create(\n    model=\"claude-3-5-sonnet\",  # Or gpt-4, gemini-pro, deepseek-chat...\n    messages=[{\"role\": \"user\", \"content\": \"Hello!\"}]\n)\n```\n\nSwitch models by changing one line: `model=\"gpt-4\"` → `model=\"claude-3-5-sonnet\"`. No SDK changes needed.\n\n### 1-click Deploy to Render\n\nDeploy AxonHub with 1-click on [Render](https:\u002F\u002Frender.com) for free.\n\n\u003Cdiv>\n\n\u003Ca href=\"https:\u002F\u002Frender.com\u002Fdeploy?repo=https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub\">\n  \u003Cimg src=\"https:\u002F\u002Frender.com\u002Fimages\u002Fdeploy-to-render-button.svg\" alt=\"Deploy to Render\">\n\u003C\u002Fa>\n\n\u003C\u002Fdiv>\n\n---\n\n## 🚀 Deployment Guide\n\n### 💻 Personal Computer Deployment\n\nPerfect for individual developers and small teams. No complex configuration required.\n\n#### Quick Download & Run\n\n1. **Download the latest release** from [GitHub Releases](https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub\u002Freleases)\n\n   - Choose the appropriate version for your operating system:\n\n2. **Extract and run**\n\n   ```bash\n   # Extract the downloaded file\n   unzip axonhub_*.zip\n   cd axonhub_*\n\n   # Add execution permissions (only for Linux\u002FmacOS)\n   chmod +x axonhub\n\n   # Run directly - default SQLite database\n\n   # Install AxonHub to system\n   sudo .\u002Finstall.sh\n\n   # Start AxonHub service\n   .\u002Fstart.sh\n\n   # Stop AxonHub service\n   .\u002Fstop.sh\n   ```\n\n3. **Access the application**\n   ```\n   http:\u002F\u002Flocalhost:8090\n   ```\n\n---\n\n### 🖥️ Server Deployment\n\nFor production environments, high availability, and enterprise deployments.\n\n#### Database Support\n\nAxonHub supports multiple databases to meet different scale deployment needs:\n\n| Database       | Supported Versions | Recommended Scenario                             | Auto Migration | Links                                                       |\n| -------------- | ------------------ | ------------------------------------------------ | -------------- | ----------------------------------------------------------- |\n| **TiDB Cloud** | Starter            | Serverless, Free tier, Auto Scale                | ✅ Supported   | [TiDB Cloud](https:\u002F\u002Fwww.pingcap.com\u002Ftidb-cloud-starter\u002F)   |\n| **TiDB Cloud** | Dedicated          | Distributed deployment, large scale              | ✅ Supported   | [TiDB Cloud](https:\u002F\u002Fwww.pingcap.com\u002Ftidb-cloud-dedicated\u002F) |\n| **TiDB**       | V8.0+              | Distributed deployment, large scale              | ✅ Supported   | [TiDB](https:\u002F\u002Ftidb.io\u002F)                                    |\n| **Neon DB**    | -                  | Serverless, Free tier, Auto Scale                | ✅ Supported   | [Neon DB](https:\u002F\u002Fneon.com\u002F)                                |\n| **PostgreSQL** | 15+                | Production environment, medium-large deployments | ✅ Supported   | [PostgreSQL](https:\u002F\u002Fwww.postgresql.org\u002F)                   |\n| **MySQL**      | 8.0+               | Production environment, medium-large deployments | ✅ Supported   | [MySQL](https:\u002F\u002Fwww.mysql.com\u002F)                             |\n| **SQLite**     | 3.0+               | Development environment, small deployments       | ✅ Supported   | [SQLite](https:\u002F\u002Fwww.sqlite.org\u002Findex.html)                 |\n\n#### Configuration\n\nAxonHub uses YAML configuration files with environment variable override support:\n\n```yaml\n# config.yml\nserver:\n  port: 8090\n  name: \"AxonHub\"\n  debug: false\n\ndb:\n  dialect: \"tidb\"\n  dsn: \"\u003CUSER>.root:\u003CPASSWORD>@tcp(gateway01.us-west-2.prod.aws.tidbcloud.com:4000)\u002Faxonhub?tls=true&parseTime=true&multiStatements=true&charset=utf8mb4\"\n\nlog:\n  level: \"info\"\n  encoding: \"json\"\n```\n\nEnvironment variables:\n\n```bash\nAXONHUB_SERVER_PORT=8090\nAXONHUB_DB_DIALECT=\"tidb\"\nAXONHUB_DB_DSN=\"\u003CUSER>.root:\u003CPASSWORD>@tcp(gateway01.us-west-2.prod.aws.tidbcloud.com:4000)\u002Faxonhub?tls=true&parseTime=true&multiStatements=true&charset=utf8mb4\"\nAXONHUB_LOG_LEVEL=info\n```\n\nFor detailed configuration instructions, please refer to [configuration documentation](docs\u002Fen\u002Fdeployment\u002Fconfiguration.md).\n\n#### Docker Compose Deployment\n\n```bash\n# Clone project\ngit clone https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub.git\ncd axonhub\n\n# Set environment variables\nexport AXONHUB_DB_DIALECT=\"tidb\"\nexport AXONHUB_DB_DSN=\"\u003CUSER>.root:\u003CPASSWORD>@tcp(gateway01.us-west-2.prod.aws.tidbcloud.com:4000)\u002Faxonhub?tls=true&parseTime=true&multiStatements=true&charset=utf8mb4\"\n\n# Start services\ndocker-compose up -d\n\n# Check status\ndocker-compose ps\n```\n\n#### Helm Kubernetes Deployment\n\nDeploy AxonHub on Kubernetes using the official Helm chart:\n\n```bash\n# Quick installation\ngit clone https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub.git\ncd axonhub\nhelm install axonhub .\u002Fdeploy\u002Fhelm\n\n# Production deployment\nhelm install axonhub .\u002Fdeploy\u002Fhelm -f .\u002Fdeploy\u002Fhelm\u002Fvalues-production.yaml\n\n# Access AxonHub\nkubectl port-forward svc\u002Faxonhub 8090:8090\n# Visit http:\u002F\u002Flocalhost:8090\n```\n\n**Key Configuration Options:**\n\n| Parameter | Description | Default |\n|-----------|-------------|---------|\n| `axonhub.replicaCount` | Replicas | `1` |\n| `axonhub.dbPassword` | DB password | `axonhub_password` |\n| `postgresql.enabled` | Embedded PostgreSQL | `true` |\n| `ingress.enabled` | Enable ingress | `false` |\n| `persistence.enabled` | Data persistence | `false` |\n\nFor detailed configuration and troubleshooting, see [Helm Chart Documentation](deploy\u002Fhelm\u002FREADME.md).\n\n#### Virtual Machine Deployment\n\nDownload the latest release from [GitHub Releases](https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub\u002Freleases)\n\n```bash\n# Extract and run\nunzip axonhub_*.zip\ncd axonhub_*\n\n# Set environment variables\nexport AXONHUB_DB_DIALECT=\"tidb\"\nexport AXONHUB_DB_DSN=\"\u003CUSER>.root:\u003CPASSWORD>@tcp(gateway01.us-west-2.prod.aws.tidbcloud.com:4000)\u002Faxonhub?tls=true&parseTime=true&multiStatements=true&charset=utf8mb4\"\n\nsudo .\u002Finstall.sh\n\n# Configuration file check\naxonhub config check\n\n# Start service\n#  For simplicity, we recommend managing AxonHub with the helper scripts:\n\n# Start\n.\u002Fstart.sh\n\n# Stop\n.\u002Fstop.sh\n```\n\n---\n\n## 📖 Usage Guide\n\n### Unified API Overview\n\nAxonHub provides a unified API gateway that supports both OpenAI Chat Completions and Anthropic Messages APIs. This means you can:\n\n- **Use OpenAI API to call Anthropic models** - Keep using your OpenAI SDK while accessing Claude models\n- **Use Anthropic API to call OpenAI models** - Use Anthropic's native API format with GPT models\n- **Use Gemini API to call OpenAI models** - Use Gemini's native API format with GPT models\n- **Automatic API translation** - AxonHub handles format conversion automatically\n- **Zero code changes** - Your existing OpenAI or Anthropic client code continues to work\n\n### 1. Initial Setup\n\n1. **Access Management Interface**\n\n   ```\n   http:\u002F\u002Flocalhost:8090\n   ```\n\n2. **Configure AI Providers**\n\n   - Add API keys in the management interface\n   - Test connections to ensure correct configuration\n\n3. **Create Users and Roles**\n   - Set up permission management\n   - Assign appropriate access permissions\n\n### 2. Channel Configuration\n\nConfigure AI provider channels in the management interface. For detailed information on channel configuration, including model mappings, parameter overrides, and troubleshooting, see the [Channel Configuration Guide](docs\u002Fen\u002Fguides\u002Fchannel-management.md).\n\n### 3. Model Management\n\nAxonHub provides a flexible model management system that supports mapping abstract models to specific channels and model implementations through Model Associations. This enables:\n\n- **Unified Model Interface** - Use abstract model IDs (e.g., `gpt-4`, `claude-3-opus`) instead of channel-specific names\n- **Intelligent Channel Selection** - Automatically route requests to optimal channels based on association rules and load balancing\n- **Flexible Mapping Strategies** - Support for precise channel-model matching, regex patterns, and tag-based selection\n- **Priority-based Fallback** - Configure multiple associations with priorities for automatic failover\n\nFor comprehensive information on model management, including association types, configuration examples, and best practices, see the [Model Management Guide](docs\u002Fen\u002Fguides\u002Fmodel-management.md).\n\n### 4. Create API Keys\n\nCreate API keys to authenticate your applications with AxonHub. Each API key can be configured with multiple profiles that define:\n\n- **Model Mappings** - Transform user-requested models to actual available models using exact match or regex patterns\n- **Channel Restrictions** - Limit which channels an API key can use by channel IDs or tags\n- **Model Access Control** - Control which models are accessible through a specific profile\n- **Profile Switching** - Change behavior on-the-fly by activating different profiles\n\nFor detailed information on API key profiles, including configuration examples, validation rules, and best practices, see the [API Key Profile Guide](docs\u002Fen\u002Fguides\u002Fapi-key-profiles.md).\n\n### 5. AI Coding Tools Integration\n\nSee the dedicated guides for detailed setup steps, troubleshooting, and tips on combining these tools with AxonHub model profiles:\n- [OpenCode Integration Guide](docs\u002Fen\u002Fguides\u002Fopencode-integration.md)\n- [Claude Code Integration Guide](docs\u002Fen\u002Fguides\u002Fclaude-code-integration.md)\n- [Codex Integration Guide](docs\u002Fen\u002Fguides\u002Fcodex-integration.md)\n\n---\n\n### 6. SDK Usage\n\nFor detailed SDK usage examples and code samples, please refer to the API documentation:\n- [OpenAI API](docs\u002Fen\u002Fapi-reference\u002Fopenai-api.md)\n- [Anthropic API](docs\u002Fen\u002Fapi-reference\u002Fanthropic-api.md)\n- [Gemini API](docs\u002Fen\u002Fapi-reference\u002Fgemini-api.md)\n\n## 🛠️ Development Guide\n\nFor detailed development instructions, architecture design, and contribution guidelines, please see [docs\u002Fen\u002Fdevelopment\u002Fdevelopment.md](docs\u002Fen\u002Fdevelopment\u002Fdevelopment.md).\n\n---\n\n## 🤝 Acknowledgments\n\n- 🙏 [musistudio\u002Fllms](https:\u002F\u002Fgithub.com\u002Fmusistudio\u002Fllms) - LLM transformation framework, source of inspiration\n- 🎨 [satnaing\u002Fshadcn-admin](https:\u002F\u002Fgithub.com\u002Fsatnaing\u002Fshadcn-admin) - Admin interface template\n- 🔧 [99designs\u002Fgqlgen](https:\u002F\u002Fgithub.com\u002F99designs\u002Fgqlgen) - GraphQL code generation\n- 🌐 [gin-gonic\u002Fgin](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fgin) - HTTP framework\n- 🗄️ [ent\u002Fent](https:\u002F\u002Fgithub.com\u002Fent\u002Fent) - ORM framework\n- 🔧 [air-verse\u002Fair](https:\u002F\u002Fgithub.com\u002Fair-verse\u002Fair) - Auto reload Go service\n- ☁️ [Render](https:\u002F\u002Frender.com) - Free cloud deployment platform for hosting our demo\n- 🗃️ [TiDB Cloud](https:\u002F\u002Fwww.pingcap.com\u002Ftidb-cloud\u002F) - Serverless database platform for demo deployment\n\n---\n\n## 📄 License\n\nThis project is licensed under multiple licenses (Apache-2.0 and LGPL-3.0). See [LICENSE](LICENSE) file for the detailed licensing overview and terms.\n\n---\n\n\u003Cdiv align=\"center\">\n\n**AxonHub** - All-in-one AI Development Platform, making AI development simpler\n\n[🏠 Homepage](https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub) • [📚 Documentation](https:\u002F\u002Fdeepwiki.com\u002Flooplj\u002Faxonhub) • [🐛 Issue Feedback](https:\u002F\u002Fgithub.com\u002Flooplj\u002Faxonhub\u002Fissues)\n\nBuilt with ❤️ by the AxonHub team\n\n\u003C\u002Fdiv>\n","AxonHub 是一个开源的AI网关，支持使用任何SDK调用超过100种大语言模型。其核心功能包括内置故障转移、负载均衡、成本控制和端到端跟踪。项目采用Go语言编写，具备零代码更改即可切换不同模型提供商的能力，并提供完整的请求追踪、智能负载均衡及实时成本监控等特性。适用于需要简化多模型集成复杂度、避免供应商锁定以及对成本和性能有严格要求的企业级AI开发场景。",2,"2026-06-11 03:30:44","trending"]