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 لپاره یو خلاصه سرچینه پروګرام دی چې kbkkb خپور کړی، د VPN او پراکسي په کټګورۍ کې.
نصب او اړتیاوې
رسمي نصبوونکي د 64-bit لپاره د EXE (Inno Setup) په بڼه شته. یوازې د اوسني کارن لپاره، بې له اډمین اجازې نصبېدای شي. نصبوونکی بې له کارن د لاسوهنې (چوپه) نصب ملاتړ کوي.
ګټې / نیمګړتیاوې
ګټې
- خلاصه سرچینه: هر څوک یې کوډ کتلی او جوړولی شي
- لیکل شوی چوپه نصب
- بې له اډمین اجازې نصبېږي
- په تېرو دوو میاشتو کې تازه شوی
نیمګړتیاوې
- اصلي ARM64 نسخه نه لري
لنډه دا چې: APISwitch د 64-bit کمپیوټرونو لپاره یوه خلاصه سرچینه د VPN او پراکسي وسیله ده. اډمینان یې بې له لاسوهنې وېشلی شي.
ایا د APISwitch ډاونلوډ خوندي دی؟
- فایل له github.com څخه راځي، چې د خپرونکي خپل ډومېن دی
- د ډاونلوډ لینک HTTPS کاروي
- SHA256 هش خپور شوی، نو فایل تایید کولی شئ:
4DC4B5BADEADFC639EC74A5D1F37023084709671CDB2DD0106DE711F123EB58B· د دې هش د VirusTotal راپور پرانیزئ - لینک لا نه دی کتل شوی
- سرچینه کوډ عامه دی
- ExeAtlas نصبوونکي نه ساتي، نه یې پوښي او نه یې بدلوي
اړوند لارښود: په Windows کې د فایل SHA256 هش څنګه وګورو
وروستۍ نسخې
ټولې ۱ نسخې ›| نسخه | نېټه | اندازه | فایلونه |
|---|---|---|---|
| 0.3.2وروستۍ | AP ۱۴۰۵ تله ۲۴ | — | 64-bit 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
- جوړښت (Architecture)
- 64-bit
- د نصبوونکي ډول
- EXE (Inno Setup)
- نسخه
- 0.3.2
- د خپرېدو نېټه
- AP ۱۴۰۵ تله ۲۴
- لېست ته د ورزیاتېدو نېټه
- AP ۱۴۰۵ لړم ۱۹
- لېست شوې نسخې
- 1
- په ExeAtlas کې ډاونلوډونه
- ۱
- وېب پاڼه
- github.com
- winget ID
- kbkkb.APISwitch
درجې او نظرونه
لا تر اوسه هېڅ نظر نشته. لومړۍ درجه تاسو ورکړئ.
د APISwitch بدیلونه
ټول وګورئ ›-
خلاصه سرچینه (open source)۱٫۸M ↓ -
خلاصه سرچینه (open source)۲۸۶٫۵K ↓ -
خلاصه سرچینه (open source)۱۵۳٫۵K ↓ -
خلاصه سرچینه (open source)۵۶۸٫۱K ↓ -
خلاصه سرچینه (open source)۱۷۵٫۱K ↓ -
خلاصه سرچینه (open source)۱۴٫۷K ↓ -
خلاصه سرچینه (open source)۵۸٫۱K ↓ -
خلاصه سرچینه (open source)۷۸K ↓
ډېرې پوښتل شوې پوښتنې
ایا 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-bit نسخه د ایمولېشن له لارې وچلوي.
ایا APISwitch بې له اډمین اجازې کارولی شم؟
هو، د یوه کارن لپاره نصبوونکی شته چې اډمین اجازې ته اړتیا نه لري.
د APISwitch بدیلونه کوم دي؟
OpenVPN، nginx، Proton VPN، Tailscale او Netbird. د بدیلونو پاڼه یې سره پرتله کوي.