APISwitch is a lightweight desktop management tool and local protocol routing gateway for third-party API providers and Google Antigravity official subscriptions. It manages provider configurations for Google Antigravity, Claude Code, Claude Desktop, Codex, OpenCode, and Pi, switches Google accounts with credential snapshots, tracks quota usage, and bridges OpenAI/Anthropic protocols through a local gateway with hot reload.
✨ Key Features
1. Unified Multi-Tool Management & Zero-Intrusion Switching
- Antigravity Quick Account Switching: Save credential snapshots and switch Google accounts with one click. Automatically captures and synchronizes the latest credentials before switching (preventing Refresh Token rotation expiration). Optionally auto-closes and smoothly restarts the IDE.
- Cross-Client Provider Sharing: One-click copy of provider configurations across Claude CLI, Claude Desktop, Codex, OpenCode, and Pi with intelligent field mapping (Auth Token ↔ Bearer Token / API Key). Enter once, use everywhere.
- Model Pool Management: Dedicated model pool mechanism for OpenCode and Pi, clearly distinguishing "In Config" from "Not in Config" states, supporting on-demand activation and batch maintenance.
- One-Click cc-switch Migration: Built-in migration wizard directly reads ~/.cc-switch/cc-switch.db, allowing checkbox selection to import existing providers with automatic deduplication and overwriting.
2. Built-in Local Protocol Routing Gateway
- High-Performance Local Gateway: Built-in lightweight HTTP gateway service (listening on 127.0.0.1:15725 by default, configurable Host and Port in settings, supports LAN sharing).
- Seamless Multi-Protocol Bridging:
- Codex Protocol Bridge: Translates standard OpenAI Chat Completions / Anthropic endpoints into Codex native Responses protocol.
- Claude CLI Protocol Bridge: Automatically manages authentication headers and request format mapping.
- Claude Desktop Model Mapping: Intercepts and rewrites claude-sonnet / opus / haiku requests to your designated upstream custom models.
- Long-Context Protection & Prompt Stripping: Automatically strips non-essential excessive system prompts and provides safeguards against massive 1M context overflows to prevent upstream 400 errors or unexpected costs.
- Zero-Restart Hot Reload: Point your client to the local gateway once. Provider switches reload instantly in the gateway with no client restarts needed.
3. Data Backup & Multi-Device Roaming
- One-Click Full Export: Bundle all tool provider configurations and Antigravity account data into a standardized JSON backup file.
- Flexible Restore Modes: Supports both "Merge & Append" (recommended: keeps existing configs while adding new or updating matching items) and "Full Overwrite" modes for seamless roaming across multiple machines.
- Direct Local Management: One click to open the local physical storage directory for full data ownership and transparency.
🔬 How It Works
- Google Antigravity: Login sessions are stored in VS Code's globalStorage SQLite database (ItemTable) under antigravityUnifiedStateSync.oauthToken and userStatus (base64-encoded Protobuf). APISwitch includes a lightweight Protobuf parser to safely extract email, subscription tier, and quota information. Account switching executes safe transactional writes with automatic .backup creation.
- Claude Code CLI: Precisely rewrites ANTHROPIC_* environment variables in ~/.claude/settings.json, strictly preserving all other configuration sections such as hooks and permissions.
- Claude Desktop: Manages Cowork inference gateway parameters (inferenceProvider, inferenceGatewayBaseUrl, inferenceGatewayApiKey, etc.). Switching back to "Official" cleanly removes these fields to restore native official login.
- OpenAI Codex: Configures model_provider and [model_providers.<id>] in ~/.codex/config.toml, synchronizing authentication with auth.json. Supports direct upstream connections or routing through the local gateway for protocol adaptation.
- OpenCode & Pi: Strictly adheres to their official specifications to read and write opencode.json and models.json / auth.json, ensuring immediate recognition by CLI and runtime environments.
- Safe Atomic Writes: All file modifications follow a "write temporary file → verify integrity → atomic replace" workflow, generating automatic .bak backups to prevent corruption from unexpected interruptions.
發行商的介紹(英文)
APISwitch是什麼軟體?
APISwitch是kbkkb推出的一款開放原始碼的Windows軟體,屬於「VPN與代理伺服器」類。
安裝與系統需求
官方提供適用於64位元系統的安裝檔,格式為EXE(Inno Setup)。可以只為目前使用者安裝,不需要系統管理員權限。安裝程式支援自動(靜默)安裝。
優點 / 缺點
優點
- 開放原始碼:任何人都能檢視和自行編譯原始碼
- 有文件說明的靜默安裝參數
- 不需要系統管理員權限即可安裝
- 最近兩個月內有更新
缺點
- 沒有原生ARM64版本
總結: APISwitch是一款適用於64位元電腦的開放原始碼Windows軟體,歸在「VPN與代理伺服器」類。IT管理人員可以進行自動部署。
APISwitch下載安全嗎?
- 檔案由開發商自己的網域github.com提供
- 下載連結使用HTTPS
- 已公布SHA256值,可驗證檔案完整性:
4DC4B5BADEADFC639EC74A5D1F37023084709671CDB2DD0106DE711F123EB58B· 查看這個雜湊值的VirusTotal報告 - 連結尚未檢查
- 原始碼公開
- ExeAtlas不存放、不綑綁、也不修改安裝檔
相關教學: Windows如何驗證檔案的SHA256雜湊值
近期版本
全部1個版本 ›| 版本 | 日期 | 大小 | 檔案 |
|---|---|---|---|
| 0.3.2最新版本 | 2026年10月16日 | — | 64位元 EXE(Inno Setup) |
用指令安裝
靜默安裝 ›winget install --id kbkkb.APISwitch -eAPISwitch-Setup-v0.3.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-相關教學: winget教學:用指令安裝與更新軟體
軟體資訊
- 發行商
- kbkkb
- 分類
- VPN與代理伺服器
- 授權
- MIT
- 價格
- 免費
- 系統需求
- Windows 11 / 10
- 架構
- 64位元
- 安裝檔類型
- EXE(Inno Setup)
- 版本
- 0.3.2
- 發行日期
- 2026年10月16日
- 收錄日期
- 2026年11月10日
- 收錄版本數
- 1
- ExeAtlas下載次數
- 1
- 官方網站
- github.com
- winget ID
- kbkkb.APISwitch
評分與評論
目前還沒有評論,歡迎成為第一個評分的人。
APISwitch替代軟體
查看全部 ›-
開放原始碼181.5萬 ↓ -
開放原始碼28.7萬 ↓ -
開放原始碼15.4萬 ↓ -
開放原始碼56.8萬 ↓ -
開放原始碼17.5萬 ↓ -
開放原始碼1.5萬 ↓ -
開放原始碼5.8萬 ↓ -
開放原始碼7.8萬 ↓
常見問題
APISwitch是免費的嗎?
是的。APISwitch是開放原始碼軟體,採用MIT授權。
APISwitch下載安全嗎?
安裝檔來自github.com,這個網域屬於開發商本身;ExeAtlas不存放也不修改檔案。可以把下載檔案的SHA256值和本頁顯示的值比對,或查看這個雜湊值的VirusTotal報告。
如何用winget安裝APISwitch?
開啟PowerShell或Windows終端機,執行本頁提供的winget指令即可。winget會下載官方安裝檔,並在執行前驗證它的SHA256值。
APISwitch可以靜默安裝嗎?
可以。靜默安裝頁面列出了每個安裝檔對應的完整指令。
APISwitch能在ARM電腦(Windows on Arm)上執行嗎?
沒有ARM64版本;Windows 11 on Arm可以透過模擬執行64位元版本。
沒有系統管理員權限可以用APISwitch嗎?
可以,官方提供不需系統管理員權限的單一使用者安裝檔。
APISwitch有哪些替代軟體?
OpenVPN、nginx、Proton VPN、Tailscale和Netbird。替代軟體頁面對它們做了比較。