010 Coding Collective

010 Coding Collective

The best harness for OpenAI models: Codex, OpenCode, or something else?

OpenAI has its own agent for its models: Codex. When to pick it, what you get with a ChatGPT plan or an API key, and when OpenCode, Cline, Cursor, or GitHub Copilot fits better.

AI AI Agents OpenAI GPT Codex ChatGPT OpenCode Cursor GitHub Copilot AI-Assisted Coding

One model, many places to run it

OpenAI's models run in Codex, but also in OpenCode, Cline, Aider, Cursor, and GitHub Copilot. If you want to build with GPT, you have to pick a tool and a way to pay.

Start with Codex, switch when you need more

If you have a ChatGPT plan, Codex is the obvious first pick: it's included, and it works in the terminal, your editor, the browser, and the cloud. Another harness only pays off when you want other models alongside GPT, or want to stay in an editor your team already uses.

Setup makes the difference

Whichever harness you pick, the result depends on a good AGENTS.md file, tests the agent can run on its own, and tasks small enough to review.

The short answer

The best harness for OpenAI’s models is Codex, OpenAI’s own agent. You sign in with your ChatGPT account, and from ChatGPT Plus up it runs in the terminal, your editor, ChatGPT on the web, and the desktop app, with tasks that keep running in the cloud.

If you want GPT alongside other models, OpenCode is the alternative, and you can sign in to it with the same ChatGPT plan. Cline, Aider, Cursor, and GitHub Copilot also run OpenAI’s models. That’s a choice for flexibility, not for better results from GPT itself.

Does OpenAI have its own harness?

Yes: Codex. A harness is the software around a language model: the tools it uses to read files and run commands, the instructions it gets, and the limits it works within. GPT is the model; the harness decides what it can do in your project. More on that in what is an AI harness.

OpenAI released Codex in April 2025 as an open-source command-line tool. The same agent has since spread: there’s an extension for VS Code and editors built on it, integrations for JetBrains and Xcode, and Codex inside ChatGPT on the web and in the desktop app. It reads your project’s conventions from AGENTS.md and runs locally in a sandbox, where you decide how much it may do without asking.

GPT is the model. Codex is the harness OpenAI built around it.

Watch the name: in 2021 OpenAI also had a model called Codex. That’s a different product, and it’s been discontinued. More on today’s agent in what is Codex.

ChatGPT plan or API key

Codex itself is free to install. What you pay for is model usage, and you can pay in two ways. The one you choose also decides what Codex can do for you.

ChatGPT plan API key
How you pay A flat monthly fee, with limits that rise with the plan. Per use. With many large tasks, that adds up fast.
Where Codex runs Terminal, editor, ChatGPT on the web, and the desktop app. Terminal and editor.
Cloud tasks Yes, several at once, with the result as a pull request. No.
Pull request review Yes, on GitHub. No.
Fits Anyone already on ChatGPT, or a team that wants work to keep running. Anyone who tracks costs per project or builds Codex into their own tooling.

Between the plans, the difference is mostly how much you can do.

1

Free and Go

You get a limited trial of Codex in the desktop app, for small tasks. Enough to see how it works, not enough for real work.

2

ChatGPT Plus

From here Codex works everywhere: the terminal, your editor, and the cloud. If you already pay for Plus, this is the cheapest route to a serious agent for GPT.

3

Higher plans

The higher the plan, the more you can do before you hit a limit. Teams and companies get separate plans with more admin control.

4

OpenAI API key

You pay per use and work in the terminal and editor, without the cloud features. OpenAI's site has the current prices.

GPT in another harness

OpenAI’s models also run in harnesses OpenAI didn’t build. That’s the better choice in a few clear cases: you want to pick the model per task, your team works with different models, or you want the whole tool to be open source.

