14 open-source alternatives ranked by real activity

Open-source GitHub Copilot alternatives

A curated, ranked list of the 14 best open-source alternatives to GitHub Copilot.

The best open-source alternative to GitHub Copilot is OpenCode. If that doesn't suit you, other good options are Codex CLI, OpenHands, Cline and Kilo Code.

Commercial alternatives to GitHub Copilot include Amazon Q Developer, Claude Code, JetBrains AI Assistant and Gemini Code Assist. See all 35.

GitHub Copilot alternatives are mainly AI tools, but some are also CI/CD & DevOps tools and infrastructure & container tools. 12 of them shipped code in the last 30 days, 14 can be self-hosted, and 13 use a permissive licence.

Last updated November 13, 2026 · ranked by GitHub stars, growth and recent commits

OpenCode

An open-source AI coding agent for the terminal, with a beta desktop app and separate agents for building and read-only planning.

GitHub stars
226k
Last commit
yesterday
Latest release
v1.19.5
Licence
MIT
opencode.aiOpenCode homepage screenshot

OpenCode is an open-source coding agent that helps developers write, change and understand code using AI models. It is built in TypeScript, released under the MIT license, and installed through an install script or, in beta, as a desktop application for macOS, Windows and Linux.

It ships with two built-in agents that you switch between with the Tab key. The build agent has full access for everyday development work, while the plan agent is read-only: it denies file edits by default and asks permission before running shell commands, which suits exploring an unfamiliar codebase or planning a change. A general subagent handles complex searches and multistep tasks and can be called with @general in messages.

Configuration is covered in the project documentation, and the install location can be controlled with environment variables. OpenCode suits developers who prefer working from the command line and want an agent whose source code they can read and modify.

Key features

  • Built-in build agent with full development access
  • Read-only plan agent for code exploration
  • Permission prompts before running shell commands
  • General subagent for multistep searches
  • Desktop app in beta for macOS, Windows and Linux
  • Tab key to switch between agents

Pricing: Free and open source under the MIT license.

Read more about OpenCodeWebsiteGitHub#1 GitHub Copilot alternative

Codex CLI

OpenAI's Apache-2.0 coding agent written in Rust that runs locally in your terminal, with IDE, desktop and cloud counterparts.

GitHub stars
135k
Last commit
yesterday
Latest release
rust-v0.167.1
Licence
Apache-2.0

Codex CLI is a coding agent from OpenAI that runs on your own computer from the terminal. The repository describes it as lightweight and written mainly in Rust. Once installed, you start it by running the codex command.

Installation on Mac or Linux uses a curl script, and on Windows a PowerShell script. The installers download from releases.openai.com and fall back to GitHub Releases, and an environment variable can force GitHub Releases. It can also be installed with npm or Homebrew, or from release archives for Apple Silicon and Intel macOS and for x86_64 and arm64 Linux.

For sign-in, the README recommends choosing Sign in with ChatGPT so Codex counts as part of a Plus, Pro, Business, Edu or Enterprise plan. An API key also works but needs extra setup. Related products are named too: an IDE install for VS Code, Cursor and Windsurf, a desktop app opened with codex app, and the cloud agent Codex Web.

Key features

  • Coding agent that runs locally in a terminal
  • Install script for Mac and Linux
  • Install script for Windows via PowerShell
  • Also installable with npm and Homebrew
  • Sign in with a ChatGPT account
  • Available in editors such as VS Code, Cursor and Windsurf
  • Desktop app launched with the codex app command
Read more about Codex CLIGitHub#2 GitHub Copilot alternative

OpenHands

A self-hosted control center for running coding agents, including OpenHands, Claude Code and Codex, locally, in Docker or in the cloud, with automations.

GitHub stars
93k
Last commit
yesterday
Latest release
v1.39.0
Licence
MIT
Self-hosted
Yes
Hosted version
Available
openhands.devOpenHands homepage screenshot

OpenHands is an open-source project for AI-driven software development. Its current README centers on Agent Canvas, a self-hosted developer control center for starting conversations with coding agents and automating everyday engineering tasks. It is written mainly in TypeScript and released under the MIT license.

By default Agent Canvas uses the open-source OpenHands agent, but it can also drive third-party agents such as Claude Code, Codex and Gemini, or any ACP-compatible agent. It runs locally by default and can connect to several agent backends, including Docker containers, virtual machines and company infrastructure, so agents can be moved between local, remote and cloud setups without interrupting your work.

