jolehuit/clother

Use multiple Claude Code–compatible LLM providers from one CLI, switching profiles instantly with simple clother-* commands.

What it solves

Switching between different AI providers for the Claude Code CLI usually requires manually updating environment variables, API endpoints, and model names. Clother simplifies this by providing a single command-line interface to switch between various Anthropic-compatible providers instantly.

How it works

Clother is a Go-based binary that acts as a wrapper. It installs a series of provider-specific launchers (symlinks) into your system's bin directory. When you run a launcher (e.g., clother-zai), the tool resolves the associated profile, sets the necessary environment variables (like ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN), and then executes the actual Claude CLI binary.

Who it’s for

Developers using the Claude Code CLI who want to use alternative LLM providers (such as Z.AI, Kimi, DeepSeek, or local backends like Ollama and LM Studio) without manual configuration changes.

Highlights

  • Broad Provider Support: Includes native Claude, OpenRouter, various China-based endpoints, and local providers (Ollama, LM Studio, llama.cpp).
  • Latency Benchmarking: A clother bench command to compare TTFT (time to first token) and total response time across configured providers.
  • Session Resume Compatibility: Maintains compatibility with claude --resume and provides provider-aware reopen commands.
  • VS Code Integration: Can be configured as a Claude Process Wrapper in the official Claude Code extension.
  • Simplified Configuration: Centralized management of API keys and default models via clother config.

Related

  • Project
  • Project
  • Project
  • Project
  • Project