Gitlawb/openclaudePublic

runs anywhere. uses anything

AI summary: An open-source, terminal-first coding agent CLI supporting multiple cloud and local model providers.

Stars
30.5K
+26 today
Forks
8.9K
Watchers
216
Open issues
27
Open PRs
28
Contributors
~143
Commits
1.1K
Branches
45

TypeScriptOtherCreated Apr 1, 2026Last push 1d agoLatest release v0.26.0+125 stars this week+125 this month

Star history

since Mar 29, 2026
010K20K30KMar 2026May 2026Jun 2026Aug 2026
30.5K stars as of Aug 6, 2026, tracked back to Mar 29, 2026. Historical curve reconstructed from public GitHub event archives, calibrated to the current total.

Contribution activity

commits per day, last 52 weeks
AugSepOctNovDecJanFebMarAprMayJunJulMonWedFri2025-08-03: 0 commits2025-08-04: 0 commits2025-08-05: 0 commits2025-08-06: 0 commits2025-08-07: 0 commits2025-08-08: 0 commits2025-08-09: 0 commits2025-08-10: 0 commits2025-08-11: 0 commits2025-08-12: 0 commits2025-08-13: 0 commits2025-08-14: 0 commits2025-08-15: 0 commits2025-08-16: 0 commits2025-08-17: 0 commits2025-08-18: 0 commits2025-08-19: 0 commits2025-08-20: 0 commits2025-08-21: 0 commits2025-08-22: 0 commits2025-08-23: 0 commits2025-08-24: 0 commits2025-08-25: 0 commits2025-08-26: 0 commits2025-08-27: 0 commits2025-08-28: 0 commits2025-08-29: 0 commits2025-08-30: 0 commits2025-08-31: 0 commits2025-09-01: 0 commits2025-09-02: 0 commits2025-09-03: 0 commits2025-09-04: 0 commits2025-09-05: 0 commits2025-09-06: 0 commits2025-09-07: 0 commits2025-09-08: 0 commits2025-09-09: 0 commits2025-09-10: 0 commits2025-09-11: 0 commits2025-09-12: 0 commits2025-09-13: 0 commits2025-09-14: 0 commits2025-09-15: 0 commits2025-09-16: 0 commits2025-09-17: 0 commits2025-09-18: 0 commits2025-09-19: 0 commits2025-09-20: 0 commits2025-09-21: 0 commits2025-09-22: 0 commits2025-09-23: 0 commits2025-09-24: 0 commits2025-09-25: 0 commits2025-09-26: 0 commits2025-09-27: 0 commits2025-09-28: 0 commits2025-09-29: 0 commits2025-09-30: 0 commits2025-10-01: 0 commits2025-10-02: 0 commits2025-10-03: 0 commits2025-10-04: 0 commits2025-10-05: 0 commits2025-10-06: 0 commits2025-10-07: 0 commits2025-10-08: 0 commits2025-10-09: 0 commits2025-10-10: 0 commits2025-10-11: 0 commits2025-10-12: 0 commits2025-10-13: 0 commits2025-10-14: 0 commits2025-10-15: 0 commits2025-10-16: 0 commits2025-10-17: 0 commits2025-10-18: 0 commits2025-10-19: 0 commits2025-10-20: 0 commits2025-10-21: 0 commits2025-10-22: 0 commits2025-10-23: 0 commits2025-10-24: 0 commits2025-10-25: 0 commits2025-10-26: 0 commits2025-10-27: 0 commits2025-10-28: 0 commits2025-10-29: 0 commits2025-10-30: 0 commits2025-10-31: 0 commits2025-11-01: 0 commits2025-11-02: 0 commits2025-11-03: 0 commits2025-11-04: 0 commits2025-11-05: 0 commits2025-11-06: 0 commits2025-11-07: 0 commits2025-11-08: 0 commits2025-11-09: 0 commits2025-11-10: 0 commits2025-11-11: 0 commits2025-11-12: 0 commits2025-11-13: 0 commits2025-11-14: 0 commits2025-11-15: 0 commits2025-11-16: 0 commits2025-11-17: 0 commits2025-11-18: 0 commits2025-11-19: 0 commits2025-11-20: 0 commits2025-11-21: 0 commits2025-11-22: 0 commits2025-11-23: 0 commits2025-11-24: 0 commits2025-11-25: 0 commits2025-11-26: 0 commits2025-11-27: 0 commits2025-11-28: 0 commits2025-11-29: 0 commits2025-11-30: 0 commits2025-12-01: 0 commits2025-12-02: 0 commits2025-12-03: 0 commits2025-12-04: 0 commits2025-12-05: 0 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 0 commits2025-12-09: 0 commits2025-12-10: 0 commits2025-12-11: 0 commits2025-12-12: 0 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 0 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 0 commits2025-12-19: 0 commits2025-12-20: 0 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 0 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 0 commits2026-01-09: 0 commits2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 0 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 0 commits2026-01-20: 0 commits2026-01-21: 0 commits2026-01-22: 0 commits2026-01-23: 0 commits2026-01-24: 0 commits2026-01-25: 0 commits2026-01-26: 0 commits2026-01-27: 0 commits2026-01-28: 0 commits2026-01-29: 0 commits2026-01-30: 0 commits2026-01-31: 0 commits2026-02-01: 0 commits2026-02-02: 0 commits2026-02-03: 0 commits2026-02-04: 0 commits2026-02-05: 0 commits2026-02-06: 0 commits2026-02-07: 0 commits2026-02-08: 0 commits2026-02-09: 0 commits2026-02-10: 0 commits2026-02-11: 0 commits2026-02-12: 0 commits2026-02-13: 0 commits2026-02-14: 0 commits2026-02-15: 0 commits2026-02-16: 0 commits2026-02-17: 0 commits2026-02-18: 0 commits2026-02-19: 0 commits2026-02-20: 0 commits2026-02-21: 0 commits2026-02-22: 0 commits2026-02-23: 0 commits2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 0 commits2026-02-28: 0 commits2026-03-01: 0 commits2026-03-02: 0 commits2026-03-03: 0 commits2026-03-04: 0 commits2026-03-05: 0 commits2026-03-06: 0 commits2026-03-07: 0 commits2026-03-08: 0 commits2026-03-09: 0 commits2026-03-10: 0 commits2026-03-11: 0 commits2026-03-12: 0 commits2026-03-13: 0 commits2026-03-14: 0 commits2026-03-15: 0 commits2026-03-16: 0 commits2026-03-17: 0 commits2026-03-18: 0 commits2026-03-19: 0 commits2026-03-20: 0 commits2026-03-21: 0 commits2026-03-22: 0 commits2026-03-23: 0 commits2026-03-24: 0 commits2026-03-25: 0 commits2026-03-26: 0 commits2026-03-27: 0 commits2026-03-28: 0 commits2026-03-29: 0 commits2026-03-30: 0 commits2026-03-31: 5 commits2026-04-01: 63 commits2026-04-02: 83 commits2026-04-03: 28 commits2026-04-04: 37 commits2026-04-05: 8 commits2026-04-06: 21 commits2026-04-07: 5 commits2026-04-08: 7 commits2026-04-09: 6 commits2026-04-10: 9 commits2026-04-11: 3 commits2026-04-12: 13 commits2026-04-13: 21 commits2026-04-14: 6 commits2026-04-15: 9 commits2026-04-16: 6 commits2026-04-17: 5 commits2026-04-18: 3 commits2026-04-19: 3 commits2026-04-20: 12 commits2026-04-21: 12 commits2026-04-22: 14 commits2026-04-23: 2 commits2026-04-24: 13 commits2026-04-25: 3 commits2026-04-26: 10 commits2026-04-27: 3 commits2026-04-28: 4 commits2026-04-29: 5 commits2026-04-30: 3 commits2026-05-01: 1 commit2026-05-02: 12 commits2026-05-03: 1 commit2026-05-04: 13 commits2026-05-05: 8 commits2026-05-06: 4 commits2026-05-07: 5 commits2026-05-08: 4 commits2026-05-09: 4 commits2026-05-10: 3 commits2026-05-11: 9 commits2026-05-12: 4 commits2026-05-13: 12 commits2026-05-14: 7 commits2026-05-15: 1 commit2026-05-16: 7 commits2026-05-17: 9 commits2026-05-18: 1 commit2026-05-19: 3 commits2026-05-20: 4 commits2026-05-21: 0 commits2026-05-22: 1 commit2026-05-23: 13 commits2026-05-24: 0 commits2026-05-25: 5 commits2026-05-26: 8 commits2026-05-27: 3 commits2026-05-28: 3 commits2026-05-29: 3 commits2026-05-30: 5 commits2026-05-31: 11 commits2026-06-01: 20 commits2026-06-02: 5 commits2026-06-03: 11 commits2026-06-04: 4 commits2026-06-05: 12 commits2026-06-06: 3 commits2026-06-07: 1 commit2026-06-08: 8 commits2026-06-09: 20 commits2026-06-10: 28 commits2026-06-11: 3 commits2026-06-12: 8 commits2026-06-13: 6 commits2026-06-14: 5 commits2026-06-15: 10 commits2026-06-16: 15 commits2026-06-17: 16 commits2026-06-18: 11 commits2026-06-19: 1 commit2026-06-20: 0 commits2026-06-21: 2 commits2026-06-22: 16 commits2026-06-23: 4 commits2026-06-24: 14 commits2026-06-25: 16 commits2026-06-26: 8 commits2026-06-27: 2 commits2026-06-28: 2 commits2026-06-29: 7 commits2026-06-30: 9 commits2026-07-01: 4 commits2026-07-02: 5 commits2026-07-03: 4 commits2026-07-04: 7 commits2026-07-05: 4 commits2026-07-06: 14 commits2026-07-07: 23 commits2026-07-08: 13 commits2026-07-09: 11 commits2026-07-10: 6 commits2026-07-11: 3 commits2026-07-12: 1 commit2026-07-13: 5 commits2026-07-14: 7 commits2026-07-15: 9 commits2026-07-16: 5 commits2026-07-17: 0 commits2026-07-18: 4 commits2026-07-19: 2 commits2026-07-20: 8 commits2026-07-21: 3 commits2026-07-22: 5 commits2026-07-23: 3 commits2026-07-24: 2 commits2026-07-25: 0 commits2026-07-26: 4 commits2026-07-27: 3 commits2026-07-28: 3 commits2026-07-29: 0 commits2026-07-30: 0 commits2026-07-31: 0 commits2026-08-01: 0 commits
1,011 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Widely adopted

    30,539 stars

  • Very active

    1,011 commits in 52 weeks

  • Community-driven

    ~143 contributors

  • Well documented

    High community health score

  • Continuous integration

    Automated checks passing

  • Repeat trending

    7 trending appearances

