✨ Software.com is now Antenna. Read more →
Skip to Content

Codex

Antenna automatically tracks AI coding metrics from OpenAI Codex by pulling data from the Codex Enterprise Analytics API. Get insight into adoption, activity, and the impact of Codex on your team’s productivity.

The Codex Analytics API is currently available only for ChatGPT Enterprise customers. ChatGPT Plus users are not supported.

Prerequisites

Setup

Create a Codex Analytics API key

  1. Sign in to the OpenAI API Platform Portal as an owner or admin, and select the correct organization.
  2. Go to the API keys page.
  3. Create a new secret key and give it a descriptive name such as Codex Analytics API.
  4. Select the appropriate project for your organization. If you only have one project, the default project is fine.
  5. Set the key permissions to Read only.
  6. Copy the key and store it securely — you can only view it once.
  7. Email support@openai.com to have the key scoped to codex.enterprise.analytics.read only. Wait for OpenAI to confirm your API key has Codex Analytics API access before proceeding.

The API key must be explicitly scoped to codex.enterprise.analytics.read by OpenAI support. The integration will not work until this scope is applied.

Find your workspace ID

Open the ChatGPT Admin console and copy the Workspace ID from the workspace settings page.

Connect in Antenna

  1. In Antenna, go to Settings > Connected Apps.
  2. Find Codex and click Connect.
  3. Paste your API key and workspace ID.
  4. Click Connect.

Data collected

We pull from the Codex Enterprise Analytics API:

PurposeEndpoint
Daily usage metricsGET /v1/analytics/codex/workspaces/{workspace_id}/usage

This API returns daily Codex adoption and code review metrics for a workspace, including:

  • Threads and turns — total conversation threads and individual turns
  • Credits — credit consumption per user or workspace
  • Per-client usage — breakdowns by client application
  • Token usage — text input, cached input, and output token counts
  • Code Review metrics — throughput, comment priority, and user engagement with Code Review comments

For full API documentation, see the Codex Enterprise Analytics API reference .

Last updated on