
Openclaude Multi Llm
Run Claude Code’s full tool surface—Bash, files, grep, MCP, tasks—while pointing the model layer at GPT-4o, DeepSeek, Gemini, Ollama, or any OpenAI-compatible API.
Install
npx skills add https://github.com/aradotso/trending-skills --skill openclaude-multi-llmWhat is this skill?
- Routes LLM calls through an OpenAI-compatible shim while preserving Bash, FileRead/Write/Edit, Glob, Grep, WebFetch, Age
- Supports GPT-4o, DeepSeek, Gemini via OpenRouter, Ollama, Groq, Mistral, Azure, and 200+ OpenAI Chat Completions models
- Install paths: global npm @gitlawb/openclaude, Bun source build, or bun run dev without a build step
- Activation is environment-variable driven—documented required env block in SKILL.md for provider base URL, key, and mode
- Daily 2026 Skills collection entry from ara.so with explicit trigger phrases for OpenAI-compatible Claude Code setups
Adoption & trust: 621 installs on skills.sh; 31 GitHub stars; 1/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Model routing and CLI setup belong in Build when you are assembling the agent stack before daily ship and operate loops. Agent-tooling is the shelf for forks and env-driven provider shims that keep Claude Code tools unchanged while swapping LLM backends.
Common Questions / FAQ
Is Openclaude Multi Llm safe to install?
skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Openclaude Multi Llm
# OpenClaude Multi-LLM Skill > Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection. OpenClaude is a fork of Claude Code that routes all LLM calls through an OpenAI-compatible shim (`openaiShim.ts`), letting you use any model that speaks the OpenAI Chat Completions API — GPT-4o, DeepSeek, Gemini via OpenRouter, Ollama, Groq, Mistral, Azure, and more — while keeping every Claude Code tool intact (Bash, FileRead, FileWrite, FileEdit, Glob, Grep, WebFetch, Agent, MCP, Tasks, LSP, NotebookEdit). --- ## Installation ### npm (recommended) ```bash npm install -g @gitlawb/openclaude # CLI command installed: openclaude ``` ### From source (requires Bun) ```bash git clone https://node.gitlawb.com/z6MkqDnb7Siv3Cwj7pGJq4T5EsUisECqR8KpnDLwcaZq5TPr/openclaude.git cd openclaude bun install bun run build # optionally link globally npm link ``` ### Run without build ```bash bun run dev # run directly with Bun, no build step ``` --- ## Activation — Required Environment Variables You must set `CLAUDE_CODE_USE_OPENAI=1` to enable the shim. Without it, the tool falls back to the Anthropic SDK. | Variable | Required | Purpose | |---|---|---| | `CLAUDE_CODE_USE_OPENAI` | Yes | Set to `1` to activate OpenAI provider | | `OPENAI_API_KEY` | Yes* | API key (*omit for local Ollama/LM Studio) | | `OPENAI_MODEL` | Yes | Model identifier | | `OPENAI_BASE_URL` | No | Custom endpoint (default: `https://api.openai.com/v1`) | | `CODEX_API_KEY` | Codex only | ChatGPT/Codex access token | | `CODEX_AUTH_JSON_PATH` | Codex only | Path to Codex CLI `auth.json` | `OPENAI_MODEL` takes priority over `ANTHROPIC_MODEL` if both are set. --- ## Provider Configuration Examples ### OpenAI ```bash export CLAUDE_CODE_USE_OPENAI=1 export OPENAI_API_KEY=$OPENAI_API_KEY export OPENAI_MODEL=gpt-4o openclaude ``` ### DeepSeek ```bash export CLAUDE_CODE_USE_OPENAI=1 export OPENAI_API_KEY=$DEEPSEEK_API_KEY export OPENAI_BASE_URL=https://api.deepseek.com/v1 export OPENAI_MODEL=deepseek-chat openclaude ``` ### Google Gemini (via OpenRouter) ```bash export CLAUDE_CODE_USE_OPENAI=1 export OPENAI_API_KEY=$OPENROUTER_API_KEY export OPENAI_BASE_URL=https://openrouter.ai/api/v1 export OPENAI_MODEL=google/gemini-2.0-flash openclaude ``` ### Ollama (local, no API key needed) ```bash ollama pull llama3.3:70b export CLAUDE_CODE_USE_OPENAI=1 export OPENAI_BASE_URL=http://localhost:11434/v1 export OPENAI_MODEL=llama3.3:70b openclaude ``` ### Groq ```bash export CLAUDE_CODE_USE_OPENAI=1 export OPENAI_API_KEY=$GROQ_API_KEY export OPENAI_BASE_URL=https://api.groq.com/openai/v1 export OPENAI_MODEL=llama-3.3-70b-versatile openclaude ``` ### Mistral ```bash export CLAUDE_CODE_USE_OPENAI=1 export OPENAI_API_KEY=$MISTRAL_API_KEY export OPENAI_BASE_URL=https://api.mistral.ai/v1 export OPENAI_MODEL=mistral-large-latest openclaude ``` ### Azure OpenAI ```bash export CLAUDE_CODE_USE_OPENAI=1 export OPENAI_API_KEY=$AZURE_OPENAI_KEY export OPENAI_BASE_URL=https://your-resource.openai.azure.com/openai/deployments/your-deployment/v1 export OPENAI_MODEL=gpt-4o openclaude ``` ### Codex (ChatGPT backend) ```bash export CLAUDE_CODE_USE_OPENAI=1 export OPENAI_MODEL=codexplan # or codexspark for faster loops # reads ~/.codex/auth.json automatically if present # or set: export CODEX_API_KEY=$CODEX_TOKEN openclaude ``` ### LM Studio (local) ```bash export CLAUDE_CODE_USE_OPENAI=1 export OPENAI_BASE_URL=http://localhost:1234/v1 export OPENAI_MODEL=your-model-name o