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 در دستهبندی VPN و پروکسی است.
نصب و پیشنیازها
فایلهای نصب رسمی برای ۶۴ بیتی در قالب EXE (Inno Setup) موجود است. میتوان آن را فقط برای کاربر فعلی و بدون دسترسی مدیر نصب کرد. نصبکننده از نصب خودکار و بیصدا، بدون دخالت کاربر، پشتیبانی میکند.
نقاط قوت / نقاط ضعف
نقاط قوت
- متنباز: هر کسی میتواند کد را بررسی و کامپایل کند
- نصب بیصدای مستند
- نصب بدون دسترسی مدیر
- بهروزرسانی در دو ماه اخیر
نقاط ضعف
- بدون نسخه بومی ARM64
به طور خلاصه: APISwitch ابزاری متنباز در دستهبندی VPN و پروکسی برای رایانههای ۶۴ بیتی است. مدیران سیستم میتوانند آن را بدون دخالت کاربر توزیع کنند.
آیا دانلود APISwitch امن است؟
- فایل از github.com، دامنه خود ناشر، ارائه میشود
- لینک دانلود از HTTPS استفاده میکند
- هش SHA256 منتشر شده است و میتوانید فایل را بررسی کنید:
4DC4B5BADEADFC639EC74A5D1F37023084709671CDB2DD0106DE711F123EB58B· گزارش VirusTotal این هش را باز کنید - لینک هنوز بررسی نشده است
- کد منبع عمومی است
- ExeAtlas فایلهای نصب را میزبانی، بستهبندی یا تغییر نمیدهد
آموزش مرتبط: بررسی هش SHA256 فایل در ویندوز
نسخههای اخیر
همه ۱ نسخه ›| نسخه | تاریخ | حجم | فایلها |
|---|---|---|---|
| 0.3.2آخرین | ۲۴ مهر ۱۴۰۵ | — | ۶۴ بیتی 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
- معماری
- ۶۴ بیتی
- نوع نصبکننده
- EXE (Inno Setup)
- نسخه
- 0.3.2
- تاریخ انتشار
- ۲۴ مهر ۱۴۰۵
- تاریخ افزودن به فهرست
- ۱۹ آبان ۱۴۰۵
- نسخههای فهرستشده
- 1
- دانلودها در ExeAtlas
- ۱
- وبسایت رسمی
- github.com
- شناسه winget
- kbkkb.APISwitch
امتیازها و نظرها
هنوز نظری ثبت نشده است. نخستین امتیاز را شما بدهید.
جایگزینهای APISwitch
مشاهده همه ›-
متنباز۱٫۸ میلیون ↓ -
متنباز۲۸۶٫۵ هزار ↓ -
متنباز۱۵۳٫۵ هزار ↓ -
متنباز۵۶۸٫۱ هزار ↓ -
متنباز۱۷۵٫۱ هزار ↓ -
متنباز۱۴٫۷ هزار ↓ -
متنباز۵۸٫۱ هزار ↓ -
متنباز۷۸ هزار ↓
پرسشهای متداول
آیا 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 میتواند نسخه ۶۴ بیتی را با شبیهسازی اجرا کند.
آیا میتوان از APISwitch بدون دسترسی مدیر استفاده کرد؟
بله، نصبکنندهای مخصوص کاربر فعلی وجود دارد که به دسترسی مدیر نیاز ندارد.
جایگزینهای APISwitch کداماند؟
OpenVPN، nginx، Proton VPN، Tailscale و Netbird. صفحه جایگزینها آنها را با هم مقایسه میکند.