OpenAI Codex data privacy, retention and zero data retention

OpenAI Codex data handling depends on the ChatGPT plan, the Codex surface used and the workspace settings. This page sets out training, retention and zero data retention boundaries for a security review.

On this page

Does OpenAI Codex meet a data privacy and retention requirement?

OpenAI does not train on Business, Enterprise and Edu data by default, but that default does not settle the requirement on its own. Codex cloud is off by default for Enterprise workspaces until an admin enables it, and zero data retention is not documented for Codex on these plans, so a reviewer should not assume ZDR applies to any Codex surface. Start by confirming which plan and workspace will hold the data, then record what the workspace has enabled.

Meeting the requirement takes four decisions. First, choose the plan that matches the data: the Using Codex with your ChatGPT plan article lists which plans include cloud access. Second, confirm the data controls that apply to Codex cloud tasks, which run in OpenAI-managed environments, and that ChatGPT training data controls cover content processed through Codex. Third, confirm the retention settings with OpenAI: the enterprise privacy page says workspace admins set retention and that deleted conversations are removed within 30 days unless legal obligations require otherwise. Ask whether that rule covers every Codex artifact you intend to keep.

The fourth decision is local computer access. The Codex admin rollout guide states that local computer access with Work Cloud does not provide strict zero data retention and that organizations requiring ZDR should not enable it. If your policy demands ZDR, keep that access disabled and confirm the result in writing with OpenAI before rollout. Record the decision, the plan and the admin settings in your data inventory so the evidence matches what staff can actually do.

Codex data handling by plan and surface

This table compares what OpenAI documents for training use, training controls, retention and zero data retention across ChatGPT plans and Codex surfaces. Read each row against the plan your staff sign in with, and treat any cell that says to confirm as an open question for OpenAI. The main takeaway is that training and retention defaults depend on the plan, zero data retention for Codex is not documented for Business, Enterprise or Edu, and local computer access does not provide strict zero data retention.

Plan or surfaceDefault training use and controlsRetentionZero data retention status
Free and GoNo default is documented for these plans. Confirm with OpenAI and check data controls in each account.Not documented for these plans. Ask OpenAI for the retention period.Not documented for Codex
Plus and ProMay be used to improve models unless training is turned off in data controls.Not documented for individual plans. Ask OpenAI to confirm.Not documented for Codex
Business, Enterprise and EduNot used to improve models by default. Training controls apply, so confirm the settings in the admin console.Set by workspace admins. Deleted conversations are removed within 30 days unless legally required to be kept.Not documented for Business, Enterprise or Edu
Codex cloud tasksRun in OpenAI-managed environments. ChatGPT training data controls apply to content processed through Codex.Follows the admin retention setting for business plans. Confirm for other plans.Not documented for cloud tasks
Local CLI, IDE extension and appDepends on the plan used to sign in. Confirm whether ChatGPT data controls apply to local sessions.Confirm with OpenAI how long local session data is kept.Not documented for local use
Local computer access with Work CloudDepends on the plan and workspace settings. Confirm before enabling.Confirm with OpenAI before relying on any retention period.Does not provide strict zero data retention. The admin rollout guide says organizations requiring ZDR should not enable it.

How training, retention and encryption apply to Codex data

Start with where Codex work actually runs. Codex cloud tasks run in OpenAI-managed environments, and ChatGPT training data controls apply to content processed through Codex. That means the training setting on the workspace or account, not the Codex client you installed, determines whether inputs and outputs can be used to improve models. By default, OpenAI does not use inputs or outputs from Business, Enterprise and Edu users to improve models, while Plus and Pro conversations may be used unless training is turned off in data controls. Confirm in the admin console that the training setting is off for every workspace that will use Codex, and confirm which plan each group of staff is actually on.

Retention is set by the organization, not by individual users. Per OpenAI's enterprise privacy page, Enterprise, Edu and Business admins set retention, and deleted conversations are removed within 30 days unless legally required to be kept. Ask OpenAI in writing how that 30-day window applies to Codex-specific artifacts such as cloud task environments, task logs, diffs and any repository content retained during a task, and whether those artifacts follow the same deletion path as chat conversations. Ask as well whether any Codex data is kept under a separate schedule.

