Skip to content

jigonr/claude-switch

Repository files navigation

claude-switch

Simple API provider switcher for Claude Code CLI

CI codecov Docs License: MIT

Features

  • 🔄 Simple Provider Switching - Switch between 3 providers with one command
  • 🔒 Security First - Separate credential storage with proper permissions
  • 📁 Project-Aware - Auto-detects project-specific configs
  • ⚡ Fast - Built with Bun and TypeScript

Installation

# Using Bun (recommended)
bun add -g @jigonr/claude-switch

# Using npm
npm install -g @jigonr/claude-switch

Quick Start

claude-switch              # Show current provider
claude-switch anthropic    # Switch to Anthropic API
claude-switch list         # List all providers
claude-switch status       # Show detailed status

Supported Providers

Provider Type Description
claude-pro-max Subscription Claude Pro via browser
anthropic API Anthropic API
z.ai API z.ai with GLM models

Documentation

Full documentation available at jigonzalez.com/claude-switch

Development

git clone https://github.com/jigonr/claude-switch.git
cd claude-switch
bun install
bun run dev

License

MIT © J.I. Gonzalez-Rojas

Related

About

Simple API provider switcher for Claude Code CLI

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •