Chuyển đến nội dung
Skillpedia
Agent7.4k · #13229

codexbar

Skill này làm gì

Skill này dùng công cụ dòng lệnh CodexBar để đọc giới hạn sử dụng và tín dụng còn lại từ tài khoản dịch vụ AI. Dành cho người muốn biết họ còn bao nhiêu hạn mức trong gói AI của mình.

Khi nào nên dùng

  • ✓Khi bạn hỏi còn bao nhiêu Codex, Claude hoặc dịch vụ AI khác.
  • ✓Khi bạn muốn kiểm tra giới hạn tốc độ hoặc tín dụng còn lại.
  • ✓Khi bạn muốn xem khi nào một giới hạn sử dụng được đặt lại.

Liên kết skill

https://github.com/steipete/agent-scripts/blob/main/skills/codexbar/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/steipete/agent-scripts/blob/main/skills/codexbar/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi còn bao nhiêu hạn mức Claude và khi nào giới hạn của tôi được đặt lại?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chạy công cụ CodexBar, công cụ này đọc các phiên đăng nhập đang có hoặc đăng nhập qua dòng lệnh, rồi báo cáo giới hạn và thời gian đặt lại. Không có mật khẩu nào được gõ vào lệnh.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

CodexBar

Use this when asked about AI subscription usage, rate limits, remaining credits, or "how much Codex/Claude/Kimi do I have left".

CLI

  • Binary: codexbar (Homebrew)
  • Default invocation honors the in-app provider toggles:
codexbar usage
codexbar usage --format json
  • Specific provider (--provider accepts codex, claude, kimi, gemini, copilot, cursor, openrouter, and many more — see codexbar --help):
codexbar usage --provider codex --json
codexbar usage --provider claude --json
  • Multiple accounts: --account <label>, --account-index <n>, or --all-accounts (single provider only).

Auth model

Provider fetches ride existing sessions — OAuth caches, CLI credentials, or browser cookies. No secrets are passed on the command line.

  • Codex: OpenAI web dashboard via oauth; falls back to Codex CLI.
  • Claude: claude.ai API via browser session cookie; falls back to Claude CLI. "No Claude session key found in browser cookies" means log in to claude.ai in a supported browser (or rely on the CLI fallback).
  • Token-based providers read the CodexBar config file.

Dashboard endpoints

The menu bar app serves its dashboard on loopback. The page pulls /dashboard/v1/snapshot and /cost; there is no /api/* namespace, so those paths 404 rather than telling you that you guessed. The snapshot endpoint requires auth, so when the CLI is unavailable the quickest honest check is to open the dashboard in a browser.

usage --all-accounts polls every account serially and takes well over ninety seconds. If it produces zero bytes on both stdout and stderr, it is not slow, it is blocked: the CLI is a helper inside CodexBar.app, and a pending macOS Gatekeeper prompt stops it dead with no output. Screenshot the screen before debugging the command.

Interpreting output

  • Errors for providers that were never configured are noise, not failures — only report providers the user actually uses.
  • Report percentage left, pace vs. expected, and reset time; the pace line ("in deficit"/"in reserve") is the actionable bit.
  • Claude rows read claude-swap stored backups, which produces two confusing readings. The currently active slot shows as having no stored credentials, because the live login is an active profile and its backup only materialises when you switch away. And claude-swap keeps a last seen percentage that keeps rendering for accounts whose credentials are gone, so a dead account can read as healthy for days. A plausible percentage is not proof of a working credential; only refresh token yes in claude-swap list --token-status is.
Câu hỏi thường gặp

Nó có cần mật khẩu của tôi không?

Không. Tra cứu nhà cung cấp dùng các phiên đăng nhập hiện có, và không có bí mật nào được đưa lên dòng lệnh.

Nếu Claude báo không tìm thấy session key thì sao?

Skill nói hãy đăng nhập vào claude.ai trên trình duyệt được hỗ trợ, hoặc dùng phương án dự phòng qua dòng lệnh.

Nó có kiểm tra được nhiều tài khoản không?

Có. Nó có thể chọn tài khoản theo nhãn hoặc chỉ số, hoặc kiểm tra mọi tài khoản của một nhà cung cấp.

Chi tiết

Mô tả gốc của tác giả

AI service usage/quota via CodexBar CLI: Codex/OpenAI, Claude, Kimi and other provider limits, credits, reset times.

repo: steipete/agent-scripts

Độ phổ biến

Sao GitHub
7.4k
Vị trí xếp hạng
#13229
Giấy phép
MIT
Cập nhật
30/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự