MCPcopy Index your code
hub / github.com/qixing-jk/all-api-hub

github.com/qixing-jk/all-api-hub @v3.50.0 sqlite

repository ↗ · DeepWiki ↗ · release v3.50.0 ↗
7,486 symbols 26,198 edges 2,038 files 1,800 documented · 24%
README

简体中文 | English | 日本語

[!IMPORTANT] English is now the default GitHub README. This page is kept for existing links; you can also read the same content at README.md.

All API Hub – Your All-in-One AI Asset Manager

One-stop management for New API-compatible relay accounts: balances, usage, model prices, check-ins, API credentials, in-page testing, and channel/model sync & redirects

Chrome Web Store Microsoft Edge Firefox Add-on

⚡ Quick Start | 🌐 Supported Sites | 🔌 Integrations | 📜 Changelog

Linux.do discussion thread WeChat Chinese group QQ Chinese group Discord multilingual community Telegram multilingual group

❓ Why All API Hub?

In simple terms: AI relay sites are like a marketplace for AI credits, giving you low-cost or even free access to models such as ChatGPT, Claude, and GPT Image.

But once you have multiple accounts, management quickly becomes painful:

  • 📂 Scattered assets: Balances and usage are spread across separate sites.
  • 💲 Messy pricing: Different billing ratios make the best deal hard to spot.
  • Missed daily perks: Manual daily check-ins are easy to forget.
  • 🔌 Annoying setup work: API details must be copied into tools such as cc-switch and Cherry Studio again and again.

All API Hub is your AI asset manager: add your site URLs and let the extension handle the rest.

✨ What Can It Do for You?

📊 Unified Dashboard for Multiple Sites

  • Multi-account asset overview: See balances, usage, and health status in one panel.
  • Smart site detection: Paste a URL to detect the architecture, billing ratio, and setup details.
  • API credential library: Save common Base URL + API Key pairs for copying, API verification, model lookup, and balance/usage checks.

💰 Smarter Savings and Automated Gains

  • Model price comparison: Calculate effective model prices across sites to find better-value groups and endpoints.
  • Fully automated check-in flow: Run supported site check-ins with one click or on a schedule.
  • Deep usage analytics: Generate reports by site, account, model, and date, including heatmaps and slow-request analysis.

🚀 Fast Ecosystem Integration

  • One-click quick export: Sync to CherryStudio, CC Switch, CLIProxyAPI, Claude Code Router, Kilo Code, and more. See Supported Tools.
  • Admin workflow tools: Import accounts/keys as self-hosted site channels, with tools for channel management, model redirection, and channel sync.
  • Web sniffing and quick capture: Select a Base URL or API Key on a webpage to instantly open the test popup and save it. See Web AI API Sniffing & Verification.

🧪 Reliability Safeguards

  • Multi-dimensional API verification: Batch test model availability, token compatibility, and CLI proxy availability.
  • Cloudflare challenge assistant: Automatically helps you get through Cloudflare challenges so data refreshes and API calls stay uninterrupted.

🔒 Privacy and Security

  • Local by default: Keys and account data stay on your device unless you enable WebDAV backup or sync.
  • Encrypted sync: Supports encrypted WebDAV backup so you can restore data on another machine.

🚀 Quick Installation

[!IMPORTANT] For most users, the store build is recommended. It is easy to install and supports automatic updates.

Channel Install Link Current Version Users
Chrome Web Store Chrome Web Store Chrome version Chrome Web Store Users
Edge Add-ons Edge Add-ons Edge version Edge Add-ons Users
Firefox Add-ons Firefox Add-ons Firefox version Mozilla Add-on Users

📦 Need manual installation or Nightly builds? (Click to expand)

Channel Download Link Best For
GitHub Stable Download Stable When you cannot install the store build or need to temporarily install a published fix manually
Nightly pre-release Download Nightly When you want early access and are willing to help test; it may be less stable than the store build

GitHub Stable and Nightly are manual installation channels and do not auto-update. Star / Watch the repository to receive new version notifications. See the installation and update guide for more details.

Other environments: - Mobile browsers: Supports mobile Edge, Firefox for Android, Kiwi, and more. See the mobile browser guide. - QQ Browser / 360 Browser / similar: See the manual loading guide. - Safari (Mac): Requires Xcode for compilation. See the Safari installation guide.

❤️ Sponsors

Want to appear here?

<a href="https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=all-api-hub&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=all-api-hub">
  <img src="https://github.com/qixing-jk/all-api-hub/raw/v3.50.0/resources/partners/volcengine_en.jpg" alt="Dola Seed on BytePlus ModelArk" width="100%">
</a>






Thanks to Dola Seed for sponsoring this project! Dola Seed 2.0 is a full-modal general large model independently developed by ByteDance for the global market. Built on a unified multimodal architecture, it supports joint understanding and generation of text, images, audio, and video. It natively enables agent collaboration, with strong reasoning, long-task execution, tool integration, and coding capabilities. It is widely applicable to smart cockpits, personal assistants, education, customer support, marketing, retail, and other scenarios. It excels in multimodal perception, end-to-end complex task delivery, stable interaction, and data security, and is readily accessible and deployable via the ModelArk platform. Register via <a href="https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=all-api-hub&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=all-api-hub">this link</a> to get 500,000 tokens of free inference quota per model.<a href="https://dis.chatdesks.cn/chatdesk/hsyqallapihub.html"> >>中国大陆地区的开发者请点击这里</a>

PackyCode

