Best open-source alternatives to Claude Code - CLI
Anthropic's agentic AI coding CLI.
Claude Code is a terminal-based agentic coding assistant from Anthropic that reads, edits, and executes code within a project context. Developers use it for refactoring, debugging, and feature implementation directly from the command line. Self-hosted alternatives appeal to those who want local model inference or a vendor-agnostic coding agent.
6 alternatives listed- MIT Licensefully-open
OpenCode is an open source AI coding agent designed for developers who want to work from the terminal. It provides a TUI-focused workflow for coding, planning, and code exploration, and the README emphasizes that it is provider-agnostic rather than tied to a single model vendor. The project is aimed at people who want an agentic coding assistant with flexibility in deployment and model choice. It includes built-in agents for full-access development work and read-only analysis, plus a general subagent for complex searches. The README also notes a desktop app beta and a client/server architecture, which suggests the tool can be used locally while being controlled remotely from other clients.
Cloud OptionalDockerPackageBinaryInstall:dockerpackage-managerbinarysourceFeatures:
- terminal-based AI coding agent
- desktop application beta
- built-in build agent
- built-in plan agent
- general subagent
+4 more
- fsl-1-1-mitfully-open
Crush is a terminal-based coding assistant for developers who want to use large language models from inside their existing shell workflow. It is designed to connect a user’s codebase, tools, and contextual signals to a chosen LLM provider, and it supports a broad range of model backends including OpenAI-compatible and Anthropic-compatible APIs. The project emphasizes session-based work, letting users maintain multiple contexts per project and switch models during a session without losing context. It also integrates with language servers for richer code awareness and supports Model Context Protocol servers for extending its capabilities. Crush is distributed across many platforms and is available through package managers, native binaries, and source installation, making it suitable for users who want a configurable, cross-platform AI coding tool in the terminal.
Cloud RequiredPackageBinaryInstall:package-managerbinarysourceFeatures:
- multi-model support
- switch LLMs mid-session
- multiple work sessions
- LSP context integration
- MCP server support
+2 more
- Apache License 2.0fully-open
Flue is a sandbox agent framework designed for developers building autonomous AI agents. It presents itself as a way to structure agents around secure, isolated sandboxes, combining an agent harness with either a virtual sandbox or a full container environment. The README frames the project as suitable for anyone already familiar with tools like Claude Code, OpenCode, Codex, or Gemini. The project appears aimed at building several kinds of agents: quick API-driven agents, support agents backed by filesystem-mounted knowledge bases, CI triage agents with controlled command access, and full coding agents that operate in cloned repositories. It uses TypeScript packages, supports webhook triggers, and integrates with external runtime components such as Cloudflare R2, Daytona, and remote MCP servers. The examples emphasize structured outputs, role-based subagents, and sandbox-aware tool access.
Cloud OptionalOfflineInstall:sourceFeatures:
- sandboxed agent execution
- virtual sandbox mode
- container sandbox mode
- CLI for running agents
- webhook-triggered agents
+5 more
- MIT LicenseFreemium
Orca is a desktop application for coordinating AI coding agents across multiple repositories and worktrees. It is aimed at builders who want to run several CLI-based agents in parallel while keeping each agent’s work isolated, visible, and easy to manage from one interface. The project emphasizes workflow orchestration rather than model hosting: users bring their own subscriptions or agent tools, and Orca provides the surrounding workspace for tabs, panes, diffs, commits, SSH connections, GitHub-linked context, and notifications. The README also highlights companion mobile control and several feature showcase pages for workflows such as parallel worktrees, terminal splits, design mode, and remote SSH worktrees.
FreemiumCloud OptionalOfflineDockerInstall:dockerFeatures:
- No login required
- Worktree-native isolation
- Multi-agent terminals
- Built-in source control
- GitHub integration
+5 more
- Apache License 2.0fully-open
Dirac is an open-source AI coding agent designed for precision refactoring and code modification with a strong emphasis on token efficiency. It is intended for developers who want an assistant that can read, edit, and reason about codebases while minimizing context waste and reducing API costs. The project supports both a VS Code extension and a command-line interface. Its workflow centers on curated context, hash-anchored edits, AST-aware structural changes, and multi-file batching so it can carry out complex changes across repositories with fewer model calls. The README also highlights an approval-based workflow, common task commands, and support for multiple AI providers through environment variables or interactive authentication.
Cloud OptionalPackageInstall:package-managersourceFeatures:
- Hash-anchored edits
- AST-native precision
- Multi-file batching
- High-bandwidth context curation
- Autonomous tool use
+5 more
Auth:local - GNU General Public License v3.0fully-open
zerostack is a lightweight coding agent written in Rust for terminal-based development workflows. It is aimed at developers who want an interactive agent that can work with code, run tools, manage sessions, and operate across different model providers without the overhead of larger JavaScript-based alternatives. The project emphasizes speed, small resource usage, and configurable control. It offers a terminal UI, multiple prompt modes for different tasks, session persistence, a permission system with several approval levels, and experimental features for looping on long tasks and working across git worktrees. It also supports multiple AI providers and custom providers through configuration, with optional sandboxing via bubblewrap for safer command execution.
Cloud RequiredPackageBinaryInstall:package-managerbinarysourceFeatures:
- Multi-provider support
- Standard coding-agent tools
- Permission system
- Session save/load/resume
- Terminal UI
+5 more
What to look for in a Claude Code - CLI alternative
Look for support for the Model Context Protocol (MCP) and tool-use capabilities that let the agent read files, run commands, and interact with external APIs. Evaluate context window handling for large codebases and whether the tool supports multiple underlying LLM backends. Local-first operation with no data exfiltration is a key property for teams with proprietary code.
Other SaaS alternatives
- Cursor IDE (17)
- ChatGPT (14)
- Vercel / Heroku / Render (11)
- Notion (11)
- Make (Integromat) (8)
- Miro (7)
- v0 (7)
- Jira (6)
- Postman (5)
- Lovable (5)
- Shopify (5)
- Airtable (4)
- Slack (4)
- Calendly (4)
- Webflow (4)
- AutoCAD (4)
- Zendesk (4)
- Zoom (4)
- Auth0 (4)
- Mailchimp (4)
- Sentry (3)
- Canva (2)
- Twilio (2)
- Buffer (2)
- Typeform (2)
- Midjourney (1)
- Figma (1)
- Loom (1)
- Grammarly (1)
- Datadog (1)
- Authentik (1)
- Listmonk (1)
- 1Password (1)
- Adobe Photoshop (1)
- Squarespace (1)
- WordPress.com (1)
- Google Workspace (1)
- Microsoft 365 (1)
- Dropbox (1)
