Skip to content
THE OPEN ALTERNATIVE
Esc
↑↓navigate↵open⌘Jpreview

9 Best Open Source Codegen Alternatives

A curated collection of the 9 best open source and self-hosted alternatives to Codegen in 2026.

Looking for a free, privacy-friendly, or self-hosted replacement for Codegen in 2026? The top open-source alternative is OpenCode — Open source AI coding agent that works in your terminal, IDE, or desktop app, supporting 75+ LLM providers with no code storage..

Other highly rated open-source Codegen alternatives include OpenHands, Cline and Aider.

★ 201,854

Open source AI coding agent that works in your terminal, IDE, or desktop app, supporting 75+ LLM providers with no code storage.

OpenCode preview

Open source AI coding agent that works in your terminal, IDE, or desktop app, supporting 75+ LLM providers with no code storage.

★ 85,252

AI agent platform that runs autonomous coding agents to plan, write, and ship changes across codebases end-to-end, with support for any model and self-hosted deployment.

OpenHands preview

AI agent platform that runs autonomous coding agents to plan, write, and ship changes across codebases end-to-end, with support for any model and self-hosted deployment.

★ 66,966

AI coding agent that runs inside VS Code and the terminal, supporting multi-file edits, bash execution, and any LLM provider via bring-your-own-key.

Cline preview

AI coding agent that runs inside VS Code and the terminal, supporting multi-file edits, bash execution, and any LLM provider via bring-your-own-key.

★ 48,528

Terminal-based AI coding tool that lets you edit existing codebases or start new projects using LLMs like Claude, GPT, and DeepSeek.

Aider preview

Terminal-based AI coding tool that lets you edit existing codebases or start new projects using LLMs like Claude, GPT, and DeepSeek.

★ 27,041

Open source AI coding agent with 500+ models, bring-your-own-key support, and specialized modes for writing, debugging, and planning code across IDEs and CLI.

Kilo preview

Open source AI coding agent with 500+ models, bring-your-own-key support, and specialized modes for writing, debugging, and planning code across IDEs and CLI.

★ 20,151

State-of-the-art AI agent that uses language models like GPT-4o to autonomously solve GitHub issues, fix bugs, and implement features with configurable YAML setup.

SWE-agent preview

State-of-the-art AI agent that uses language models like GPT-4o to autonomously solve GitHub issues, fix bugs, and implement features with configurable YAML setup.

★ 1,078

An open-source GitHub bot that runs AI agents to review PRs, triage issues, fix CI failures, and ship code using any LLM provider.

Pullfrog preview

An open-source GitHub bot that runs AI agents to review PRs, triage issues, fix CI failures, and ship code using any LLM provider.

★ 210

Source-available, self-hosted AI coding agent that connects to your repo, tools, and chat to investigate issues and open reviewable PRs on your own infrastructure.

Roomote preview

Source-available, self-hosted AI coding agent that connects to your repo, tools, and chat to investigate issues and open reviewable PRs on your own infrastructure.

★ 75

Deploy AI agents that build features, fix bugs, and handle complex workflows overnight. Wake up to tested code and ready-to-review pull requests.

OmoiOS preview

Deploy AI agents that build features, fix bugs, and handle complex workflows overnight. Wake up to tested code and ready-to-review pull requests.

About Codegen

Enterprise AI software engineers that pick up tickets from Linear, Jira, or Slack, write the code, and open pull requests for human review.