AI development/GitHub/Tool
ai-switch
by 0xfnzero·Last observed 2026-10-26
★ 2 stars⑂ 0 forks
AI Switch is a CLI for managing API provider profiles used by Codex and Claude Code. It stores profiles, discovers models from a provider's model endpoint, updates the clients' configuration, and checks the effective endpoint before a new session. For example, it can switch a Codex profile to a relay and restore a configuration backup. It requires Node.js 20 or newer.
Useful for
- Switch Codex to a saved relay profile, then run diagnostics to check the active endpoint and provider connectivity.
Key features
- Manages multiple provider profiles and switches the active Codex or Claude Code configuration.
- Queries a provider's model endpoint to discover available models, with manual model entry as a fallback.
- Checks configuration and connectivity, creates backups before switching, and can restore a backup.
Requirements & limitations
- Requires Node.js 20 or newer and Codex CLI or desktop app for Codex profiles, or Claude Code for Claude profiles.
- Credentials are stored locally; the client configuration files do not contain plaintext API keys.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.