If you use OpenAI's Codex or GitHub Copilot Chat, you may want to know how much you use them before anyone asks you, or before you hit a limit. Both products show your own usage in a few places, and both keep some history on your computer. This guide walks through the options for one developer on one machine. Nothing here needs a company account or an admin.
Codex: check limits and context from inside a session
In Codex, the /status command shows the chat's context usage and your rate limits. It is the quickest way to see whether a long session is filling the context window or whether you are close to a limit.
OpenAI's pricing page says Codex is included in ChatGPT Free, Go, Plus, Pro, Business, Edu and Enterprise plans. If you use Codex with an API key instead, usage is billed at OpenAI's API prices, and you see spend in your API organization's billing pages.
Codex: know what is stored locally
According to OpenAI's configuration documentation, Codex keeps its local state under CODEX_HOME, which defaults to ~/.codex. By default it saves local session transcripts there, for example in ~/.codex/history.jsonl. You can change this in config.toml:
[history]
# Do not keep local history at all
persistence = "none"
# Or keep it, but cap the file size in bytes
# max_bytes = 10485760When the file exceeds max_bytes, Codex drops the oldest entries and keeps the newest. These transcripts are what local tools read, so they also contain your prompts. Treat the folder like any other file with work content in it.
Codex: export telemetry only if you need it
Codex can export OpenTelemetry logs, but this is off by default and you opt in with an [otel] section. The documentation says user prompts are redacted unless you enable log_user_prompt, and that with exporter = "none" Codex records events but sends nothing. For a personal setup you usually do not need telemetry at all; the local files are enough.
Codex: summarize your usage with a free tool
ccusage is an MIT-licensed command-line tool that reads the local usage files of coding agent CLIs, including Codex. Run it without installing anything permanent:
npx ccusage@latest dailyBy default it aggregates every supported tool it detects. It also has weekly, monthly and session reports, and a --json option for your own scripts. Its documentation says all analysis happens on your machine, that it only reads files, and that it only covers the current machine. Its cost figures are estimates from token counts and model prices, not your bill.
Copilot Chat: see your AI credit usage
GitHub now meters Copilot usage in GitHub AI Credits. You can check your own consumption in three places:
- In the editor. In VS Code, click the Copilot icon in the status bar. Visual Studio and JetBrains IDEs have their own Copilot menus.
- On github.com. Open Copilot settings from your profile picture. The Usage section shows your consumption for the current billing period. With a Business or Enterprise seat, the "Usage this cycle" card shows it, and your budget if one is set.
- On the AI usage page. On a Copilot individual plan, the billing settings have an AI usage page that shows credits and costs by model.
GitHub's documentation notes that you generally cannot trace credits to specific prompts or sessions. The numbers tell you how much, not where.
Copilot Chat: look at a single request in VS Code
To understand what one chat request actually sent, VS Code has a Chat Debug view. Open it from the Chat view's overflow menu or run Developer: Show Chat Debug View from the Command Palette. It shows the system prompt, your prompt, context, response and tool calls for each model interaction. The Agent Debug Logs panel has a summary with token usage, and you can export a session as an OpenTelemetry JSON file.
VS Code's documentation warns that these exports can include prompts, source code and other sensitive data. Review them before you share them with anyone.
ccusage lists GitHub Copilot CLI among its sources, but not Copilot Chat in the editor, so for Chat the editor and github.com are your main sources.
Put it together in ten minutes a week
- Run
/statusin Codex when a session feels slow or long. - Once a week, run
npx ccusage@latest weeklyfor Codex and other CLIs. - Check the Copilot Usage section on github.com at the same time.
- Write down one thing to change, such as starting a fresh session for an unrelated task.
If you also use Claude Code, How to see Claude Code usage across a team covers its /usage and /insights commands.
When Insaidy helps
Insaidy is an independent Velantix product with plugins for VS Code, Visual Studio and JetBrains. It reads supported assistant activity on your computer, including Codex (in the VS Code plugin), GitHub Copilot Chat and Claude Code, and shows it in one local report with practical coaching. Personal use is free. In VS Code the local report needs no account and sends nothing; the Visual Studio and JetBrains plugins ask you to sign in with a free Insaidy account before they read local sessions.
For Codex, the VS Code plugin reads the CLI, the IDE extension and the Codex app, current versions included. It counts the prompts you type; context Codex adds on its own, such as instructions and tool results, is not counted, and runs started by codex exec, sub-agents and automations are kept apart from your own use. A log Insaidy cannot read with certainty is listed in the report and left out, never counted as zero.
Reports sent to your Insaidy workspace exclude raw prompts, answers, source code, file paths and project names. The VS Code Connect page and plugin footer explain whether your installed version requires first-report review or offers automatic sync after Connect, with exact sent data and Pause controls. Visual Studio and JetBrains send a report only after you choose "Send reviewed report". If you join a Company workspace, its owners, admins and assigned managers see named metrics for the people in their scope. If you only use one assistant, its own usage screens and ccusage may be all you need. For how Insaidy and ccusage differ, see Insaidy vs ccusage.
Codex is a product of OpenAI and GitHub Copilot is a product of GitHub. Insaidy is not affiliated with or endorsed by either.
Sources
All pages were checked on 10 November 2026.
- Slash commands (OpenAI)
- Codex pricing (OpenAI)
- Advanced configuration (OpenAI)
- ccusage guide and ccusage on GitHub
- Monitoring your GitHub AI Credits usage (GitHub Docs)
- Chat Debug view (VS Code docs)