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.
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.
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.
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.
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.
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.
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.
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.
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.
What is the best harness for OpenAI models?
Does OpenAI have its own coding agent?
Which harness comes with ChatGPT Plus?
Can I use Codex with an API key?
Does GPT work in Cursor or GitHub Copilot?
Can I use Codex for free?
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.