Anthropic's Claude Code and OpenAI's Codex are both coding agents: they read your repository, write code, run commands, and carry the work through to a finished set of changes on their own. When we re-read both companies' official documentation in the original on September 22, 2026, we found that the places they run (terminal, IDE, desktop app, cloud, phone) and the core features (subagents, MCP, hooks, skills) now largely match.
So the real differences today are less about what each tool can do and more about the conditions under which you can use it. Can you try it for free? Does the sandbox work on Windows? Which operating systems and plans get computer use? Can you run GitHub PR reviews on a personal plan? And underneath all of that: Claude Code runs on Claude models, and Codex runs on OpenAI models.
Both run locally and in the cloud
Codex: macOS, Windows, Linux
Codex: VS Code family, JetBrains, Xcode
Codex: ChatGPT desktop
Codex: Codex cloud
Codex: ChatGPT app
As of September 22, 2026. Sources: Claude Code "Platforms and integrations" / Codex documentation
Table of Contents
- 1. The short answer: the gap is in access conditions, not features
- 2. Where they run: terminal, IDE, desktop, cloud, phone
- 3. Pricing and usage limits: free tiers, 5-hour windows, weekly caps, overages
- 4. How the work runs: mid-task steering, parallelism, sandboxes and permissions
- 5. Instruction files and extensions: CLAUDE.md, AGENTS.md, MCP
- 6. Computer use: which OS, plan, and region
- 7. Models and performance: choosing a tool means choosing a model
- 8. Which one to pick: nine scenarios
- 9. Using both, switching, and testing them on your own repo
- FAQ
1. The short answer: the gap is in access conditions, not features
Here is the whole picture on one page. Sections 2 onward check each condition and its source one by one.
| Point of comparison | Claude Code | Codex |
|---|---|---|
| Developer and models | Anthropic / Claude models only | OpenAI / OpenAI models only |
| Where it runs | Terminal, IDE, desktop, cloud, phone | Terminal, IDE, desktop, cloud, phone |
| Free to use? | No (not included in the Free plan; pay-as-you-go with an API key works) | Yes (included in Free and Go, with small limits) |
| Paid individual plans | Pro $20 / Max $100 and $200 | Plus $20 / Pro $100, $200, and $500 |
| How limits work | A 5-hour window plus a weekly cap. Beyond that, usage credits (standard API rates) | Guideline figures per 5 hours plus a weekly cap. Beyond that, ChatGPT credits |
| Local safety net | Built around permission modes. The OS-level sandbox is something you turn on yourself (not supported on native Windows) | OS-level sandbox on by default (including native Windows) |
| Instruction file | CLAUDE.md (reads AGENTS.md if there is no CLAUDE.md) | AGENTS.md |
| Computer use | Research preview. Pro and Max only. CLI on macOS; desktop on macOS and Windows | ChatGPT desktop app (macOS, Windows). Limited to certain regions |
| Automatic GitHub PR review | The managed Code Review is Team and Enterprise only. Individuals use GitHub Actions | Automatic code review included with Plus |
| Source code | Closed (Anthropic's Commercial Terms of Service) | CLI open-sourced under Apache-2.0 |
None of the differences in the lower half of the table are features that only one side has. They are the same features offered under different conditions. That means you can decide by checking, in order: (1) which subscription you already pay for, (2) which models you want to use, and (3) whether your setup (OS, plan, region) meets the conditions. Answers by scenario are in Section 8.
2. Where they run: terminal, IDE, desktop, cloud, phone
The old split of "Claude Code for interactive local work, Codex for handing tasks off to the cloud" no longer holds. Both run locally and in the cloud. What differs are the details of each entry point.
| Entry point | Claude Code | Codex |
|---|---|---|
| Terminal (CLI) | macOS 13 or later, Windows 10 (1809) or later, Ubuntu 20.04 or later. On Windows it runs natively or under WSL | Installers for macOS, Linux, and Windows, plus npm and Homebrew |
| IDE | VS Code and VS Code-based editors such as Cursor. JetBrains IDEs | VS Code, Cursor, Windsurf. JetBrains and Xcode through their own built-in integrations |
| Desktop app | The Code tab in the Claude desktop app (macOS, Windows; Linux in beta) | Codex in the ChatGPT desktop app (the former Codex app was merged in on July 9, 2026). macOS, Windows; Linux in preview |
| Cloud | From claude.ai/code, the phone app, the desktop app, or claude --cloud. Pro, Max, Team, and some Enterprise seats. Left research preview on September 23, 2026 (our guide to cloud sessions) | Start from web, phone, or desktop by selecting a published environment. New environments are prepared from GitHub repositories. Code Review, Linear, and GitHub integrations use legacy Cloud environments. Not available with an API key |
| Phone | The Code tab in the Claude app (iOS, Android). Works with cloud sessions, or controls a local session remotely | Codex in the ChatGPT app (previously labeled Remote). Remotely control work on a connected Mac or Windows PC, or start and continue tasks in a published Cloud environment. Availability varies with the rollout |
Sources: Claude Code "Advanced setup", VS Code, Use Claude Code in the cloud, mobile / Codex CLI, IDE extension, Codex cloud, Remote, What's new (all checked September 22, 2026)
Phone access and Cloud execution are different
- Remote connection: The connected PC must be online, awake, and running the app. If it sleeps, remote access stops.
- Cloud task: The task runs in a published Cloud environment, so it can continue while your own PC sleeps. Your PC's files, running processes, and browser login sessions are not transferred automatically.
- New Cloud limitations: Built-in Computer and Browser use are not supported. Do not assume that screen-control features on your own PC are also available in Cloud.
We rechecked the official Remote connections and Cloud environments documentation on October 8, 2026. For setup and stopping conditions, see our guide to Codex Remote, Cloud, and PC sleep.
How they differ in the cloud
Both share the main benefit of the cloud: the work keeps going after you close your laptop. Beyond that, they differ in three ways.
Claude Code needs GitHub to clone and open PRs. With GitLab and others, you can send your whole local repository and work on it, but you can't push the results back to that remote. For Codex's new Cloud environments, you select a GitHub repository during setup. The official current limitations explicitly list GitLab and self-hosted GitHub Enterprise Server as unsupported. Keep these separate from legacy Cloud documentation.
Claude Code's default environment is set to Trusted, which allows only approved domains such as package registries. In Codex's new Cloud environments, internet access and allowed domains are configured per environment. Legacy Cloud disables task-time internet access by default, but can also be configured for restricted or unrestricted access. This does not mean access is possible only during setup.
Claude Code's cloud draws on the same limits as the rest of your Claude usage, with no separate charge for VM compute. In Codex's cloud, the default model can't be changed (as of October 5, 2026; the current Codex "Models" page doesn't say which model it runs on), and OpenAI notes that cloud tasks can use more of your limits than local runs.
Sources: Claude Code "Configure cloud environments" / Codex "Cloud environments", Codex Cloud (Legacy), Codex "Pricing", Workspace model availability (Codex environments, network access, and integrations rechecked October 8, 2026)
Claude Code also has a Projects feature that hands out multiple cloud sessions from a single conversation and pulls their progress together. Codex starts a separate working environment for each task from a published environment. Codex Cloud (Legacy) continues to handle Code Review, Linear, and GitHub integrations. Delegation to new Cloud environments from Slack and Microsoft Teams is for Enterprise workspaces with Cloud delegation enabled.
3. Pricing and usage limits: free tiers, 5-hour windows, weekly caps, overages
In both cases, the coding agent comes bundled with a chat subscription: Claude Code with Claude plans, and Codex with ChatGPT plans.
| Monthly (USD) | Claude (Claude Code) | ChatGPT (Codex) |
|---|---|---|
| $0 | Free: Claude Code not included | Free: Codex available (positioned for trying it on short tasks; GPT-6 Luna rolling out in the desktop app) |
| $8 | — | Go: for light coding work (GPT-6 Luna rolling out, same as Free) |
| $20 | Pro ($17/month equivalent when billed annually) | Plus |
| $100 | Max (5x Pro's limits) | Pro 100 (10x Plus's limits) |
| $200 | Ultra (10x Pro's weekly limits; no 5-hour limit for verified accounts). Renamed from Max 20x on October 31, 2026 | Pro 200 (20x Plus's limits). New sign-ups reopened on September 29, 2026. Since October 29, the same limits apply regardless of when you subscribed |
| $500 | — | Pro 500 (50x Plus's limits; includes Astra Ultrafast) |
| Organizations | Team / Enterprise | Business ($20 per user billed annually, $25 billed monthly) / Enterprise / Edu |
| API key | Pay-as-you-go with a Claude Console API key. Not among the plans eligible for cloud sessions | Pay-as-you-go with an OpenAI API key. Cloud features (GitHub code review, Slack, etc.) not included |
Sources: Claude pricing page, Max plan help article, Claude Code "Advanced setup" / Codex "Pricing", OpenAI Help "About ChatGPT Pro tiers", X post by OpenAI staffer Tibo, OpenAI "DevDay 2026 Recap", OpenAI Help "Using Codex with your ChatGPT plan" (checked September 22, 2026; the three OpenAI pages rechecked September 26, and the Pro tiers and multipliers rechecked October 5)
The $20, $100, and $200 tiers are shared, and ChatGPT adds a $500 Pro tier on top. The clear difference is at the bottom end. OpenAI's help center says Codex is included in every ChatGPT plan, Free and Go included, while Claude Code's official documentation says Claude Code is not included in the free claude.ai plan. If you want to try one without paying anything, Codex is the only way in.
Both have a 5-hour window and a weekly cap; they differ in how you pay for overages
In both, your allowance goes down with the weight of the work (how much is read, how much is written, which model is used), both have a 5-hour window and a weekly cap, and both let you pay extra to keep going once you hit them. What differs is the unit for the overage.
Chat, desktop, and Claude Code usage all draw on the same limits (Anthropic Help)
Local runs, the cloud, and ChatGPT Work all draw on the same limits (Codex "Pricing")
They also publish numbers differently. OpenAI gives per-model guideline figures for messages per 5 hours, but the ranges are wide, with the high and low ends nearly 10x apart even for the same model and plan, and OpenAI itself notes that these are not fixed limits. Anthropic gives no counts, saying the number of messages you can send varies with message length, attachments, conversation length, and model. With either one, you won't know how much headroom you really have until you've run it for a week or two with your own workload.
What Claude Code shows when you hit the limit, and what to do about it, is covered in our article on "You've hit your session limit"; to find which session is eating your allowance, see how to view usage by session. Codex's limits are also shared with ChatGPT Work, so if you use Work heavily, see our explainer on ChatGPT Work too.
4. How the work runs: mid-task steering, parallelism, sandboxes and permissions
Can you change direction mid-task?
Yes. Both let you send additional instructions while they work. In the terminal, Claude Code queues what you type during a task and passes it on at a natural break; you can also press Esc to stop and redirect. Codex CLI can likewise inject instructions into a turn that is already running.
The same goes for the cloud. Claude Code's documentation says sessions keep running after you close your laptop and that you can check in and steer from any device; Codex's documentation says you can continue in the same chat to add context, change constraints, or ask for a progress summary. Both can change course partway through cloud tasks (Claude Code "Interactive mode", Codex "Long-running work").
Ways to run things in parallel
| Form of parallelism | Claude Code | Codex |
|---|---|---|
| Splitting work within one conversation | Subagents. Agent teams, where multiple sessions collaborate as peers, are an experimental feature and off by default | Subagents (on by default in the current version). Ultra mode uses subagents to break up large tasks |
| Multiple local sessions | Parallel sessions in the desktop app (isolated with Git), worktrees, agent view (research preview) | Parallel chats in the ChatGPT desktop app, Worktree mode |
| Simultaneously in the cloud | Running claude --cloud several times gives you separate, independent sessions | Submit multiple tasks to Codex cloud |
Sources: Claude Code "agent teams", Desktop, cloud / Codex "Subagents", Models, Worktrees
For when to use which on the Claude Code side, see subagents vs. agent teams and our article on agent view. In Codex, subagents start when you ask for them or when AGENTS.md tells it to split the work; how to run them in parallel in both tools is covered in Codex and Claude Code Subagents: How to Run Them in Parallel. With both companies, the more you parallelize, the faster you burn through your limits.
Sandboxes and permissions: the defaults differ most
This is where the two designs diverge most clearly.
You choose from Manual (asks every time), acceptEdits (edits go through automatically), plan (planning only), auto (a separate model reviews each action), and others. In the terminal and VS Code, it starts in auto on every plan and provider from v2.1.283 (on earlier versions, only Pro, Max, and Team start in auto; it starts in Manual in some cases, such as the first run right after installing, an organization whose administrator has turned auto off, or a model that doesn't support auto). The sandbox, which fences off files and network access at the OS level, is something you turn on yourself with /sandbox; it works on macOS, Linux, and WSL2. Native Windows is not supported.
In the default mode, an OS-native sandbox kicks in automatically: Seatbelt on macOS, bubblewrap on Linux and WSL2, and a dedicated Windows sandbox on native Windows under PowerShell. On top of that sit Ask for approval (asks before stepping outside the working folder), Approve for me (sends decisions to an automatic review), and Full access (removes the restrictions).
Sources: Claude Code "Choose a permission mode", Sandboxing / Codex "Sandbox", Permissions, Windows sandbox
In practice: if you want to stay on plain Windows and let the agent work inside an OS-level fence, Codex is the more straightforward choice. Claude Code runs on native Windows too, but for the same kind of fence you run it inside WSL2. Conversely, Claude Code's auto mode is a way to cut down on confirmation prompts, not a mechanism that fences off files and network access at the OS level. For important repositories, it's safer to use /sandbox alongside it.
Use modes that skip all confirmations only in an isolated environment. Claude Code's bypassPermissions and Codex's Full access both work, by design, as "run anything without asking" modes. If you use them routinely on your own machine and the agent follows instructions planted in a document it has read, the last safeguard, the confirmation step, won't be there to stop it. For more on the Claude Code side, see our article on bypass permissions mode.
5. Instruction files and extensions: CLAUDE.md, AGENTS.md, MCP
The file that passes your project's conventions (build commands, how to run tests, coding style) to the agent is CLAUDE.md for Claude Code and AGENTS.md for Codex. AGENTS.md is an open format maintained by the Agentic AI Foundation under the Linux Foundation, and tools other than Codex read it too (agents.md).
There is one important change. From v2.1.277, if there is no CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md in the working folder or above it, Claude Code reads AGENTS.md as is. If any of those files exists, only the CLAUDE.md side is read by default, so if you use both, add one line to CLAUDE.md to import it (Claude Code "memory").
@AGENTS.md
## Claude Code only
- Delegate research to subagents
The above is an example CLAUDE.md. The first line imports AGENTS.md; below it, write anything you want to apply only to Claude Code.
Codex reads ~/.codex/AGENTS.md (shared across all repositories) and then every AGENTS.md from the repository root down to the working folder, concatenated in order. Once the total reaches the default of 32 KiB, nothing more is added, so in large repositories you split them up per folder. By setting project_doc_fallback_filenames, you can also have it read a file under another name in folders that have no AGENTS.md (Codex "AGENTS.md").
If you've written rules and they're not being followed, why AI ignores your rules and how to fix it covers what to check in each tool.
MCP, hooks, skills, plugins
MCP for connecting to external tools and data, hooks that run scripts at set points, skills for reusable procedures, and plugins that bundle them together: both tools have all of these. There's little reason to choose between them on this basis. What's worth remembering is how they relate to your limits. On its pricing page, OpenAI advises that each MCP server adds context and uses more of your limits, so you should disable servers you aren't using. Claude Code's documentation, too, makes deferred loading of tool definitions (loading them only when needed) the default and recommends disabling unused servers with /mcp (Claude Code "Manage costs").
6. Computer use: which OS, plan, and region
Computer Use, which lets the agent operate your PC's screen, is available in both Claude Code and Codex. Both look at the screen and click and type to drive native apps, simulators, and GUI-only tools that commands and APIs can't reach. The difference is in availability.
| Condition | Claude Code | Codex |
|---|---|---|
| Release stage | Research preview | Available only in certain regions |
| Where you can use it | CLI (macOS only) and the desktop app (macOS, Windows). Not supported in the Linux desktop app | Codex and ChatGPT Work in the ChatGPT desktop app (macOS, Windows) |
| Plans | Pro and Max only. Not available on Team or Enterprise | The pricing page's feature table marks it as available in select regions in every column: Plus, Pro, Business, Enterprise, and API key |
| How to start | In the CLI, enable computer-use via /mcp. In the desktop app, a toggle in settings | Install and enable the Computer Use plugin |
| Things to know | On macOS, needs Accessibility and Screen Recording permissions | On macOS, needs the same two permissions. On Windows, it takes over the foreground while working |
Sources: Claude Code "computer use", Desktop / Codex "Computer Use", Pricing (feature table)
Both are designed on the principle of reaching for precise tools first and treating screen control as a last resort. Claude Code tries MCP, the shell, and the Chrome integration, in that order, before moving to screen control, and Codex advises using its built-in browser first if you're working on a local web app. If you want computer use under a company Team or Enterprise contract, Claude Code currently can't do it, which is worth factoring into your decision.
7. Models and performance: choosing a tool means choosing a model
Claude Code runs only on Claude models, and Codex only on OpenAI models (Claude Code can also use Claude through Amazon Bedrock, Google Cloud, and Microsoft Foundry; Codex can also use OpenAI models through Amazon Bedrock and Google Cloud (Vertex AI)). In other words, "which tool?" is nearly the same question as "which company's models?"
- The default is Opus on every plan: Pro, Max, Team, and Enterprise (currently Opus 5.5)
- Before v2.1.280 (September 22), Pro defaulted to Sonnet and Max to Opus
- Fable, the most capable model, is for heavy work that runs autonomously for a long time. It isn't the default on any plan, so you pick it yourself (
/model fablecurrently gives you Fable 5.1) - Depending on the plan, Fable is billed through usage credits
- For details, see our Claude Opus 5.5 explainer
- Recommended: GPT-6 Astra, Sol, and Luna (Astra for the heaviest work, Sol for everyday and complex coding, Luna for high-volume routine tasks)
- GPT-6.1 Sol arrived on September 29, replaced GPT-6 Sol as the recommended Sol, and became the default model from Codex CLI 0.159.1 (Plus, Pro, Business, Enterprise, and Edu; not Free or Go, and not available in ChatGPT's Chat; GPT-6 Sol can still be selected)
- GPT-5.6 Sol, Terra, and Luna remain selectable during the transition period
- In Codex cloud, the default model can't be changed (per the admin documentation as of October 5; the current Models page doesn't say which model the cloud runs on)
- Free and Go get GPT-6 Luna in the desktop app (rolling out)
- GPT-5.5 will be retired from Codex signed in with ChatGPT on October 14, 2026 (the API is not affected)
- For details, see our GPT-6 Astra explainer and our GPT-6 Sol and Luna explainer
Sources: Codex "Models", What's new, Workspace model availability
Model names turn over every few months, so none of the recommendations in this article depend on them. The two cards above are the only dated information, and we'll swap them out when the models change. We also track each company's current models in our list of major models.
Why we don't include a benchmark comparison table
This article doesn't include a benchmark table such as SWE-bench Verified. Like our Claude Opus 5.5 and GPT-6 Astra articles, we only put side by side figures measured by the same publisher with the same yardstick. There are three reasons.
Each company picks a different mix of tests for its announcements. Pulling numbers from separate announcements into one table doesn't give you a comparison under the same conditions.
Published scores are the model's results, not a measure of how good Claude Code or Codex is as a tool. The same model can produce different results depending on how the tool is built (how it passes instructions, how it calls tools).
The rankings shuffle every time a new model comes out. The moment a comparison article locks in numbers, it starts going out of date.
If you want to check the numbers, look at each company's release post and see whether the same test lists scores for both. A more reliable approach is to compare them on your own repository using the steps in Section 9.
8. Which one to pick: nine scenarios
Here's how the conditions above apply to common situations. If more than one fits, give priority to the one higher up.
Claude Pro includes Claude Code, and ChatGPT Plus includes Codex. Use whichever you can try at no extra cost for a week or two, and consider the other only once your complaints become specific.
Codex is included in ChatGPT Free and Go. Claude Code requires a paid plan or pay-as-you-go billing with an API key.
For Claude models, Claude Code; for OpenAI models, Codex. How well the model fits your work matters more to the results than the feature differences between the tools.
Codex's Windows sandbox works under PowerShell. Claude Code runs natively too, but its OS-level sandbox requires WSL2.
Codex includes automatic GitHub code review with Plus. Claude's managed Code Review is generally available for Team and Enterprise (since October 15, 2026), but individuals can still run it with @claude by giving GitHub Actions a Pro or Max token.
If you want to go from writing to building to checking on screen without leaving the terminal, use the Claude Code CLI (Pro and Max, research preview). If you work in an app window, you can do it in the Claude desktop app or with Codex in the ChatGPT desktop app (for Codex, check regional availability).
At $100, Claude's Max gives 5x Pro and ChatGPT's Pro 100 gives 10x Plus. At $200, Claude Ultra gives 10x Pro's weekly limits (no 5-hour limit for verified accounts), while ChatGPT Pro 200 gives 20x Plus. If you need more, ChatGPT also has Pro 500 (50x Plus). The ChatGPT multipliers reflect October 29, 2026, when the Pro 100 and Pro 500 limits doubled and everyone on Pro 200 moved to the higher limits (our calculation). Each multiplier is measured against that company's own $20 plan, so the numbers don't compare the two companies' allowances directly.
Codex CLI is open source under Apache-2.0 (the IDE extension and Codex cloud are not). Claude Code is provided under Anthropic's Commercial Terms of Service, and its source is not public.
Write your conventions in AGENTS.md and have Claude Code import it with @AGENTS.md in CLAUDE.md (if you don't have a CLAUDE.md, v2.1.277 and later read it as is).
Sources: Claude Code "Code Review", GitHub Actions, Claude Code's LICENSE.md / Codex "Pricing", Codex "Open Source", OpenAI Help "About ChatGPT Pro tiers"
9. Using both, switching, and testing them on your own repo
Using both costs $40 a month with Claude Pro and ChatGPT Plus. You can also carry on with one when the other runs out of allowance. If you use both, consolidating your instructions into AGENTS.md saves you from maintaining your conventions in two places.
If you're moving from Claude Code to Codex, Codex has an import feature. Type /import in Codex CLI and choose Claude Code to bring over your settings, project files, and recent conversations (up to 50 from the last 30 days). The ChatGPT desktop app can import from Claude Code, Claude Cowork, and Cursor. Your settings in the original tool are left unchanged (Codex "Import from another agent").
A 30-minute way to compare them
What tells you more than any benchmark is how each one handles the same tasks on your own repository. With the steps below, one trial takes about 30 minutes.
- Pick three tasks: (1) a small bug fix, (2) adding tests to an existing function, (3) a small feature that spans 2–3 files. Choose ones where you already know the answer
- Keep conditions equal: cut separate branches (or worktrees) from the same commit, have both read the same AGENTS.md, and use the same wording in your request
- Look at four things: whether the tests passed / whether the diff is minimal / how many times you had to step in / how much of your allowance the usage screen shows was used
- Don't decide on one run: results vary even on the same task, so rerun only the tasks that caught your attention and look for the trend
If this comparison shows no difference, either tool will do. In that case, the fastest way to decide is on pricing and setup conditions (Sections 3–6).
For dedicated security scans, see our guide to Codex Security setup, pricing, and interpreting results.
To keep completion criteria in view while Codex investigates, fixes, and verifies, see how to use Codex /goal. The guide covers desktop and CLI controls, stopping conditions, and the distinction between token budgets and pricing.
FAQ
Q1. Can I use Codex for free? What about Claude Code?
Codex, yes. It's included in ChatGPT Free ($0) and Go ($8); the limits are just small. Claude Code isn't included in the free Claude plan; you need Pro or higher, or pay-as-you-go billing with a Claude Console API key. The evidence is summarized in Section 3.
Q2. Isn't Claude Code local-only?
No. It can also run sessions on cloud VMs managed by Anthropic (Pro, Max, Team, and some Enterprise seats; left research preview on September 23, 2026). The work continues after you close your laptop, and you can add instructions while it runs. Entry points and conditions are in the table in Section 2.
Q3. Will my code be used for training?
On individual plans, it depends on your settings for both. Anthropic says that for Free, Pro, and Max, users choose whether their data may be used for training, and if they opt in, that includes Claude Code usage; under commercial terms such as Team, Enterprise, and the API, data isn't used for training by default. OpenAI says your ChatGPT training data setting also applies to content processed by Codex, and that Business, Enterprise, and API inputs and outputs aren't used for training by default (Claude Code "Data usage", OpenAI Help). Note that even when running locally, whatever you pass to the model is sent over the network to that company. For the steps to opt out on an individual plan, see "How to opt out of Claude Code training."
For OpenAI products, see ChatGPT and Codex training settings and confidential data risks. The guide also covers the separate setting for training on Codex environments and what to do after entering confidential information.
Q4. Is it OK to use both on the same repository?
Yes. There are two things to watch. The first is instruction files: make AGENTS.md the source of truth and have Claude Code import it with @AGENTS.md, and they won't drift apart. The second is simultaneous editing: if two agents write to the same working folder at the same time, they may overwrite each other's changes. If you run them in parallel, give each its own working folder with worktrees.
Q5. Codex says "thread not found."
That doesn't necessarily mean the conversation history itself is gone. We've written up the steps to check before deleting anything in how to fix "thread not found" in Codex.
Sources
- Claude Code documentation: Platforms and integrations / Advanced setup / Use Claude Code in the cloud / Cloud environments / Permission modes / Sandboxing / Memory (CLAUDE.md, AGENTS.md) / Computer use / Model configuration / Code Review / Data usage
- Anthropic: Claude pricing page / Max plan / Using Claude Code with Pro and Max / Usage credits
- Codex documentation: Pricing / Codex CLI / IDE extension / Codex cloud / Sandbox / AGENTS.md / Computer Use / Models / Open Source / Import from another agent / What's new
- OpenAI: Using Codex with your ChatGPT plan / About ChatGPT Pro tiers / Deprecations
- Licenses: openai/codex (Apache-2.0) / anthropics/claude-code LICENSE.md / agents.md
All of the above were checked against the original text of the official documentation retrieved on September 22, 2026. Models and defaults, cloud availability, and the Codex pricing page were retrieved again and rechecked on September 26. The ChatGPT Pro tiers and the Codex cloud model were rechecked against the original text on October 5. Pricing, plans, and availability can change, so check each company's pages before you sign up.
Related: Claude Fable 5 for coding.
Related: What Is ChatGPT Work? The GPT-6 Astra work agent — OpenAI's work agent that shares usage limits with Codex.