How to check your Codex usage and see which session used it
The Codex usage dashboard tells you how much of your limit is left, but not which session used it.
Rogerio Chaves · · Agents
If Codex just told you that you've hit your usage limit, the Codex usage dashboard in ChatGPT shows how much you have left, when it resets and your credit balance. Inside a running Codex session, /status shows your remaining limits.
A new chat won't reset it. Switching from the command-line interface (CLI) to your editor or a cloud task won't either, because they all draw from the same allowance.
To see which session, repo or model used it, you need data the dashboard doesn't show. Codex already records the model and tokens of every turn, and OpenAI ships its OpenTelemetry (OTel) export switched off:
[otel]
exporter = "none" # set to otlp-http or otlp-grpc to send events
One command turns that export on and sends it to LangWatch, the platform we build for monitoring and testing AI agents, where every Codex session then shows its tokens, cache reads and cost.
Where do I see my Codex usage?
You can see it on the usage dashboard for your plan, or with /status and /usage inside Codex:
| Where | What it shows |
|---|---|
| Usage dashboard, also under Settings > Usage in ChatGPT | Your current limits, reset times and credit balance |
/status in the Codex CLI | The session's model and token usage, and your remaining limits |
/usage daily, /usage weekly or /usage cumulative in the CLI | Your account's token activity for that period |
/status in the IDE extension | The chat's context usage and rate limits |
| An API key instead of ChatGPT sign-in | Billed on your OpenAI Platform account at standard API rates, outside your plan |
If you run Codex in scripts, codex exec --json prints a turn.completed line after each turn with its input, cached, output and reasoning tokens.
How do Codex usage limits work?
Codex is in every ChatGPT plan, from Free to Enterprise. On Plus and Business, OpenAI counts it in a five-hour window, and weekly limits may also apply. Pro has no five-hour window. The Codex pricing page gives a range of messages per model, and it says those ranges aren't fixed limits. Your dashboard has the real number.
What you get from your allowance depends on more than how many prompts you send. OpenAI lists model choice, context, reasoning, tool use, retrieval and caching, which is why it says prompt length alone isn't a reliable estimate.
When you hit the limit, OpenAI lets the agent finish the turn it's on. After that, the notice shows your options: on Plus or Pro you can buy credits, which kick in once the included usage is gone, or you can use a reset if you have one, upgrade, or wait. You can also keep working locally with an API key, at API rates.
None of these views tell you which of your sessions used the most, how much of it came from cache, or what each repo and pull request took. For that you need the per-turn data Codex records, sent somewhere that keeps it.
Trace every Codex session with one command
To send that export to LangWatch, start Codex once through the LangWatch command. It opens LangWatch in your browser for you to sign in:
npx langwatch codex
Once you sign in, it starts Codex with all telemetry already set up. After that a plain codex reports too, because the setup lives in ~/.codex/config.toml.
The first run asks how you use Codex. With a ChatGPT subscription, Codex keeps your own plan and your own login, and LangWatch receives telemetry only. With an API key, you can also send the model calls through the LangWatch AI Gateway, which lets you set budgets and pick which models people may use.
The setup writes two things. One is the [otel] block, which sends the model, tokens and timing of each turn, plus every tool run with its name, duration and result.
The other is a small notify program that Codex runs after each turn. It sends the prompts and answers, because Codex's own export carries no conversation text. If you'd rather keep your conversations out of LangWatch, remove notify from the config and keep [otel]: you still get tokens, cost, model, timing and tool counts. The Codex setup page has the manual setup too.
See the tokens, cache and cost of each session
In LangWatch, open Sessions on your personal page. Each row is one session from the last 90 days, with the agent that ran it, the context it carried, how long it worked and how long it waited on you, its token cost and its pull requests. If you sort by token cost, the sessions that used the most come first.
Codex and Claude Code sessions share the same screens, and the screenshots below come from Claude Code sessions in our docs. When you open a session, its Usage tab starts with the totals: cost, model calls, tools run and files touched.

Under the totals, Cache health shows how much of the context the agent reused from the prompt cache and how much it had to send again. OpenAI lists caching among the things that affect your usage, and its credit rate card charges far less for cached input than for fresh input, so cache misses are worth watching.

Each turn is also its own trace with the model, tokens and timing, and the Terminal tab replays the whole session the way it looked in your terminal.
If you want the spend per model across all your sessions, langwatch analytics query -m total-cost --group-by metadata.model gives it to you in the terminal.
Find the repo and pull request behind the usage
Each Codex session records the repo and branch it runs in. If you switch to another checkout partway through, the next turn picks up the new one. The setup also adds a short instruction to ~/.codex/AGENTS.md, so Codex reports the change when it moves to another repo, branch or worktree.
Connect GitHub under Settings > Integrations, and the Pull requests page lists each pull request with the models used, its tokens and its token cost across every session and person that worked on it, over its whole life.

When you open one, you see who spent what, the split per model, and every session behind it.
Track Codex usage for a whole team
Each developer runs npx langwatch codex once. Their sessions land in a personal project of their own, and as an admin you see spend as numbers: Governance > People ranks each person by spend, and the Teams page at /governance/teams lists every team's spend over the last 30 days, with no conversation content in either (usage analytics).
If the work belongs to a team, you can pin Codex to the team's project:
langwatch instrument codex --project your-team-project
The pin is per device and per tool, so a laptop's Codex can report to the team while its Claude Code stays personal. If your teams also run Claude Code, Copilot or Gemini CLI, the org-wide setup puts all of them in one view, and the Codex usage page shows what a single Codex session looks like in LangWatch.
Put this into production with LangWatch.
Trace your agents, run evaluations, and turn failures into repeatable tests.
Frequently asked questions
- How do I check my Codex usage limits?
- Open the Codex usage dashboard in ChatGPT at chatgpt.com/codex/settings/usage for your current limits, reset times and credit balance. Inside a running Codex CLI session, type /status. On Plus and Business, usage counts in a five-hour window and weekly limits may also apply, and the CLI, the IDE extension and cloud tasks share one allowance.
- What happens when I hit my Codex usage limit?
- OpenAI lets the agent keep working on the turn it was on. After that, the limit notice shows your options: add credits on Plus or Pro, use an available reset, upgrade, or wait for the reset time. You can also run local chats with an API key at standard API rates. Starting a new chat does not reset your limits.
- Does Codex CLI support OpenTelemetry?
- Yes. Codex has an [otel] section in ~/.codex/config.toml with exporters for logs, metrics and traces, and it is off by default. Prompt text stays redacted unless you turn on log_user_prompt. npx langwatch codex writes the setup for you and sends it to LangWatch, where every session shows its tokens, tool calls and cost.
- Can I see Codex token usage per session?
- For the session you are in, /status shows its token usage, and codex exec --json prints the input, cached, output and reasoning tokens of each turn. To see every session afterwards, with its cost, cache reads, repository and pull request, send Codex's OpenTelemetry export to LangWatch with npx langwatch codex.
- How do I track Codex usage per person on a team?
- Have each developer run npx langwatch codex once. Their sessions land in their own personal project, and admins see spend per person on Governance > People and per team on the Teams page, as numbers with no conversation content. To keep a team's work together, pin Codex to a team project with langwatch instrument codex --project.