Valistry

Codex usage

Codex use per person, day and app. Turns, credits, tokens and what OpenAI billed. Lines Codex helped write. Never a prompt, a thread or code.

Access

Kind
A read-only key you paste
What to give
Workspace Admin key, Enterprise analytics: Read
Why that one
A workspace-scoped Admin key from the OpenAI Admin Console with one permission, Enterprise analytics API set to Read. Tested first, then stored encrypted; shown only as its last four characters.

What it attributes on its own

From the source
person (hashed); day; the Codex app used: CLI, IDE or web; turns and threads; credits used; the dollar amount OpenAI billed; tokens, where OpenAI reports them; lines Codex helped write
Needs a rule or a trace
a dollar figure for credits — OpenAI publishes no rate; ChatGPT use — the ChatGPT Enterprise usage source reads it; the model, on a day that also had ChatGPT; plugin use — the API does not report it; pull requests; which repository; people removed from the workspace — OpenAI leaves them out; outcome

Connecting it

  1. Create a workspace Admin key. Credentials → Admin keys → Create new admin key. Choose the ChatGPT Enterprise workspace. Open ↗
  2. Copy the workspace ID. ChatGPT Admin Console → workspace settings. Copy the Workspace ID. Open ↗