Skip to main content
OpenSourceAlternatives

SWE-agent

Open source · OSI-approvedStatus: unknownNew

Open source coding agent that fixes GitHub issues with LLMs

SWE-agent is an open source coding agent built by researchers at Princeton and Stanford. Give it a GitHub issue and it tries to fix the problem automatically, driving shell, editor, and search tools inside a sandboxed copy of the repository with a language model of your choice. It was presented at NeurIPS 2024 and holds state-of-the-art results on SWE-bench among open source projects.[1][2]

Quick verdict

Developers and researchers who want an autonomous first attempt at real GitHub issues should shortlist SWE-agent: it is free MIT software, works with many models, and records every sandboxed run. Avoid it if you need offline use, one-click setup, or a hosted service, and note the maintainers now recommend mini-swe-agent for new work. If your workflow is interactive terminal pair programming rather than autonomous issue fixing, compare Aider first.[1][2][3]

Key features

  • Point the command line tool at a GitHub issue and the agent attempts a fix on its own, working through the repository until it produces a change.[1]

  • Model access goes through LiteLLM, so operators can use GPT-4o, Claude, or other supported providers with their own API keys rather than being locked to one vendor.[1][2]

  • The agent works through an agent-computer interface of purpose-built commands for viewing, editing, searching, and executing code, leaving the problem-solving strategy to the language model.[1]

  • Every run executes inside a Docker sandbox, and trajectories are recorded so runs can be inspected and replayed afterward.[1]

  • Behavior is governed by a single YAML configuration file with documented templates for models, tools, environments, and demonstrations.[1]

  • A batch mode runs the agent across SWE-bench task sets for benchmarking, with tooling for competitive runs and output comparison.[1]

Who will love it

  • Developers who triage real GitHub issues and want an autonomous first attempt at a fix will get the most from the issue-to-patch workflow.[1][2]

  • Agent researchers benefit from the hackable design, recorded trajectories, and batch evaluation support built for SWE-bench experiments.[1][2]

  • Python shops comfortable with pip installs, Docker, and bringing their own model keys can self-host the whole setup without paying for software.[1][2]

Who should avoid it

  • Setup is moderately involved: Python 3.11 or newer, an editable pip install, Docker for the sandbox, and a configured model API key are all required before the first run.[1][2]

  • The agent cannot work offline. Documented runs depend on a hosted language-model API and container images, so network access and provider billing apply.[1][2]

  • Maintainers now steer new users toward mini-swe-agent as the simpler successor, so teams adopting SWE-agent itself should expect the ecosystem's momentum to sit elsewhere.[1]

Alternatives and compatibility

Aider is the closest documented alternative for LLM-driven code changes from the terminal: where SWE-agent autonomously pursues a GitHub issue, Aider pair-programs interactively with git-native commits. This comparison is editorial, not vendor-endorsed.[1][2]

Mini-SWE-agent from the same team is the recommended path for new work, matching SWE-agent's performance in about a hundred lines of Python.[1]

SWE-agent runs on the operator's own Linux, macOS, or Windows machine via Python and Docker, with a Codespaces option, and there is no hosted cloud edition to switch to.[1][2]

Questions worth asking

How much does SWE-agent cost to run?

The software itself is free under the MIT license with no paid edition or tiers. You supply your own language-model API key, and the model provider bills your usage separately, so running it costs whatever your chosen model charges.[1][2]

How do I install and start SWE-agent?

Clone the repository and run pip install at the root, then configure a model API key. Runs execute inside a Docker sandbox, so Docker is required, and a browser-based GitHub Codespaces path is documented for trying it without local setup.[1][2]

Which language models does SWE-agent support?

SWE-agent connects through LiteLLM, so it works with many hosted providers, and its README names GPT-4o and Claude Sonnet-class models as examples. You choose and configure the model, including its API key, before running.[1][2]

Is SWE-agent still maintained, or should I use mini-swe-agent?

SWE-agent is still maintained, with 1.x releases through May 2025, but the maintainers now recommend mini-swe-agent for new work, saying it matches SWE-agent's performance in a simpler package. Choose SWE-agent if you want the full documented configuration system; choose mini-swe-agent if you prefer the smaller successor.[1][2]

Sources and editorial review

Source research. Reviewed on October 13, 2026. Written by Sanjib Sah. AI assisted; reviewed by a human editor.

We have not run or tested this product.

  1. SWE-agent documentation - Getting Started

    official · Observed October 13, 2026

    Official docs index: product identity, Princeton and Stanford authorship, model-agnostic tool use for fixing issues, and the mini-swe-agent recommendation.

  2. SWE-agent/SWE-agent GitHub repository

    official · Observed October 13, 2026

    Repository identity, one-line description, NeurIPS 2024 note, and links to docs and install paths.

  3. SWE-agent LICENSE

    official · Observed October 13, 2026

    Full MIT license text used for the license and pricing-model facts.

  4. SWE-agent pyproject.toml

    official · Observed October 13, 2026

    Python >=3.11 requirement, OS Independent classifier, LiteLLM and Docker-adjacent dependencies, console script entry point.

  5. SWE-agent installation from source

    official · Observed October 13, 2026

    Clone plus editable pip install, Codespaces browser option, and model-key setup pages.

  6. SWE-agent hello world tutorial

    official · Observed October 13, 2026

    Fix-a-GitHub-issue CLI tutorial with Docker sandbox execution.

  7. SWE-agent changelog

    official · Observed October 13, 2026

    Release history from 0.2.0 through 1.1.0 (2025-05-22) grounding the maintenance status.

  8. SWE-agent architecture

    official · Observed October 13, 2026

    Agent-computer interface architecture and configuration reference.

  9. Aider homepage

    official · Observed October 13, 2026

    Terminal pair-programming workflow, model choice, and git integration used only for the Aider competitor comparison.

Compared with these products

No explicit proprietary baseline is recorded.

Similar projects

Related projects with shared categories, technologies, or licensing.

Aider

AiderAIOpen

Terminal pair-programming assistant that edits codebases with LLMs

Stars49.3K
Commit3mo ago
LicenseApache-2.0

Aider is a terminal-based pair-programming tool that applies LLM-suggested edits directly to files in new or existing codebases.

Kilo

KiloAIOpen

Open-source AI coding agent in the IDE, CLI, and cloud

Stars27.6K
Commitjust now
LicenseMIT

Kilo is an open-source AI coding agent that works inside VS Code, JetBrains IDEs, and Visual Studio, with a command-line build and a cloud runner on the way. It reads the existing codebase and carries out engineering tasks from natural-language instructions, proposing file edits, running commands, and verifying its own work.

OpenCode

OpenCodeAIOpen

AI coding agent for terminal, editor, and desktop

Stars202.9K
Commit8h ago
LicenseMIT

OpenCode is an MIT-licensed AI coding agent available through terminal, desktop, and IDE clients. It supports hosted providers and local models. Code handling depends on the selected provider; optional session sharing uploads conversation history to OpenCode's sharing service.

Continue

ContinueAIOpen

Open-source AI coding assistant for VS Code and JetBrains

Stars36.1K
Commitjust now
LicenseApache-2.0

Continue is an open-source AI code assistant for VS Code, JetBrains, and the terminal.

Forgecode

ForgecodeAIOpen

Terminal AI coding harness with ZSH prompts and per-task model choice

Stars7,640
Commitjust now
LicenseApache-2.0

Forgecode is a terminal-native AI coding harness that reads, edits, and runs code from ZSH with muse, forge, and sage agents.

Pi

PiAIOpen

Extensible terminal AI coding agent with model choice and tree-structured sessions

Stars114.5K
Commitjust now
LicenseMIT

Pi is an extensible terminal AI coding agent with a small core, multi-provider model choice, tree sessions, and a TypeScript extension system.