What openclaude does

OpenClaude is a versatile CLI tool that brings coding-agent capabilities directly to the terminal, allowing developers to interact with various LLM backends through a unified workflow. It supports OpenAI-compatible APIs, Gemini, GitHub Models, Codex, Ollama, and specialized partner gateways. The CLI integrates essential development tools, including bash execution, file manipulation, grep, globbing, and web searching, alongside Model Context Protocol (MCP) support. OpenClaude emphasizes a seamless developer experience with background session management, conversation branching, and an included VS Code extension.

Software engineers and developers who want a powerful, terminal-native AI coding assistant that supports a wide range of LLM providers and complex automation tools.

  • Unified Provider Interface: Connects to diverse LLM backends (cloud APIs and local models) through a single CLI without requiring per-provider tooling.
  • Comprehensive Toolset: Equips the agent with bash execution, file system operations, and web tools to autonomously handle coding tasks.
  • Background Sessions: Supports running long, non-interactive prompts detached from the current terminal, with robust log management.
  • Conversation Branching: Allows users to resume and fork existing conversations into new session IDs to explore alternative solutions.
  • Guided Setup: Features interactive provider configuration and saved profiles to streamline authentication for various APIs and services.

Where teams use it

Local Code Refactoring

Developers instruct the agent to refactor a complex module, leveraging local models via Ollama to ensure data privacy.

