AI

OpenAI Codex

OpenAI's coding agent for ChatGPT Enterprise and Edu workspaces. Roiva reads the workspace's Codex analytics — the lines of code Codex wrote that developers kept, and how much the team used it — to value the developer time a Codex rollout saves.

What gets synced

Roiva writes these metric observations on each sync. Reference the key in a value formula to use this data in your ROI calculations.

Codex Activity

openai_codex.usage.lines_accepted Lines of Code Kept count
openai_codex.usage.lines_committed Lines of Code Committed count
openai_codex.usage.turns Codex Turns count
Common use cases
  • Value the developer time Codex saves, from the lines of code it wrote that developers kept
  • Track Codex adoption across the workspace, turn by turn, month over month
  • Compare a Codex rollout's value against what the workspace spends on it
  • Measure how much of what the team commits is attributable to Codex
How to connect

You connect OpenAI Codex from inside Roiva, so you need a Roiva workspace first. Sign in to connect it now. New to Roiva? Take the free assessment and create your workspace at the end, or request an invite.

  1. In ChatGPT: Sign in to your ChatGPT Enterprise or Edu workspace as an owner or admin — Codex analytics are not available on Team or individual plans
  2. In ChatGPT: Open the Admin Console → API keys and create an admin key (starts with sk-admin-) with Codex analytics permission (codex.enterprise.analytics)
  3. In ChatGPT: Copy your Workspace ID from the Admin Console — it is a UUID, and it appears in the console's URL
  4. Back in Roiva: Paste the Workspace ID and the admin key here and save the connection
  5. Back in Roiva: The connection page checks each step and says what's missing. Once it's all ticked, click Test Connection, then link this connection to an initiative on the Initiatives tab
Tips for capturing value
  • This is a different key from the Admin key the OpenAI connection uses. That one reads an API organization's usage and cost at platform.openai.com; this one reads a ChatGPT workspace's Codex analytics. Connect both if you have both
  • Roiva asks OpenAI for workspace-wide totals rather than per-developer rows, so no developer's identity ever reaches Roiva. Codex therefore reports no active-user count here
  • Codex reports the lines of code developers kept, not a count of accepted suggestions. The library's coding-assistant initiative values a Codex rollout by lines and a Copilot or Claude Code rollout by acceptances, whichever the connected assistant reports
  • Analytics cover the last 90 days, so connect before an initiative starts if you want its baseline measured rather than estimated
Need help?

Email hello@roiva.ai with what you're seeing, and you'll hear back within one business day.

OpenAI Codex

Start with the free AI ROI exposure assessment, then connect OpenAI Codex once your workspace is set up.

Get your exposure report → Sign in to connect