@allthingsclaude/bar
v0.1.5
Published
Battery-themed statusline for Claude Code
Maintainers
Readme
Bar
by All Things Claude

A battery-themed statusline for Claude Code. Shows context usage, session limits, and git info — right in your terminal.
Opus 4.6 │ 87k/167k [█████░░░░░] 52%
Session │ [██░░░░░░░░] 19% │ 4h 31m
𖠰 status │ ⎇ feat/status │ +253 -33Quick start
npx @allthingsclaude/barThe interactive setup wizard will:
- Ask which lines you want visible (context, session, git)
- Install
claude-barglobally - Open your browser to authenticate with your Anthropic account
- Configure Claude Code's
statusLinein~/.claude/settings.json
Restart Claude Code and you're done.
Manual setup
If you prefer to set things up yourself:
1. Install
npm i -g @allthingsclaude/bar2. Authenticate
claude-bar loginOpens your browser to sign in with your Anthropic account (OAuth + PKCE). Tokens are stored securely in ~/.bar/tokens.json.
3. Configure Claude Code
Add to your Claude Code settings (~/.claude/settings.json):
{
"statusLine": {
"type": "command",
"command": "claude-bar"
}
}What it shows
| Line | Info | |------|------| | Context | Model name, token usage (used/total), fill percentage with progress bar | | Session | 5-hour rate-limit window usage with time remaining | | Git | Branch name, lines added/removed, worktree indicator |
Progress bars shift from dim to bright as usage increases.
Line visibility
The setup wizard saves your preferences to ~/.bar/config.json. You can also edit it directly:
{
"lines": {
"context": true,
"session": true,
"git": true
}
}Set any line to false to hide it.
Commands
| Command | Description |
|---------|-------------|
| npx @allthingsclaude/bar | Run interactive setup wizard |
| claude-bar login | Authenticate via OAuth |
| claude-bar logout | Remove stored token |
Auth options
Bar resolves tokens in this order:
BAR_TOKENenvironment variableCLAUDE_CODE_OAUTH_TOKENenvironment variable~/.bar/tokens.json(created byclaude-bar login)
License
MIT