Background Task Execution

Engineers dispatch a time-consuming test-fixing task to run in the background while continuing other work in the foreground terminal.

Multi-Provider Prototyping

Users seamlessly switch between different cloud models like GPT-4o and Gemini to compare output quality for a specific coding problem.

IDE Integration

Programmers use the bundled VS Code extension to launch and interact with the agent directly within their development environment.

Getting started: npm install -g @gitlawb/openclaude@latest

README

main branch
OpenClaude — Open terminal for any LLM

Gitlawb%2Fopenclaude | Trendshift Gitlawb%2Fopenclaude | Trendshift Gitlawb%2Fopenclaude | Trendshift

OpenClaude is an open-source coding-agent CLI for cloud and local model providers.

Use OpenAI-compatible APIs, Gemini, GitHub Models, Codex OAuth, Codex, Ollama, Atomic Chat, and other supported backends while keeping one terminal-first workflow: prompts, tools, agents, MCP, slash commands, and streaming output.

PR Checks Release Discussions Discord X Security Policy License

OpenClaude is also mirrored to GitLawb: gitlawb.com/node/repos/z6MkqDnb/openclaude

Quick Start | Setup Guides | Providers | Development | VS Code Extension | Partners | Community

Partners

GitLawb logo Bankr.bot logo Atomic Chat logo Xiaomi MiMo logo Atlas Cloud logo
GitLawb Bankr.bot Atomic Chat Xiaomi MiMo Atlas Cloud
AI/ML API logo Novita AI logo
AI/ML API Novita AI

Why OpenClaude

  • One CLI across cloud APIs and local model backends — no per-provider tooling
  • Guided provider setup and saved profiles with /provider
  • Coding-agent workflows in one place: bash, file tools, grep, glob, agents, tasks, MCP, and web tools
  • A bundled VS Code extension for launch integration and theme support
  • A pixel-art hero companion who fires an arrow every time you press Enter (really — see Meet your buddy)

Quick Start

Install

OpenClaude requires Node.js >=22.0.0 for npm installs and runtime. Bun is only needed for source builds and local development.

npm install -g @gitlawb/openclaude@latest

If you're on Arch Linux, you can install OpenClaude from the community-maintained AUR package:

paru -S openclaude

If the install later reports ripgrep not found, install ripgrep system-wide and confirm rg --version works in the same terminal before starting OpenClaude.

Verify / troubleshoot installed version:

openclaude --version
npm view @gitlawb/openclaude dist-tags
npm install -g @gitlawb/openclaude@latest

Start

openclaude

Inside OpenClaude:

  • run /provider for guided provider setup and saved profiles
  • run /onboard-github for GitHub Models onboarding

Note: OpenClaude does not automatically load project .env files. We recommend using the /provider command for setup, which saves provider profiles and credentials in .openclaude-profile.json. If you prefer environment variables, export them explicitly or run openclaude --provider-env-file .env for provider/setup variables. Export runtime/debug knobs from your shell or launcher.

Resume or fork a conversation

Resume an existing conversation by session ID, or continue the most recent conversation in the current directory:

openclaude --resume <session-id>
openclaude --continue

Add --fork-session to branch the conversation history into a new session ID instead of reusing the original transcript:

openclaude --resume <session-id> --fork-session
openclaude --continue --fork-session

Forking is conversation branching only. It does not create filesystem isolation, copy your working tree, or create a git worktree branch.

Background sessions

Run long non-interactive prompts detached from the current terminal:

openclaude --bg "fix failing tests"
openclaude --bg --name auth-refactor "refactor auth middleware"
openclaude ps
openclaude logs auth-refactor
openclaude logs auth-refactor -f
openclaude kill auth-refactor

Background sessions are local child processes. OpenClaude does not start a daemon or network service, and permission/provider/model/settings flags are passed to the child process the same way they are for a foreground --print run. Session metadata and logs are stored under the resolved OpenClaude config directory, usually ~/.openclaude/bg-sessions/; OPENCLAUDE_CONFIG_DIR can point OpenClaude somewhere else. CLAUDE_CONFIG_DIR is ignored for OpenClaude background-session storage. Session names can be reused after older sessions reach a terminal state; use the session ID to inspect older logs with the same name.

openclaude attach <id-or-name> currently reports the matching session and points to openclaude logs <id> -f; full terminal reattach is not implemented for local background sessions yet.

OpenClaude config cutover

OpenClaude stores its own config under ~/.openclaude and ~/.openclaude.json by default. It does not read ~/.claude, project .claude/ directories, or CLAUDE_CONFIG_DIR; new users can start with an empty OpenClaude config and do not need Claude Code installed.

If you previously used OpenClaude with .claude paths, migrate intentionally: copy only the settings, commands, agents, skills, scheduled tasks, or other files you personally created for OpenClaude into the matching .openclaude location. Do not blanket-copy .claude, and do not copy Claude Code credentials or auth files. For provider authentication, prefer running OpenClaude's provider setup again or exporting provider-specific environment variables.

Fastest OpenAI setup

macOS / Linux:

export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_API_KEY=sk-your-key-here
export OPENAI_MODEL=gpt-4o

openclaude

Windows PowerShell:

$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_API_KEY="sk-your-key-here"
$env:OPENAI_MODEL="gpt-4o"

openclaude

Fastest local Ollama setup

macOS / Linux:

export CLAUDE_CODE_USE_OPENAI=1
export OPENAI_BASE_URL=http://localhost:11434/v1
export OPENAI_MODEL=qwen2.5-coder:7b

