Skip to main content

OpenHands vs Codex: Any Model and Self-Hosting, or ChatGPT Plans?

Codex suits teams that buy OpenAI models through ChatGPT, and OpenHands suits teams that need any model or full self-hosting. Pricing, sandboxing, and two benchmarks on the same model side by side.

Reading time
3 min read
Sources
22 cited
In this piece

GILD verdict

Choose Codex when OpenAI's models cover the work and engineers want the agent in their editor and desktop app, with usage included in ChatGPT plans.

Choose OpenHands when model choice or self-hosting decides the purchase. Teams that want both can run Codex inside Agent Canvas through ACP and compare the two agents on the same tasks and budget.

Buy on the model and the bill. On GPT-5.5 the two agents tie on All Hands AI's SWE-bench Verified run, and on GPT-5 Codex CLI led by about 6 points on the independent Terminal-Bench 2.0. Codex runs OpenAI models inside ChatGPT plans. OpenHands runs any model you connect, charges nothing for the open-source agent, and can be self-hosted end to end. Each ships an open-source local agent and a hosted service that turns tasks into pull requests.

Choosing between OpenHands and Codex

Choose OpenHands if

  • You want models from several providers, open-weight models, or existing Bedrock, Azure, or Vertex AI agreements behind one agent.
  • You want to self-host the whole system, including the agent server and sandboxes, in your own VPC.
  • You want one control center that runs OpenHands alongside Codex, Claude Code, and Gemini CLI.

Choose Codex if

  • You want model usage inside the seat: ChatGPT Business includes Codex at US$20 per user per month billed annually.
  • Engineers want the agent in an IDE extension and the ChatGPT desktop app as well as the terminal.
  • You want an OS-level sandbox on every laptop without running Docker.

Side by side

DimensionOpenHandsCodex
Open sourceAgent Canvas, Software Agent SDK, and CLI under MIT; Enterprise is commercialCodex CLI and SDK are open source on GitHub; the IDE extension and Codex Cloud are not
ModelsAny model LiteLLM supports, including Claude, GPT, Gemini, and open-weight models served locallyOpenAI models through ChatGPT plans; the CLI can also point at custom providers, including Ollama and LM Studio, in config.toml
Individual priceList prices in US dollars. ChatGPT plans include usage. OpenHands bills model usage separately, so totals are not directly comparable.Agent Canvas, the CLI, and the SDK: US$0 plus model usage. The pricing page lists no individual Cloud planIncluded in ChatGPT Plus: US$20 per month; Pro: US$100, US$200, or US$500 per month
Team priceTeams: US$500 a month for up to 10 users, self-hosted, with a 30-day trial and 5,000 sessions a month; Enterprise by quoteIncluded in ChatGPT Business: US$20 per user per month billed annually (2+ users), or US$25 billed monthly
Local sandboxA Docker container by default; the process sandbox has no isolationSeatbelt on macOS, bubblewrap on Linux and WSL2, and a native sandbox on Windows
Hosted and self-hostedOpenHands Cloud, or Enterprise self-hosted on Kubernetes in your VPCCodex Cloud tasks in cloud environments configured per repository, with internet access set per environment
SWE-bench Verified on GPT-5.5All Hands AI, which makes OpenHands, made and published both runs in the OpenHands Index, on its own harness and SWE-bench Verified's test split.78.2% at US$1.52 a task, OpenHands agent (SDK v1.18.1), submitted May 4, 20261378.0% at US$1.17 a task, Codex run through ACP in the same harness, submitted May 4, 202614
Terminal-Bench 2.0 on GPT-5Stanford University and Laude Institute run Terminal-Bench, independent of both vendors. Codex CLI also led on GPT-5-Mini, 31.9% to 29.2%.43.8% ±3.0, entered November 2, 20251549.6% ±2.9 for Codex CLI, entered November 4, 202515
Pull request workLabel an issue openhands or mention @openhands; a PR review workflow runs in GitHub Actions@codex review on connected GitHub repositories, and the Codex GitHub Action

What practitioners report, side by side

Each product's figures come from its own practitioners, for the group you pick.

CodexOpenAI+55 Strong positiveHow this figure is made
Whose sources to count
Compare OpenHands with
  • Codex

Overall signal

All practitioners rate Codex +44, 29 points above OpenHands at +15. Most of the gap is in praise, with 59 of Codex's 106 sources positive against 21 of OpenHands's 52. Each has 12 negative.

The score counts the authors from all practitioners that take a side, one vote each with their latest view, and is how far positive votes lead negative ones, per 100 votes, so OpenHands's +15 rests on votes split 18 positive, 18 mixed and 11 negative and Codex's +44 on 55, 30 and 12.

A lead of a fifth of the votes reads positive and a lead of half strong positive, with the same lines below zero. The dots show each source, positive, mixed, negative. Use a task pilot to measure accepted work and review time.

Footprint on the Agentic Software Development stack

They differ on two of 12 layers. On Codebase context, OpenHands supports it and Codex is core. On Application security, OpenHands supports it and Codex touches it. Coverage is each product's placement on this stack, as its product page shows it. Core is a job the product owns; Supports and Touches are jobs it helps with. Coverage says nothing about how well a product does them.