Encryption is the simplest control to document. OpenAI's enterprise privacy page states that data is encrypted with AES-256 at rest and TLS 1.2 or later in transit. Record those statements as vendor claims, and ask OpenAI to confirm they cover Codex cloud storage and the connections the local CLI and IDE extension make. Zero data retention is a separate question: the enterprise privacy page mentions it for eligible API endpoints with a qualifying use case and does not mention it for Business, Enterprise or Edu, and the Codex admin rollout guide states that local computer access with Work Cloud does not provide strict zero data retention. Organizations that require ZDR should not enable that access, and should get the written answer before rollout.

Where Codex data goes by surface

The diagram starts at a developer's machine, where the Codex CLI or IDE extension runs. It splits into two paths. On the local-computer path, the work stays on the device, and Codex does not apply strict zero data retention when local computer access runs with Work Cloud, so admins who need ZDR should not enable it. On the cloud path, a Codex cloud task runs in OpenAI-managed environments, where ChatGPT training data controls apply. Both paths feed the workspace controls: the training setting, admin-set retention, and deletion within 30 days unless legally required. Check which path each team uses before approving the tool.

Data paths for Codex local and cloud surfaces under workspace controls.

Which Codex features fall outside zero data retention

Zero data retention is not a single switch that covers every Codex surface. Some features run under Work Cloud or training settings that a ZDR request does not change, and the Compliance API records activity rather than limiting it. Use these cards to map each feature to its data path before you approve a ZDR requirement.

Local computer access with Work Cloud

When Codex works on a developer's machine with Work Cloud enabled, the admin rollout guide states that this mode does not provide strict zero data retention. The guide advises organizations that require ZDR not to enable it. Confirm with your admins which users can switch on local computer access, and whether that permission can be restricted centrally.

Admin rollout guide

Codex cloud tasks in managed environments

Codex cloud tasks run in OpenAI-managed environments rather than on your endpoints. The help article states that ChatGPT training data controls apply to content processed through Codex. Ask OpenAI in writing how code, prompts and outputs from cloud tasks are retained and deleted, and whether any ZDR treatment applies to them.

Codex plan article

Plus and Pro training exposure

By default OpenAI does not use Business, Enterprise or Edu inputs and outputs to improve models. Plus and Pro conversations may be used for training unless the user turns training off in data controls. If any staff use personal Plus or Pro accounts for Codex work on company code, that data falls outside your enterprise terms. Block personal accounts through your identity controls.

Codex plan article

Compliance API visibility of Codex usage

The help article states that Codex usage, including cloud-delegated usage, is available through the Compliance API. This gives your compliance team a record of activity, but it does not shorten retention or change what OpenAI stores. Decide which fields your team needs, confirm that your plan includes the Compliance API, and set your own export and retention schedule for those records.

ZDR requests apply to API endpoints

OpenAI's enterprise privacy page says zero data retention can be requested for eligible API endpoints with a qualifying use case. It does not list Business, Enterprise or Edu workspaces or Codex as covered. An API key does not make Codex a ZDR product. Ask OpenAI whether any approved API endpoint is in your Codex workflow before you assume that coverage.

Enterprise privacy page

Get ZDR scope confirmed in writing

Do not accept a verbal statement that a Codex feature has zero data retention. Send OpenAI a written list of the surfaces you plan to use, including local access, cloud tasks, CLI with an API key and the Compliance API, and ask which retention terms apply to each. Record the answers in your approval file and repeat the request whenever you enable a new Codex feature.

Enterprise privacy page

How the data answer changes by team and sensitivity

For general source code on a Business or Enterprise workspace, the published default is the most favorable of the four situations. OpenAI's help article states that, by default, it does not use inputs or outputs from Business, Enterprise and Edu users to improve models. The enterprise privacy page says admins set retention and that deleted conversations are removed within 30 days unless legally required to be kept. Data is encrypted with AES-256 at rest and TLS 1.2 or later in transit.

  • Training default: Business and Enterprise inputs and outputs are not used for model improvement by default. Confirm this in the written terms that apply to your contract.
  • Retention: Admins set the retention period, and deleted conversations are removed within 30 days unless a legal hold applies.
  • Cloud tasks: Codex cloud tasks run in OpenAI-managed environments, and ChatGPT data controls apply to content processed through Codex.
  • Access: Codex cloud is off by default for Enterprise workspaces until an admin enables it.
  • Decision to record: Approve general code use on the Business or Enterprise workspace, the retention setting chosen, and whether cloud tasks are enabled.