Codex OpenCode, Cline, Aider Cursor, GitHub Copilot
Tuned to GPT Most closely: OpenAI built the model and the agent together. Broadly: the same tools for every model. Broadly: GPT is one model on the list.
How you pay ChatGPT plan or API key. In OpenCode also with your ChatGPT plan, otherwise usually an API key. Within your Cursor or Copilot subscription.
Other models No, OpenAI's models only, including an open OpenAI model you can run locally. Yes, including local models. Yes, from several providers.
Cloud tasks Yes, with the result as a pull request. No, everything runs on your own machine. Depends on the tool and the plan.
Fits Anyone who mostly works with GPT. Anyone who wants to switch per task or work locally. Teams already working in that editor.

OpenCode is the interesting exception. It belongs to no model maker, yet you can sign in with ChatGPT Plus or Pro, so trying a model from Anthropic, Google, or an open model next to GPT costs you nothing extra. How the two compare is in OpenCode vs Codex. To weigh GPT against Gemini and Claude, read which AI harness fits which model. For a wider overview, see the most popular AI harnesses.

How to get the most out of GPT as an agent

Picking the harness is one step. What decides the result after that is how you set it up for your own project.

1

Write an AGENTS.md

Put it in your project root: how to run the tests and the build, which conventions you follow, and what the agent must never touch. Codex reads it at every start, and many other harnesses read the same file.

2

Decide how much Codex may do on its own

Have Codex ask for approval before commands and changes at first, and give it more room once you've seen how it handles your project.

3

Let the agent test its own work

An agent that can run your tests finds its own mistakes. Without tests you're relying on what it tells you.

4

Keep tasks small

One feature or one bug at a time, in the cloud too. Five small pull requests are quicker to review than one big one.

Setting up the environment around the model is called harness engineering, and it often matters more than which agent you pick.

Conclusion: Codex, unless you want more than OpenAI

For OpenAI’s models, Codex is the best place to start. With a ChatGPT plan it runs everywhere and keeps tasks going in the cloud; with an API key you pay per use in the terminal and editor. If you want GPT alongside other models, or a fully open-source tool, pick OpenCode. If your team already works in Cursor or GitHub Copilot, GPT is there too.

Frequently Asked Questions

What is the best harness for OpenAI models?

Codex, OpenAI's own agent. It comes with ChatGPT plans and, from Plus up, runs in the terminal, your editor, the browser, and the desktop app, with cloud tasks. If you want GPT alongside other models, OpenCode is the alternative, on the same ChatGPT plan.

Does OpenAI have its own coding agent?

Yes, Codex. OpenAI released it in April 2025 as an open-source command-line tool, and the same agent now also runs in editors, ChatGPT on the web, and the desktop app. It reads your project's conventions from AGENTS.md.

Which harness comes with ChatGPT Plus?

Codex. From ChatGPT Plus up it runs in the terminal, your editor, the browser, and the app, with cloud tasks. You can also sign in to OpenCode with the same plan if you want to try other models alongside GPT.

Can I use Codex with an API key?

Yes. You then pay per use and work in the terminal and editor. The cloud features, such as tasks on OpenAI's servers and pull request review, only come with a ChatGPT plan.

Does GPT work in Cursor or GitHub Copilot?

Yes, OpenAI's models are on the list of both, within their own subscription. That's handy if your team already works in that editor and uses several models. If you only work with GPT, Codex is more closely tuned to the model.

Can I use Codex for free?

To a point. On the free ChatGPT plan and Go you can try Codex in the desktop app for small tasks. For the terminal, your editor, and cloud tasks you need ChatGPT Plus or higher, or you pay per use with an API key.

Build faster with AI without lowering the bar?

Our senior developers work with coding agents every day. Bring them onto your project, or have your team learn to use them well in a workshop.

Let's discuss your project

From AI prototypes that need to be production-ready to strategic advice, code audits, or ongoing development support. We're happy to think along about the best approach, no strings attached.

010 Coding Collective free consultation
free

Free Consultation

In 1.5 hours we discuss your project, challenges and goals. Honest advice from senior developers, no sales pitch.

1.5 hours with senior developer(s)
Analysis of your current situation
Written summary afterwards
Concrete next steps