BEST OF

The best open-source coding agents in 2026

OpenHands is the best open-source coding agent for teams that want a self-hosted autonomous platform: MIT-licensed, model-agnostic, and capable of running a full task loop. OpenCode and Cline are better for terminal-first and editor-first workflows, while Aider remains the leanest terminal pair programmer. Every licence below was checked on GitHub.

Open source here means you can read the licence, run the code yourself and change it. These eight projects qualify; the trade-off is that you own the runtime, the model bill and the upgrades.

Start free See pricing

The shortlist

  1. OpenHands

    An open-source platform for software development agents, self-hostable and model-agnostic.

    Best for: Teams that want a full autonomous agent platform they can run and modify inside their own infrastructure.

    Pricing: Open source (MIT); you pay for models and compute.

  2. OpenCode

    An open-source AI coding agent you install and run yourself, with the source available for inspection and modification.

    Best for: Developers who want a coding agent they can run themselves without a vendor account.

    Pricing: Open source (MIT); no licence fee.

  3. Cline

    An open-source coding agent available as an editor extension, CLI and SDK, with human approval for actions.

    Best for: Developers who want agent edits inside VS Code with explicit approval at each step.

    Pricing: Open source (Apache-2.0); no licence fee.

  4. Aider

    An open-source AI pair programmer that edits files in your local git repository from the terminal.

    Best for: Developers who want a small, predictable terminal tool that works with the model provider they already pay for.

    Pricing: Open source (Apache-2.0); no licence fee.

  5. Goose

    An open-source, extensible agent that can install, execute, edit and test code with a supported LLM.

    Best for: Teams that want to extend an agent with their own tools and run it locally or on their own infrastructure.

    Pricing: Open source (Apache-2.0); no licence fee.

  6. SWE-agent

    A research-oriented agent that takes a GitHub issue and attempts a fix using the model of your choice.

    Best for: Researchers and platform teams evaluating agent behaviour on issue-resolution tasks.

    Pricing: Open source (MIT); no licence fee.

  7. Gemini CLI

    Google’s open-source terminal agent that brings Gemini models into the command line.

    Best for: Developers already using Gemini models who want an open-source terminal agent from the same vendor.

    Pricing: Open source (Apache-2.0); no licence fee.

  8. Codex CLI

    OpenAI’s open-source terminal coding agent; the hosted Codex cloud and IDE surfaces are separate, proprietary products.

    Best for: Developers who want to inspect and modify the terminal client while using OpenAI models.

    Pricing: Open source (Apache-2.0); no licence fee.

How we evaluated

We checked each project’s repository and licence file on 11 November 2026, then compared what the agent can do without a vendor service: read a repository, edit files, run commands, and complete a task. We did not score projects or cite benchmark results. Licence clarity was part of the shortlist; a project that does not state a licence did not make it.

Licence first, features second

MIT and Apache-2.0 are permissive: you can run, modify and redistribute the code, including inside a company. That is not the same as a support contract. Before adopting one, check the licence file in the repository rather than the README, confirm whether hosted or cloud components are covered, and note that model weights are usually licensed separately from the agent.

What you take on when you self-host

Running an open-source agent means owning the runtime: sandbox isolation, credentials, model keys, upgrades and the audit trail. Some projects provide a container or a managed option; none removes the responsibility. Budget for that work honestly. The subscription you avoid is usually smaller than the engineer-hours you add.

Where Hyperlane fits - and why it is not ranked

Hyperlane is not open source. It is a proprietary managed platform, so it does not belong in a ranking of open-source agents. It is worth knowing about if the reason you are looking at open source is deployment control rather than licence: Hyperlane offers VPC, on-premise and air-gapped deployment under an Enterprise Agreement, with an isolated sandbox per run and a live desktop you can take over.

When to choose what

Choose OpenHands for a self-hosted autonomous platform, OpenCode for a terminal agent with a client/server split, Cline for editor-first work with approvals, Aider for a small terminal pair programmer, Goose for an extensible agent, SWE-agent for issue-resolution research, Gemini CLI for Gemini users, and Codex CLI for OpenAI users who want the client’s source.

What Hyperlane ships

  • Autonomous agent loop that plans, edits, runs, and verifies work end-to-end
  • Every run executes inside an isolated, resource-capped sandbox
  • Live execution traces - diffs, terminal output, and reasoning as it happens
  • GitHub-native workflow: pushes branches and opens pull requests itself
  • Web app, REST API, TypeScript SDK, CLI, and MCP server interfaces
  • Dollar-for-dollar credits - pay $20, get $20 of agent work

Frequently asked

Is Hyperlane open source?

No. Hyperlane is a proprietary managed platform. It is not affiliated with hyperlane.xyz or hyperlaneide.com either. If an open-source licence is a hard requirement, choose one of the projects above; if the requirement is deployment control, Hyperlane offers VPC, on-premise and air-gapped options under an Enterprise Agreement.

Which open-source coding agent is most autonomous?

OpenHands is the most complete open-source agent platform in this list: it can plan, edit, run commands and work through a task, and it is designed to be self-hosted. SWE-agent is narrower by design, focused on taking an issue and attempting a fix.

Are these agents free to use?

The software is free under its licence. You still pay for model inference, and for the compute you run the agent on. Some projects also sell hosted versions; those are separate products with their own pricing, so check the vendor page before assuming the hosted tier is free.

Can I use an open-source agent with any model?

Usually, but not always. OpenHands and Goose are explicitly model-agnostic; Aider, Cline and OpenCode support multiple providers; Gemini CLI and Codex CLI are built around their vendor’s models. Check the provider list in the repository before committing.

What licence should I look for?

MIT and Apache-2.0 are the common permissive licences in this category and both allow commercial use and modification. Apache-2.0 adds an explicit patent grant. If you need to redistribute the agent inside a product, read the licence text and any third-party notices rather than relying on a summary.

Last verified 11 Nov 2026.

Sources: OpenHands repository OpenCode repository Cline repository Aider repository Goose repository SWE-agent repository Gemini CLI repository Codex CLI repository

Keep exploring

Delegate the ticket. Review the PR.

Start with the Free plan — 10 minutes of agent computer time every month, no card required.

Try Hyperlane free

Hyperlane AI is not affiliated with the Hyperlane blockchain protocol (hyperlane.xyz) or the Hyperlane code editor (hyperlaneide.com).