OpenClaude is an open-source, terminal-first coding-agent CLI for developers who want one consistent workflow across many LLM backends. Instead of learning separate tooling for each provider, you point OpenClaude at OpenAI-compatible APIs, Gemini, GitHub Models, Codex (OAuth or CLI auth), Ollama, Atomic Chat, and a growing list of gateway providers like Fireworks AI, LongCat, ApiSmart, and Z.AI GLM. It's aimed at developers who already use terminal coding agents (Claude Code-style workflows) but want provider flexibility, including running fully local models via Ollama.
/provider saves profiles to .openclaude-profile.json.--fork-session, and inspect prior work.openclaude --bg, then track them with ps, logs, and kill subcommands (local child processes, no daemon).~/.openclaude, doesn't read ~/.claude or Claude Code credentials, so it can run without Claude Code installed.--bg, ps, logs) rather than a fully attached terminal session..env files (OpenClaude intentionally doesn't do this by default). It's also not a good fit if you rely on full terminal reattach for background sessions today, since that feature isn't implemented yet, only log tailing is.OpenClaude requires Node.js >=22.0.0 for npm installs and runtime. Bun is only needed if you're building from source.
Install globally via npm:
npm install -g @gitlawb/openclaude@latest
On Arch Linux, there's a community-maintained AUR package:
paru -S openclaude
If you see a ripgrep not found error, install ripgrep system-wide and confirm rg --version works before starting OpenClaude.
Verify or troubleshoot your installed version:
openclaude --version
npm view @gitlawb/openclaude dist-tags
npm install -g @gitlawb/openclaude@latest
Start the CLI:
openclaude
Inside the CLI, run /provider for guided provider setup, or /onboard-github for GitHub Models onboarding.
For a fast OpenAI-backed setup, set environment variables before launching:
export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_API_KEY=sk-your-key-here
export OPENAI_MODEL=gpt-4o
openclaude
For a fully local setup with Ollama:
export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_BASE_URL=http://localhost:11434/v1
export OPENAI_MODEL=qwen2.5-coder:7b
openclaude
Windows PowerShell equivalents are documented in the README for both setups. Additional beginner and advanced setup guides (Windows, macOS/Linux, non-technical, source builds) live under the docs/ directory in the repo.