Architecture is where these three agents diverge most fundamentally. Devin, built by Cognition Labs, is positioned as a fully autonomous AI software engineer that operates in its own cloud-based sandboxed virtual machine. It has access to a browser, shell, and code editor, and can independently plan, research, and execute multi-step engineering tasks with minimal human guidance. Codex, developed by OpenAI, is a cloud-based agentic coding tool that runs tasks asynchronously in sandboxed environments. It integrates tightly with the OpenAI ecosystem and ChatGPT interface, allowing developers to delegate coding tasks — writing features, fixing bugs, running tests — and check back when the work is done. OpenHands, formerly known as OpenDevin, takes the open-source route as a self-hosted autonomous agent framework. It provides a flexible platform where developers can run autonomous coding agents on their own infrastructure, with support for multiple LLM backends including Claude, GPT-4, and open-weight models. OpenHands gives you a browser, terminal, and code editor environment similar to Devin, but entirely under your control.
Capabilities and workflow integration separate these agents in practical terms. Devin can plan complex features, write code across multiple files, debug errors by reading stack traces, search the web for documentation, and even deploy applications — all with minimal human intervention. It operates like a junior developer you assign a ticket to and check in on periodically. Codex executes coding tasks asynchronously in isolated sandboxed environments, excelling at well-defined tasks like writing code to a specification, fixing bugs with clear reproduction steps, adding test coverage, and performing targeted refactors. It reads your repository, creates a plan, writes the code, and runs verification steps before presenting results. OpenHands provides a flexible agent framework that supports multiple agent architectures and can be configured for different workflows. It supports browser automation for web research, terminal access for running commands, and file editing capabilities. The key advantage of OpenHands is its flexibility — you can swap LLM backends, customize agent behavior, and integrate it into your existing development infrastructure without sending code to third-party servers.
Pricing and access models vary enormously across these three options. Devin is the most expensive at $500 per month for teams, positioning it firmly in the enterprise segment. This price includes a dedicated cloud VM per task, and Cognition targets engineering teams that want to offload routine development work to an AI agent. The high price reflects the compute-intensive nature of running a full VM with browser and shell access for each task. Codex is significantly more accessible — it is included with ChatGPT Pro ($200/month) and ChatGPT Team ($30/user/month) subscriptions, making it available to a much broader developer audience. For teams already paying for ChatGPT, Codex adds powerful agentic coding capabilities at no additional cost. OpenHands is completely free and open-source under the MIT license. You clone the repository, run it on your own infrastructure, and pay only for the LLM API costs you incur. For teams using affordable models or self-hosted open-weight LLMs, the total cost can be minimal. This makes OpenHands the most economically attractive option, especially for teams with existing infrastructure and API credits.