Check the admin console to confirm the retention setting and cloud access state match what was approved.

Gaps a reviewer should raise before approval

The published Codex material answers some privacy questions but leaves others to the contract and to written answers from OpenAI. The cards below cover the gaps a security or procurement reviewer should close before approving use with sensitive code, and the usual way to close each one.

No documented ZDR for Codex on business plans

The enterprise privacy page mentions zero data retention only for eligible API endpoints with a qualifying use case, and does not mention it for Business, Enterprise or Edu. A reviewer should not assume that a Codex seat on those plans carries ZDR. Ask OpenAI in writing whether any Codex surface, including cloud tasks, is covered, and under which written terms. Until the answer is in the contract, treat Codex use on these plans as subject to standard retention.

Enterprise privacy page

Local computer access without strict ZDR

The admin rollout guide states that local computer access with Work Cloud does not provide strict zero data retention, and that organizations requiring ZDR should not enable it. Reviewers should confirm which sessions run locally and which run in OpenAI-managed cloud environments, and whether the local setting is enforced by policy. Where ZDR is a requirement, the control is a configuration decision that the admin must lock, not a per-developer choice.

Admin rollout guide

Retention period not stated per artifact

OpenAI's enterprise privacy page says admins set retention and that deleted conversations are removed within 30 days unless legally required to be kept. That statement covers deleted conversations. It does not say how long prompts, code context, cloud task environments, logs or generated diffs are held for each Codex surface. Ask OpenAI for a retention table per artifact type, and ask whether the 30-day deletion window applies to Codex cloud task data.

Training status varies by plan

OpenAI's help article states that by default it does not use inputs or outputs from Business, Enterprise and Edu users to improve models, while Plus and Pro conversations may be used unless training is turned off in data controls. Codex cloud tasks also fall under ChatGPT training data controls. Reviewers should confirm the training setting on each workspace and each individual account, and should not allow staff to use personal Plus or Pro accounts for company code.

Codex plan help article

Reliance on OpenAI's statements for data location

The published material describes encryption at rest and in transit, but the sources reviewed do not state where Codex data is stored or processed, or which regions are used for cloud tasks. Reviewers should not accept a general assurance as a data residency commitment. Ask OpenAI to state data location and sub-processor locations in writing, and classify repositories so that regulated code stays out of cloud tasks until that answer is documented.

Encryption at rest
AES-256

Cloud use restricted to non-sensitive repositories

A practical control while gaps remain is a data classification rule that sets which repositories may be used with Codex cloud tasks. Illustratively, a team could allow cloud tasks only for public or internal-use repositories, keep regulated or secret-bearing code on local sessions with ZDR off the table, and block personal accounts. Document the rule, assign an owner, and review it when OpenAI answers the open questions or changes its data terms.

Order of work to approve Codex data handling

