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 بت بصيغة EXE (Inno Setup). يمكن تثبيته للمستخدم الحالي فقط دون صلاحيات المسؤول. يدعم المثبّت التثبيت الصامت دون تدخل من المستخدم.
الإيجابيات / السلبيات
الإيجابيات
- مفتوح المصدر: يمكن لأي شخص فحص الشيفرة وبناؤها
- تثبيت صامت موثّق
- يُثبَّت دون صلاحيات المسؤول
- حُدِّث خلال الشهرين الماضيين
السلبيات
- لا يوجد إصدار ARM64 أصلي
باختصار: APISwitch برنامج مفتوح المصدر من فئة 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
- معرّف 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 على أجهزة Windows on Arm؟
لا يوجد إصدار ARM64؛ لكن Windows 11 on Arm يستطيع تشغيل إصدار 64 بت عبر المحاكاة.
هل يمكن استخدام APISwitch دون صلاحيات المسؤول؟
نعم، يتوفر مثبّت خاص بكل مستخدم لا يحتاج إلى صلاحيات المسؤول.
ما بدائل APISwitch؟
OpenVPN، nginx، Proton VPN، Tailscale وNetbird. تقارن صفحة البدائل بينها.