SpyBara
Go Premium Account
2026
19 Feb 2026, 20:37
14 May 2026, 21:00 14 May 2026, 07:00 13 May 2026, 00:57 12 May 2026, 01:59 11 May 2026, 18:00 7 May 2026, 20:02 7 May 2026, 17:08 5 May 2026, 23:00 2 May 2026, 06:45 2 May 2026, 00:48 1 May 2026, 18:29 30 Apr 2026, 18:36 29 Apr 2026, 12:40 29 Apr 2026, 00:50 25 Apr 2026, 06:37 25 Apr 2026, 00:42 24 Apr 2026, 18:20 24 Apr 2026, 12:28 23 Apr 2026, 18:31 23 Apr 2026, 12:28 23 Apr 2026, 00:46 22 Apr 2026, 18:29 22 Apr 2026, 00:42 21 Apr 2026, 18:29 21 Apr 2026, 12:30 21 Apr 2026, 06:45 20 Apr 2026, 18:26 20 Apr 2026, 06:53 18 Apr 2026, 18:18 17 Apr 2026, 00:44 16 Apr 2026, 18:31 16 Apr 2026, 00:46 15 Apr 2026, 18:31 15 Apr 2026, 06:44 14 Apr 2026, 18:31 14 Apr 2026, 12:29 13 Apr 2026, 18:37 13 Apr 2026, 00:44 12 Apr 2026, 06:38 10 Apr 2026, 18:23 9 Apr 2026, 00:33 8 Apr 2026, 18:32 8 Apr 2026, 00:40 7 Apr 2026, 00:40 2 Apr 2026, 18:23 31 Mar 2026, 06:35 31 Mar 2026, 00:39 28 Mar 2026, 06:26 28 Mar 2026, 00:36 27 Mar 2026, 18:23 27 Mar 2026, 00:39 26 Mar 2026, 18:27 25 Mar 2026, 18:24 23 Mar 2026, 18:22 20 Mar 2026, 00:35 18 Mar 2026, 12:23 18 Mar 2026, 00:36 17 Mar 2026, 18:24 17 Mar 2026, 00:33 16 Mar 2026, 18:25 16 Mar 2026, 12:23 14 Mar 2026, 00:32 13 Mar 2026, 18:15 13 Mar 2026, 00:34 11 Mar 2026, 00:31 9 Mar 2026, 00:34 8 Mar 2026, 18:10 8 Mar 2026, 00:35 7 Mar 2026, 18:10 7 Mar 2026, 06:14 7 Mar 2026, 00:33 6 Mar 2026, 00:38 5 Mar 2026, 18:41 5 Mar 2026, 06:22 5 Mar 2026, 00:34 4 Mar 2026, 18:18 4 Mar 2026, 06:20 3 Mar 2026, 18:20 3 Mar 2026, 00:35 27 Feb 2026, 18:15 24 Feb 2026, 06:27 24 Feb 2026, 00:33 23 Feb 2026, 18:27 21 Feb 2026, 00:33 20 Feb 2026, 12:16 19 Feb 2026, 20:53 19 Feb 2026, 20:37
13 May 2026, 00:57
14 May 2026, 21:00 14 May 2026, 07:00 13 May 2026, 00:57 12 May 2026, 01:59 11 May 2026, 18:00 7 May 2026, 20:02 7 May 2026, 17:08 5 May 2026, 23:00 2 May 2026, 06:45 2 May 2026, 00:48 1 May 2026, 18:29 30 Apr 2026, 18:36 29 Apr 2026, 12:40 29 Apr 2026, 00:50 25 Apr 2026, 06:37 25 Apr 2026, 00:42 24 Apr 2026, 18:20 24 Apr 2026, 12:28 23 Apr 2026, 18:31 23 Apr 2026, 12:28 23 Apr 2026, 00:46 22 Apr 2026, 18:29 22 Apr 2026, 00:42 21 Apr 2026, 18:29 21 Apr 2026, 12:30 21 Apr 2026, 06:45 20 Apr 2026, 18:26 20 Apr 2026, 06:53 18 Apr 2026, 18:18 17 Apr 2026, 00:44 16 Apr 2026, 18:31 16 Apr 2026, 00:46 15 Apr 2026, 18:31 15 Apr 2026, 06:44 14 Apr 2026, 18:31 14 Apr 2026, 12:29 13 Apr 2026, 18:37 13 Apr 2026, 00:44 12 Apr 2026, 06:38 10 Apr 2026, 18:23 9 Apr 2026, 00:33 8 Apr 2026, 18:32 8 Apr 2026, 00:40 7 Apr 2026, 00:40 2 Apr 2026, 18:23 31 Mar 2026, 06:35 31 Mar 2026, 00:39 28 Mar 2026, 06:26 28 Mar 2026, 00:36 27 Mar 2026, 18:23 27 Mar 2026, 00:39 26 Mar 2026, 18:27 25 Mar 2026, 18:24 23 Mar 2026, 18:22 20 Mar 2026, 00:35 18 Mar 2026, 12:23 18 Mar 2026, 00:36 17 Mar 2026, 18:24 17 Mar 2026, 00:33 16 Mar 2026, 18:25 16 Mar 2026, 12:23 14 Mar 2026, 00:32 13 Mar 2026, 18:15 13 Mar 2026, 00:34 11 Mar 2026, 00:31 9 Mar 2026, 00:34 8 Mar 2026, 18:10 8 Mar 2026, 00:35 7 Mar 2026, 18:10 7 Mar 2026, 06:14 7 Mar 2026, 00:33 6 Mar 2026, 00:38 5 Mar 2026, 18:41 5 Mar 2026, 06:22 5 Mar 2026, 00:34 4 Mar 2026, 18:18 4 Mar 2026, 06:20 3 Mar 2026, 18:20 3 Mar 2026, 00:35 27 Feb 2026, 18:15 24 Feb 2026, 06:27 24 Feb 2026, 00:33 23 Feb 2026, 18:27 21 Feb 2026, 00:33 20 Feb 2026, 12:16 19 Feb 2026, 20:53 19 Feb 2026, 20:37
Fri 1 18:29 Sat 2 00:48 Sat 2 06:45 Tue 5 23:00 Thu 7 17:08 Thu 7 20:02 Mon 11 18:00 Tue 12 01:59 Wed 13 00:57 Thu 14 07:00 Thu 14 21:00

