Wingetlywingetly
← All apps

APISwitch

by kbkkbv0.3.2

Last updated

Provider switcher and local routing gateway for AI coding assistants.

Install with winget

$ winget install --id kbkkb.APISwitch --exact --version 0.3.2

Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.

Silent install command for APISwitch

APISwitch uses EXE (Inno Setup). The silent install switches are /VERYSILENT /SUPPRESSMSGBOXES /NORESTART.

One-line silent install (x64, user scope)
APISwitch-Setup-v0.3.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART

See the full silent install reference for APISwitch →

Built by Pckgr

For Intune admins

Stop chasing app updates. Pckgr patches them for you.

Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.

Start free 30-day trial

From $49/month. No credit card required.

Not on Intune? Pckgr RMM deploys and patches apps like this one on any Windows fleet. Free for up to 5 devices.

About

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.

Installers · v0.3.2

ArchitectureTypeScopeInstallDownload
x64EXE
Inno Setup
userDirect

Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.

Security

No known CVEs for APISwitch.

Coverage is best-effort and depends on a winget package mapping to an NVD CPE entry. Absence here is not a guarantee of safety.

Related apps

  • Claude CodeAnthropic PBC
    Anthropic.ClaudeCodev2.1.330

    Unleash Claude’s raw power directly in your terminal. Search million-line codebases instantly. Turn hours-long workflows into a single command. Your tools. Your workflow. Your codebase, evolving at thought speed.

  • Invisible Man XRayInvisible Man
    InvisibleMan.InvisibleManXRayv3.2.5

    Invisible Man XRay is an open-source and free client that supports xray core.

  • Happ - Proxy UtilityHapp
    Happ.Happv4.8.3

    Desktop proxy client powered by Xray core.

  • ClaudeAnthropic, PBC
    Anthropic.Claudev6.28899.6

    Your AI partner on desktop. Fast, focused, and designed for deep work.

  • O
    Ollama (Portable)Ollama
    Ollama.Ollama.Portablev0.40.17

    Start building with open models.

  • CursorAnysphere
    Anysphere.Cursorv3.31.15

    The AI Code Editor

More from kbkkb or browse ai, api, gateway.

Frequently asked questions

How do I install APISwitch on Windows?
Open Windows Terminal, PowerShell, or Command Prompt and run: winget install --id kbkkb.APISwitch --exact --version 0.3.2. winget downloads the installer from kbkkb and runs it. Requires Windows 10 (1809+) or Windows 11.
How do I install APISwitch silently for unattended deployment?
Add --silent and accept the agreements upfront: winget install --id kbkkb.APISwitch --exact 0.3.2 --silent --accept-package-agreements --accept-source-agreements. This is the variant Intune, Configuration Manager, and other deployment tools should use.
What are the silent install switches for APISwitch?
APISwitch uses EXE (Inno Setup). Run the downloaded installer with: APISwitch-Setup-v0.3.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART. The silent switches are /VERYSILENT /SUPPRESSMSGBOXES /NORESTART.
How do I uninstall APISwitch via winget?
Run: winget uninstall --id kbkkb.APISwitch --exact. Add --silent for unattended uninstalls. winget will use the registered uninstaller from APISwitch's Apps & Features entry.
Is APISwitch free?
APISwitch is distributed under MIT. Refer to the publisher (https://github.com/kbkkb/APISwitch) for the full license terms - Wingetly itself does not charge for installation.
Does APISwitch work on Windows 10?
Yes, as long as your Windows 10 build supports winget (1809 or newer). winget ships with App Installer on Windows 10/11 and pulls APISwitch directly from the publisher.
How do I keep APISwitch up to date?
Run winget upgrade --id kbkkb.APISwitch --exact, or winget upgrade --all to update everything winget tracks. We index 1 version of APISwitch from microsoft/winget-pkgs.