opensourcestartups

> /v1/alternatives/claude-code

Open source alternatives to Claude Code[008]

Claude Code is Anthropic's terminal coding agent that reads, edits and runs code in your repository from the command line. Below are 8 self-hostable open source alternatives, ranked by GitHub popularity.

// EDITOR'S TAKE

opencode is the closest like-for-like terminal agent and works with any model provider rather than a single vendor's. Aider is the more predictable choice for careful, git-committed edits to existing repositories, while OpenHands and Cline aim at longer autonomous runs, OpenHands in a sandboxed container and Cline inside your editor.

// FREQUENTLY ASKED

What is the best open source Claude Code alternative?

opencode is the most popular open source Claude Code alternative by GitHub stars (190,000 stars). The other 7 options are ranked above.

Are these Claude Code alternatives self-hostable?

Yes — every project listed here is open source and runs on your own infrastructure. Click into a project to see its license, stars, language, and current health status.

Are they free?

All projects shown are free and open source. Check each project's license page for the terms — most are MIT, Apache 2.0, or AGPL.

// PART OF THESE COLLECTIONS