This sequence moves from classifying your code and data to recording the risk you accept, so that each Codex cloud and local decision rests on a plan, training setting, retention setting and logging record you have checked. The output is an approval record that a security reviewer can trace back to evidence in the admin console and the current documentation.

  1. Classify repositories and data by sensitivity

    Security and engineering leads group repositories into classes, such as public open-source code, internal code, code containing regulated personal data and code touching payment or health systems. For each class, record whether prompts, file contents and command output may leave your environment. The step is done when every repository has a named class and an owner, and the class list is signed off by the data owner. Confirm the classes against your records of regulated data, not against developer assumptions.

  2. Select the ChatGPT plan and confirm training controls

    Procurement and IT confirm which ChatGPT plan each user group holds, since OpenAI's help article on using Codex with a ChatGPT plan lists different plans for Codex and for Codex cloud. Under OpenAI's help article, Business, Enterprise and Edu inputs and outputs are not used to improve models by default, while Plus and Pro conversations may be used unless training is turned off in data controls. Ask OpenAI in writing to confirm that the same training rules apply to content processed through Codex. The step is done when the plan list and the written answer are filed with the approval record.

  3. Set retention in the admin console

    A workspace admin sets the retention policy for the workspace, since OpenAI's enterprise privacy page states that Enterprise, Edu and Business admins set retention and that deleted conversations are removed within 30 days unless legally required to be kept. Confirm the setting in the admin console and record the value, the date it was checked and the admin who checked it. Ask OpenAI to confirm how retention applies to Codex cloud task data, which runs in OpenAI-managed environments, because the public statements you have cover conversations generally. The step is done when the recorded setting matches what the console displays.

  4. Decide cloud and local use per repository class

    For each class from the first step, decide whether Codex cloud tasks are permitted, whether only the local CLI or IDE extension is permitted, or whether Codex is blocked. The admin rollout guide states that Codex cloud access is off by default for Enterprise workspaces that have not enabled it, and that local computer access with Work Cloud does not provide strict zero data retention. Organizations that require zero data retention should not enable local computer access with Work Cloud. Document each decision per class. The step is done when the policy table is approved and each repository is mapped to a permitted mode.

  5. Confirm Compliance API logging covers Codex

    The Compliance API administrator checks that Codex usage, including cloud-delegated usage, is available through the Compliance API as OpenAI's help article describes. Run a test session in a non-sensitive repository and confirm the event appears in the export or log destination your security team uses. Note any Codex activity that does not appear. The step is done when a test event is found in your log store and the gaps are listed as open items for OpenAI.

  6. Verify encryption and transfer terms with OpenAI

    Security reviewers take the encryption statements from OpenAI's enterprise privacy page, which state AES-256 encryption at rest and TLS 1.2 or later in transit, and ask OpenAI for the current data processing terms that cover Codex. Zero data retention is described on that page for eligible API endpoints with a qualifying use case, and it is not described for Business, Enterprise or Edu. Ask OpenAI directly whether any Codex feature qualifies for zero data retention and get the answer in writing. The step is done when the written answer and the encryption statements are attached to the record.

  7. Record residual risk and approve the policy

    The security owner writes a short residual risk statement for each repository class. It names the data that may leave your environment, the retention period in effect, the features that lack zero data retention, and the compensating controls such as restricted repositories or blocked cloud tasks. The accountable executive signs the statement. The step is done when the signed record exists and each class has an approved mode.

  8. Re-check documentation when the docs move

    OpenAI's Codex documentation has moved from developers.openai.com/codex to learn.chatgpt.com/docs, so the locations in your record may now be stale. Assign an owner to review the plan article, the enterprise privacy page and the admin rollout guide on a set schedule and whenever OpenAI announces a change. Compare each statement with the approval record and reopen the decision if a training, retention or zero data retention statement changes. The step is done when the owner has logged the review date and the sources checked.

Evidence a security reviewer asks to see

This table lists the documents and settings a reviewer should request for Codex data handling, where each one comes from, and what it leaves unproven. Read the last column as the question to put to OpenAI or to your own admin console before approval, since most artifacts describe a default or a plan rather than your workspace.