openclaude

Windows PowerShell:

$env:CLAUDE_CODE_USE_OPENAI="1"
$env:OPENAI_BASE_URL="http://localhost:11434/v1"
$env:OPENAI_MODEL="qwen2.5-coder:7b"

openclaude

For Ollama, OpenClaude uses Ollama's native chat API and requests a 32768-token context window on each chat request so same-session history is not silently truncated by Ollama's OpenAI-compatible shim. Set OPENCLAUDE_OLLAMA_NUM_CTX or OLLAMA_CONTEXT_LENGTH if you need a different request-level context size. See Advanced Setup for verification with ollama ps.

Setup Guides

Beginner-friendly guides:

Advanced and source-build guides:

Supported Providers

Provider Setup Path Notes
OpenAI-compatible /provider or env vars Works with OpenAI, OpenRouter, DeepSeek, Groq, Mistral, LM Studio, and other compatible /v1 servers
Z.AI GLM Coding Plan /provider or OpenAI-compatible env vars Uses OPENAI_API_KEY at https://api.z.ai/api/coding/paas/v4 and defaults to glm-5.2
AI/ML API /provider or AIMLAPI_API_KEY (setup guide) Uses https://api.aimlapi.com/v1, auto-detects the OpenAI-compatible route from AIMLAPI_API_KEY, sends OpenClaude attribution headers, and discovers chat-capable models from the public /models catalog
Hicap /provider or OpenAI-compatible env vars Uses api-key auth, discovers models from unauthenticated /models, and supports Responses mode for gpt- models
Fireworks AI /provider or env vars First-class provider with 276 curated models (DeepSeek, Qwen, Llama, Gemma, and more); uses FIREWORKS_API_KEY
LongCat /provider or env vars Meituan LongCat OpenAI-compatible API at https://api.longcat.chat/openai/v1; uses LONGCAT_API_KEY and defaults to LongCat-2.0
ClinePass /provider or env vars AI model gateway with usage limits (5hr, weekly, monthly); uses CLINE_API_KEY at https://api.cline.bot/api/v1
Gemini /provider or env vars Supports API key only
GitHub Models /onboard-github Interactive onboarding with saved credentials
Codex OAuth /provider Opens ChatGPT sign-in in your browser and stores Codex credentials securely
Codex /provider Uses existing Codex CLI auth, OpenClaude secure storage, or env credentials
Gitlawb Opengateway Startup default, /provider, or env vars Smart gateway at https://opengateway.gitlawb.com/v1; requires an API key from https://gitlawb.com/opengateway/keys and routes Xiaomi MiMo and GMI Cloud partner models by OPENAI_MODEL
OpenCode Zen /provider or env vars Pay-as-you-go AI gateway (48 models); uses OPENCODE_API_KEY via https://opencode.ai/zen/v1; shared key with OpenCode Go
OpenCode Go /provider or env vars $10/mo subscription for open models (13 models); uses OPENCODE_API_KEY via https://opencode.ai/zen/go/v1; shared key with OpenCode Zen
Xiaomi MiMo /provider or env vars OpenAI-compatible API at https://mimo.mi.com; uses MIMO_API_KEY and defaults to mimo-v2.5-pro
NEAR AI /provider or env vars Unified gateway (Claude, GPT, Gemini + TEE open models); uses NEARAI_API_KEY at https://cloud-api.near.ai/v1
Cloudflare Workers AI /provider or env vars OpenAI-compatible API at https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/ai/v1; uses CLOUDFLARE_API_TOKEN. Replace <ACCOUNT_ID> with your Cloudflare account id.
Ollama /provider or env vars Local inference with no API key
Atomic Chat /provider, env vars, or bun run dev:atomic-chat Local Model Provider; auto-detects loaded models
Bedrock / Vertex / Foundry env vars Anthropic-family cloud routes; Vertex is for Claude on Vertex AI, not arbitrary Model Garden models

What Works

  • Tool-driven coding workflows: Bash, file read/write/edit, grep, glob, agents, tasks, MCP, and slash commands
  • Streaming responses: Real-time token output and tool progress
  • Tool calling: Multi-step tool loops with model calls, tool execution, and follow-up responses
  • Images: URL and base64 image inputs for providers that support vision
  • Provider profiles: Guided setup plus saved user-level provider profile support
  • Local and remote model backends: Cloud APIs, local servers, and Apple Silicon local inference
  • Codebase intelligence (repo map): Structural map of the repository ranked by PageRank importance, auto-injected into context when the REPO_MAP flag is enabled or the REPO_MAP environment variable is set. Inspect with /repomap (2048-token default). See docs/repo-map.md for details.
  • A companion with signature moves: A truecolor pixel-art hero who lives beside your prompt and reacts when you work. See below.

Meet Your Buddy

Run /buddy to hatch a companion — a truecolor pixel-art hero who stands beside your prompt, idles, blinks, and fires their signature move every time you submit a message:

/buddy                  hatch (first run) or pet your companion
/buddy set robinhood    the green archer — arrow shot on every Enter
/buddy set kaio         gold-haired warrior — charges a full-width energy wave
/buddy set strawhat     stretchy punch that snaps back
/buddy set merlin       twinkling sparkle stream
/buddy set kage         spinning shuriken
/buddy set ember        dragon fire with a real heat gradient
/buddy set corsair      cannonball with smoke trail
/buddy name Robin       rename your companion
/buddy set random       back to your rolled hero

Companions respect prefersReducedMotion, degrade gracefully to line art in low-color terminals, and can be silenced with /buddy mute. Requires a terminal at least 100 columns wide for the full sprite.

Provider Notes