Layers where OpenHands and Codex differ
LayerOpenHandsCodex
Build
Codebase contextSupportsCore
Validate
Application securitySupportsTouches
The 10 layers where they match
Layers where OpenHands and Codex match
LayerOpenHandsCodex
Plan
Work planningSupportsSupports
Build
CodingCoreCore
Agent runtimeCoreCore
Tool executionCoreCore
Validate
DebuggingSupportsSupports
TestingSupportsSupports
Code reviewSupportsSupports
Ship
Source controlTouchesTouches
CI/CDTouchesTouches
Operate
ObservabilityTouchesTouches

What practitioners praise

Among all practitioners, Codex alone has six praise themes that reach 5 sources from 3 authors. Code Quality and Pull Request Review lead, at 27 of 33 and 12 of 12. Of the two themes both carry, Stability differs most. It is praised in 2 of the 5 OpenHands sources that discuss it, against 1 of 6 for Codex. OpenHands alone has four praise themes that reach 5 sources from 3 authors. End-to-end execution and Model choice lead, at 17 of 17 and 14 of 14.

What practitioners praise, All practitioners
Praised forOpenHandsCodex
Developer experience9 of 1820 of 36
Stability2 of 51 of 6
End-to-end execution17 of 17Not a theme in its sources
Model choice14 of 14Not a theme in its sources
Open source & self-hosting9 of 10Not a theme in its sources
Async delegation4 of 6Not a theme in its sources
Code QualityNot a theme in its sources27 of 33
Pull Request ReviewNot a theme in its sources12 of 12
Long-Running AutonomyNot a theme in its sources12 of 17
Value for MoneyNot a theme in its sources11 of 15
Codebase UnderstandingNot a theme in its sources10 of 11
Fast RunsNot a theme in its sources6 of 12

Each count is the sources that praise a theme, or raise it as a concern, out of those that discuss it. A row pairs the two products when both carry a theme under the same or an equivalent name.

A count ending in "so far" has under 5 sources from 3 authors among all practitioners. "Not a theme in its sources" means GILD found no theme of that name in that product's sources.

What practitioners raise as concerns

Among all practitioners, Codex alone has five concern themes that reach 5 sources from 3 authors. Inconsistent Results and Speed lead, at 15 of 16 and 13 of 22. Both carry Usage and cost. It is raised in 9 of the 14 OpenHands sources that discuss it, against 22 of 39 for Codex. OpenHands alone has four concern themes that reach 5 sources from 3 authors. Unpredictable task success and Setup & runtime friction lead, at 18 of 23 and 17 of 21.

What practitioners raise as concerns, All practitioners
Raised as a concernOpenHandsCodex
Usage and cost9 of 1422 of 39
Unpredictable task success18 of 23Not a theme in its sources
Setup & runtime friction17 of 21Not a theme in its sources
Security & access7 of 7Not a theme in its sources
Dependence on the model7 of 8Not a theme in its sources
Inconsistent ResultsNot a theme in its sources15 of 16
SpeedNot a theme in its sources13 of 22
Requires Strong ReviewNot a theme in its sources9 of 23
Communication & SteeringNot a theme in its sources7 of 12
Needs Close Steering3 of 4 so far6 of 9

22 sources

  1. OpenHands pricingOfficial documentationopenhands.dev
  2. OpenHands on GitHub: LICENSEOfficial documentationgithub.com
  3. OpenHands docs: LLM overview and model recommendationsOfficial documentationdocs.openhands.dev
  4. OpenHands docs: Sandbox overviewOfficial documentationdocs.openhands.dev
  5. OpenHands docs: Docker sandboxOfficial documentationdocs.openhands.dev
  6. OpenHands docs: ACP agents in Agent CanvasOfficial documentationdocs.openhands.dev
  7. OpenHands docs: GitHub integrationOfficial documentationdocs.openhands.dev
  8. OpenHands docs: PR review workflowOfficial documentationdocs.openhands.dev
  9. OpenHands docs: OpenHands EnterpriseOfficial documentationdocs.openhands.dev
  10. OpenHands Index: GPT-5.5 resultsOfficial documentationgithub.com
  11. OpenHands Index: Codex through ACP on GPT-5.5Official documentationgithub.com
  12. OpenHands benchmarks: SWE-bench harnessOfficial documentationgithub.com
  13. OpenHands Index: GPT-5.5 scores and cost per task (submitted May 8, 2026)Public sourceraw.githubusercontent.com
  14. OpenHands Index: Codex through ACP on GPT-5.5, scores and cost per task (submitted May 4, 2026)Public sourceraw.githubusercontent.com
  15. Snorkel AI: Terminal-Bench 2.0 leaderboard, Stanford University and Laude Institute (as of Oct 25, 2026)Public sourcesnorkel.ai
  16. Codex docs: PricingOfficial documentationlearn.chatgpt.com
  17. Codex docs: SandboxingOfficial documentationlearn.chatgpt.com
  18. Codex docs: Open sourceOfficial documentationlearn.chatgpt.com
  19. Codex docs: Advanced configurationOfficial documentationlearn.chatgpt.com
  20. Codex docs: CloudOfficial documentationlearn.chatgpt.com
  21. Codex docs: GitHub code reviewOfficial documentationlearn.chatgpt.com
  22. Codex docs: Codex GitHub ActionOfficial documentationlearn.chatgpt.com