[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113407":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":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},113407,"Agent2API","aimod-cc\u002FAgent2API","aimod-cc","Local AI routing gateway with Agent client takeover — reuse existing client logins, call 50+ AI clients through one base URL, with unified OpenAI \u002F Anthropic \u002F Images APIs, multi-account routing, check-in, balance and request reports · 本地 AI 路由网关 + Agent 客户端接管：复用各家客户端登录态，一个 base_url 调用 50+ 家模型额度，统一 OpenAI \u002F Anthropic \u002F 生图接口，多账号选路、签到、余额与请求报表一体管理",null,"https:\u002F\u002Fgithub.com\u002Faimod-cc\u002FAgent2API","Rust",2665,736,4,89,0,16,258,326,102,107.59,false,"main",[25,26,27,28,29,30,31,32,33],"autoclaw","catpaw","local-proxy","openai-compatible","qoder","cline","docker","accio","trae","2026-11-23 16:41:45","2026-11-23 17:23:37","\u003Cdiv align=\"center\">\n\n# Agent2API\n\n**An AI routing gateway with Agent client takeover, unifying model APIs and local client configuration**\n\n**English** | [简体中文](.\u002Fdocs\u002FREADME.zh-CN.md) | [繁體中文](.\u002Fdocs\u002FREADME.zh-Hant.md) | [日本語](.\u002Fdocs\u002FREADME.ja.md) | [한국어](.\u002Fdocs\u002FREADME.ko.md) | [Português (BR)](.\u002Fdocs\u002FREADME.pt-BR.md)\n\n[![license](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-AGPL--3.0-green)](.\u002FLICENSE)\n[![release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Faimod-cc\u002FAgent2API?include_prereleases)](https:\u002F\u002Fgithub.com\u002Faimod-cc\u002FAgent2API\u002Freleases\u002Flatest)\n[![docker pulls](https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fpulls\u002Faimodcc\u002Fagent2api)](https:\u002F\u002Fhub.docker.com\u002Fr\u002Faimodcc\u002Fagent2api)\n[![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Faimod-cc\u002FAgent2API?style=flat&color=yellow)](https:\u002F\u002Fgithub.com\u002Faimod-cc\u002FAgent2API\u002Fstargazers)\n[![platform](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-Windows%20%7C%20macOS%20%7C%20Linux%20%7C%20Docker-blue)](https:\u002F\u002Fgithub.com\u002Faimod-cc\u002FAgent2API\u002Freleases\u002Flatest)\n\n[✨ Key Features](#-key-features) • [💬 Community & Support](#-community--support) • [🚀 Quick Start](#-quick-start) • [📦 Installation & deployment](.\u002Fdocs\u002Finstall.en.md) • [📸 Screenshots](#-screenshots) • [🔧 Development & Build](#-development--build) • [📜 Usage Notice](#-usage-notice)\n\n\u003C\u002Fdiv>\n\n---\n\nAgent2API is an **AI routing gateway with Agent client takeover**. It exposes a unified model API for custom AI providers and centralizes account routing, model mapping, gateway keys and request reports. It also manages local Agent clients' connection profiles, including importing, switching and previewing configuration changes.\n\n## ✨ Key Features\n\n- 🔌 **Unified model APIs** — OpenAI Chat \u002F Responses \u002F Images and Anthropic Messages, with a unified model catalog; Raccoon, Loomy, Antigravity, ModelScope, WorkBuddy and Doubao Work supply image generation, while Raccoon, Loomy, Antigravity, ModelScope and WorkBuddy also support reference-image editing. Both are available as AI assistant tools\n- 🧭 **AI routing** — model mapping, account priority, load balancing, session affinity and failover in one place\n- 🤖 **Agent client takeover** — manage multiple connection profiles for local clients, import existing settings, preview writes and switch between the gateway and custom services\n- 🧩 **Plugin extensions** — additional provider implementations are installed and updated separately, not bundled with the application; custom providers do not require them\n- 🛡️ **Egress proxies** — select proxy-pool exits for accounts and update tasks\n- 🔑 **Gateway security** — scoped gateway keys, optional human verification for panel sign-in, and model requests refused by default until a key is configured\n- 📊 **Request reports** — request volume, success rate, token usage, cache hit rate and a 365-day heatmap\n- ⏰ **Background maintenance** — model catalog refresh, credential maintenance and software update checks; daily check-in runs per provider on that provider's own window (Qoder 10:01, ZCode 19:01, others follow the schedule time), plus a catch-up round that only touches accounts not yet checked in; additional provider-specific tasks are supplied by plugins\n- 🖥️ **Three deployment forms** — Windows \u002F macOS \u002F Linux desktop apps, headless Windows \u002F Linux servers and Docker (amd64 \u002F arm64); no Node runtime required, with a six-language interface\n\n## ❤️ Sponsors\n\n\u003Ca href=\"https:\u002F\u002Fproxylane.dev\u002Fzh-cn\u002Fisp-proxies?utm_source=agent2api&utm_medium=partnership&utm_campaign=agent2api_202610&utm_content=github_readme\">\u003Cimg src=\".\u002Fassets\u002Fsponsor-proxylane.png\" alt=\"ProxyLane (sponsor)\" width=\"100%\" \u002F>\u003C\u002Fa>\n\n\u003Ctable>\n\n\u003Ctr>\n\u003Ctd width=\"240\">\u003Ca href=\"https:\u002F\u002Fproxylane.dev\u002Fzh-cn\u002Fisp-proxies?utm_source=agent2api&utm_medium=partnership&utm_campaign=agent2api_202610&utm_content=github_readme\">\u003Cpicture>\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\".\u002Fassets\u002Fproxylane-logo-for-dark-bg.png\" \u002F>\u003Cimg src=\".\u002Fassets\u002Fproxylane-logo-for-light-bg.png\" alt=\"ProxyLane\" width=\"220\" \u002F>\u003C\u002Fpicture>\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd>Thanks to \u003Ca href=\"https:\u002F\u002Fproxylane.dev\u002Fzh-cn\u002Fisp-proxies?utm_source=agent2api&utm_medium=partnership&utm_campaign=agent2api_202610&utm_content=github_readme\">ProxyLane\u003C\u002Fa> for sponsoring this project! ProxyLane provides native static residential ISP proxies for AI accounts (Static Residential ISP): IPs come from real home broadband operators with low Scamalytics fraud scores, each IP is dedicated to you, with unlimited traffic, from $3.90. Add one exit per account on the Network proxy page. Use code \u003Ccode>AGENT2API25\u003C\u002Fcode> for 25% off your first purchase.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\n\u003C\u002Ftable>\n\n## 💬 Community & Support\n\n- **QQ groups**: Agent2API chat groups — **group 1 (`1127656296`) and group 2 (`1130894674`) are almost full, please join group 3 (`1108276647`)**; search the number in QQ to join.\n- **Telegram group**: \u003Chttps:\u002F\u002Ft.me\u002F+9gM8YPvgRL02NGRl>\n- **💖 Donate**: if Agent2API helps you, you are welcome to [buy the author a coffee](.\u002Fdocs\u002FSPONSOR.md); donations are voluntary and unlock nothing.\n- **🤝 Sponsorship \u002F business**: want to sponsor the project, or feature your product here? Email [541675139@qq.com](mailto:541675139@qq.com).\n\n## 🚀 Quick start\n\nThree forms — pick the one that matches your setup; **the complete install, upgrade, uninstall and troubleshooting guide is in [Installation & deployment](.\u002Fdocs\u002Finstall.en.md)**.\n\n| Form | Artifact | Interface |\n| --- | --- | --- |\n| **Desktop** (Windows \u002F macOS \u002F Linux) | `Agent2API_\u003Cversion>_x64-setup.exe`, `_universal.dmg`, `_amd64.deb`, `_amd64.AppImage` | App window |\n| **Server** (Windows Server \u002F Linux, headless) | `agent2api-server-windows-amd64.zip`, `agent2api-server-linux-\u003Carch>.tar.gz` | Browser panel |\n| **Docker** | `aimodcc\u002Fagent2api:latest` (amd64 \u002F arm64) | Browser panel |\n\n**Desktop**: add a custom provider and account, create a gateway key, then apply a connection profile on the Agent page or configure your client with `http:\u002F\u002F127.0.0.1:3065\u002Fv1` and that key. Additional provider capabilities require the corresponding plugin.\n\n**Server** (no GUI; registered as a system service and started at boot):\n\n```bash\n# Linux\ntar -xzf agent2api-server-linux-amd64.tar.gz && cd agent2api-server-linux-amd64 && sudo bash install.sh\n```\n\n```powershell\n# Windows Server (administrator PowerShell)\nExpand-Archive agent2api-server-windows-amd64.zip -DestinationPath C:\\agent2api-pkg\ncd C:\\agent2api-pkg; .\\install-service.ps1\n```\n\n**Docker**:\n\n```bash\ndocker run -d --name agent2api --restart unless-stopped -p 3065:3065 -v .\u002Fdata:\u002Fdata aimodcc\u002Fagent2api:latest\n```\n\nWhichever form you pick, open the panel afterwards (`http:\u002F\u002F127.0.0.1:3065\u002F`; use the host IP for the server and Docker forms), register the admin account, then create a key on the \"Gateway Keys\" page. Connectivity check: `curl http:\u002F\u002F127.0.0.1:3065\u002Fhealth`\n\n**Mobile**: open `http:\u002F\u002F\u003Cgateway IP>:3065\u002Fm` in a browser (you can \"Add to Home Screen\" for a full-screen PWA). For a standalone icon, install `Agent2API-\u003Cversion>.apk` (Android) or `Agent2API-\u003Cversion>.ipa` (iOS, unsigned — re-sign it yourself) from the Release. Details: [Install & deploy → Mobile](.\u002Fdocs\u002Finstall.en.md#mobile).\n\n## 📸 Screenshots\n\n### Accounts\n\n![Accounts page: global queue, per-model rate-limit cooldown, expiry and balance](.\u002Fassets\u002Fscreenshots\u002Faccounts.png)\n\nAdd account:\n\n![Add account: choose provider and edition, then sign in on the web](.\u002Fassets\u002Fscreenshots\u002Fadd-account.png)\n\n### Model management\n\n![Model management: per-provider model catalog with rate, context and mappings](.\u002Fassets\u002Fscreenshots\u002Fmodels.png)\n\n### Report\n\nOverview: requests \u002F success rate \u002F tokens \u002F top model, with account and provider rankings, usage donuts and a 365-day activity heatmap:\n\n![Report overview: stat cards, top accounts \u002F providers, model and provider usage donuts](.\u002Fassets\u002Fscreenshots\u002Freport-overview.png)\n\nTrends: 24-hour **cache hit rate** (line) and **token consumption** (area) on twin axes, with a per-day token bar chart below:\n\n![Report trends: dual-axis cache hit rate and token consumption, per-day token bars](.\u002Fassets\u002Fscreenshots\u002Freport-trends.png)\n\n## 🔧 Development & Build\n\n### Requirements\n\n- Rust >= 1.77 and the Tauri 2 toolchain (to compile the desktop app itself; Windows also needs the WebView2 runtime)\n- Node.js >= 18.17 (only to run `npm run tauri:*` and frontend build scripts; the desktop app does not depend on Node at runtime)\n- Target platforms: Windows \u002F macOS \u002F Linux desktops, headless Windows \u002F Linux servers, and a Docker server\n\n### Common scripts\n\n```bash\nnpm run tauri:install      # Install desktop dependencies (same as npm --prefix desktop-tauri install)\nnpm run tauri:dev          # Launch the desktop app in dev mode (with hot reload)\nnpm run tauri:build        # Build the desktop installer\n\nnpm run build:icon         # Generate the icon source image (run after changing the icon design, then run tauri icon)\n```\n\nThe build artifact is `target\u002Frelease\u002Fbundle\u002Fnsis\u002FAgent2API_\u003Cversion>_x64-setup.exe` (about 8.6 MB as of 3.0; `src-tauri\u002F.cargo\u002Fconfig.toml` points cargo's `target-dir` at the project root's `target\u002F`).\n\nThe macOS `.dmg` **can only be built on macOS** (`npm --prefix desktop-tauri run build -- --target universal-apple-darwin`) — it cannot be cross-compiled from Windows, so the official artifact comes from the CI `build` workflow (`macos-latest`, two targets merged). Docker images and the server archives used for in-container updates come from the same workflow's `linux-server` job, which reuses the Dockerfile's compile path so the executable inside is built from the same toolchain as the image.\n\n## 📜 Usage Notice\n\n### Credential and data security\n\nAccount credentials are encrypted in the local database, but exports, backups and key files may still contain sensitive data. Keep them private; do not upload them to public repositories or cloud storage, or share them with others.\n\n### No warranty\n\nThe project is provided \"as is\", without guarantees of availability, stability, security or suitability for a particular purpose. Trademarks and services belong to their respective owners. The complete license and warranty terms are in [LICENSE](.\u002FLICENSE).\n\n## 📄 License\n\nThis project uses the same [GNU Affero General Public License v3.0 (AGPL-3.0)](.\u002FLICENSE) as the provider plugin repository. Use, modification and distribution, including commercial use, are permitted under the license. Preserve copyright and license notices and fulfill applicable source-code obligations. If you offer a modified version over a network, you must offer its Corresponding Source to those users.\n\n## ⭐ Star History\n\n\u003Ca href=\"https:\u002F\u002Fstar-history.com\u002F#aimod-cc\u002FAgent2API&Date\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=aimod-cc\u002FAgent2API&type=Date&theme=dark\" \u002F>\n    \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=aimod-cc\u002FAgent2API&type=Date\" \u002F>\n    \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=aimod-cc\u002FAgent2API&type=Date\" \u002F>\n  \u003C\u002Fpicture>\n\u003C\u002Fa>\n\n\u003Cdiv align=\"center\">\n\n**[Download the latest release](https:\u002F\u002Fgithub.com\u002Faimod-cc\u002FAgent2API\u002Freleases\u002Flatest)** • **[Report an issue](https:\u002F\u002Fgithub.com\u002Faimod-cc\u002FAgent2API\u002Fissues)**\n\nIf this project helps you, a ⭐️ Star is appreciated!\n\n\u003C\u002Fdiv>\n","Agent2API 是一个本地部署的 AI 模型路由网关，支持接管现有 AI 客户端登录态，通过统一 Base URL 调用 50+ 家国内外模型服务商（含 OpenAI、Anthropic 兼容接口及多平台生图能力）。核心功能包括多账号智能选路（负载均衡、故障转移、会话亲和）、统一 API 协议适配、客户端配置导入与切换、自动签到与余额管理、细粒度请求报表（成功率、Token 消耗、缓存命中率等）。适用于个人开发者、小团队或企业内部需集中管控多个 AI 账号、规避频繁切换客户端、提升调用稳定性与可观测性的场景。",2,"2026-11-24 04:45:47","trending"]