Honestly just toss this into Claude and tell it to set it up for you lol
Configuration files for Claude Code, including a custom status bar for the terminal.
Note: The Session and Weekly usage bars are designed for users on a Claude subscription plan (Pro, Max, etc.). If you're on API billing, those segments won't show anything — the rest of the bar (folder, model, context %) works for everyone.
📂 my-app | ★ Claude Sonnet | Context: ▓▓▓░░░░░░░ 35% | Session: ▓▓░░░░░░░░ 22% | Weekly: ▓░░░░░░░░░ 9%
Color-coded progress bars for context window, session usage, and weekly plan usage — always visible at the bottom of your terminal.
| File | Platform | Purpose |
|---|---|---|
CLAUDE.md |
All | Global instructions and coding guidelines for Claude Code |
settings.json |
All | Claude Code settings — permissions, statusline config, plugins |
statusline.sh |
macOS / Linux / WSL | Shell script that renders the status bar |
fetch-usage.sh |
macOS / Linux / WSL | Helper that fetches session and weekly usage from Anthropic API |
statusline.js |
Windows (native) | Node.js script that renders the status bar (no shell required) |
- 📂 Folder — current working directory
- ★ Model — which Claude model is active
- Context bar — how full the context window is (green → yellow → red)
- Session bar — 5-hour rolling usage against your plan limit
- Weekly bar — 7-day rolling usage against your plan limit
Pick your platform:
1. Copy files
# Files are already here if you cloned the repo into ~/.claude
# If not, copy them manually:
cp statusline.sh ~/.claude/statusline.sh
cp fetch-usage.sh ~/.claude/fetch-usage.sh
chmod +x ~/.claude/statusline.sh ~/.claude/fetch-usage.sh2. Install dependencies
brew install jq
# curl is built-in on macOS3. Update settings.json
Open ~/.claude/settings.json and set the statusLine key. Replace YOUR_USERNAME with your macOS username (run whoami if unsure):
"statusLine": {
"type": "command",
"command": "sh /Users/YOUR_USERNAME/.claude/statusline.sh"
}Why hardcode the path? Claude Code reads
settings.jsonbefore any shell is started, so$HOMEand~are not expanded. The full path is required.
4. Restart Claude Code
exit
claudeFeatures available on macOS:
| Feature | Works? |
|---|---|
| Folder, model, context % | ✅ |
| Session % and Weekly % | ✅ (reads token from macOS keychain) |
1. Copy files
cp statusline.sh ~/.claude/statusline.sh
cp fetch-usage.sh ~/.claude/fetch-usage.sh
chmod +x ~/.claude/statusline.sh ~/.claude/fetch-usage.sh2. Install dependencies
sudo apt install jq curl # Debian/Ubuntu
# or
sudo dnf install jq curl # Fedora/RHEL3. Update settings.json
Open ~/.claude/settings.json and set the statusLine key. Replace YOUR_USERNAME with your Linux username (run whoami if unsure):
"statusLine": {
"type": "command",
"command": "sh /home/YOUR_USERNAME/.claude/statusline.sh"
}4. Restart Claude Code
exit
claudeFeatures available on Linux:
| Feature | Works? |
|---|---|
| Folder, model, context % | ✅ |
| Session % and Weekly % | ✅ (reads token from ~/.claude/.credentials.json) |
The credentials file is created automatically when you log in to Claude Code. If Session/Weekly bars don't appear, check that
~/.claude/.credentials.jsonexists and containsclaudeAiOauth.accessToken.
On native Windows, inline shell commands in settings.json can break silently due to how Windows handles certain characters. The fix: use statusline.js — a Node.js script — instead of the shell script. Node.js is already installed since Claude Code requires it.
1. Copy the file
Open File Explorer and copy statusline.js to C:\Users\YOUR_USERNAME\.claude\statusline.js.
Or from Git Bash / PowerShell:
cp statusline.js ~/.claude/statusline.js2. No extra dependencies needed
statusline.js uses only Node.js built-ins (https, fs, path, os). Nothing to install.
3. Update settings.json
Open C:\Users\YOUR_USERNAME\.claude\settings.json. Replace YOUR_USERNAME with your Windows username:
"statusLine": {
"type": "command",
"command": "node C:/Users/YOUR_USERNAME/.claude/statusline.js"
}Use forward slashes (/) in the path, not backslashes.
4. Restart Claude Code
Close and reopen the Claude Code terminal, or type exit then claude.
Features available on Windows (native):
| Feature | Works? |
|---|---|
| Folder, model, context % | ✅ |
| Session % and Weekly % | ✅ (reads token from ~/.claude/.credentials.json) |
The credentials file is created automatically when you log in to Claude Code at
C:\Users\YOUR_USERNAME\.claude\.credentials.json.
WSL runs a full Linux environment, so the Linux setup applies exactly. Follow the Linux instructions above, using your WSL home directory path (e.g. /home/YOUR_USERNAME).
Features available on WSL:
| Feature | Works? |
|---|---|
| Folder, model, context % | ✅ |
| Session % and Weekly % | ✅ (reads token from ~/.claude/.credentials.json) |
| Feature | macOS | Linux | Windows (native) | Windows (WSL) |
|---|---|---|---|---|
| Folder, model, context % | ✅ | ✅ | ✅ | ✅ |
| Session % and Weekly % | ✅ | ✅ | ✅ | ✅ |
Session/Weekly % require a Claude Max or Pro subscription. On API billing plans, these segments will be empty.
Status bar doesn't appear at all
- Check that the path in
settings.jsonis correct and uses your actual username - Confirm the script file exists at that path
- Restart Claude Code after any change to
settings.json
Session/Weekly % not showing
- Make sure you are logged in to Claude Code (the credentials file is created on login)
- On macOS: verify the keychain entry exists by running
security find-generic-password -s 'Claude Code-credentials' -w - On Linux/Windows: verify
~/.claude/.credentials.jsonexists and is valid JSON
Bar appears but looks broken (missing characters)
- Your terminal font may not support block characters (
▓░). Switch to a monospace font like JetBrains Mono, Fira Code, or any Nerd Font.