OpenClaude supports multiple providers, but behavior is not identical across all of them.

  • Anthropic-specific features may not exist on other providers
  • Tool quality depends heavily on the selected model
  • Smaller local models can struggle with long multi-step tool flows
  • Some providers impose lower output caps than the CLI defaults, and OpenClaude adapts where possible
  • AI/ML API uses the OpenAI-compatible route, defaults to gpt-4o, and only surfaces chat-capable models from its public catalog
  • Gitlawb Opengateway is the fresh-install startup default and requires an API key from https://gitlawb.com/opengateway/keys. It uses one OpenAI-compatible base URL; switch between mimo-* and google/gemini-3.1-flash-lite-preview with /model, and do not pin the base URL to /v1/xiaomi-mimo.
  • Z.AI GLM Coding Plan uses https://api.z.ai/api/coding/paas/v4 with glm-5.2 by default. Use glm-5.2?reasoning=high for enhanced reasoning, glm-5.2?reasoning=xhigh to request Z.AI reasoning_effort=max, or glm-5.2?thinking=disabled for faster direct answers.
  • Xiaomi MiMo uses api-key header auth on the direct OpenAI-compatible route and currently does not support /usage reporting in OpenClaude
  • GitHub Copilot serializes sub-agent execution by default to reduce Premium Request consumption — see Agent Routing and Step Limits for tuning

For best results, use models with strong tool/function calling support.

Agents

Route different agents to different models (cost optimization, splitting work by model strength), cap sub-agent tool steps with maxSteps, and tune GitHub Copilot sub-agent behavior. All settings-driven:

  • per-agent provider/model overrides via agentModels + agentRouting in ~/.openclaude.json
  • model-only routes that reuse your current provider's credentials
  • built-in agents (Explore, Plan, verification) routable by type name

See Agent Routing and Step Limits for the full guide.

Web Search and Fetch

By default, WebSearch works on non-Anthropic models using DuckDuckGo. This gives GPT-4o, DeepSeek, Gemini, Ollama, and other OpenAI-compatible providers a free web search path out of the box.

Note: DuckDuckGo fallback works by scraping search results and may be rate-limited, blocked, or subject to DuckDuckGo's Terms of Service. If you want a more reliable supported option, configure Firecrawl.

For Anthropic-native backends and Codex responses, OpenClaude keeps the native provider web search behavior.

WebFetch works, but its basic HTTP plus HTML-to-markdown path can still fail on JavaScript-rendered sites or sites that block plain HTTP requests.

Set a Firecrawl API key if you want Firecrawl-powered search/fetch behavior:

export FIRECRAWL_API_KEY=your-key-here

With Firecrawl enabled:

  • WebSearch can use Firecrawl's search API while DuckDuckGo remains the default free path for non-Claude models
  • WebFetch uses Firecrawl's scrape endpoint instead of raw HTTP, handling JS-rendered pages correctly

Free tier at firecrawl.dev includes 500 credits. The key is optional.

Headless gRPC Server

OpenClaude can run as a headless gRPC service with bidirectional streaming — integrate its agentic capabilities into other applications, CI/CD pipelines, or custom UIs. Start it with npm run dev:grpc; a test CLI client ships with the repo. See Headless gRPC Server for configuration and client generation from src/proto/openclaude.proto.

Development

Use Node.js >=22.0.0 and Bun 1.3.13 or newer for source builds.

bun install
bun run build
node dist/cli.mjs

