codexbar
What it does
This skill uses the CodexBar command line tool to read usage limits and remaining credits from AI service accounts. It is for people who want to know how much of their AI plan they have left.
When to use it
- ✓When you ask how much Codex, Claude, or another AI service you have left.
- ✓When you want to check rate limits or remaining credits.
- ✓When you want to see when a usage limit resets.
Skill link
https://github.com/steipete/agent-scripts/blob/main/skills/codexbar/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“How much Claude usage do I have left, and when does my limit reset?”
5 new skills a week. 1 minute to read.
How it works
The agent runs the CodexBar tool, which reads existing sign-in sessions or command line logins, and reports limits and reset times. No secrets are typed into the command.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 (
--provideraccepts codex, claude, kimi, gemini, copilot, cursor, openrouter, and many more — seecodexbar --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-swapstored backups, which produces two confusing readings. The currently active slot shows as having no stored credentials, because the live login is anactive profileand its backup only materialises when you switch away. Andclaude-swapkeeps alast seenpercentage 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; onlyrefresh token yesinclaude-swap list --token-statusis.
FAQ
Does it need my passwords?
No. Provider lookups use existing sign-in sessions, and no secrets go on the command line.
What if Claude reports no session key was found?
The skill says to log in to claude.ai in a supported browser, or rely on the command line fallback.
Can it check several accounts?
Yes. It can select an account by label or index, or check all accounts for one provider.
Details
Original description by the author
AI service usage/quota via CodexBar CLI: Codex/OpenAI, Claude, Kimi and other provider limits, credits, reset times.
repo: steipete/agent-scripts
Popularity
- GitHub stars
- 7.4k
- Ranking position
- #13229
- License
- MIT
- Updated
- 10/30/2026
Comments
- …
More skills from this repository
beeper
7.4kHelps your agent search your local Beeper chat history to find messages and work out which chat or contact a vague hint refers to.
cloudflare-registrar
7.4kHelps your agent check Cloudflare Registrar domain prices and availability, and register or list domains with a confirmation step.
create-cli
7.4kHelps your agent design a command line tool's commands, flags, help text, output, and errors so it works for both people and scripts.
frontend-design
7.4kHelps your agent build distinctive, production-quality web interfaces with a clear design direction, avoiding generic AI-looking layouts.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.