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.
Penerangan daripada penerbit (Inggeris)
Apakah itu APISwitch?
APISwitch ialah perisian Windows sumber terbuka dalam kategori VPN & proksi yang diterbitkan oleh kbkkb.
Pemasangan dan keperluan sistem
Pemasang rasmi disediakan untuk Windows 64-bit dalam format EXE (Inno Setup). Ia boleh dipasang untuk pengguna semasa sahaja, tanpa hak pentadbir. Pemasangnya menyokong pemasangan tanpa pengawasan (silent install).
Kelebihan / Kekurangan
Kelebihan
- Sumber terbuka: kodnya boleh disemak dan dibina oleh sesiapa sahaja
- Pemasangan senyap yang didokumentasikan
- Boleh dipasang tanpa hak pentadbir
- Dikemas kini dalam dua bulan yang lalu
Kekurangan
- Tiada binaan ARM64 asli
Ringkasnya: APISwitch ialah alat dalam kategori VPN & proksi yang sumber terbuka untuk PC 64-bit. Pentadbir boleh memasangnya tanpa pengawasan.
Adakah APISwitch selamat dimuat turun?
- Fail disediakan oleh github.com, domain milik penerbit sendiri
- Pautan muat turun menggunakan HTTPS
- Hash SHA256 diterbitkan, jadi anda boleh mengesahkan fail:
4DC4B5BADEADFC639EC74A5D1F37023084709671CDB2DD0106DE711F123EB58B· Buka laporan VirusTotal untuk hash ini - Pautan belum disemak
- Kod sumbernya terbuka kepada umum
- ExeAtlas tidak menyimpan, membalut atau mengubah suai pemasang
Panduan berkaitan: Cara semak hash SHA256 fail di Windows
Versi terkini
Kesemua 1 versi ›| Versi | Tarikh | Saiz | Fail |
|---|---|---|---|
| 0.3.2Terkini | 16 Oktober 2026 | — | 64-bit EXE (Inno Setup) |
Pasang melalui baris arahan
Pemasangan senyap ›winget install --id kbkkb.APISwitch -eAPISwitch-Setup-v0.3.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Panduan berkaitan: Cara guna winget: pasang dan kemas kini aplikasi
Maklumat
- Penerbit
- kbkkb
- Kategori
- VPN & proksi
- Lesen
- MIT
- Harga
- Percuma
- Keperluan
- Windows 11 / 10
- Seni bina
- 64-bit
- Pemasang
- EXE (Inno Setup)
- Versi
- 0.3.2
- Dikeluarkan
- 16 Oktober 2026
- Ditambah ke katalog
- 10 November 2026
- Versi yang disenaraikan
- 1
- Muat turun di ExeAtlas
- 1
- Laman web
- github.com
- ID winget
- kbkkb.APISwitch
Penarafan dan ulasan
Belum ada ulasan. Jadilah yang pertama menilainya.
Alternatif kepada APISwitch
Lihat semua ›-
Sumber terbuka1.8J ↓ -
Sumber terbuka286.5K ↓ -
Sumber terbuka153.5K ↓ -
Sumber terbuka568.1K ↓ -
Sumber terbuka175.1K ↓ -
Sumber terbuka14.7K ↓ -
Sumber terbuka58.1K ↓ -
Sumber terbuka78K ↓
Soalan lazim
Adakah APISwitch percuma?
Ya. APISwitch ialah perisian sumber terbuka di bawah lesen MIT.
Adakah APISwitch selamat dimuat turun?
Fail dimuat turun daripada github.com, yang dimiliki oleh penerbit; ExeAtlas tidak menyimpan atau mengubah fail tersebut. Bandingkan hash SHA256nya dengan yang dipaparkan di sini, atau buka laporan VirusTotal bagi hash itu.
Bagaimanakah cara memasang APISwitch dengan winget?
Buka PowerShell atau Windows Terminal dan jalankan arahan winget yang dipaparkan di halaman ini. winget memuat turun pemasang rasmi dan menyemak hash SHA256nya sebelum menjalankannya.
Bolehkah APISwitch dipasang secara senyap?
Ya. Halaman pemasangan senyap menyenaraikan arahan yang tepat untuk setiap pemasang.
Bolehkah APISwitch berjalan di ARM (Windows on Arm)?
Tiada binaan ARM64; Windows 11 on Arm boleh menjalankan versi 64-bit melalui emulasi.
Bolehkah saya menggunakan APISwitch tanpa hak pentadbir?
Ya, terdapat pemasang untuk setiap pengguna yang tidak memerlukan hak pentadbir.
Apakah alternatif kepada APISwitch?
OpenVPN, nginx, Proton VPN, Tailscale dan Netbird. Halaman alternatif membandingkan kesemuanya.