CShip (pronounced "sea ship")
Beautiful, Blazing-fast, Customizable Claude Code Statusline.
cship is a custom statusline rendered by Claude Code that shows real-time session data — model name, cost, context window usage, usage limits, and more — directly in your terminal prompt.
Install
Option A — curl installer (recommended)
Downloads a pre-built binary for your platform (macOS arm64/x86_64, Linux x86_64/aarch64):
|
The installer:
- Places the binary at
~/.local/bin/cship - Creates a starter config at
~/.config/cship.toml - Wires the statusline into
~/.claude/settings.json - Optionally installs Starship (needed for passthrough modules)
- On Linux, optionally installs
libsecret-tools(needed for usage limits)
Option B — cargo install
Then add cship as the Claude Code statusline in ~/.claude/settings.json:
Configuration
Create ~/.config/cship.toml (or a cship.toml at your project root):
[]
= ["$cship.model $cship.cost $cship.context_bar"]
Each entry in lines is one row of the statusline. Module tokens follow $cship.<module> syntax. Starship modules (e.g. $git_branch) can be mixed in freely.
Available modules
| Module | Token | Shows |
|---|---|---|
model |
$cship.model |
Claude model name |
cost |
$cship.cost |
Session cost, duration, lines changed |
context_bar |
$cship.context_bar |
Context window usage bar |
context_window |
$cship.context_window |
Context window token count |
vim |
$cship.vim |
Vim mode (Normal / Insert) |
agent |
$cship.agent |
Sub-agent name |
session |
$cship.session |
Session identity |
workspace |
$cship.workspace |
Project directory |
usage_limits |
$cship.usage_limits |
API usage limits (5 hr / 7 day) |
Styling example
[]
= ["$cship.model $cship.cost $cship.context_bar"]
[]
= 1.0
= "bold yellow"
= 5.0
= "bold red"
Debug your config
Prints each module's live value, the config file in use, and any warnings — useful when something looks wrong.
Showcase
Six ready-to-use configurations — from minimal to full-featured. Each can be dropped into ~/.config/cship.toml.
1. Minimal
One clean row. Model, cost with colour thresholds, context bar.
[]
= ["$cship.model $cship.cost $cship.context_bar"]
[]
= "green"
= 2.0
= "yellow"
= 5.0
= "bold red"
[]
= 10
= 75.0
= "yellow"
= 90.0
= "bold red"
2. Git-Aware Developer
Two rows: Starship git status on top, Claude session below. Starship passthrough ($directory, $git_branch, $git_status) requires Starship to be installed.
[]
= [
"$directory $git_branch $git_status",
"$cship.model $cship.cost $cship.context_bar",
]
[]
= "◆ "
= "bold cyan"
[]
= 2.0
= "yellow"
= 8.0
= "bold red"
[]
= 12
= 70.0
= "yellow"
= 85.0
= "bold red"
3. Cost Guardian
Shows cost, lines changed, and rolling API usage limits all at once. Colour escalates as budgets fill.
[]
= [
"$cship.model $cship.cost +$cship.cost.total_lines_added -$cship.cost.total_lines_removed",
"$cship.context_bar $cship.usage_limits",
]
[]
= "bold purple"
[]
= "$ "
= 1.0
= "bold yellow"
= 3.0
= "bold red"
[]
= 14
= 60.0
= "yellow"
= 80.0
= "bold red"
[]
= "5h {pct}%"
= "7d {pct}%"
= " "
= 70.0
= "bold yellow"
= 90.0
= "bold red"
4. Material Hex
Every style value is a fg:#rrggbb hex colour — no named colours anywhere. Amber warns, coral criticals.
[]
= [
"$cship.model $cship.cost $cship.context_bar",
"$cship.usage_limits",
]
[]
= "fg:#c3e88d"
[]
= "fg:#82aaff"
= 2.0
= "fg:#ffcb6b"
= 6.0
= "bold fg:#f07178"
[]
= 14
= "fg:#89ddff"
= 65.0
= "fg:#ffcb6b"
= 85.0
= "bold fg:#f07178"
[]
= "5h {pct}%"
= "7d {pct}%"
= " "
= 70.0
= "fg:#ffcb6b"
= 90.0
= "bold fg:#f07178"
5. Tokyo Night
Three-row layout for polyglot developers. Starship handles language runtimes and git; cship handles session data. Styled with the Tokyo Night colour palette.
[]
= [
"$directory $git_branch $git_status $python $nodejs $rust",
"$cship.model $cship.agent",
"$cship.context_bar $cship.cost $cship.usage_limits",
]
[]
= "◈ "
= "bold fg:#7aa2f7"
[]
= "↳ "
= "fg:#9ece6a"
[]
= 16
= "fg:#7dcfff"
= 60.0
= "fg:#e0af68"
= 80.0
= "bold fg:#f7768e"
[]
= "$ "
= "fg:#a9b1d6"
= 2.0
= "fg:#e0af68"
= 8.0
= "bold fg:#f7768e"
[]
= "5h {pct}%"
= "7d {pct}%"
= " · "
= 70.0
= "fg:#e0af68"
= 90.0
= "bold fg:#f7768e"
6. Nerd Fonts
Requires a Nerd Font in your terminal. Icons are embedded as symbol values on each module and as literal characters in the format string for Starship passthrough rows.
[]
= [
" $directory $git_branch $git_status",
"$cship.model $cship.cost $cship.context_bar $cship.usage_limits",
]
[]
= " "
= "bold cyan"
[]
= " "
= "green"
= 2.0
= "yellow"
= 6.0
= "bold red"
[]
= " "
= 12
= 70.0
= "yellow"
= 88.0
= "bold red"
[]
= " 5h {pct}%"
= "7d {pct}%"
= " "
= 70.0
= "yellow"
= 90.0
= "bold red"
Full documentation
Complete configuration reference, format string syntax, all module options, and examples.
License
Apache-2.0