MadAppGang/claudish

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

🔮 Claudish – Run Claude Code with any LLM

What it is

  • A command‑line interface (CLI) that acts as a local proxy for the Claude Code API. It lets you keep the Claude Code workflow while swapping the underlying model to any provider you already have access to – Anthropic, Google Gemini, OpenAI, Ollama, OpenRouter, and dozens of other services.

Why it matters

  • You no longer need separate tools for each model. One command (claudish) can route requests to 580+ cloud models, local containers, or enterprise APIs, all while preserving Claude Code’s request/response format.
  • Ideal for developers who want to experiment with cost‑effective or offline models without abandoning the Claude Code UI.

Key features

  • Multi‑provider routing – specify a model with provider@model[:concurrency] (e.g. g@gemini-3-pro-preview). Supports OpenRouter, Gemini, OpenAI, MiniMax, Kimi, GLM, OllamaCloud, Vertex AI, and local runtimes like Ollama, LM Studio, vLLM, MLX.
  • BYOK (Bring‑Your‑Own‑Key) – use existing API keys; no extra subscription fees.
  • Automatic model detection – plain model names (gpt‑4o, llama‑3.1‑70b) are auto‑routed to the correct provider.
  • Offline mode – run purely local models (claudish --model ollama@qwen3-coder:latest) so your code never leaves the machine.
  • Claude Code flag passthrough – any flag that Claude Code understands (--agent, --effort, etc.) is forwarded unchanged.
  • Vision proxy – non‑vision models get image descriptions from Claude, giving them “sight”.
  • Interactive setup – first run prompts for API key and model, creating a zero‑config experience.
  • JSON output & streaming – machine‑readable results for tool integration, plus real‑time streaming of Claude Code responses.
  • Cost tracking & monitoring – optional mode logs usage and can produce a cost audit report.
  • Cross‑platform – works with Node.js or Bun; install via npm, Homebrew, or a one‑liner script.

Installation quick‑start

# one‑liner script (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/MadAppGang/claudish/main/install.sh | bash
# or via npm
npm install -g claudish
# or Homebrew (macOS)
brew tap MadAppGang/tap && brew install claudish

You can also run it without installing:

npx claudish@latest --model x-ai/grok-code-fast-1 "your prompt"

Typical usage

# Use a specific provider/model
claudish --model g@gemini-3-pro-preview "write a login function"

# Offline with a local Ollama model
claudish --model ollama@qwen3-coder:latest "refactor this file"

# List available models (fuzzy search)
claudish --models gemini

# Show only free models
claudish --free --models

All flags after -- are sent straight to Claude Code, so you can still use --agent, --effort, etc.

AI‑agent workflow The README includes a detailed pattern for using Claudish inside Claude Code agents:

  1. Write task instructions to a temporary file.
  2. Invoke claudish --model <provider>@<model> --stdin < instruction.md.
  3. Read the result file and return a concise summary. This file‑based approach avoids polluting the conversation context and lets sub‑agents handle heavy‑weight coding work.

Configuration

  • API keys are read from environment variables (OPENROUTER_API_KEY, GEMINI_API_KEY, OPENAI_API_KEY, etc.) or a .env file in the current directory.
  • Default model, port, and other settings can be overridden with CLAUDISH_* env vars or a custom config file via --config.

Who should use it

  • Developers who already use Claude Code and want to experiment with cheaper or private models.
  • Teams with mixed subscriptions (Anthropic, Google, OpenAI, etc.) looking for a unified CLI.
  • Users needing an offline LLM for code generation while retaining Claude Code’s UI.

Links

Related

  • Project
  • Project
  • Project
  • Project
  • Project