Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OpenAI Codex Usage (Jamesliu)New to Visual Studio Code? Get it now.
OpenAI Codex Usage (Jamesliu)

OpenAI Codex Usage (Jamesliu)

Jamesliu

|
3 installs
| (0) | Free
在 VS Code 狀態列顯示 OpenAI Codex 5 小時與每週用量。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenAI Codex Usage

在 VS Code 狀態列顯示 ChatGPT 方案的 Codex 用量。

功能

  • 依方案顯示可用的 5 小時與每週用量。
  • 滑鼠移至狀態列可查看已用、剩餘用量與重置時間。
  • 預設每 3 分鐘自動更新,可在設定中調整。
  • 更新失敗時保留上次成功資料,並標示「舊」。

前置需求

先使用 Codex CLI 或 OpenAI Codex VS Code extension 登入 ChatGPT。擴充功能會從 ~/.codex/auth.json 讀取登入資訊,不需另外輸入 API Key。

登入 token 會用於向 chatgpt.com 查詢 Codex 用量,不會複製到專案或 VS Code 設定。

指令

  • OpenAI Codex Usage: Refresh Usage 立即更新,也可點擊狀態列更新。
  • OpenAI Codex Usage: Stop/Resume Updates 停止或恢復更新。
  • OpenAI Codex Usage: Open Usage Page 開啟 Codex 用量頁面。
  • OpenAI Codex Usage: Show Output 顯示查詢紀錄與錯誤。

設定

在 VS Code 設定中搜尋 openaiUsage,可調整自動更新間隔與查詢逾時。

設定 預設值 範圍
openaiUsage.refreshIntervalMinutes 3 分鐘 1 至 60 分鐘
openaiUsage.timeoutMs 15,000 毫秒 1,000 至 120,000 毫秒
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft