{"id":749,"date":"2026-02-12T08:17:53","date_gmt":"2026-02-12T08:17:53","guid":{"rendered":"https:\/\/aiopsschool.com\/blog\/?p=749"},"modified":"2026-02-12T08:17:54","modified_gmt":"2026-02-12T08:17:54","slug":"two-ways-to-use-codex-and-its-usage","status":"publish","type":"post","link":"https:\/\/aiopsschool.com\/blog\/two-ways-to-use-codex-and-its-usage\/","title":{"rendered":"Two ways to use Codex and its usage?"},"content":{"rendered":"\n<p><strong>Codex \u201cusage\u201d is tracked in two totally different places depending on how you logged in<\/strong>, and that\u2019s why your <strong>OpenAI Platform \u2192 Usage<\/strong> page stays at $0.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1) Two ways to use Codex (and they are metered differently)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">A) Codex logged in with <strong>ChatGPT account<\/strong> (subscription mode)<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You sign in to Codex (web\/CLI\/IDE) using your <strong>ChatGPT login<\/strong><\/li>\n\n\n\n<li>You consume <strong>message-based limits<\/strong> (5-hour window + weekly caps), and possibly <strong>ChatGPT credits<\/strong> when you exceed included limits (<a href=\"https:\/\/developers.openai.com\/codex\/pricing\/\">OpenAI Developers<\/a>)<\/li>\n\n\n\n<li>This usage is <strong>NOT<\/strong> shown on <strong>platform.openai.com\/usage<\/strong> (because it\u2019s not API-key billing)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">B) Codex using an <strong>API key<\/strong> (API billing mode)<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You use an <strong>API key<\/strong> (SDK\/CLI\/your app)<\/li>\n\n\n\n<li>You pay <strong>per token<\/strong> (usage-based billing) (<a href=\"https:\/\/developers.openai.com\/codex\/pricing\/\">OpenAI Developers<\/a>)<\/li>\n\n\n\n<li>This usage <strong>IS<\/strong> shown on <strong>platform.openai.com \u2192 Usage<\/strong> (tokens\/requests\/spend)<\/li>\n<\/ul>\n\n\n\n<p>That\u2019s why your screenshot shows <strong>$0, 0 tokens, 0 requests<\/strong>\u2014it only reflects <strong>API-key traffic<\/strong>, and you haven\u2019t sent any. (<a href=\"https:\/\/developers.openai.com\/codex\/pricing\/\">OpenAI Developers<\/a>)<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">2) How to track usage (exactly)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">If you\u2019re using Codex via <strong>ChatGPT login<\/strong> (the one giving \u201crate limit resets on\u2026\u201d)<\/h3>\n\n\n\n<p><strong>Track it here: Codex Usage Dashboard<\/strong> (<a href=\"https:\/\/developers.openai.com\/codex\/pricing\/\">OpenAI Developers<\/a>)<\/p>\n\n\n\n<p>In a browser (while logged into ChatGPT), open:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;chatgpt.com\/codex\/settings\/usage\n<\/code><\/pre>\n\n\n\n<p>That page is where OpenAI says you can see your <strong>current limits<\/strong>. (<a href=\"https:\/\/developers.openai.com\/codex\/pricing\/\">OpenAI Developers<\/a>)<\/p>\n\n\n\n<p><strong>While you\u2019re inside Codex CLI<\/strong>, you can also see remaining limits with:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/status<\/code> (<a href=\"https:\/\/developers.openai.com\/codex\/pricing\/\">OpenAI Developers<\/a>)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">If you\u2019re using Codex via <strong>API key<\/strong><\/h3>\n\n\n\n<p>Go to <strong>platform.openai.com \u2192 Usage<\/strong> (the page in your screenshot). That will show tokens\/spend <em>only after<\/em> you make API requests. (<a href=\"https:\/\/developers.openai.com\/codex\/pricing\/\">OpenAI Developers<\/a>)<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3) Quick way to tell which mode you\u2019re in<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you see <strong>\u201cYou\u2019re out of Codex messages\u2026 resets on \u2026\u201d<\/strong> \u2192 you\u2019re hitting <strong>ChatGPT subscription limits<\/strong> (track in <strong>Codex usage dashboard<\/strong> \/ <code>\/status<\/code>). (<a href=\"https:\/\/developers.openai.com\/codex\/pricing\/\">OpenAI Developers<\/a>)<\/li>\n\n\n\n<li>If your <strong>Platform Usage<\/strong> page shows tokens\/spend increasing \u2192 you\u2019re using <strong>API key billing<\/strong>. (<a href=\"https:\/\/developers.openai.com\/codex\/pricing\/\">OpenAI Developers<\/a>)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Codex \u201cusage\u201d is tracked in two totally different places depending on how you logged in, and that\u2019s why your OpenAI [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-749","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=749"}],"version-history":[{"count":1,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/749\/revisions"}],"predecessor-version":[{"id":750,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/749\/revisions\/750"}],"wp:attachment":[{"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}