ArtifactWhere it comes fromWhat it does not prove
Training setting for Business, Enterprise and EduOpenAI help article on using Codex with a ChatGPT plan states inputs and outputs are not used to improve models by defaultThat your workspace has not changed a data control, or how Plus and Pro accounts used on the same machine are treated
Training setting for Plus and ProSame help article notes these conversations may be used unless training is turned off in data controlsAnything about Business or Enterprise accounts, so personal accounts must be excluded by policy
Retention configurationEnterprise privacy page says admins set retention and deleted conversations are removed within 30 days unless legally required to be keptRetention for Codex cloud task logs or local transcripts, which the reviewer should confirm separately with OpenAI
Zero data retention eligibilityEnterprise privacy page mentions ZDR for eligible API endpoints and does not list Business, Enterprise or EduThat Codex or ChatGPT workspaces qualify for ZDR. Ask OpenAI in writing before relying on it
Local computer access with Work CloudCodex admin rollout guide states it does not provide strict zero data retentionAny assurance for local sessions, so organizations requiring ZDR should not enable it
Cloud access enablement for EnterpriseHelp article states Codex cloud is off by default for Enterprise workspaces that have not enabled itWhether your workspace has enabled it, which requires checking the admin console
Compliance API coverage of cloud-delegated usageHelp article states Codex usage, including cloud-delegated usage, is available through the Compliance APIThat every log field you need is exported, or that your SIEM retention matches your policy
Encryption statementsEnterprise privacy page states AES-256 at rest and TLS 1.2 or later in transitKey management ownership, or encryption of data held by third-party tools you connect
SOC 2 Type 2 scopeEnterprise privacy page states ChatGPT Business, Enterprise and Edu have completed SOC 2 Type 2 auditsThat Codex cloud tasks or the Codex CLI are inside the audited scope; request the report and its system description

Questions buyers and reviewers ask about Codex data privacy

Does OpenAI train on code I send to Codex under each plan?

By default, OpenAI does not use inputs or outputs from Business, Enterprise and Edu users to improve models. Plus and Pro conversations may be used for training unless the user turns training off in data controls, so a Plus or Pro account is not equivalent to a business tier. Codex cloud tasks run in OpenAI-managed environments, and ChatGPT training data controls apply to content processed through Codex. Confirm which plan each developer account sits on, because a personal Plus login used for work code falls outside the business default. Ask OpenAI to confirm in writing how the default applies to your workspace and to Codex cloud tasks, OpenAI's help article on using Codex with a ChatGPT plan is the starting point for that check.

How long does OpenAI keep Codex business data?

Retention for business workspaces is set by your organization's admins, and OpenAI's enterprise privacy page states that deleted conversations are removed within 30 days unless legally required to be kept. Retention therefore depends on what your admins configure and on what you delete, not only on OpenAI's default. Clarify which artifacts sit under that 30-day statement, including Codex cloud task environments, logs and cached repository content, since the public statement does not spell out each one. Ask for the retention settings applied to your workspace and for a written description of each data type that Codex creates, stores or passes through.

Is zero data retention available for Codex?

The public statements do not show zero data retention covering Codex on Business, Enterprise or Edu. OpenAI's enterprise privacy page says zero data retention can be requested for eligible API endpoints with a qualifying use case and does not mention it for those ChatGPT business tiers. Treat ZDR as unconfirmed for Codex until OpenAI confirms in writing which Codex surfaces, endpoints and plans qualify. Ask whether the qualifying use case covers your intended Codex features, and whether it applies to cloud-delegated tasks as well as local sessions.

What happens to data when Codex uses local computer access?

Local computer access does not provide strict zero data retention under the Codex admin rollout guide, which states that organizations requiring ZDR should not enable it. Local sessions still send prompts and context to the model, so the data path differs from a purely local tool. Decide before rollout which sessions may use local computer access and document that decision in your acceptable use policy. Ask OpenAI to describe, in writing, what content from the local machine is transmitted, retained and used for training under each setting.

What does a Codex data privacy review cost, and what drives the effort?

OpenAI does not publish a fee for a privacy review of Codex, and the public sources supplied do not give a price or duration, so confirm both with OpenAI and your procurement team. Effort is driven by the number of plans in use, whether developers sign in with personal accounts, how many Codex surfaces you enable (CLI, IDE extension, app or cloud tasks), and how many regulated data types reach repositories. Ask for a quote that separates the vendor's contract and documentation steps from your internal review work. DeployOpen does not publish prices, and a quote follows from a written scope, so a fixed-scope review can be priced once those inputs are defined.

How long does a Codex data privacy review take?

No review timeline is published in the sources available for this page, so the duration depends on how quickly OpenAI answers written questions and how many plans and surfaces your review covers. Timelines usually lengthen when workspaces mix personal and business accounts or when ZDR and local-access questions need vendor confirmation. Build the schedule around the open items: the training default for each plan, the retention settings, the ZDR answer and the local-access decision. Ask OpenAI for a response date on each item before you commit an internal deadline.