After 2026-05-02 06:45 UTC, this monitor no longer uses markdownified HTML/MDX. Comparisons across that boundary can therefore show more extensive diffs.

Details

1# Admin Setup1# Admin Setup

2 2 

3Set up Codex for your ChatGPT Enterprise workspace3<div class="max-w-1xl mx-auto">

4 <img src="https://developers.openai.com/images/codex/codex_enterprise_admin.png"

5 alt="Codex enterprise admin toggle"

6 class="block w-full mx-auto rounded-lg"

7 />

8</div>

9 

10 

4 11 

5This guide is for ChatGPT Enterprise admins who want to set up Codex for their workspace.12This guide is for ChatGPT Enterprise admins who want to set up Codex for their workspace.

6 13 

14Use this page as the step-by-step rollout guide. For detailed policy, configuration, and monitoring details, use the linked pages: [Authentication](https://developers.openai.com/codex/auth), [Agent approvals & security](https://developers.openai.com/codex/agent-approvals-security), [Managed configuration](https://developers.openai.com/codex/enterprise/managed-configuration), and [Governance](https://developers.openai.com/codex/enterprise/governance).

15 

7## Enterprise-grade security and privacy16## Enterprise-grade security and privacy

8 17 

9Codex supports ChatGPT Enterprise security features, including:18Codex supports ChatGPT Enterprise security features, including:

10 19 

11- No training on enterprise data20- No training on enterprise data

12- Zero data retention for the CLI and IDE21- Zero data retention for the App, CLI, and IDE (code stays in the developer environment)

13- Residency and retention follow ChatGPT Enterprise policies22- Residency and retention that follow ChatGPT Enterprise policies

14- Granular user access controls23- Granular user access controls

15- Data encryption at rest (AES 256) and in transit (TLS 1.2+)24- Data encryption at rest (AES-256) and in transit (TLS 1.2+)

25- Audit logging via the ChatGPT Compliance API

16 26 

17For more, see [Security](https://developers.openai.com/codex/security).27For security controls and runtime protections, see [Agent approvals & security](https://developers.openai.com/codex/agent-approvals-security). Refer to [Zero Data Retention (ZDR)](https://platform.openai.com/docs/guides/your-data#zero-data-retention) for more details.

28For a broader enterprise security overview, see the [Codex security white paper](https://trust.openai.com/?itemUid=382f924d-54f3-43a8-a9df-c39e6c959958&source=click).

18 29 

19## Local vs. cloud setup30## Pre-requisites: Determine owners and rollout strategy

20 31 

21Codex operates in two environments: local and cloud.32During your rollout, team members may support different aspects of integrating Codex into your organization. Ensure you have the following owners:

22 33 

231. Local use includes the Codex app, CLI, and IDE extension. The agent runs on the developer’s computer in a sandbox.34- **ChatGPT Enterprise workspace owner:** required to configure Codex settings in your workspace.

242. Use in the cloud includes Codex cloud, iOS, Code Review, and tasks created by the [Slack integration](https://developers.openai.com/codex/integrations/slack). The agent runs remotely in a hosted container with your codebase.35- **Security owner:** determines agent permissions settings for Codex.

36- **Analytics owner:** integrates analytics and compliance APIs into your data pipelines.

25 37 

26Use separate permissions and role-based access control (RBAC) to control access to local and cloud features. You can enable local, cloud, or both for all users or for specific groups.38Decide which Codex surfaces you will use:

27 39 

28## Codex local setup40- **Codex local:** includes the Codex app, CLI, and IDE extension. The agent runs on the developer's computer in a sandbox.

41- **Codex cloud:** includes hosted Codex features (including Codex cloud, iOS, Code Review, and tasks created by the [Slack integration](https://developers.openai.com/codex/integrations/slack) or [Linear integration](https://developers.openai.com/codex/integrations/linear)). The agent runs remotely in a hosted container with your codebase.

42- **Both:** use local + cloud together.

29 43 

30### Enable Codex app, CLI, and IDE extension in workspace settings44You can enable local, cloud, or both, and control access with workspace settings and role-based access control (RBAC).

31 45 

32To enable Codex locally for workspace members, go to [Workspace Settings > Settings and Permissions](https://chatgpt.com/admin/settings). Turn on **Allow members to use Codex Local**. This setting doesn’t require the GitHub connector.46## Step 1: Enable Codex in your workspace

33 47 

34After you turn this on, users can sign in to use the Codex app, CLI, and IDE extension with their ChatGPT account. If you turn off this setting, users who attempt to use the Codex app, CLI, or IDE will see the following error: “403 - Unauthorized. Contact your ChatGPT administrator for access.48You configure access to Codex in ChatGPT Enterprise workspace settings.

35 49 

36## Team Config50Go to [Workspace Settings > Settings and Permissions](https://chatgpt.com/admin/settings).

37 51 

38Teams who want to standardize Codex across an organization can use Team Config to share defaults, rules, and skills without duplicating setup on every local configuration.52### Codex local

39 53 

40| Type | Path | Use it to |54Codex local is enabled by default for new ChatGPT Enterprise workspaces. If

41| ------------------------------------ | ------------- | ---------------------------------------------------------------------------- |55 you are not a ChatGPT workspace owner, you can test whether you have access by

42| [Config basics](https://developers.openai.com/codex/config-basic) | `config.toml` | Set defaults for sandbox mode, approvals, model, reasoning effort, and more. |56 [installing Codex](https://developers.openai.com/codex/quickstart) and logging in with your work email.

43| [Rules](https://developers.openai.com/codex/rules) | `rules/` | Control which commands Codex can run outside the sandbox. |

44| [Skills](https://developers.openai.com/codex/skills) | `skills/` | Make shared skills available to your team. |

45 57 

46For locations and precedence, see [Config basics](https://developers.openai.com/codex/config-basic#configuration-precedence).58Turn on **Allow members to use Codex Local**.

59 

60This enables use of the Codex app, CLI, and IDE extension for allowed users.

61 

62If this toggle is off, users who attempt to use the Codex app, CLI, or IDE will see the following error: “403 - Unauthorized. Contact your ChatGPT administrator for access.”

47 63 

48## Codex cloud setup64#### Enable device code authentication for Codex CLI

65 

66Allow developers to sign in with a device code when using Codex CLI in a non-interactive environment (for example, a remote development box). More details are in [authentication](https://developers.openai.com/codex/auth/).

67 

68<div class="max-w-1xl mx-auto py-1">

69 <img src="https://developers.openai.com/images/codex/enterprise/local-toggle-config.png"

70 alt="Codex local toggle"

71 class="block w-full mx-auto rounded-lg"

72 />

73</div>

74 

75### Codex cloud

49 76 

50### Prerequisites77### Prerequisites

51 78 


59 86 

60Start by turning on the ChatGPT GitHub Connector in the Codex section of [Workspace Settings > Settings and Permissions](https://chatgpt.com/admin/settings).87Start by turning on the ChatGPT GitHub Connector in the Codex section of [Workspace Settings > Settings and Permissions](https://chatgpt.com/admin/settings).

61 88 

62To enable Codex cloud for your workspace, turn on **Allow members to use Codex cloud**.89To enable Codex cloud for your workspace, turn on **Allow members to use Codex cloud**. Once enabled, users can access Codex directly from the left-hand navigation panel in ChatGPT.

63 90 

64Once enabled, users can access Codex directly from the left-hand navigation panel in ChatGPT.91Note that it may take up to 10 minutes for Codex to appear in ChatGPT.

65 92 

66![Codex cloud toggle](/images/codex/enterprise/cloud-toggle-config.png)93#### Enable Codex Slack app to post answers on task completion

67 94 

68After you turn on Codex in your Enterprise workspace settings, it may take up95Codex posts its full answer back to Slack when the task completes. Otherwise, Codex posts only a link to the task.

69to 10 minutes for Codex to appear in ChatGPT.

70 96 

71### Configure the GitHub Connector IP allow list97To learn more, see [Codex in Slack](https://developers.openai.com/codex/integrations/slack).

72 98 

73To control which IP addresses can connect to your ChatGPT GitHub connector, configure these IP ranges:99#### Enable Codex agent to access the internet

74 100 

75- [ChatGPT egress IP ranges](https://openai.com/chatgpt-actions.json)101By default, Codex cloud agents have no internet access during runtime to help protect against security and safety risks like prompt injection.

76- [Codex container egress IP ranges](https://openai.com/chatgpt-agents.json)

77 102 

78These IP ranges can change. Consider checking them automatically and updating your allow list based on the latest values.103This setting lets users use an allowlist for common software dependency domains, add domains and trusted sites, and specify allowed HTTP methods.

79 104 

80### Allow members to administer Codex105For security implications of internet access and runtime controls, see [Agent approvals & security](https://developers.openai.com/codex/agent-approvals-security).

81 106 

82This toggle allows users to view Codex workspace analytics and manage environments (edit and delete).107<div class="max-w-1xl mx-auto py-1">

108 <img src="https://developers.openai.com/images/codex/enterprise/cloud-toggle-config.png"

109 alt="Codex cloud toggle"

110 class="block w-full mx-auto rounded-lg"

111 />

112</div>

83 113 

84Codex supports role-based access (see [Role-based access (RBAC)](#role-based-access-rbac)), so you can turn on this toggle for a specific subset of users.114## Step 2: Set up custom roles (RBAC)

85 115 

86### Enable Codex Slack app to post answers on task completion116Use RBAC to control granular permissions for access Codex local and Codex cloud.

87 117 

88Codex integrates with Slack. When a user mentions `@Codex` in Slack, Codex starts a cloud task, gets context from the Slack thread, and responds with a link to a PR to review in the thread.118<div class="max-w-1xl mx-auto">

119 <img src="https://developers.openai.com/images/codex/enterprise/rbac_custom_roles.png"

120 alt="Codex cloud toggle"

121 class="block w-full mx-auto rounded-lg"

122 />

123</div>

89 124 

90To allow the Slack app to post answers on task completion, turn on **Allow Codex Slack app to post answers on task completion**. When enabled, Codex posts its full answer back to Slack when the task completes. Otherwise, Codex posts only a link to the task.125### What RBAC lets you do

91 126 

92To learn more, see [Codex in Slack](https://developers.openai.com/codex/integrations/slack).127Workspace Owners can use RBAC in ChatGPT admin settings to:

93 128 

94### Enable Codex agent to access the internet129- Set a default role for users who aren't assigned any custom role

130- Create custom roles with granular permissions

131- Assign one or more custom roles to Groups

132- Automatically sync users into Groups via SCIM

133- Manage roles centrally from the Custom Roles tab

95 134 

96By default, Codex cloud agents have no internet access during runtime to help protect against security and safety risks like prompt injection.135Users can inherit more than one role, and permissions resolve to the most permissive (least restrictive) access across those roles.

136 

137### Create a Codex Admin group

138 

139Set up a dedicated "Codex Admin" group rather than granting Codex administration to a broad audience.

140 

141The **Allow members to administer Codex** toggle grants the Codex Admin role. Codex Admins can:

142 

143- View Codex [workspace analytics](https://chatgpt.com/codex/settings/analytics)

144- Open the Codex [Policies page](https://chatgpt.com/codex/settings/policies) to manage cloud-managed `requirements.toml` policies

145- Assign those managed policies to user groups or configure a default fallback policy

146- Manage Codex cloud environments, including editing and deleting environments

147 

148Use this role for the small set of admins who own Codex rollout, policy management, and governance. It's not required for general Codex users. You don't need Codex cloud to enable this toggle.

149 

150Recommended rollout pattern:

151 

152- Create a "Codex Users" group for people who should use Codex

153- Create a separate "Codex Admin" group for the smaller set of people who should manage Codex settings and policies

154- Assign the custom role with **Allow members to administer Codex** enabled only to the "Codex Admin" group

155- Keep membership in the "Codex Admin" group limited to workspace owners or designated platform, IT, and governance operators

156- If you use SCIM, back the "Codex Admin" group with your identity provider so membership changes are auditable and centrally managed

157 

158This separation makes it easier to roll out Codex while keeping analytics, environment management, and policy deployment limited to trusted admins. For RBAC setup details and the full permission model, see the [OpenAI RBAC Help Center article](https://help.openai.com/en/articles/11750701-rbac).

159 

160## Step 3: Configure Codex local requirements

161 

162Codex Admins can deploy admin-enforced `requirements.toml` policies from the Codex [Policies page](https://chatgpt.com/codex/settings/policies).

163 

164Use this page when you want to apply different local Codex constraints to different groups without distributing device-level files first. The managed policy uses the same `requirements.toml` format described in [Managed configuration](https://developers.openai.com/codex/enterprise/managed-configuration), so you can define allowed approval policies, sandbox modes, web search behavior, MCP server allowlists, feature pins, and restrictive command rules. To disable Browser Use, the in-app browser, or Computer Use, see [Pin feature flags](https://developers.openai.com/codex/enterprise/managed-configuration#pin-feature-flags).

165 

166<div class="max-w-1xl mx-auto py-1">

167 <img src="https://developers.openai.com/images/codex/enterprise/policies_and_configurations_page.png"

168 alt="Codex policies and configurations page"

169 class="block w-full mx-auto rounded-lg"

170 />

171</div>

172 

173Recommended setup:

174 

1751. Create a baseline policy for most users, then create stricter or more permissive variants only where needed.

1762. Assign each managed policy to a specific user group, and configure a default fallback policy for everyone else.

1773. Order group rules with care. If a user matches more than one group-specific rule, the first matching rule applies.

1784. Treat each policy as a complete profile for that group. Codex doesn't fill missing fields from later matching group rules.

179 

180These cloud-managed policies apply across Codex local surfaces when users sign in with ChatGPT, including the Codex app, CLI, and IDE extension.

181 

182### Example requirements.toml policies

183 

184Use cloud-managed `requirements.toml` policies to enforce the guardrails you want for each group. The snippets below are examples you can adapt, not required settings.

185 

186<div class="max-w-1xl mx-auto py-1">

187 <img src="https://developers.openai.com/images/codex/enterprise/example_policy.png"

188 alt="Example managed requirements policy"

189 class="block w-full mx-auto rounded-lg"

190 />

191</div>

192 

193Example: limit web search, sandbox mode, and approvals for a standard local rollout:

194 

195```toml

196allowed_web_search_modes = ["disabled", "cached"]

197allowed_sandbox_modes = ["workspace-write"]

198allowed_approval_policies = ["on-request"]

199```

200 

201Example: disable Browser Use, the in-app browser, and Computer Use:

202 

203```toml

204[features]

205browser_use = false

206in_app_browser = false

207computer_use = false

208```

209 

210Example: add a restrictive command rule when you want admins to block or gate specific commands:

211 

212```toml

213[rules]

214prefix_rules = [

215 { pattern = [{ token = "git" }, { any_of = ["push", "commit"] }], decision = "prompt", justification = "Require review before mutating remote history." },

216]

217```

218 

219You can use either example on its own or combine them in a single managed policy for a group. For exact keys, precedence, and more examples, see [Managed configuration](https://developers.openai.com/codex/enterprise/managed-configuration) and [Agent approvals & security](https://developers.openai.com/codex/agent-approvals-security).

220 

221### Checking user policies

222 

223Use the policy lookup tools at the end of the workflow to confirm which managed policy applies to a user. You can check policy assignment by group or by entering a user email.

224 

225<div class="max-w-1xl mx-auto py-1">

226 <img src="https://developers.openai.com/images/codex/enterprise/policy_lookup.png"

227 alt="Policy lookup by group or user email"

228 class="block w-full mx-auto rounded-lg"

229 />

230</div>

97 231 

98As an admin, you can allow users to enable agent internet access in their environments. To enable it, turn on **Allow Codex agent to access the internet**.232If you plan to restrict login method or workspace for local clients, see the admin-managed authentication restrictions in [Authentication](https://developers.openai.com/codex/auth).

99 233 

100When this setting is on, users can use an allow list for common software dependency domains, add more domains and trusted sites, and specify allowed HTTP methods.234## Step 4: Standardize local configuration with Team Config

235 

236Teams who want to standardize Codex across an organization can use Team Config to share defaults, rules, and skills without duplicating setup on every local configuration.

237 

238You can check Team Config settings into the repository under the `.codex` directory. Codex automatically picks up Team Config settings when a user opens that repository.

239 

240Start with Team Config for your highest-traffic repositories so teams get consistent behavior in the places they use Codex most.

241 

242| Type | Path | Use it to |

243| ------------------------------------ | ------------- | ---------------------------------------------------------------------------- |

244| [Config basics](https://developers.openai.com/codex/config-basic) | `config.toml` | Set defaults for sandbox mode, approvals, model, reasoning effort, and more. |

245| [Rules](https://developers.openai.com/codex/rules) | `rules/` | Control which commands Codex can run outside the sandbox. |

246| [Skills](https://developers.openai.com/codex/skills) | `skills/` | Make shared skills available to your team. |

247 

248For locations and precedence, see [Config basics](https://developers.openai.com/codex/config-basic#configuration-precedence).

249 

250## Step 5: Configure Codex cloud usage (if enabled)

251 

252This step covers repository and environment setup after you enable the Codex cloud workspace toggle.

253 

254### Connect Codex cloud to repositories

255 

2561. Navigate to [Codex](https://chatgpt.com/codex) and select **Get started**

2572. Select **Connect to GitHub** to install the ChatGPT GitHub Connector if you haven't already connected GitHub to ChatGPT

2583. Install or connect the ChatGPT GitHub Connector

2594. Choose an installation target for the ChatGPT Connector (typically your main organization)

2605. Allow the repositories you want to connect to Codex

261 

262For GitHub Enterprise Managed Users (EMU), an organization owner must install

263 the Codex GitHub App for the organization before users can connect

264 repositories in Codex cloud.

265 

266For more, see [Cloud environments](https://developers.openai.com/codex/cloud/environments).

267 

268Codex uses short-lived, least-privilege GitHub App installation tokens for each operation and respects the user's existing GitHub repository permissions and branch protection rules.

269 

270### Configure IP addresses

271 

272If your GitHub organization controls the IP addresses that apps use to connect, make sure to include these [egress IP ranges](https://openai.com/chatgpt-agents.json).

273 

274These IP ranges can change. Consider checking them automatically and updating your allow list based on the latest values.

101 275 

102### Enable code review with Codex cloud276### Enable code review with Codex cloud

103 277 

104To allow Codex to do code reviews, go to [Settings → Code review](https://chatgpt.com/codex/settings/code-review).278To allow Codex to perform code reviews on GitHub, go to [Settings → Code review](https://chatgpt.com/codex/settings/code-review).

279 

280You can configure code review at the repository level. Users can also enable auto review for their PRs and choose when Codex automatically triggers a review. More details are on the [GitHub integration page](https://developers.openai.com/codex/integrations/github).

281 

282Use the overview page to confirm your workspace has code review turned on and to see the available review controls.

283 

284<div class="max-w-1xl mx-auto py-1">

285 <img src="https://developers.openai.com/images/codex/enterprise/code_review_settings_overview.png"

286 alt="Code review settings overview"

287 class="block w-full mx-auto rounded-lg"

288 />

289</div>

290 

291<div class="grid grid-cols-1 gap-4 py-1 md:grid-cols-2">

292 <div class="max-w-1xl mx-auto">

293 <p>

294 Use the auto review settings to decide whether Codex should review pull

295 requests automatically for connected repositories.

296 </p>

297 <img src="https://developers.openai.com/images/codex/enterprise/auto_code_review_settings.png"

298 alt="Automatic code review settings"

299 class="block w-full mx-auto rounded-lg"

300 />

301 </div>

302 <div class="max-w-1xl mx-auto">

303 <p>

304 Use review triggers to control which pull request events should start a

305 Codex review.

306 </p>

307 <img src="https://developers.openai.com/images/codex/enterprise/review_triggers.png"

308 alt="Code review trigger settings"

309 class="block w-full mx-auto rounded-lg"

310 />

311 </div>

312</div>

313 

314### Configure Codex security

315 

316Codex Security helps engineering and security teams find, confirm, and remediate likely vulnerabilities in connected GitHub repositories.

317 

318At a high level, Codex Security:

319 

320- scans connected repositories commit by commit

321- ranks likely findings and confirms them when possible

322- shows structured findings with evidence, criticality, and suggested remediation

323- lets teams refine a repository threat model to improve prioritization and review quality

324 

325For setup, scan creation, findings review, and threat model guidance, see [Codex Security setup](https://developers.openai.com/codex/security/setup). For a product overview, see [Codex Security](https://developers.openai.com/codex/security).

326 

327Integration docs are also available for [Slack](https://developers.openai.com/codex/integrations/slack), [GitHub](https://developers.openai.com/codex/integrations/github), and [Linear](https://developers.openai.com/codex/integrations/linear).

328 

329## Step 6: Set up governance and observability

330 

331Codex gives enterprise teams options for visibility into adoption and impact. Set up governance early so your team can track adoption, investigate issues, and support compliance workflows.

332 

333### Codex governance typically uses

334 

335- Analytics Dashboard for quick, self-serve visibility

336- Analytics API for programmatic reporting and business intelligence integration

337- Compliance API for audit and investigation workflows

338 

339### Recommended baseline setup

340 

341- Assign an owner for adoption reporting

342- Assign an owner for audit and compliance review

343- Define a review cadence

344- Decide what success looks like

345 

346### Analytics API setup steps

347 

348To set up the Analytics API key:

349 

3501. Sign in to the [OpenAI API Platform Portal](https://platform.openai.com) as an owner or admin, and select the correct organization.

3512. Go to the [API keys page](https://platform.openai.com/settings/organization/api-keys).

3523. Create a new secret key dedicated to Codex Analytics, and give it a descriptive name such as Codex Analytics API.

3534. Select the appropriate project for your organization. If you only have one project, the default project is fine.

3545. Set the key permissions to Read only, since this API only retrieves analytics data.

3556. Copy the key value and store it securely, because you can only view it once.

3567. Email support@openai.com to have that key scoped to `codex.enterprise.analytics.read` only. Wait for OpenAI to confirm your API key has Codex Analytics API access.

357 

358<div class="not-prose max-w-md mx-auto py-1">

359 <img src="https://developers.openai.com/images/codex/codex_analytics_key.png"

360 alt="Codex analytics key creation"

361 class="block w-full mx-auto rounded-lg"

362 />

363</div>

364 

365To use the Analytics API key:

366 

3671. Find your `workspace_id` in the [ChatGPT Admin console](https://chatgpt.com/admin) under Workspace details.

3682. Call the Analytics API at `https://api.chatgpt.com/v1/analytics/codex` using your Platform API key, and include your `workspace_id` in the path.

3693. Choose the endpoint you want to query:

370 

371- /workspaces/`{workspace_id}`/usage

372- /workspaces/`{workspace_id}`/code_reviews

373- /workspaces/`{workspace_id}`/code_review_responses

374 

3754. Set a reporting date range with `start_time` and `end_time` if needed.

3765. Retrieve the next page of results with `next_page` if the response spans more than one page.

105 377 

106Users can specify whether they want Codex to review their pull requests. Users can also configure whether code review runs for all contributors to a repository.378Example curl command to retrieve workspace usage:

107 379 

108Codex supports two types of code reviews:380```bash

381curl -H "Authorization: Bearer YOUR_PLATFORM_API_KEY" \

382 "https://api.chatgpt.com/v1/analytics/codex/workspaces/WORKSPACE_ID/usage"

383```

109 384 

1101. Automatically triggered code reviews when a user opens a PR for review.385For more details on the Analytics API, see [Analytics API](https://developers.openai.com/codex/enterprise/governance#analytics-api).

1112. Reactive code reviews when a user mentions @Codex to look at issues. For example, “@Codex fix this CI error” or “@Codex address that feedback.”

112 386 

113## Role-based access (RBAC)387### Compliance API setup steps

114 388 

115Codex supports role-based access. RBAC is a security and permissions model used to control access to systems or resources based on a user’s role assignments.389To set up the Compliance API key:

116 390 

117To enable RBAC for Codex, navigate to Settings & Permissions → Custom Roles in [ChatGPT’s admin page](https://chatgpt.com/admin/settings) and assign roles to groups created in the Groups tab.3911. Sign in to the [OpenAI API Platform Portal](https://platform.openai.com) as an owner or admin, and select the correct organization.

3922. Go to the [API keys page](https://platform.openai.com/settings/organization/api-keys).

3933. Create a new secret key dedicated to Compliance API and select the appropriate project for your organization. If you only have one project, the default project is fine.

3944. Choose All permissions.

3955. Copy the key value and store it securely, because you can only view it once.

3966. Send an email to support@openai.com with:

118 397 

119This simplifies permission management for Codex and improves security in your ChatGPT workspace. To learn more, see the [Help Center article](https://help.openai.com/en/articles/11750701-rbac).398- the last 4 digits of the API key

399- the key name

400- the created-by name

401- the scope needed: `read`, `delete`, or both

120 402 

121## Set up your first Codex cloud environment4037. Wait for OpenAI to confirm your API key has Compliance API access.

122 404 

1231. Go to Codex cloud and select **Get started**.405To use the Compliance API key:

1242. Select **Connect to GitHub** to install the ChatGPT GitHub Connector if you haven’t already connected GitHub to ChatGPT.

125 - Allow the ChatGPT Connector for your account.

126 - Choose an installation target for the ChatGPT Connector (typically your main organization).

127 - Allow the repositories you want to connect to Codex (a GitHub admin may need to approve this).

1283. Create your first environment by selecting the repository most relevant to your developers, then select **Create environment**.

129 - Add the email addresses of any environment collaborators to give them edit access.

1304. Start a few starter tasks (for example, writing tests, fixing bugs, or exploring code).

131 406 

132You have now created your first environment. Users who connect to GitHub can create tasks using this environment. Users who have access to the repository can also push pull requests generated from their tasks.4071. Find your `workspace_id` in the [ChatGPT Admin console](https://chatgpt.com/admin) under Workspace details.

4082. Use the Compliance API at `https://api.chatgpt.com/v1/`

4093. Pass your Compliance API key in the Authorization header as a Bearer token.

4104. For Codex-related compliance data, use these endpoints:

133 411 

134### Environment management412- /compliance/workspaces/`{workspace_id}`/logs

413- /compliance/workspaces/`{workspace_id}`/logs/`{log_file_id}`

414- /compliance/workspaces/`{workspace_id}`/codex_tasks

415- /compliance/workspaces/`{workspace_id}`/codex_environments

135 416 

136As a ChatGPT workspace administrator, you can edit and delete Codex environments in your workspace.4175. For most Codex compliance integrations, start with the logs endpoint and request Codex event types such as CODEX_LOG or CODEX_SECURITY_LOG.

4186. Use /logs to list available Codex compliance log files, then /logs/`{log_file_id}` to download a specific file.

137 419 

138### Connect more GitHub repositories with Codex cloud420Example curl command to list compliance log files:

139 421 

1401. Select **Environments**, or open the environment selector and select **Manage Environments**.422```bash

1412. Select **Create Environment**.423curl -L -H "Authorization: Bearer YOUR_COMPLIANCE_API_KEY" \

1423. Select the repository you want to connect.424 "https://api.chatgpt.com/v1/compliance/workspaces/WORKSPACE_ID/logs?event_type=CODEX_LOG&after=2026-03-01T00:00:00Z"

1434. Enter a name and description.425```

1445. Select the environment visibility.

1456. Select **Create Environment**.

146 426 

147Codex automatically optimizes your environment setup by reviewing your codebase. Avoid advanced environment configuration until you observe specific performance issues. For more, see [Codex cloud](https://developers.openai.com/codex/cloud).427Example curl command to list Codex tasks:

148 428 

149### Share setup instructions with users429```bash

430curl -H "Authorization: Bearer YOUR_COMPLIANCE_API_KEY" \

431 "https://api.chatgpt.com/v1/compliance/workspaces/WORKSPACE_ID/codex_tasks"

432```

150 433 

151You can share these steps with end users:434For more details on the Compliance API, see [Compliance API](https://developers.openai.com/codex/enterprise/governance#compliance-api).

152 435 

1531. Go to [Codex](https://chatgpt.com/codex) in the left-hand panel of ChatGPT.436## Step 7: Confirm and verify setup

1542. Select **Connect to GitHub** in the prompt composer if you’re not already connected.

155 - Sign in to GitHub.

1563. You can now use shared environments with your workspace or create your own environment.

1574. Try a task in both Ask and Code mode. For example:

158 - Ask: Find bugs in this codebase.

159 - Write code: Improve test coverage following the existing test patterns.

160 437 

161## Track Codex usage438### What to verify

162 439 

163- For workspaces with rate limits, use [Settings Usage](https://chatgpt.com/codex/settings/usage) to view workspace metrics for Codex.440- Users can sign in to Codex local (ChatGPT or API key)

164- For more detail on enterprise governance, refer to the [Governance](https://developers.openai.com/codex/enterprise/governance) page.441- (If enabled) Users can sign in to Codex cloud (ChatGPT sign-in required)

165- For enterprise workspaces with flexible pricing, you can see credit usage in the ChatGPT workspace billing console.442- MFA and SSO requirements match your enterprise security policy

443- RBAC and workspace toggles produce the expected access behavior

444- Managed configuration applies for users

445- Governance data is visible for admins

166 446 

167## Zero data retention (ZDR)447For authentication options and enterprise login restrictions, see [Authentication](https://developers.openai.com/codex/auth).

168 448 

169Codex supports OpenAI organizations with [Zero Data Retention (ZDR)](https://platform.openai.com/docs/guides/your-data#zero-data-retention) enabled.449Once your team is confident with setup, you can roll Codex out to more teams and organizations.