Day-to-day commands:

  • bun run dev — build and launch from source
  • bun test — full unit suite (Bun's built-in runner)
  • bun test path/to/file.test.ts — focused runs for the areas you touch
  • bun run test:coverage — coverage to coverage/lcov.info plus a visual report at coverage/index.html (bun run test:coverage:ui rebuilds just the UI)
  • bun run smoke — smoke checks
  • bun run doctor:runtime, bun run verify:privacy, bun run security:pr-scan -- --base origin/main

Focused suites: bun run test:provider, bun run test:provider-recommendation.

Recommended validation before opening a PR:

  • bun run build
  • bun run smoke
  • bun run test:coverage when your change affects shared runtime or provider logic
  • focused bun test ... runs for the files and flows you changed

Repository Structure

  • src/ - core CLI/runtime
  • scripts/ - build, verification, and maintenance scripts
  • docs/ - setup, contributor, and project documentation
  • vscode-extension/openclaude-vscode/ - VS Code extension
  • .github/ - repo automation, templates, and CI configuration
  • bin/ - CLI launcher entrypoints

VS Code Extension

The repo includes a VS Code extension in vscode-extension/openclaude-vscode for OpenClaude launch integration, provider-aware Control Center, in-editor chat, theme support, and optional Microsoft Foundry / Azure OpenAI configuration (endpoint, API version, deployment, API key via Secret Storage) injected into launched terminals. See that folder's README.

Security

If you believe you found a security issue, see SECURITY.md.

Community

Contributing

Contributions are welcome. For larger changes, open an issue first so the scope is clear before implementation. See Development for the build, test, and pre-PR validation commands.

Disclaimer

OpenClaude is an independent community project and is not affiliated with, endorsed by, or sponsored by Anthropic.

OpenClaude originated from the Claude Code codebase and has since been substantially modified to support multiple providers and open use. "Claude" and "Claude Code" are trademarks of Anthropic PBC. See LICENSE for details.

License

MIT for OpenClaude contributors' modifications; the derived Claude Code remains Anthropic's. See more.

View on GitHub

Recent activity

commits and pull requests

Releases and announcements

37 total
  1. v0.26.0v0.26.0Jul 27, 2026

    ## [0.26.0](https://github.com/Gitlawb/openclaude/compare/v0.25.0...v0.26.0) (2026-07-27) ### Features * **aimlapi:** add passwordless client methods and response-shape guards (2/N) ([#2020](https://github.com/Gitlawb/openclaude/issues/2020)) ([022f057](https://github.com/Gitlawb/openclaude/commit/022f057a3c13e42d710134c100961e50425e31a2)) ### Bug Fixes * apply ultrathink effort to provider requests ([#2046](https://github.com/Gitlawb/openclaude/issues/2046)) ([53d3cf7](https://github.com/Gitlawb/openclaude/commit/53d3cf7f1dde95603a72a1eb1d678560d3a4a9d3)) * **bridge:** truncate derived session titles on grapheme boundaries ([#1982](https://github.com/Gitlawb/openclaude/issues/1982)) ([a6b3d7a](https://github.com/Gitlawb/openclaude/commit/a6b3d7a209243c267889aa0e9e3d44700364fb54)) * **cache-probe:** omit unsupported cache request fields ([#2044](https://github.com/Gitlawb/openclaude/issues/2044)) ([a652013](https://github.com/Gitlawb/openclaude/commit/a65201396a47f17e41ef2d49d4db9a68e88b4a10)) * **commands:** insert slash-command argument text literally, not as regex refs ([#1966](https://github.com/Gitlawb/openclaude/issues/1966)) ([62d15d4](https://github.com/Gitlawb/opencl

  2. v0.25.0v0.25.0Jul 20, 2026

    ## [0.25.0](https://github.com/Gitlawb/openclaude/compare/v0.24.0...v0.25.0) (2026-07-20) ### Features * add LongCat as first-class OpenAI-compatible provider ([#1986](https://github.com/Gitlawb/openclaude/issues/1986)) ([8f81e48](https://github.com/Gitlawb/openclaude/commit/8f81e48f0e9fe4bc6efdcc00c47be04020b0d798)) * **aimlapi:** provider foundation (1/5) — config, catalog, ambient-key gate ([#1995](https://github.com/Gitlawb/openclaude/issues/1995)) ([7674d4d](https://github.com/Gitlawb/openclaude/commit/7674d4d73ef69265da764a92194085ffc4202d95)) * **buddy:** hero pixel-art companions with signature Enter animations ([#1972](https://github.com/Gitlawb/openclaude/issues/1972)) ([d683e85](https://github.com/Gitlawb/openclaude/commit/d683e85395c5477a40b273847050ac4fdfbab9ca)) * **codex:** add GPT-5.6 family models and fix saved-model rehydration ([#2014](https://github.com/Gitlawb/openclaude/issues/2014)) ([cb460e5](https://github.com/Gitlawb/openclaude/commit/cb460e516b3fdc95aef17f38fd395bf706db3984)) * **install:** enforce and guard the zero-warning npm install contract ([#2019](https://github.com/Gitlawb/openclaude/issues/2019)) ([ca7a7e0](https://github.com/Gitlawb/openclaud

  3. v0.24.0v0.24.0Jul 14, 2026

    ## [0.24.0](https://github.com/Gitlawb/openclaude/compare/v0.23.0...v0.24.0) (2026-07-14) ### Features * add ultrathink keyword detection and ultracode effort level ([#1551](https://github.com/Gitlawb/openclaude/issues/1551)) ([#1630](https://github.com/Gitlawb/openclaude/issues/1630)) ([fb11372](https://github.com/Gitlawb/openclaude/commit/fb1137275a23c821d6f4bf55cbb88c08c65211fa)) * **aimlapi:** add guided top-up and key provisioning ([#1886](https://github.com/Gitlawb/openclaude/issues/1886)) ([9a53290](https://github.com/Gitlawb/openclaude/commit/9a532905886fc2fe1684a283d435bca0f361bbe2)) * **codex-oauth:** manual callback URL paste for SSH / remote sessions ([#1288](https://github.com/Gitlawb/openclaude/issues/1288)) ([#1414](https://github.com/Gitlawb/openclaude/issues/1414)) ([c3db07f](https://github.com/Gitlawb/openclaude/commit/c3db07f1f255ed42afe3fc6c74a338ff235f28fd)) * **doctor:** add WebSearch backend diagnostics ([#1884](https://github.com/Gitlawb/openclaude/issues/1884)) ([e204d5a](https://github.com/Gitlawb/openclaude/commit/e204d5ad363d8bdafd8ed84460f26d49b1a72d9e)) * **model-picker:** surface inactive provider profiles in /model ([#1119](https://github.com/Gitl

  4. v0.23.0v0.23.0Jul 7, 2026

    ## [0.23.0](https://github.com/Gitlawb/openclaude/compare/v0.22.0...v0.23.0) (2026-07-07) ### Features * add repo map codebase intelligence ([#1867](https://github.com/Gitlawb/openclaude/issues/1867)) ([fb40d49](https://github.com/Gitlawb/openclaude/commit/fb40d49e681c4b30e9a6f5eacbec269a35c01aff)) * **provider:** add AI/ML API provider ([#863](https://github.com/Gitlawb/openclaude/issues/863)) ([8369f20](https://github.com/Gitlawb/openclaude/commit/8369f2018ecda0f96f6cab10b24268b8f44dce73)) * **skills:** add local skill CLI support ([#1162](https://github.com/Gitlawb/openclaude/issues/1162)) ([214ee3d](https://github.com/Gitlawb/openclaude/commit/214ee3dd2e407947531509b55348a81d287ebd66)) * **skills:** add PDF generation skill with native TypeScript implementation ([#1718](https://github.com/Gitlawb/openclaude/issues/1718)) ([e9a3c30](https://github.com/Gitlawb/openclaude/commit/e9a3c308fc576ce690c37b75267f62c0ca56cf2c)) * smart auto-routing (per-turn simple-vs-strong model selection) ([#1734](https://github.com/Gitlawb/openclaude/issues/1734)) ([e2bbb02](https://github.com/Gitlawb/openclaude/commit/e2bbb0295a16cdeb6d24c9d6ff1ead727caba036)) ### Bug Fixes * await main() in c

  5. v0.22.0v0.22.0Jul 6, 2026

    ## [0.22.0](https://github.com/Gitlawb/openclaude/compare/v0.21.0...v0.22.0) (2026-07-06) ### Features * **lsp:** expose captured diagnostics ([#1813](https://github.com/Gitlawb/openclaude/issues/1813)) ([5b1db55](https://github.com/Gitlawb/openclaude/commit/5b1db554fde3fa9651ab38b53f773231d6df8b7e)) * **report:** render task reports as markdown ([#1826](https://github.com/Gitlawb/openclaude/issues/1826)) ([8182a46](https://github.com/Gitlawb/openclaude/commit/8182a46441793a33aebb5837bd759e9dc0a38eff)) * **resume:** group branched sessions in picker ([#1824](https://github.com/Gitlawb/openclaude/issues/1824)) ([166d0ce](https://github.com/Gitlawb/openclaude/commit/166d0ce7843f33d355caddf9c49473d9d1133446)) * **ux:** honest feedback pass — visible retries, statusline truncation marker, hint grace period ([#1862](https://github.com/Gitlawb/openclaude/issues/1862)) ([77c0a0d](https://github.com/Gitlawb/openclaude/commit/77c0a0d7806e2698ca3716bbfd6373f39b161f10)) ### Bug Fixes * **api:** quiet expected side-task aborts ([#1868](https://github.com/Gitlawb/openclaude/issues/1868)) ([62fa7d4](https://github.com/Gitlawb/openclaude/commit/62fa7d48c158f40c085fd9ee1a78e315b868c44a)) * *

Code frequency

additions and deletions
+550.3K-550.3KWeek of 2026-03-29: +550,313 linesWeek of 2026-03-29: -9,507 linesWeek of 2026-04-05: +17,922 linesWeek of 2026-04-05: -3,476 linesWeek of 2026-04-12: +16,445 linesWeek of 2026-04-12: -1,998 linesWeek of 2026-04-19: +20,106 linesWeek of 2026-04-19: -1,504 linesWeek of 2026-04-26: +34,390 linesWeek of 2026-04-26: -3,542 linesWeek of 2026-05-03: +14,610 linesWeek of 2026-05-03: -1,207 linesWeek of 2026-05-10: +12,006 linesWeek of 2026-05-10: -10,762 linesWeek of 2026-05-17: +12,668 linesWeek of 2026-05-17: -389 linesWeek of 2026-05-24: +16,740 linesWeek of 2026-05-24: -4,333 linesWeek of 2026-05-31: +14,551 linesWeek of 2026-05-31: -2,257 linesWeek of 2026-06-07: +37,065 linesWeek of 2026-06-07: -5,450 linesWeek of 2026-06-14: +31,688 linesWeek of 2026-06-14: -4,949 linesWeek of 2026-06-21: +29,430 linesWeek of 2026-06-21: -5,552 linesWeek of 2026-06-28: +22,698 linesWeek of 2026-06-28: -2,706 linesWeek of 2026-07-05: +46,937 linesWeek of 2026-07-05: -7,399 linesWeek of 2026-07-12: +20,056 linesWeek of 2026-07-12: -2,398 linesWeek of 2026-07-19: +14,683 linesWeek of 2026-07-19: -2,784 linesWeek of 2026-07-26: +3,518 linesWeek of 2026-07-26: -1,567 linesMar 29, 2026Jul 26, 2026
+915.8K lines added, -71.8K removed over the last year.

Commits per week

last 52 weeks
2160Week of 2025-08-03: 0 commitsWeek of 2025-08-10: 0 commitsWeek of 2025-08-17: 0 commitsWeek of 2025-08-24: 0 commitsWeek of 2025-08-31: 0 commitsWeek of 2025-09-07: 0 commitsWeek of 2025-09-14: 0 commitsWeek of 2025-09-21: 0 commitsWeek of 2025-09-28: 0 commitsWeek of 2025-10-05: 0 commitsWeek of 2025-10-12: 0 commitsWeek of 2025-10-19: 0 commitsWeek of 2025-10-26: 0 commitsWeek of 2025-11-02: 0 commitsWeek of 2025-11-09: 0 commitsWeek of 2025-11-16: 0 commitsWeek of 2025-11-23: 0 commitsWeek of 2025-11-30: 0 commitsWeek of 2025-12-07: 0 commitsWeek of 2025-12-14: 0 commitsWeek of 2025-12-21: 0 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 0 commitsWeek of 2026-01-11: 0 commitsWeek of 2026-01-18: 0 commitsWeek of 2026-01-25: 0 commitsWeek of 2026-02-01: 0 commitsWeek of 2026-02-08: 0 commitsWeek of 2026-02-15: 0 commitsWeek of 2026-02-22: 0 commitsWeek of 2026-03-01: 0 commitsWeek of 2026-03-08: 0 commitsWeek of 2026-03-15: 0 commitsWeek of 2026-03-22: 0 commitsWeek of 2026-03-29: 216 commitsWeek of 2026-04-05: 59 commitsWeek of 2026-04-12: 63 commitsWeek of 2026-04-19: 59 commitsWeek of 2026-04-26: 38 commitsWeek of 2026-05-03: 39 commitsWeek of 2026-05-10: 43 commitsWeek of 2026-05-17: 31 commitsWeek of 2026-05-24: 27 commitsWeek of 2026-05-31: 66 commitsWeek of 2026-06-07: 74 commitsWeek of 2026-06-14: 58 commitsWeek of 2026-06-21: 62 commitsWeek of 2026-06-28: 38 commitsWeek of 2026-07-05: 74 commitsWeek of 2026-07-12: 31 commitsWeek of 2026-07-19: 23 commitsWeek of 2026-07-26: 10 commitsAug 3, 2025Jul 26, 2026
1K commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 2 commitsSun 1:00 — 2 commitsSun 2:00 — 2 commitsSun 3:00 — 4 commitsSun 4:00 — 4 commitsSun 5:00 — 5 commitsSun 6:00 — 1 commitsSun 7:00 — 7 commitsSun 8:00 — 1 commitsSun 9:00 — 2 commitsSun 10:00 — 5 commitsSun 11:00 — 3 commitsSun 12:00 — 2 commitsSun 13:00 — 0 commitsSun 14:00 — 0 commitsSun 15:00 — 4 commitsSun 16:00 — 3 commitsSun 17:00 — 6 commitsSun 18:00 — 7 commitsSun 19:00 — 4 commitsSun 20:00 — 1 commitsSun 21:00 — 5 commitsSun 22:00 — 5 commitsSun 23:00 — 5 commitsMon 0:00 — 9 commitsMon 1:00 — 8 commitsMon 2:00 — 14 commitsMon 3:00 — 10 commitsMon 4:00 — 7 commitsMon 5:00 — 7 commitsMon 6:00 — 9 commitsMon 7:00 — 7 commitsMon 8:00 — 6 commitsMon 9:00 — 6 commitsMon 10:00 — 2 commitsMon 11:00 — 8 commitsMon 12:00 — 12 commitsMon 13:00 — 6 commitsMon 14:00 — 7 commitsMon 15:00 — 13 commitsMon 16:00 — 14 commitsMon 17:00 — 6 commitsMon 18:00 — 3 commitsMon 19:00 — 4 commitsMon 20:00 — 1 commitsMon 21:00 — 5 commitsMon 22:00 — 7 commitsMon 23:00 — 5 commitsTue 0:00 — 7 commitsTue 1:00 — 4 commitsTue 2:00 — 5 commitsTue 3:00 — 14 commitsTue 4:00 — 1 commitsTue 5:00 — 8 commitsTue 6:00 — 5 commitsTue 7:00 — 1 commitsTue 8:00 — 3 commitsTue 9:00 — 4 commitsTue 10:00 — 3 commitsTue 11:00 — 4 commitsTue 12:00 — 6 commitsTue 13:00 — 8 commitsTue 14:00 — 4 commitsTue 15:00 — 3 commitsTue 16:00 — 13 commitsTue 17:00 — 7 commitsTue 18:00 — 5 commitsTue 19:00 — 16 commitsTue 20:00 — 4 commitsTue 21:00 — 5 commitsTue 22:00 — 9 commitsTue 23:00 — 7 commitsWed 0:00 — 5 commitsWed 1:00 — 1 commitsWed 2:00 — 8 commitsWed 3:00 — 17 commitsWed 4:00 — 11 commitsWed 5:00 — 5 commitsWed 6:00 — 6 commitsWed 7:00 — 7 commitsWed 8:00 — 7 commitsWed 9:00 — 12 commitsWed 10:00 — 7 commitsWed 11:00 — 7 commitsWed 12:00 — 9 commitsWed 13:00 — 12 commitsWed 14:00 — 7 commitsWed 15:00 — 10 commitsWed 16:00 — 6 commitsWed 17:00 — 17 commitsWed 18:00 — 17 commitsWed 19:00 — 12 commitsWed 20:00 — 9 commitsWed 21:00 — 11 commitsWed 22:00 — 10 commitsWed 23:00 — 9 commitsThu 0:00 — 7 commitsThu 1:00 — 4 commitsThu 2:00 — 8 commitsThu 3:00 — 8 commitsThu 4:00 — 6 commitsThu 5:00 — 4 commitsThu 6:00 — 4 commitsThu 7:00 — 4 commitsThu 8:00 — 7 commitsThu 9:00 — 13 commitsThu 10:00 — 12 commitsThu 11:00 — 10 commitsThu 12:00 — 13 commitsThu 13:00 — 6 commitsThu 14:00 — 10 commitsThu 15:00 — 9 commitsThu 16:00 — 6 commitsThu 17:00 — 10 commitsThu 18:00 — 10 commitsThu 19:00 — 3 commitsThu 20:00 — 4 commitsThu 21:00 — 8 commitsThu 22:00 — 4 commitsThu 23:00 — 3 commitsFri 0:00 — 0 commitsFri 1:00 — 7 commitsFri 2:00 — 1 commitsFri 3:00 — 3 commitsFri 4:00 — 2 commitsFri 5:00 — 4 commitsFri 6:00 — 5 commitsFri 7:00 — 4 commitsFri 8:00 — 5 commitsFri 9:00 — 12 commitsFri 10:00 — 6 commitsFri 11:00 — 5 commitsFri 12:00 — 1 commitsFri 13:00 — 2 commitsFri 14:00 — 3 commitsFri 15:00 — 3 commitsFri 16:00 — 4 commitsFri 17:00 — 4 commitsFri 18:00 — 7 commitsFri 19:00 — 7 commitsFri 20:00 — 7 commitsFri 21:00 — 7 commitsFri 22:00 — 1 commitsFri 23:00 — 6 commitsSat 0:00 — 6 commitsSat 1:00 — 4 commitsSat 2:00 — 2 commitsSat 3:00 — 3 commitsSat 4:00 — 2 commitsSat 5:00 — 4 commitsSat 6:00 — 5 commitsSat 7:00 — 4 commitsSat 8:00 — 4 commitsSat 9:00 — 2 commitsSat 10:00 — 5 commitsSat 11:00 — 13 commitsSat 12:00 — 1 commitsSat 13:00 — 1 commitsSat 14:00 — 2 commitsSat 15:00 — 7 commitsSat 16:00 — 3 commitsSat 17:00 — 5 commitsSat 18:00 — 10 commitsSat 19:00 — 3 commitsSat 20:00 — 7 commitsSat 21:00 — 6 commitsSat 22:00 — 6 commitsSat 23:00 — 7 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.
DateListRankStars gained
Apr 7, 2026daily#20+177
Apr 6, 2026daily#8+333
Apr 5, 2026daily#6+539
Apr 4, 2026daily#3+798
Apr 3, 2026daily#2+872
Apr 2, 2026daily#3+717
Apr 1, 2026daily#11+366
  • freeCodeCamp/freeCodeCamp

    freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

    453.6K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    385.5K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • obra/superpowers

    An agentic skills framework & software development methodology that works.

    268.6K stars · Shell