What can our team do itself, and where does DeployOpen fit?

Your team can inventory which accounts and plans developers use, confirm the admin-set retention and training controls in the workspace, and record the local-access and cloud-task decisions in policy. DeployOpen plans and implements self-hosted open-source platforms in your own infrastructure, runs security testing including AI and agent security, and prepares systems and evidence for compliance assessments, but it does not issue audit reports or attestations, and it cannot change OpenAI's data handling terms. Ask OpenAI for the written statements a reviewer needs, and ask DeployOpen for a fixed-scope plan covering the internal evidence and testing you choose to run.

What must OpenAI put in writing before we approve Codex?

Request written confirmation of the training default for each plan and each Codex surface, the retention period and admin controls for your workspace, and whether ZDR applies to any Codex feature you plan to enable. Also ask which encryption is used at rest and in transit, and how the Compliance API covers cloud-delegated Codex usage. The enterprise privacy page states AES-256 encryption at rest and TLS 1.2 or later in transit, so ask OpenAI to confirm those statements apply to your Codex data. Keep the written answers with your approval record so reviewers can trace each decision.

Official pages to check each data claim against

Before any retention, training or zero data retention claim goes into an approval memo, check it against the source that owns it. Four OpenAI pages cover this topic, and each supports a different part of the answer. The Using Codex with your ChatGPT plan help article is the primary reference for which plans include Codex and for the statement that, by default, Business, Enterprise and Edu inputs and outputs are not used to improve models, while Plus and Pro conversations may be used unless training is turned off in data controls. It also states that Codex cloud tasks run in OpenAI-managed environments and that ChatGPT training data controls apply to content processed through Codex.

The OpenAI enterprise privacy page supports the retention and encryption answers. It states that Enterprise, Edu and Business admins set retention, that deleted conversations are removed within 30 days unless legally required to be kept, and that data is encrypted with AES-256 at rest and TLS 1.2 or later in transit. Its zero data retention language refers to eligible API endpoints with a qualifying use case and does not mention Business, Enterprise or Edu, so ask OpenAI in writing whether any Codex surface falls under ZDR. The Codex admin rollout guide is the page to check for local computer access with Work Cloud, which it says does not provide strict zero data retention, and for the instruction that organizations requiring ZDR should not enable it.

The openai/codex repository on GitHub is the source for the open-source CLI, which is licensed under Apache-2.0. Use it to confirm how the CLI handles data when it runs against a ChatGPT plan or an API key, because the data path differs from Codex cloud. Pages change. OpenAI has moved its Codex documentation before, so record the URL, the date you read each page and the owner who signed off, and repeat the check before every approval and at each renewal. Any claim you cannot find on these pages should go to OpenAI as a written question, not into the memo as fact.

How DeployOpen helps teams approve Codex data handling

DeployOpen works with engineering, IT and security teams that need to approve OpenAI Codex data handling before staff use it. We scope the review in writing, document what the chosen plan and settings do with code and prompts, and hand over evidence that the approval committee can check.

How we scope

  • Engagements are fixed-scope, with the Codex plans, surfaces and data flows agreed in writing before work starts.
  • The written scope lists which Codex features are in review, such as CLI, IDE extension, app and cloud tasks.
  • We confirm with you which retention, training and zero data retention questions the approval must answer.

How we build

  • We map where code, prompts and outputs are processed for each Codex surface, including OpenAI-managed cloud tasks.
  • We document which data controls and admin settings apply to each plan, and flag where local computer access changes the picture.
  • We check each vendor statement against the current OpenAI help pages and enterprise privacy terms before it enters the review.

How we hand over

  • You receive a written data handling record covering training, retention, encryption and zero data retention eligibility per feature.
  • Open questions for OpenAI, such as ZDR status for specific Codex features, are listed with the contact points to ask.
  • Deliverables are documented so your security and procurement reviewers can reproduce the findings themselves.

How we support

  • Ongoing support is available as a retainer for when OpenAI changes plans, retention terms or Codex features.
  • Retainers can cover periodic re-checks of the data handling record against updated OpenAI documentation.
  • Continuous security testing of Codex deployments can be added to a retainer if your scope requires it.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.