by coder
Claude Code with any LLM
# Add to your Claude Code skills
git clone https://github.com/coder/anyclaudeUse Claude Code with OpenAI, Google, xAI, and other providers.
# Use your favorite package manager (bun, pnpm, and npm are supported)
$ pnpm install -g anyclaude
# anyclaude is a wrapper for the Claude CLI
# `openai/`, `google/`, `xai/`, and `anthropic/` are supported
$ anyclaude --model openai/gpt-5-mini
Switch models in the Claude UI with /model openai/gpt-5-mini.
Use --reasoning-effort (alias: -e) to control OpenAI reasoning.effort. Allowed values: minimal, low, medium, high.
anyclaude --model openai/gpt-5-mini -e high
Use --service-tier (alias: -t) to control OpenAI service tier. Allowed values: flex, priority.
anyclaude --model openai/gpt-5-mini -t priority
Note these flags may be extended to other providers in the future.
See the providers for the implementation.
GOOGLE_API_KEY supports google/* models.OPENAI_API_KEY supports openai/* models.XAI_API_KEY supports xai/* models.Set a custom OpenAI endpoint with to use OpenRouter
OPENAI_API_URLANTHROPIC_MODEL and ANTHROPIC_SMALL_MODEL are supported with the <provider>/ syntax.
Claude Code has added support for customizing the Anthropic endpoint with ANTHROPIC_BASE_URL.