# all-api-hub **Repository Path**: lianhong_andy/all-api-hub ## Basic Information - **Project Name**: all-api-hub - **Description**: 一站式管理 New API 兼容中转站账号:余额/用量看板、自动签到、密钥一键导出到常用应用、网页内 API 可用性测试、渠道与模型同步/重定向 | New‑API relay manager: balance/usage, auto check‑in, one‑click key export to popular clients, in‑page API checks, channel/model sync & redirect - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2026-04-29 - **Last Updated**: 2026-04-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

简体中文 | English


All API Hub Logo # All API Hub – AI 中转站 & New API 管理器 **一站式管理 New API 兼容中转站账号:余额/用量看板、自动签到、密钥一键导出到常用应用、网页内 API 可用性测试、渠道与模型同步/重定向**

Chrome Web Store Microsoft Edge Firefox Add-on GitHub version

--- **[文档教程](https://all-api-hub.qixing1217.top/) | [支持的工具](https://all-api-hub.qixing1217.top/supported-export-tools.html) | [支持的站点](https://all-api-hub.qixing1217.top/supported-sites.html) | [快速上手](https://all-api-hub.qixing1217.top/get-started.html) | [常见问题](https://all-api-hub.qixing1217.top/faq.html) | [更新日志](https://all-api-hub.qixing1217.top/changelog.html) | [贡献指南](CONTRIBUTING.md)**

📢 讨论帖: Linux.do 主题帖

💬 社区: 中文群 Discord-多语言社区 Telegram-多语言群

---
## 📖 介绍 现在 AI 生态里有越来越多基于 New API 系列的聚合中转站和自建面板,要查看各站点的余额和模型列表,并管理和快速使用API 密钥,往往既分散又费时。 All API Hub 作为浏览器扩展,一站式管理 New API 等中转站账号:余额/用量看板、自动签到、密钥一键导出到常用应用、网页内 API 可用性测试、渠道与模型同步/重定向。当前已支持基于以下项目的中转站账号: - [one-api](https://github.com/songquanpeng/one-api) - [new-api](https://github.com/QuantumNous/new-api) - [Veloera](https://github.com/Veloera/Veloera) - [one-hub](https://github.com/MartialBE/one-hub) - [done-hub](https://github.com/deanxv/done-hub) - [Sub2API](https://github.com/Wei-Shaw/sub2api) - [AnyRouter](https://anyrouter.top) - WONG公益站 - Neo-API(闭源) - Super-API(闭源) - RIX_API(闭源,基本功能支持) - VoAPI(闭源,老版本支持) 完整站点兼容列表与导出工具列表请查看: - [支持的站点](https://all-api-hub.qixing1217.top/supported-sites.html) - [支持的工具](https://all-api-hub.qixing1217.top/supported-export-tools.html) ## ✨ 功能特性 - 🔍 **智能站点识别** 登录后粘贴站点地址即可添加账号,自动识别站点名称、充值比例等信息;识别失败可手动补录,并会提示重复添加。 - 👥 **多账号总览面板** 把多个站点与账号集中在一个面板里,余额、用量与健康状态一眼看清,并支持自动刷新数据。 - 📆 **自动签到** 识别支持签到的站点并集中处理,支持自动签到与执行记录,避免忘记签到浪费额度。 - 🔑 **令牌与密钥管理** 集中查看、复制和批量管理 API Key,减少来回切站点后台。 - 🤖 **模型信息与价格** 查看站点模型列表与价格信息,方便查看和对比可用模型与成本差异。 - 🧪 **模型与接口验证** 对指定密钥与模型做可用性验证,并提供 CLI 兼容性检查,适合排查“看起来能用但在工具中使用失败”的情况。 - 📊 **用量分析与可视化** 面向多站点/多账号的用量报表:按站点、账号、Token、日期筛选与对比,查看用量、花费、模型分布与趋势,并提供延迟与慢请求视图辅助排查。 - 🚀 **快速导出集成** 一键导出到 CherryStudio、CC Switch、CLIProxyAPI、Claude Code Router、Kilo Code,以及当前选择的自建托管站点(New API / DoneHub / Veloera / Octopus),减少复制粘贴与重复配置。 - 🔄 **自建站点后台联动** 面向自建 New API、DoneHub、Veloera 和 Octopus 的站点管理员,提供渠道导入、后台联动与渠道管理等工具,减少频繁进后台操作。 - 🛡️ **Cloudflare 过盾助手** 遇到 Cloudflare 挑战时自动弹出临时窗口协助通过,验证成功后继续原有流程。 - ☁️ **数据备份与同步** 支持数据的导入导出,以及 WebDAV 备份与自动同步,便于换设备或多浏览器使用。 - 🌐 **全平台支持** 兼容 Chrome、Edge、Firefox、Safari 与移动端 / 手机端浏览器,例如手机 Edge、Firefox for Android、Kiwi 等,适配深色模式。 - 🔒 **隐私优先的本地存储** 默认离线本地存储,无遥测数据收集;需要同步时才配置 WebDAV 等外部服务。 > [!NOTE] > 最初基于 [One API Hub](https://github.com/fxaxg/one-api-hub) 开发,现已大幅重构扩展。数据格式保持兼容,支持直接导入 ## 🖼️ 界面预览
account-manage
账户管理总览
model-list
模型列表与价格
api-key-list
密钥列表与导出
auto-check-in
账号自动签到
account-model-usage-overview
账号模型使用情况
account-model-latency-overview
模型慢查询分析
new-api-channel-sync
New API 模型同步
new-api-channel-manage
New API 渠道管理
## 🚀 安装使用 | 渠道 | 下载链接 | 当前版本 | 用户数 | |------|----------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Chrome 商店 | [Chrome 商店](https://chromewebstore.google.com/detail/lapnciffpekdengooeolaienkeoilfeo) | [![Chrome version](https://img.shields.io/chrome-web-store/v/lapnciffpekdengooeolaienkeoilfeo?label=Chrome&logo=googlechrome&style=flat)](https://chromewebstore.google.com/detail/lapnciffpekdengooeolaienkeoilfeo) | [![Chrome Web Store Users](https://img.shields.io/chrome-web-store/users/lapnciffpekdengooeolaienkeoilfeo?label=Chrome%20Users)](https://chromewebstore.google.com/detail/lapnciffpekdengooeolaienkeoilfeo) | | Edge 商店 | [Edge 商店](https://microsoftedge.microsoft.com/addons/detail/pcokpjaffghgipcgjhapgdpeddlhblaa) | [![Edge version](https://img.shields.io/badge/dynamic/json?label=Edge&prefix=v&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fpcokpjaffghgipcgjhapgdpeddlhblaa&logo=microsoftedge&style=flat)](https://microsoftedge.microsoft.com/addons/detail/pcokpjaffghgipcgjhapgdpeddlhblaa) | [![Edge Add-ons Users](https://img.shields.io/badge/dynamic/json?label=Edge%20Users&query=$.activeInstallCount&url=https://microsoftedge.microsoft.com/addons/getproductdetailsbycrxid/pcokpjaffghgipcgjhapgdpeddlhblaa)](https://microsoftedge.microsoft.com/addons/detail/pcokpjaffghgipcgjhapgdpeddlhblaa) | | Firefox 商店 | [Firefox 商店](https://addons.mozilla.org/firefox/addon/{bc73541a-133d-4b50-b261-36ea20df0d24}) | [![Firefox version](https://img.shields.io/amo/v/%7Bbc73541a-133d-4b50-b261-36ea20df0d24%7D?label=Firefox&logo=firefoxbrowser&style=flat)](https://addons.mozilla.org/firefox/addon/{bc73541a-133d-4b50-b261-36ea20df0d24}) | [![Mozilla Add-on Users](https://img.shields.io/amo/users/%7Bbc73541a-133d-4b50-b261-36ea20df0d24%7D?label=Firefox%20Users)](https://addons.mozilla.org/firefox/addon/{bc73541a-133d-4b50-b261-36ea20df0d24}) | | GitHub Release | [Release 下载](https://github.com/qixing-jk/all-api-hub/releases) | [![GitHub version](https://img.shields.io/github/v/release/qixing-jk/all-api-hub?label=GitHub&logo=github&style=flat)](https://github.com/qixing-jk/all-api-hub/releases) | [![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/qixing-jk/all-api-hub/total?label=Total%20Downloads)](https://github.com/qixing-jk/all-api-hub/releases) | > [!TIP] > 插件也支持在移动端 / 手机端浏览器中使用,例如手机 `Edge`、`Firefox for Android`、`Kiwi` 等。 > 更多说明可查看[常见问题中的移动端使用](https://all-api-hub.qixing1217.top/faq.html#mobile-browser-support)。
手动安装(解压加载) 1. 下载最新版本的扩展包 2. 打开 Chrome 浏览器,进入 `chrome://extensions/` 3. 开启 "开发者模式" 4. 点击 "加载已解压的扩展程序" 5. 选择解压后的扩展文件夹
Safari 浏览器安装 Safari 需要通过 Xcode 安装,不能像 Chrome 一样直接解压加载;有 Apple Developer Program 付费账号时可正式签名并通过 TestFlight / App Store 分发,没有则通常只适合本机调试或自用。详细安装步骤请查看 [Safari 安装指南](docs/docs/safari-install.md)。 安装方式如下: 1. 从 GitHub Release 下载附件: 打开 [最新版本 Release](https://github.com/qixing-jk/all-api-hub/releases/latest),下载 `all-api-hub--safari-xcode-bundle.zip`,解压后直接打开其中的 Xcode 工程运行 2. 从源码构建: `pnpm install` -> `pnpm run build:safari` -> `xcrun safari-web-extension-converter .output/safari-mv2/` -> 用 Xcode 运行 这个压缩包已经包含可直接打开的 Xcode 工程和所需的 Safari 文件。 请下载 `all-api-hub--safari-xcode-bundle.zip`,不要下载 `all-api-hub--safari.zip`。解压后直接打开工程即可。
为什么要下载这个文件? `all-api-hub--safari-xcode-bundle.zip` 里通常会同时包含: - `all-api-hub--safari.zip` - `safari-mv2/` - 转换器生成的 Xcode 工程目录 这样解压后就可以直接用 Xcode 打开工程,不需要自己再补齐工程引用的 Safari 文件。
## 🧑‍🚀 新手快速上手 [快速上手指南](https://all-api-hub.qixing1217.top/get-started.html)。 ## 🛠️ 开发指南 请参阅 [CONTRIBUTING](CONTRIBUTING.md) 以获取更多信息。 ## 🏗️ 技术栈 - **框架**: [WXT](https://wxt.dev) 负责多浏览器扩展工具链与构建流程 - **UI 层**: [React](https://react.dev) 构建扩展选项页与弹窗界面 - **语言**: [TypeScript](https://www.typescriptlang.org) 提供端到端的类型安全 - **样式**: [Tailwind CSS](https://tailwindcss.com) 以原子化工具类驱动主题样式 - **组件**: [Headless UI](https://headlessui.com) 提供无样式可访问组件与设计系统基石 ## 🙏 致谢 - 感谢 [@AngleNaris](https://github.com/AngleNaris) 设计了项目 Logo 🎨 - 感谢 [Linux.do 社区](https://linux.do) 提供的反馈、测试和传播支持,尤其是 [All-API-Hub 主题帖](https://linux.do/t/topic/1001042) 中持续的讨论与建议 - [WXT](https://wxt.dev) - 现代化的浏览器扩展开发框架 ---
⭐ 如果这个项目对你有帮助,请考虑给它一个星标!