LibreAI / AI Agents / SWE-agent
// agents · SWE-agent/SWE-agent

SWE-agent

Give it a GitHub issue and it tries to fix the code for you - the original SWE-bench agent

★ 20.5k stars⑂ 2.2k forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

SWE-agent is an open-source ai agents project by SWE-agent (SWE-agent/SWE-agent on GitHub). It has 20,506 GitHub stars and 2,247 forks, is released under the MIT license, and was last updated on GitHub on 6 October 2026.

GitHub stars
20,506
Forks
2,247
License
MIT
Last updated on GitHub
6 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Pick an issue or benchmark

    Choose a real GitHub issue to attempt, or a SWE-bench split to benchmark against.

  2. Get SWE-agent

    Clone the repository, or try it in your browser with the GitHub Codespaces link in the README.

  3. Install and configure your model

    Install from source per the docs and configure the LM you want to drive the agent.

  4. Run your first fix

    Follow the docs' hello-world command to run the agent on one issue and review the patch it produces.

// features

Why people love it

Automatic issue fixing

Reads a GitHub issue, navigates the repo, edits code and produces a candidate fix.

Your choice of LM

Works with the language model you configure rather than locking you to one provider.

SWE-bench batch mode

Runs and benchmarks the agent across SWE-bench tasks for reproducible research results.

EnIGMA variant

A dedicated mode adapts SWE-agent for offensive cybersecurity and capture-the-flag style challenges.

Codespaces trial

Try it in the browser via GitHub Codespaces without a local install.

Research-grade design

The agent-computer interface design comes from the peer-reviewed SWE-agent paper (NeurIPS 2024).

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the source code from GitHub and enter the project directory.

    git clone https://github.com/SWE-agent/SWE-agent.git
    cd SWE-agent
  2. Install from source

    The README links to the docs' source installation guide.

    pip install -e . # see README/docs installation for the exact command
  3. Run the hello world example

    The documentation's hello-world page runs the agent on a sample issue from the command line.

    # Follow the 'Hello world from the command line' guide linked in the README
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains this project?

It is maintained by the SWE-agent team (John Yang, Carlos Jimenez and collaborators) on GitHub.

Is it free to use?

Yes - SWE-agent is MIT licensed and free to use.

Does it need a paid API key?

You supply the language model: most setups use a paid provider API key (or a hosted/local model you configure), and long issue-solving runs can consume significant tokens.

How does it compare to alternatives?

Compared with commercial coding agents, SWE-agent is a research-first, fully configurable harness - ideal for benchmarking and modification, less polished as an everyday IDE assistant.

How do I get started?

Try the Codespaces link in the README, or install from source and run the docs' hello-world example on a sample issue.

// keep exploring

Similar tools

AI Agents

Agent-Reach

Give your AI agent eyes on the whole internet: Twitter, Reddit, YouTube, GitHub and more, one CLI

★ 94.0k starsMIT
View guide →
AI Agents

SWE-bench

The benchmark that grades AI on real GitHub issues.

★ 6.0k starsMIT
View guide →
AI Agents

exa-mcp-server

Exa's MCP server for web search and crawling — give your AI agent a live, high-quality web index.

★ 5.1k starsMIT
View guide →
AI Agents

Monid

Monid — OpenRouter for agent tools: one base URL and one key give an agent 2,000+ tools across 72+ providers

★ 4.2k starsMIT
View guide →
Agents

redamon

Self-hosted AI pentesting agent that finds flaws and opens PRs to fix them.

★ 2.9k starsMIT
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if SWE-agent is not the right fit.

Get SWE-agent

Free and open — grab the source, star the repo, and start creating.