The best open source alternative to SWE-agent is Cline. If that doesn't suit you, we've compiled a ranked list of other open source SWE-agent alternatives to help you find a suitable replacement. Other interesting open source alternatives to SWE-agent are: OpenCode, OpenHands, Plandex, and OmoiOS.
SWE-agent alternatives are mainly AI Coding Agents but may also be AI Assisted Coding Tools or AI Coding Assistants. Browse these if you want a narrower list of alternatives or looking for a specific functionality of SWE-agent.
Open-source AI coding agent offering direct access to frontier models with complete transparency. Features Plan Mode, MCP integration, and zero vendor lock-in.

Cline is the open-source AI coding agent that provides developers with direct access to frontier AI models while maintaining complete transparency and control. With over 4 million installs across platforms, Cline has become a trusted tool for developers and engineering leaders worldwide.
Key Features:
Core Capabilities:
Available as a VS Code extension, command-line interface for terminal-first developers, and JetBrains integration for professional IDE users. Cline combines the power of frontier AI models with the flexibility and transparency that open-source development demands, making it an ideal collaborative AI partner for engineering teams.
Looking for open source alternatives to other popular services? Check out other posts in the alternatives series and openalternative.co, a directory of open source software with filters for tags and alternatives for easy browsing and discovery.
Native terminal UI AI coding agent with LSP support, multi-session capability, shareable links, and compatibility with 75+ LLM providers including Claude Pro.

opencode is a sophisticated AI coding agent designed specifically for terminal environments, offering developers a powerful alternative to traditional IDE-based coding assistants.
The tool features a native Terminal User Interface (TUI) that's both responsive and themeable, providing a seamless coding experience directly in your terminal. With automatic LSP (Language Server Protocol) integration, opencode intelligently loads the appropriate language servers for enhanced AI assistance across different programming languages.
Key capabilities include:
Installation is straightforward with multiple package managers supported: npm, Bun, Homebrew, and Paru. The simple curl installation script makes getting started quick and easy.
Whether you're working on complex codebases or need AI assistance for debugging, opencode brings enterprise-grade AI capabilities directly to your terminal workflow, maintaining the efficiency and familiarity of command-line development.
Build and deploy autonomous coding agents at scale with model-agnostic, secure platform. Automate code reviews, testing, documentation, and complex refactoring tasks.

OpenHands is the open-source platform that transforms how teams approach software development through autonomous coding agents. Scale from single tasks to thousands of parallel operations with complete transparency and control.
Key capabilities include:
The platform offers model-agnostic flexibility, working with any AI model, CI/CD pipeline, or codebase. Deploy in isolated Docker or Kubernetes environments with full access control and auditability.
Enterprise-ready features include native integrations with GitHub, GitLab, Slack, and ticketing systems, plus fine-grained security controls for self-hosted or private cloud deployments.
With 65,000+ GitHub stars and a thriving open-source community, OpenHands continues evolving through collective innovation, making autonomous software development accessible to every team.
Terminal-based AI coding assistant with 2M token context window, diff review sandbox, and smart context management for building production-ready software.

Plandex is a powerful terminal-based AI coding agent built for serious software development. With its industry-leading 2M token context window and tree-sitter project mapping, it excels at handling large codebases and complex tasks that overwhelm other AI tools.
The agent offers flexible autonomy levels - from fully automated coding to granular step-by-step control. Its diff review sandbox lets you safely stage and review changes across multiple files, execute commands, and automatically debug issues. The smart context management system ensures the AI maintains understanding across large projects.
Key capabilities:
Available as both open source (MIT license) and cloud service. The cloud offering includes $20 monthly credits, quick 30-second setup, and access to fine-tuned models for faster/cheaper edits. With 10,000+ GitHub stars and an active community, Plandex is rapidly becoming an essential tool for AI-assisted development.
Deploy AI agents that build features, fix bugs, and handle complex workflows overnight. Wake up to tested code and ready-to-review pull requests.

Transform your development workflow with AI agents that work around the clock. OmoiOS deploys autonomous agents that execute your feature requests while you rest, delivering tested code and pull requests ready for review by morning.
Key capabilities include:
Perfect for CTOs and founders who need to scale engineering output without scaling headcount. The platform integrates with GitHub, GitLab, VS Code, and major AI providers, fitting seamlessly into existing development workflows.
Pricing starts free with 1 concurrent agent and 5 workflows per month, scaling to enterprise solutions with unlimited agents and custom SLAs. No babysitting required - problems fix themselves through automated retries and self-correction.