# Is there a way to see token usage per prompt in codex or vscode codex extension

**URL:** <https://community.openai.com/t/is-there-a-way-to-see-token-usage-per-prompt-in-codex-or-vscode-codex-extension/1389506>\
**Category:** Codex\
**Created:** [August 7, 2026, 11:01am UTC](https://community.openai.com/t/is-there-a-way-to-see-token-usage-per-prompt-in-codex-or-vscode-codex-extension/1389506 "2026-08-07T11:01:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelesmert](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kelesmert](https://community.openai.com/u/kelesmert)\
**Post date:** [August 7, 2026, 11:01am UTC](https://community.openai.com/t/is-there-a-way-to-see-token-usage-per-prompt-in-codex-or-vscode-codex-extension/1389506/1 "2026-08-07T11:01:51Z")

</div>

hello since the ccusage shows the total usage is there a tool that show token and tool calls per prompt? i want to optimize skills

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [August 7, 2026, 11:47am UTC](https://community.openai.com/t/is-there-a-way-to-see-token-usage-per-prompt-in-codex-or-vscode-codex-extension/1389506/2 "2026-08-07T11:47:21Z")

</div>

Token usage is also a highly active topic in the [Codex GitHub issues](https://github.com/openai/codex/issues) and [Codex Discussions](https://github.com/openai/codex/discussions). Consider searching both for additional information and adding a 👍 reaction to relevant issues to show the Codex developers your interest.

During a search, ChatGPT identified this potentially related Codex issue:

> <https://github.com/openai/codex/issues/18498>
>
> \### What version of the Codex App are you using (From “About Codex” dialog)?
> 
> 26….415.32059 (1789)
> 
> \### What subscription do you have?
> 
> Plus
> 
> \### What platform is your computer?
> 
> Darwin 25.3.0 arm64 arm
> 
> \### What issue are you seeing?
> 
> Codex Desktop appears to include a large enabled-capability prompt surface in fresh-thread requests even when those capabilities are not actually used.
> 
> I tested this repeatedly with a brand-new thread and a one-word prompt: \`test\`.
> 
> The fresh-thread token baseline changed dramatically depending on how many plugins/skills/apps were enabled:
> 
> \- with a more normal enabled setup, the first real reply turn was around \`21k-24k\` input tokens
> \- after removing nearly everything, it dropped to around \`10.9k\` input
> \- with plugins \`0\`, skills \`0\`, it stabilized around \`6.9k\` input
> 
> This strongly suggests enabled plugins/skills/apps are materially inflating prompt size even when they are not actually invoked.
> 
> Reproduction
> 
> I tested a brand-new thread each time with the same tiny prompt:
> 
> \`\`\`text
> test
> 
> 
> \### What steps can reproduce the bug?
> 
> 1. Open Codex Desktop on macOS.
> 2. Start a brand-new thread in a brand-new untitled Desktop folder project.
> 3. Send a one-word prompt: \`test\`.
> 4. Check token usage in the local Codex log database: \`~/.codex/logs\_2.sqlite\`.
> 5. Repeat the same fresh-thread \`test\` while progressively disabling plugins/skills/apps.
> 6. Compare the estimated input tokens for the first real reply turn.
> 
> Observed results from my tests:
> 
> \- Earlier enabled setup on a fresh thread:
> - main reply turn: estimated input around \`24.2k-24.4k\`, total around \`32.1k\`
> - title-generation pass: estimated input around \`20.1k\`, total around \`24.9k\`
> 
> \- After removing \`Superpowers\` only:
> - main reply turn: estimated input around \`21.3k\`, total around \`29.1k\`
> - title-generation pass: estimated input around \`18.8k\`, total around \`23.6k\`
> 
> \- After removing almost everything, leaving only GitHub + Google Drive plugins/apps plus remaining local/system skills:
> - main reply turn: estimated input around \`10.9k\`, total around \`17.5k\`
> - title-generation pass: estimated input around \`8.5k\`, total around \`11.9k\`
> 
> \- Final stripped-down baseline with:
> - Plugins: \`0\`
> - Skills: \`0\`
> - Apps toggled off
> 
> Run 1:
> - main reply turn: estimated input \`6942\`, total \`14319\`
> - title-generation pass: estimated input \`4494\`, total \`8803\`
> 
> Run 2:
> - main reply turn: estimated input \`6954\`, total \`14336\`
> - title-generation pass: estimated
> 
> 
> \### What is the expected behavior?
> 
> A fresh-thread one-word prompt like \`test\` should have a small and fairly stable token baseline.
> 
> Enabled plugins/skills/apps should not add a large token cost unless they are actually invoked for that turn.
> 
> A title-generation side pass also should not consume several thousand input tokens for a trivial thread.
> 
> 
> \### Additional information
> 
> This new issue is about hidden prompt/context inflation and unusually high fresh-thread token usage.
> 
> I also saw malformed or weird auto-generated thread titles during some of these tests.
> 
> The final clean tests were run in a brand-new untitled Desktop folder project, so this was not just a huge old-thread-history problem.
> 
> This bug has burned usage much faster than expected, which is why I’m reporting it separately.

Also, check the **Related** topics listed below this Discourse topic, as there may be other discussions covering similar questions.

---

<div class="post-metadata">

**Author:** ![aprendendo.next](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/aprendendo.next/32/721758_2.png) [@aprendendo.next](https://community.openai.com/u/aprendendo.next)\
**Post date:** [August 7, 2026, 3:26pm UTC](https://community.openai.com/t/is-there-a-way-to-see-token-usage-per-prompt-in-codex-or-vscode-codex-extension/1389506/4 "2026-08-07T15:26:48Z")

</div>

There is an alternative:

- find the thread id (type /status)
- open a side chat (type /side) or a new conversation
- change the model to `gpt-5.6-luna` (you probly don’t want to use sol for this)
- ask `how many tokens did we use in the thread <thread-id>?`

---

<div class="post-metadata">

**Author:** ![OpenAI\_Support](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/openai_support/32/561845_2.png) [@OpenAI\_Support](https://community.openai.com/u/OpenAI_Support)\
**Post date:** [September 11, 2026, 5:47pm UTC](https://community.openai.com/t/is-there-a-way-to-see-token-usage-per-prompt-in-codex-or-vscode-codex-extension/1389506/6 "2026-09-11T17:47:07Z")

</div>

Thanks for the feedback! Codex provides session and account usage views, as outlined in this guide: [https://learn.chatgpt.com/docs/developer-commands](https://learn.chatgpt.com/docs/developer-commands).

A breakdown of usage for each prompt, including tool call counts, would help you understand how individual requests contribute to overall usage. We will pass this request along internally, though we cannot promise whether or when it might be added.

---

<div class="post-metadata">

**Author:** ![Sunn\_e](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@Sunn\_e](https://community.openai.com/u/Sunn_e)\
**Post date:** [September 11, 2026, 5:47pm UTC](https://community.openai.com/t/is-there-a-way-to-see-token-usage-per-prompt-in-codex-or-vscode-codex-extension/1389506/7 "2026-09-11T17:47:11Z")

</div>

Closed on September 11, 2026, 5:47pm UTC


