setup

An installation command for the claudeline Claude Code status-line add-on.

In plain words
What is it for?
Use it to install claudeline, update an existing copy, or fall back to installing it with Go when a release download fails.
Why use it?
It checks for an existing installation and updates or installs the correct executable for the computer's operating system and processor.

Command

Part of the claudeline plugin — 1 command shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/fredrikaverpil/claudeline/setup
Clone the repo
git clone --depth 1 https://github.com/fredrikaverpil/claudeline

Or install claudeline, the plugin that ships this one along with the rest of its 1 command.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 613 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00613
Opus 5 $0.00000 $0.00307
Sonnet 5 $0.00000 $0.00123
Haiku 4.5 $0.00000 $0.00061

Measured 3d ago against content hash aeea372297b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

setup scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`~/.claude/settings.json`.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL "https://github.com/fredrikaverpil/claudeline/releases/latest/download/claudeline_${OS}_${ARCH}.tar.gz" | tar -xz -C <target_directory> claudeline
commands/setup.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Setup claudeline

Install and configure the claudeline plugin as your Claude Code statusline.

Re-running this command will update claudeline to the latest version.

Steps

  1. Check if claudeline is already installed.

Check if a claudeline binary already exists on the system:

which claudeline

If found, note the path — the update should replace the binary at that location.

If not found, check these paths:

  • ~/.local/bin/claudeline
  • ~/go/bin/claudeline
  1. Download the latest pre-built binary from GitHub releases.

Detect OS and architecture:

OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
case "$ARCH" in
  x86_64) ARCH="amd64" ;;
  aarch64) ARCH="arm64" ;;
esac

Download and install to the target directory (the directory from step 1):

mkdir -p <target_directory>
curl -fsSL "https://github.com/fredrikaverpil/claudeline/releases/latest/download/claudeline_${OS}_${ARCH}.tar.gz" | tar -xz -C <target_directory> claudeline
chmod +x <target_directory>/claudeline

If the download fails (e.g. curl is not available, no internet, or the platform is unsupported), fall back to go install:

go install github.com/fredrikaverpil/claudeline@latest

This requires Go to be installed with $GOPATH/bin in $PATH.

  1. Verify the binary is available.
<target_directory>/claudeline -version
  1. Configure settings.json if not already set.

Determine the settings file path: use $CLAUDE_CONFIG_DIR/settings.json if the CLAUDE_CONFIG_DIR environment variable is set, otherwise ~/.claude/settings.json.

Read the settings file. If statusLine is already configured and its command contains claudeline, skip this step — the existing configuration is valid.

Otherwise, set the statusLine field. If the target directory is in the user's $PATH, use just the binary name:

{
  "statusLine": {
    "type": "command",
    "command": "claudeline"
  }
}

Otherwise, use the full path:

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 96 lines · 0 tokens per session scan B aeea372297b5

Subscribe to this mod's changes

setup is a command published in the GitHub repository fredrikaverpil/claudeline (55 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 613 tokens. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.