Automations can be triggered on a timetable or by incoming webhook events and connect with tools such as Slack, GitHub, Linear and Notion, for example publishing reports to Slack or breaking GitHub issues into tasks. Agents can optionally run on OpenHands Cloud or OpenHands Enterprise. It suits engineering teams that want to coordinate several coding agents from one self-managed place.

Key features

  • Self-hosted control center for coding agents
  • Runs OpenHands, Claude Code, Codex and Gemini
  • Local, Docker, VM and cloud agent backends
  • Scheduled and webhook-triggered automations
  • Integrations with Slack, GitHub, Linear and Notion
  • Optional OpenHands Cloud and Enterprise hosting

Pricing: Local open-source use and the hosted Individual tier are free (model usage is passed through at cost). Enterprise, in the cloud or self-hosted in your VPC, has custom pricing.

Read more about OpenHandsWebsiteGitHub#3 GitHub Copilot alternative

Cline

An open-source autonomous coding agent available as a CLI, desktop app, VS Code extension, JetBrains plugin and SDK.

GitHub stars
72k
Last commit
yesterday
Latest release
v4.1.26
Licence
Apache-2.0
cline.botCline homepage screenshot

Cline is an open-source coding agent that works in your IDE, terminal and desktop. It can edit code across a project, create files, run commands and browse the web, with human-in-the-loop approval for tools in the editor. It is written in TypeScript and released under the Apache-2.0 license.

The same agent engine is offered in several forms: a CLI with an interactive mode and a headless mode for CI/CD and scripting, a native desktop app for macOS and Windows that works from any folder, schedules recurring routines and manages models, plugins and MCP servers, a VS Code extension, a JetBrains plugin for IntelliJ IDEA, PyCharm, WebStorm, GoLand and others, and an SDK.

The SDK is a Node.js programmatic API for building custom agents with custom tools, multi-agent teams, connectors and scheduled automations. The README notes that the JetBrains plugin is not open-sourced. Cline suits developers who want one coding agent across their editor, terminal and automation pipelines.

Key features

  • CLI with interactive and headless modes
  • VS Code extension with approval prompts
  • JetBrains plugin for the IntelliJ family
  • Desktop app for macOS and Windows
  • Node.js SDK for custom agents
  • Scheduled routines and MCP server management

Pricing: The open-source extension is free for individual developers, who pay only for AI inference or use their own API keys. Enterprise adds SSO, SLA and dedicated support at custom pricing.

Read more about ClineWebsiteGitHub#4 GitHub Copilot alternative

Kilo Code

Kilo Code is an open-source AI coding agent for VS Code, JetBrains and the command line that works with hundreds of models.

GitHub stars
28k
Last commit
yesterday
Latest release
v7.8.27
Licence
MIT
Hosted version
Available
kilo.aiKilo Code homepage screenshot

Kilo Code is an AI coding agent that you can use in VS Code, in JetBrains IDEs or from the CLI. It is open source under the MIT license and written in TypeScript. According to the README, you can pick from more than 500 models and switch between them in the middle of a task, and you pay the model provider's rate with no markup. No API keys are needed to start.

Besides the local extensions, a Cloud Agent runs Kilo from the web without a local machine, and automated AI code reviews can be set up for pull requests. The CLI is started with the kilo command in a project directory and can be installed from release binaries for Windows, macOS on Apple Silicon and Intel, and Linux on x64 and ARM, with variants for older CPUs and Alpine-style images. The repository started in 2025 and its README is translated into many languages.

Key features

  • Agent for VS Code, JetBrains and CLI
  • Choice of hundreds of AI models
  • Switch models mid-task
  • Cloud Agent that runs from the web
  • Automated AI reviews for pull requests
  • CLI binaries for Windows, macOS and Linux

Pricing: The open-source extensions are free, with AI inference billed separately. Teams costs $15 per user per month with a 14-day trial; Enterprise is custom. Optional Kilo Pass credits start at $19 per month.

Read more about Kilo CodeWebsiteGitHub#5 GitHub Copilot alternative

Continue

Continue is an open-source coding agent for the command line, VS Code and JetBrains; the repository is now read-only and no longer maintained.

GitHub stars
36k
Last commit
8 days ago
Latest release
v2.0.0-vscode
Licence
Apache-2.0
continue.devContinue homepage screenshot

Continue is an open-source coding agent that was offered as a command-line tool, a VS Code extension and a JetBrains plugin. It is written in TypeScript and released under the Apache-2.0 license. According to the README, the project's GitHub repository has stopped receiving active maintenance and is now read-only, so new features and fixes should not be expected from it.

The team shipped a final 2.0.0 release for the VS Code extension, the CLI and the JetBrains plugin. That release removed anonymous telemetry and authentication, and fixed a batch of bugs. The maintainers recommend the CLI over the JetBrains plugin, and they point to the documentation for configuration and customization. The project describes the codebase as a foundation that others can build on, which makes it relevant as reference code more than as an actively developed product.

Key features

  • Agent-style assistant usable from a terminal CLI
  • VS Code extension and JetBrains plugin
  • Configurable through project documentation
  • Final release removed telemetry and authentication
  • Apache-2.0 codebase open for reuse
  • Repository archived as read-only

Pricing: Free and open source under the Apache-2.0 license.

Read more about ContinueWebsiteGitHub#6 GitHub Copilot alternative

GitLab Community Edition

GitLab is a web platform for Git repositories, code review, CI/CD pipelines and issue tracking; this repository is its Community Edition mirror.

GitHub stars
25k
Last commit
21 days ago
Licence
MIT
Self-hosted
Yes
Hosted version
Available
about.gitlab.comGitLab Community Edition homepage screenshot

GitLab is a platform for collaborating on code. This GitHub repository is a mirror of the Community Edition, written in Ruby on Rails, while the canonical source and all development take place on GitLab.com. Issues should be opened on the GitLab.com tracker rather than here. The platform manages Git repositories with fine-grained access controls, merge requests for code review, and per-project issue trackers, boards and wikis.

GitLab includes continuous integration and delivery pipelines to build, test and deploy applications. It follows an open-core model: most of the code is MIT-licensed, while files in the ee directory are proprietary but source-available. Three editions exist: Community Edition, free under the MIT Expat license; Enterprise Edition, with extra features aimed at organizations with more than 100 users and sold by subscription; and JiHu Edition for the Chinese market. A free trial of the Ultimate tier is available.

Key features

  • Git repository hosting with access controls
  • Merge requests for code review
  • Built-in CI/CD pipelines
  • Issue tracker, boards and wiki per project
  • Community Edition under the MIT Expat license
  • Enterprise Edition with subscription support

Pricing: Free for personal projects with usage limits. Premium costs $29 per user per month billed annually; Ultimate and the single-tenant Dedicated offering are quoted. Free trials are offered for paid tiers.

Aider

Aider is an open-source command-line tool for pair programming with large language models, editing your codebase and committing changes through git.

GitHub stars
50k
Last commit
5 mo ago
Latest release
v0.86.0
Licence
Apache-2.0
aider.chatAider homepage screenshot

Aider is AI pair programming in your terminal. It lets you work with large language models to start a new project or build on an existing codebase, asking for changes in plain language and letting the model edit the files in your repository.

It builds a map of the whole codebase to help in larger projects, supports more than 100 programming languages and commits changes to git with descriptive messages, so you can diff or undo AI edits with familiar tools. It can connect to cloud models and local models, accept images and web pages as context, take voice instructions, and run linters and tests after each change, attempting to fix problems they report. It can also be used from an IDE through code comments, or via copy and paste with a model's web chat.

Aider is written in Python and licensed under Apache-2.0. The README names a handful of commercial models it has been used with most, but says it can connect to almost any model, and installation and usage guides are available in the documentation.

Key features

  • Codebase map for larger projects
  • Works with cloud and local LLMs
  • Automatic git commits with clear messages
  • Support for 100+ programming languages
  • Image and web page context
  • Voice-to-code requests
  • Automatic linting and testing after edits

Pricing: Free and open source under the Apache-2.0 licence; model usage is billed by whichever LLM provider you connect.

Read more about AiderWebsiteGitHub#8 GitHub Copilot alternative

Hugging Face Chat UI

SvelteKit chat interface for large language models that connects to any OpenAI-compatible API and powers HuggingChat.

GitHub stars
11k
Last commit
yesterday
Latest release
v0.10.0
Licence
Apache-2.0
Self-hosted
Yes
Hosted version
Available
huggingface.coHugging Face Chat UI homepage screenshot

Chat UI is a chat interface for LLMs built as a SvelteKit application. It is the open source codebase behind HuggingChat on Hugging Face and lets you run a similar conversational front end against models you choose, whether hosted or running locally.

The current version speaks only to OpenAI-compatible APIs, configured through a base URL and a models endpoint. The README lists the Hugging Face Inference Providers router, a llama.cpp server, Ollama through its OpenAI-compatible bridge, OpenRouter and Poe as example backends. Older provider-specific integrations were removed from the main branch but remain available on a legacy branch.

Setup involves creating an .env.local file with the endpoint and key, choosing a database option, and launching the app, with an optional Docker image. The project is written in TypeScript with Tailwind CSS and is licensed under Apache-2.0, making it a base for self-hosted assistants.

Key features

  • Chat front end for any OpenAI-compatible API
  • Works with llama.cpp, Ollama and OpenRouter
  • Hugging Face Inference Providers support
  • Configured through a simple .env.local file
  • Optional Docker image
  • SvelteKit and Tailwind CSS codebase

Pricing: Free and open source under the Apache-2.0 license.

Tabby

A self-hosted AI coding assistant offering an on-premises, open-source alternative to GitHub Copilot, with code completion, chat and an answer engine.

GitHub stars
34k
Last commit
4 mo ago
Latest release
v0.32.0
Self-hosted
Yes
tabbyml.comTabby homepage screenshot

Tabby is an AI coding assistant that you host yourself, positioned as an on-premises, open-source alternative to GitHub Copilot. It is self-contained, so it needs no separate database management system or cloud service, and it exposes an OpenAPI interface that makes it easy to connect to existing infrastructure such as cloud IDEs.

It is designed to run on consumer-grade GPUs. Beyond code suggestions, the project has added a chat side panel, an Answer Engine whose conversations can be saved as shareable pages, the ability to switch between backend chat models, and the option to index repositories, your own documentation and GitLab merge requests as context. LDAP authentication and a VS Code extension with @-mentions for files are also covered in its updates.

Tabby is written in Rust and deployed on your own servers, which keeps source code and prompts inside your network. That suits organizations that cannot send code to a hosted service, and the docs, roadmap and a Slack community are linked from the repository.

Key features

  • Self-hosted AI code completion
  • Chat panel inside the IDE
  • Answer Engine with shareable pages
  • Repository and documentation indexing as context
  • OpenAPI interface for integrations
  • Runs on consumer-grade GPUs
  • LDAP authentication
  • Switchable backend chat models

Pricing: Free open-source Community plan for up to 5 users. Team costs $19 per seat per month for up to 50 users; Enterprise is custom and billed annually.

Read more about TabbyWebsiteGitHub#10 GitHub Copilot alternative

4 more GitHub Copilot alternatives

Commercial GitHub Copilot alternatives

Hosted, closed-source products that compete with GitHub Copilot. Showing 12 of 35.

See every GitHub Copilot alternative on its tool page

GitHub Copilot alternatives: questions

What is the best open-source alternative to GitHub Copilot?
OpenCode is the top-ranked open-source alternative to GitHub Copilot on Enlisted: An open-source AI coding agent for the terminal, with a beta desktop app and separate agents for building and read-only planning. Other strong options are Codex CLI, OpenHands, Cline and Kilo Code.
What are the best commercial alternatives to GitHub Copilot?
Amazon Q Developer, Claude Code, JetBrains AI Assistant, Gemini Code Assist and Jules are among the hosted, closed-source alternatives to GitHub Copilot listed on Enlisted, which lists 35 in total. Compare their pricing and features on each tool page.
Are these GitHub Copilot alternatives free?
All 14 are open source, so the code is free to use under its licence, and all of them can be self-hosted on your own server or computer. 4 also offer a paid or managed cloud version if you'd rather not host it yourself.
How is this list of GitHub Copilot alternatives ranked?
By a score built from GitHub stars, star growth over the last 30 days and how recently the code changed. 12 of these projects shipped code in the last 30 days. Data is refreshed daily, and nobody can pay to move up.

People also look for alternatives to…

View all