An open-source AI agent from Google that brings Gemini into your terminal to query, edit, and automate code.
Twigpine/openclaude
An open-source coding-agent CLI that runs in the terminal and works with cloud APIs and local model backends like Ollama.
Open-source alternative to:Claude Code
- Stars
- 34,036
- Forks
- 9,265
- Open issues
- 72
- Last commit
- yesterday
What is it?
OpenClaude is a terminal-first coding agent that lets you use different LLM providers with one workflow. It supports OpenAI-compatible APIs, Gemini, GitHub Models, Codex, Ollama, and a long list of gateways, so the same prompts, tools, agents, and slash commands work regardless of which model answers.
The CLI includes bash execution, file read and edit tools, grep and glob search, agents and tasks, MCP integration, and web search and fetch. Provider setup is handled through the /provider command, which saves profiles locally, and sessions can be resumed, forked, or run in the background.
The project also ships a VS Code extension for launching OpenClaude from the editor, and an optional headless gRPC server for embedding its agent in other applications or CI pipelines. It is distributed on npm as @twigpine/openclaude and requires Node.js 22 or later.
Key features
- 01Connects to OpenAI-compatible APIs, Gemini, GitHub Models, Codex, and local Ollama models
- 02Guided provider setup with saved profiles via the /provider command
- 03Coding tools including bash, file editing, grep, glob, and sub-agents
- 04MCP support and streaming output in the terminal
- 05Session resume, fork, and background runs
- 06Optional headless gRPC server and VS Code extension
Use cases
- Using a local Ollama model for coding tasks without sending code to a cloud service
- Switching between several model providers while keeping one terminal workflow
- Embedding a coding agent into CI pipelines or custom tools through the gRPC server
- Running long coding prompts in the background from the command line
Quick start
- 1
Install the npm package globally
npm install -g @twigpine/openclaude@latest - 2
Start OpenClaude in your terminal
openclaude - 3
Inside OpenClaude, run /provider to set up a model provider
Things to know
- Requires Node.js 22.0.0 or newer for npm installs.
- The package metadata lists the license as NOASSERTION, though the README badge says MIT.
Topics
FAQ
- What is openclaude?
- An open-source coding-agent CLI that runs in the terminal and works with cloud APIs and local model backends like Ollama. OpenClaude is a terminal-first coding agent that lets you use different LLM providers with one workflow. It supports OpenAI-compatible APIs, Gemini, GitHub Models, Codex, Ollama, and a long list of gateways, so the same prompts, tools, agents, and slash commands work regardless of which model answers.
- Is openclaude free to use? What license does it have?
- openclaude is open source under the Other license. Check the license terms before using it in commercial products.
- Is openclaude still maintained?
- Actively maintained. The last commit to openclaude was on Oct 19, 2026.
- What can I use openclaude for?
- Using a local Ollama model for coding tasks without sending code to a cloud service Switching between several model providers while keeping one terminal workflow Embedding a coding agent into CI pipelines or custom tools through the gRPC server Running long coding prompts in the background from the command line
- How do I install openclaude?
- Install the npm package globally: npm install -g @twigpine/openclaude@latest Start OpenClaude in your terminal: openclaude Inside OpenClaude, run /provider to set up a model provider
- Where can I get openclaude?
- The source code and installation instructions are on GitHub: https://github.com/Twigpine/openclaude
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
An open-source AI coding agent that runs in your terminal, with companion desktop, web, editor, and chat interfaces.
An open source AI coding agent that runs in your terminal, with a desktop app and two built-in agents for building and planning changes.
An agentic coding tool from Anthropic that runs in your terminal, reads your codebase, and handles coding tasks and git workflows via natural language.
Open source autonomous coding agent that runs as an IDE extension, terminal CLI, desktop app, or SDK.
A CLI and web tool that packs an entire code repository into one AI-friendly file for feeding to LLMs like Claude or ChatGPT.