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 е програма за Windows с отворен код от категория „VPN и прокси“. Разработчик: kbkkb.
Инсталиране и системни изисквания
Официалните инсталатори са за 64-битова; тип на инсталатора: EXE (Inno Setup). Може да се инсталира само за текущия потребител, без администраторски права. Инсталаторът поддържа инсталиране без въпроси (тиха инсталация).
Предимства / Недостатъци
Предимства
- Отворен код: всеки може да го прегледа и компилира
- Документирана тиха инсталация
- Инсталиране без администраторски права
- Обновена през последните два месеца
Недостатъци
- Няма собствена компилация ARM64
Накратко: APISwitch е програма за Windows с отворен код (категория „VPN и прокси“); компилации: 64-битова. Администраторите могат да я разгръщат без намеса на потребителя.
Безопасно ли е изтеглянето на APISwitch?
- Файлът се изтегля от домейна на разработчика (github.com)
- Връзката за изтегляне използва HTTPS
- Публикуван е хеш SHA256 – файлът може да се провери:
4DC4B5BADEADFC639EC74A5D1F37023084709671CDB2DD0106DE711F123EB58B· Отворете доклада на VirusTotal за този хеш - Връзката още не е проверена
- Изходният код е публичен
- ExeAtlas не съхранява, не обвива и не променя инсталатори
Свързано ръководство: Как да проверите SHA256 хеша на файл в Windows
Последни версии
Всички версии (1) ›| Версия | Дата | Размер | Файлове |
|---|---|---|---|
| 0.3.2Последна | 16 октомври 2026 г. | — | 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
- Дата на издаване
- 16 октомври 2026 г.
- Добавена в каталога
- 10 ноември 2026 г.
- Версии в каталога
- 1
- Изтегляния през ExeAtlas
- 1
- Уебсайт
- github.com
- ID в winget
- kbkkb.APISwitch
Оценки и отзиви
Все още няма отзиви. Можете да дадете първата оценка.
Алтернативи на APISwitch
Виж всички ›-
Отворен код1,8 млн. ↓ -
Отворен код286,5 хил. ↓ -
Отворен код153,5 хил. ↓ -
Отворен код568,1 хил. ↓ -
Отворен код175,1 хил. ↓ -
Отворен код14,7 хил. ↓ -
Отворен код58,1 хил. ↓ -
Отворен код78 хил. ↓
Често задавани въпроси
Безплатна ли е програмата APISwitch?
Да. APISwitch е програма с отворен код (лиценз MIT); изтеглянето и използването са безплатни.
Безопасно ли е изтеглянето на APISwitch?
Файлът се изтегля от github.com – домейн на разработчика; ExeAtlas не съхранява и не променя файла. Сравнете SHA256 на изтегления файл със стойността на тази страница или отворете доклада на VirusTotal за този хеш.
Как да инсталирам APISwitch с winget?
Отворете PowerShell или Windows Terminal и изпълнете командата за winget от тази страница. winget изтегля официалния инсталатор и преди стартиране проверява хеша му SHA256.
Може ли APISwitch да се инсталира в тих режим?
Да. Страницата за тиха инсталация дава точната команда за всеки инсталатор.
Работи ли APISwitch на ARM (Windows on Arm)?
Компилация за ARM64 няма; Windows 11 on Arm може да стартира версията за 64-битова чрез емулация.
Може ли APISwitch да се използва без администраторски права?
Да, има инсталатор за текущия потребител, който не изисква администраторски права.
Какви са алтернативите на APISwitch?
OpenVPN, nginx, Proton VPN, Tailscale и Netbird. Сравнение има на страницата с алтернативи.