Skip to main content
plugin

statusbar — Claude Code plugin: session metrics in your terminal

Puts model name, context usage, session cost and git branch in a status line at the bottom of Claude. Useful when you want to watch what a session is costing.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install statusbar@claude-community
Open on GitHub

What statusbar does

The plugin draws a live status line under your terminal session. Widgets cover the active model, thinking effort level, a context usage bar, session cost, elapsed time and the git branch with a dirty marker. Other widgets report changed lines, the 5-hour and 7-day rate limits, token counts and cache hit rate.

There are more than 20 widgets and three layouts: one compact line, a two-line standard view, and a three-line view with the Clawd pixel mascot. Configure the set through /statusbar:config, or apply a preset straight away — minimal, default, developer, full, tracker. Bar colors track load: green below 55%, then yellow, orange, and red past 85%.

It is plain Node.js with no external dependencies. Input comes from stdin JSON, local git and the filesystem, with no network calls; git state and terminal width are cached for 3-5 seconds. Restart Claude after setup or the line will not show up. To try it without installing, run claude --plugin-dir /path/to/statusbar.

What it helps with

  • watch context window usage without opening another panel
  • track session spend as it grows
  • see which branch you are on and whether the tree is dirty
  • check how often responses come from cache
  • keep the 5-hour and 7-day rate limits in view

Example prompts for the agent

  • Set up the status line the way I like: /statusbar:config
  • Apply the developer preset: /statusbar:config developer
  • Show what is in the status line now and drop the cost widget

How to install statusbar

Plugin marketplace

/plugin marketplace add anthropics/claude-plugins-community
/plugin install statusbar@claude-community

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about statusbar

How do I install statusbar in Claude Code?

Add the marketplace with /plugin marketplace add anthropics/claude-plugins-community, then install the plugin: /plugin install statusbar@claude-community. Run /statusbar:setup afterwards and restart Claude.

What does statusbar show?

Model, thinking effort, a context usage bar, session cost and duration, and the git branch. Extra widgets add token counts, rate limits, cache hit rate and changed line counts.

Does it need any dependencies?

No, it runs on plain Node.js. Data comes from stdin JSON, local git and the filesystem, and nothing is sent over the network.

Source text

SKILL.md · MIT
# Claude Code statusbar

A customizable status bar plugin for [Claude Code](https://claude.ai/code) that displays real-time session metrics at the bottom of your terminal.

**20+ widgets** | **3 layouts** | **pixel art mascot** | **zero dependencies**

```
Opus 4.6 │ effort:high │ ████░░░░ 42% │ main* │ $1.23 │ 12m 34s
```

```
 ▐▛███▜▌  Opus 4.6 │ effort:high │ ████░░░░ 72%
▝▜█████▛▘ main* │ $1.23 │ 14m 22s
  ▘▘ ▝▝  5h:34% │ +42 -7 │ cache:67%
```

### Screenshot
<img width="730" height="172" alt="image" src="https://github.com/user-attachments/assets/2558da3e-3d41-4bcd-a00a-f424cfdcb636" />


## Installation

```
/plugin marketplace add SYM1000/claude-statusbar
/plugin install statusbar
/statusbar:setup
```

Restart Claude Code after setup. The status bar will appear at the bottom of every session.

## Configuration

Customize interactively:
```
/statusbar:config
```

Or apply a preset directly:
```
/statusbar:config developer
```

### Presets

| Preset | Layout | Description |
|--------|--------|-------------|
| `minimal` | compact | Model + context bar |
| `default` | compact | Model, context, cost, duration, git |
| `developer` | standard | All developer metrics (2 lines) |
| `full` | mascot | Everything + pixel art mascot |
| `tracker` | standard | Message & token tracking focus |

## Layouts

### Compact (1 line)
```
Opus 4.6 │ effort:high │ ████░░░░ 42% │ main* │ $1.23 │ 12m 34s
```

### Standard (2 lines)
```
Opus 4.6 │ effort:high │ ████████░░ 72% │ main* │ +42 -7
$1.23 │ 14m 22s │ 5h:34% │ 7d:12% │ cache:67%
```

### Mascot (3 lines)
```
 ▐▛███▜▌  Opus 4.6 │ effort:high │ ████░░░░ 72%
▝▜█████▛▘ main* │ $1.23 │ 14m 22s
  ▘▘ ▝▝  5h:34% │ +42 -7 │ cache:67%
```

The mascot is the Claude Code alien ("Clawd") rendered in Claude's signature orange.

## Widget Catalog

### Core (enabled by default)
| Widget | Shows | Example |
|--------|-------|---------|
| `model` | Active model | `Opus 4.6` |
| `effort` | Thinking effort | `effort:high` |
| `context` | Usage bar + % | `████░░░░ 42%` |
| `cost` | Session cost | `$1.23` |
| `duration` | Session time | `12m 34s` |
| `git` | Branch + dirty | `main*` |

### Developer
| Widget | Shows | Example |
|--------|-------|---------|
| `lines` | Code changes | `+156 -23` |
| `rate-5h` | 5h rate limit | `5h:34%` |
| `rate-7d` | 7d rate limit | `7d:12%` |
| `tokens` | Token counts | `84k/21k` |
| `cache` | Cache hit rate | `cache:67%` |
| `context-size` | Window size | `1M` |
| `latency` | API time | `api:18.5s` |

### Tracking
| Widget | Shows | Example |
|--------|-------|---------|
| `messages` | Message count | `✉ 12/11` |
| `total-tokens` | Cumulative | `Σ 84kin 21kout` |
| `tools-used` | Tool calls | `⚒ 47` |

### Extras
| Widget | Shows | Example |
|--------|-------|---------|
| `session` | Session ID | `a1b2c3` |
| `vim` | Vim mode | `NORMAL` |
| `mcp` | MCP servers | `MCP:3` |
| `worktree` | Worktree | `wt:feature-x` |
| `agent` | Agent name | `planner` |
| `style` | Output style | `concise` |
| `mascot` | Pixel art | Clawd alien |

### Alert
| Widget | Shows | Example |
|--------|-------|---------|
| `compact-warn` | Auto-compact warning | `⚠ COMPACT` |

## Color System

All colors use RGB true color for maximum fidelity:

- **Context/rate limits**: Green (<55%) → Yellow (<70%) → Orange (<85%) → Red (85%+)
- **Cost**: Claude orange
- **Effort**: Lavender
- **Git**: Cyan branch, red dirty indicator
- **Mascot**: Claude's signature orange (`rgb(215, 119, 87)`)

## Dev Mode

Test locally without installing as a plugin:

```bash
claude --plugin-dir /path/to/statusbar
```

Or test the renderer directly:

```bash
echo '{"model":{"display_name":"Opus 4.6"},"context_window":{"used_percentage":42}}' | node scripts/statusline.js
```

## Uninstall

```
/statusbar:setup uninstall
```

Then restart Claude Code.

## Architecture

- Pure Node.js — zero external dependencies
- File-based caching for git and terminal width (3-5s TTL)
- All data from stdin JSON, local git, or filesystem — no network calls
- Target execution time: <80ms with cache hits

## License

MIT

© SYM1000 · MIT · SYM1000/claude-statusbar

Similar plugins

All plugins for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor