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.
Mô tả của nhà phát hành (Tiếng Anh)
APISwitch là gì?
APISwitch là phần mềm mã nguồn mở dành cho Windows do kbkkb phát hành, thuộc nhóm VPN và proxy.
Cài đặt và yêu cầu hệ thống
Bộ cài chính thức có sẵn cho Windows 64-bit ở định dạng EXE (Inno Setup). Có thể cài đặt riêng cho người dùng hiện tại mà không cần quyền quản trị viên. Bộ cài hỗ trợ cài đặt im lặng, không cần thao tác của người dùng.
Ưu điểm / Nhược điểm
Ưu điểm
- Mã nguồn mở: ai cũng có thể xem và tự biên dịch
- Có tài liệu về cài đặt im lặng
- Cài đặt không cần quyền quản trị viên
- Có cập nhật trong hai tháng gần đây
Nhược điểm
- Chưa có bản ARM64 gốc
Tóm lại: APISwitch là phần mềm Windows mã nguồn mở dành cho máy tính 64-bit, thuộc nhóm VPN và proxy. Quản trị viên có thể triển khai tự động, không cần thao tác.
Tải APISwitch có an toàn không?
- Tệp được cung cấp từ github.com, tên miền của chính nhà phát hành
- Liên kết tải về dùng HTTPS
- Có công bố mã SHA256 để kiểm tra tệp:
4DC4B5BADEADFC639EC74A5D1F37023084709671CDB2DD0106DE711F123EB58B· Mở báo cáo VirusTotal cho mã băm này - Liên kết chưa được kiểm tra
- Mã nguồn được công khai
- ExeAtlas không lưu trữ, không đóng gói kèm và không chỉnh sửa bộ cài
Hướng dẫn liên quan: Cách kiểm tra mã SHA256 của file trên Windows
Phiên bản gần đây
Tất cả 1 phiên bản ›| Phiên bản | Ngày | Dung lượng | Tệp |
|---|---|---|---|
| 0.3.2Mới nhất | 16 tháng 10, 2026 | — | 64-bit EXE (Inno Setup) |
Cài đặt bằng dòng lệnh
Cài đặt im lặng ›winget install --id kbkkb.APISwitch -eAPISwitch-Setup-v0.3.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Hướng dẫn liên quan: Cách dùng winget để cài đặt và cập nhật phần mềm
Thông tin
- Nhà phát hành
- kbkkb
- Danh mục
- VPN và proxy
- Giấy phép
- MIT
- Giá
- Miễn phí
- Yêu cầu
- Windows 11 / 10
- Kiến trúc
- 64-bit
- Loại bộ cài
- EXE (Inno Setup)
- Phiên bản
- 0.3.2
- Ngày phát hành
- 16 tháng 10, 2026
- Ngày thêm vào danh mục
- 10 tháng 11, 2026
- Số phiên bản
- 1
- Lượt tải trên ExeAtlas
- 1
- Trang chủ
- github.com
- winget ID
- kbkkb.APISwitch
Đánh giá và nhận xét
Chưa có nhận xét nào. Hãy là người đầu tiên đánh giá.
Phần mềm thay thế APISwitch
Xem tất cả ›-
Mã nguồn mở1,8 Tr ↓ -
Mã nguồn mở286,5 N ↓ -
Mã nguồn mở153,5 N ↓ -
Mã nguồn mở568,1 N ↓ -
Mã nguồn mở175,1 N ↓ -
Mã nguồn mở14,7 N ↓ -
Mã nguồn mở58,1 N ↓ -
Mã nguồn mở78 N ↓
Câu hỏi thường gặp
APISwitch có miễn phí không?
Có. APISwitch là phần mềm mã nguồn mở theo giấy phép MIT.
Tải APISwitch có an toàn không?
Tệp được tải từ github.com, tên miền thuộc về nhà phát hành; ExeAtlas không lưu trữ và không chỉnh sửa tệp. Hãy so sánh mã SHA256 của tệp đã tải với mã hiển thị trên trang này, hoặc mở báo cáo VirusTotal cho mã băm đó.
Cài đặt APISwitch bằng winget như thế nào?
Mở PowerShell hoặc Windows Terminal và chạy lệnh winget hiển thị trên trang này. winget sẽ tải bộ cài chính thức và kiểm tra mã SHA256 trước khi chạy.
APISwitch có hỗ trợ cài đặt im lặng không?
Có. Trang cài đặt im lặng liệt kê lệnh chính xác cho từng bộ cài.
APISwitch có chạy trên máy ARM (Windows on Arm) không?
Chưa có bản ARM64; Windows 11 on Arm có thể chạy bản 64-bit thông qua giả lập.
Có thể dùng APISwitch mà không cần quyền quản trị viên không?
Có, phần mềm có bộ cài cho từng người dùng, không yêu cầu quyền quản trị viên.
Có những phần mềm nào thay thế APISwitch?
OpenVPN, nginx, Proton VPN, Tailscale và Netbird. Trang phần mềm thay thế so sánh các lựa chọn này.