Thanks to PackyCode for sponsoring this project! PackyCode is a reliable and efficient API relay service provider, offering relay services for Claude Code, Codex,
Gemini, and more. PackyCode provides special discounts for our software users: register using
<a href="https://www.packyapi.com/register?aff=all-api-hub">this link</a> and enter the "all-api-hub" promo code during first recharge to get 10% off (<a href="https://all-api-hub.qixing1217.top/en/sponsor-guides/packycode.html">setup guide</a>).

Xingchen AI

Thanks to Xingchen AI for sponsoring this project! Xingchen AI is a stable and efficient API relay service provider, offering relay services for Claude Code, Codex,
Gemini, and more. It offers a 1:1 recharge ratio with invoice support and Claude from 40% pricing. Learn more using
<a href="https://ai.centos.hk">this link</a> (<a href="https://all-api-hub.qixing1217.top/en/sponsor-guides/xingchen.html">setup guide</a>).

Atlas Cloud

Thanks to Atlas Cloud for sponsoring this project! Atlas Cloud is a full-modal AI inference platform that gives developers one API for video generation, image
generation, and LLM access across 300+ curated models. Check out Atlas Cloud's new coding plan promotion for more budget-friendly API access:
<a href="https://www.atlascloud.ai/console/coding-plan?utm_source=github&utm_medium=link&utm_campaign=all-api-hub">this link</a>.

AICodeMirror

Thanks to AICodeMirror for sponsoring this project! AICodeMirror provides official high-stability relay services for Claude Code / Codex / Gemini CLI, with
enterprise-grade concurrency, fast invoicing, and 24/7 dedicated technical support. Claude Code / Codex / Gemini official channels are available from 38% / 2% /
9% of the original price, with extra discounts on top-ups. AICodeMirror offers special benefits for All API Hub users: register via
<a href="https://www.right.codes/register?aff=690a8be5">this link</a> to enjoy 20% off your first top-up, and enterprise customers can get up to 25% off.

RunAPI

Thanks to RunAPI for sponsoring this project! RunAPI is a stable OpenRouter alternative API platform: one API key gives access to 150+ mainstream models including
OpenAI, Claude, Gemini, DeepSeek, and Grok, from 10% of standard pricing, with Claude Code and OpenClaw compatibility. RunAPI offers All API Hub users an exclusive
benefit: register using <a href="https://runapi.co/register?aff=cvDm">this link</a> and contact the administrator to claim ¥7 in free credits (<a href="https://all-api-hub.qixing1217.top/en/sponsor-guides/runapi.html">setup guide</a>).

Extension points exported contracts — how you extend this code

ManagedSiteChannelsProps (Interface)
* Main management page for New API channels including table, filters, and dialogs. * Fetches channel data, exposes filt
src/features/ManagedSiteChannels/ManagedSiteChannels.tsx
OctopusLLMInfo (Interface)
* Octopus LLMInfo 类型(模型价格信息)
src/services/apiService/octopus/index.ts
UseAccountDataResult (Interface)
* Snapshot of account-derived state and handlers returned by useAccountData. * Separates data buckets so the co
src/hooks/useAccountData.ts
ClaudeCodeHubConfig (Interface)
(no doc)
src/types/claudeCodeHubConfig.ts
ChannelFiltersEditorProps (Interface)
(no doc)
src/components/ChannelFiltersEditor.tsx
DeviceTypeInfo (Interface)
(no doc)
src/utils/browser/device.ts
MenuItem (Interface)
(no doc)
src/entrypoints/options/constants.ts
UserPreferencesContextType (Interface)
(no doc)
src/contexts/UserPreferencesContext.tsx

Core symbols most depended-on inside this repo

getErrorMessage
called by 357
src/utils/core/error.ts
get
called by 272
src/services/models/modelPricingCache.ts
cn
called by 257
src/lib/utils.ts
createLogger
called by 230
src/utils/core/logger.ts
set
called by 201
src/services/models/modelPricingCache.ts
buildDisplaySiteData
called by 178
tests/test-utils/factories.ts
buildSiteAccount
called by 175
tests/test-utils/factories.ts
buildControlDefinition
called by 165
src/entrypoints/options/search/registryHelpers.ts

Shape

Function 5,792
Interface 876
Method 643
Class 168
Enum 7

Languages

TypeScript99%
Python1%

Modules by API surface

src/utils/browser/browserApi.ts92 symbols
src/services/preferences/userPreferences.ts73 symbols
src/services/checkin/autoCheckin/scheduler.ts70 symbols
src/services/accounts/accountStorage.ts70 symbols
src/services/apiService/sub2api/index.ts67 symbols
src/entrypoints/background/tempWindowPool.ts58 symbols
src/utils/navigation/index.ts53 symbols
src/services/productAnalytics/settings.ts45 symbols
src/services/webdav/webdavService.ts42 symbols
src/services/apiService/aihubmix/index.ts39 symbols
src/features/AccountManagement/components/AccountDialog/hooks/useAccountDialog.ts39 symbols
src/services/webdav/webdavAutoSyncService.ts38 symbols

Dependencies from manifests, versioned

@ai-sdk/anthropic3.0.8 · 1×
@ai-sdk/google3.0.6 · 1×
@ai-sdk/openai3.0.7 · 1×
@ai-sdk/openai-compatible2.0.4 · 1×
@base-ui/react1.1.0 · 1×
@dnd-kit/core6.3.1 · 1×
@dnd-kit/modifiers9.0.0 · 1×
@dnd-kit/sortable10.0.0 · 1×
@dnd-kit/utilities3.2.2 · 1×
@eslint/js9.38.0 · 1×
@headlessui/react2.2.4 · 1×
@heroicons/react2.2.0 · 1×

For agents

$ claude mcp add all-api-hub \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact