diff --git a/apps/axonhub/0.9.31/data.yml b/apps/axonhub/0.9.31/data.yml new file mode 100644 index 0000000..0ae272a --- /dev/null +++ b/apps/axonhub/0.9.31/data.yml @@ -0,0 +1,28 @@ +additionalProperties: + formFields: + - default: 8090 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Web Port + labelZh: Web端口 + required: true + rule: paramPort + type: number + label: + en: Web Port + zh: Web端口 + ja: Webポート + ko: Web 포트 + - default: "" + edit: true + envKey: AXONHUB_DB_PASSWORD + labelEn: Database Password + labelZh: 数据库密码 + required: false + rule: paramComplexity + type: password + label: + en: Database Password + zh: 数据库密码 + ja: データベースパスワード + ko: 데이터베이스 비밀번호 diff --git a/apps/axonhub/0.9.31/data/.gitkeep b/apps/axonhub/0.9.31/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/axonhub/0.9.31/docker-compose.yml b/apps/axonhub/0.9.31/docker-compose.yml new file mode 100644 index 0000000..c99a380 --- /dev/null +++ b/apps/axonhub/0.9.31/docker-compose.yml @@ -0,0 +1,20 @@ +services: + axonhub: + image: looplj/axonhub:0.9.31 + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:8090" + volumes: + - ./data:/data + environment: + - TZ=Asia/Shanghai + - AXONHUB_DB_DIALECT=sqlite3 + - AXONHUB_DB_DSN=file:/data/axonhub.db?cache=shared&_fk=1&pragma=journal_mode(WAL) + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true diff --git a/apps/axonhub/README.md b/apps/axonhub/README.md new file mode 100644 index 0000000..2675d0f --- /dev/null +++ b/apps/axonhub/README.md @@ -0,0 +1,79 @@ +# AxonHub + +一站式AI开发平台 - 统一API网关,支持多种LLM提供商。 + +## 功能特点 + +- 🔄 **任意SDK调用任意模型** - 使用OpenAI SDK调用Claude,或使用Anthropic SDK调用GPT,零代码修改 +- 🔍 **完整请求追踪** - 线程感知的可观测性,完整的请求时间线,快速调试 +- 🔐 **企业级RBAC** - 细粒度访问控制、使用配额和数据隔离 +- ⚡ **智能负载均衡** - <100ms自动故障转移,始终路由到最健康的通道 +- 💰 **实时成本追踪** - 每请求成本分解,输入、输出、缓存令牌全追踪 + +## 支持的LLM提供商 + +- OpenAI (GPT-4, GPT-4o, GPT-5等) +- Anthropic (Claude 3.5, Claude 3.0等) +- Zhipu AI (GLM-4.5, GLM-4.5-air等) +- Moonshot AI/Kimi (kimi-k2等) +- DeepSeek (DeepSeek-V3.1等) +- ByteDance Doubao (doubao-1.6等) +- Gemini (Gemini 2.5等) +- Fireworks (MiniMax-M2.5, GLM-5, Kimi K2.5等) +- Jina AI (Embeddings, Reranker等) +- OpenRouter (多种模型) +- ZAI (图像生成) +- AWS Bedrock (Claude on AWS) +- Google Cloud (Claude on GCP) +- NanoGPT (多种模型, 图像生成) + +## 使用说明 + +### 首次访问 + +1. 访问 `http://<服务器IP>:8090` +2. 按照设置向导创建管理员账户(密码至少6位) +3. 登录后配置AI提供商的API密钥 +4. 创建API密钥开始使用 + +### 默认端口 + +- Web界面: 8090 + +### 数据库配置 + +默认使用SQLite数据库,数据存储在 `./data` 目录。 + +如需使用PostgreSQL或MySQL,请参考官方文档配置环境变量: +- `AXONHUB_DB_DIALECT`: 数据库类型 (postgres/mysql/sqlite3) +- `AXONHUB_DB_DSN`: 数据库连接字符串 + +### 数据目录 + +应用数据存储在 `./data` 目录。 + +## 快速开始 + +### 使用OpenAI SDK调用Claude + +```python +from openai import OpenAI + +client = OpenAI( + base_url="http://localhost:8090/v1", # 指向AxonHub + api_key="your-axonhub-api-key" # 使用AxonHub API密钥 +) + +# 使用OpenAI SDK调用Claude! +response = client.chat.completions.create( + model="claude-3-5-sonnet", # 或 gpt-4, gemini-pro, deepseek-chat... + messages=[{"role": "user", "content": "Hello!"}] +) +``` + +## 相关链接 + +- 官方网站: https://github.com/looplj/axonhub +- GitHub: https://github.com/looplj/axonhub +- 文档: https://github.com/looplj/axonhub#readme +- Demo: https://axonhub.onrender.com (Email: demo@example.com, Password: 12345678) diff --git a/apps/axonhub/data.yml b/apps/axonhub/data.yml new file mode 100644 index 0000000..35b2bb2 --- /dev/null +++ b/apps/axonhub/data.yml @@ -0,0 +1,29 @@ +name: AxonHub +tags: + - 开发工具 + - AI工具 +title: 一站式AI开发平台 - 统一API网关,支持多种LLM提供商 +description: 一站式AI开发平台 - 统一API网关,支持多种LLM提供商 +additionalProperties: + key: axonhub + name: AxonHub + tags: + - DevTool + - AI + shortDescZh: 一站式AI开发平台 - 统一API网关 + shortDescEn: All-in-one AI Development Platform - Unified API Gateway + description: + en: AxonHub is an AI gateway that lets you switch between model providers without changing a single line of code. Use any SDK to call 100+ LLMs. Built-in failover, load balancing, cost control & end-to-end tracing. + zh: AxonHub是一个AI网关,让您无需修改任何代码即可在模型提供商之间切换。使用任何SDK调用100+个LLM。内置故障转移、负载均衡、成本控制和端到端追踪。 + ja: AxonHubは、コードを1行も変更せずにモデルプロバイダー間を切り替えることができるAIゲートウェイです。任意のSDKを使用して100以上のLLMを呼び出します。フェイルオーバー、負荷分散、コスト制御、エンドツーエンドのトレースを内蔵。 + ko: AxonHub는 코드를 한 줄도 변경하지 않고 모델 제공자 간에 전환할 수 있는 AI 게이트웨이입니다. 모든 SDK를 사용하여 100개 이상의 LLM을 호출합니다. 장애 조치, 로드 밸런싱, 비용 제어 및 엔드 투 엔드 추적이 내장되어 있습니다. + type: website + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://github.com/looplj/axonhub + github: https://github.com/looplj/axonhub + document: https://github.com/looplj/axonhub#readme + architectures: + - amd64 + - arm64 diff --git a/apps/axonhub/latest/data.yml b/apps/axonhub/latest/data.yml new file mode 100644 index 0000000..0ae272a --- /dev/null +++ b/apps/axonhub/latest/data.yml @@ -0,0 +1,28 @@ +additionalProperties: + formFields: + - default: 8090 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Web Port + labelZh: Web端口 + required: true + rule: paramPort + type: number + label: + en: Web Port + zh: Web端口 + ja: Webポート + ko: Web 포트 + - default: "" + edit: true + envKey: AXONHUB_DB_PASSWORD + labelEn: Database Password + labelZh: 数据库密码 + required: false + rule: paramComplexity + type: password + label: + en: Database Password + zh: 数据库密码 + ja: データベースパスワード + ko: 데이터베이스 비밀번호 diff --git a/apps/axonhub/latest/data/.gitkeep b/apps/axonhub/latest/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/axonhub/latest/docker-compose.yml b/apps/axonhub/latest/docker-compose.yml new file mode 100644 index 0000000..dded120 --- /dev/null +++ b/apps/axonhub/latest/docker-compose.yml @@ -0,0 +1,20 @@ +services: + axonhub: + image: looplj/axonhub:latest + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:8090" + volumes: + - ./data:/data + environment: + - TZ=Asia/Shanghai + - AXONHUB_DB_DIALECT=sqlite3 + - AXONHUB_DB_DSN=file:/data/axonhub.db?cache=shared&_fk=1&pragma=journal_mode(WAL) + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true diff --git a/apps/axonhub/logo.png b/apps/axonhub/logo.png new file mode 100644 index 0000000..e069b3b Binary files /dev/null and b/apps/axonhub/logo.png differ