Claude Code status line

Bar

A statusline for Claude Code that shows context usage, session limits, and git info right in your terminal.

Install

Install
npx @allthingsclaude/bar

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/allthingsclaude/bar.git

From the README

Bar
by All Things Claude

A statusline for Claude Code. Shows context usage, session limits, and git info — right in your terminal.

Quick start

The interactive setup wizard will:

1. Ask which lines you want visible (context, session, git)
2. Install claude-bar globally
3. Open your browser to authenticate with your Anthropic account
4. Configure Claude Code's statusLine in ~/.claude/settings.json

Restart Claude Code and you're done.

Manual setup

If you prefer to set things up yourself:

1. Install

2. Authenticate

Opens 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):

What it shows

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:

Set any line to false to hide it.

Commands

Auth options

Bar resolves tokens in this order:

1. BAR_TOKEN environment variable
2. CLAUDE_CODE_OAUTH_TOKEN environment variable
3. ~/.bar/tokens.json (created by claude-bar login)

License

MIT
Read the full README on GitHub

How status lines work

  • A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
  • Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
  • Or run /statusline inside Claude Code and describe what you want.
Claude Code docs

Details

Language
JavaScript
Last updated
5 May 2026

FAQ

What is Bar?

A statusline for Claude Code that shows context usage, session limits, and git info right in your terminal. It is a status line for Claude Code, from allthingsclaude/bar on GitHub.

How do I install Bar?

Run npx @allthingsclaude/bar, then follow the setup in the README.

Is Bar popular?

allthingsclaude/bar has 29 GitHub stars and 0 forks. It was last updated on 5 May 2026.

More status lines

Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.