setup

setup is a command for Claude Code from fredrikaverpil/claudeline. It costs 0 tokens per session (613 once invoked), scanned B, original, MIT.

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 for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the claudeline plugin — 1 command shipped together

Good fit Use it to install claudeline, update an existing copy, or fall back to installing it with Go when a release download fails.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fredrikaverpil/claudeline/setup
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.

Clone the repo
git clone --depth 1 https://github.com/fredrikaverpil/claudeline

Made for: Claude Code.

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

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/fredrikaverpil/claudeline/setup/github.svg)](https://agentmods.dev/commands/fredrikaverpil/claudeline/setup)
Your own site
<a href="https://agentmods.dev/commands/fredrikaverpil/claudeline/setup"><img src="https://agentmods.dev/badge/commands/fredrikaverpil/claudeline/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/fredrikaverpil/claudeline/setup"><img src="https://agentmods.dev/badge/commands/fredrikaverpil/claudeline/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00613
Opus 5.5 $0.00000 $0.00245
Sonnet 5.5 $0.00000 $0.00123
Haiku 4.5 $0.00000 $0.00061

Measured 2mo ago against content hash aeea372297b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 25d 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.

Related

setup compared with commands from other repositories

setup next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setupfredrikaverpil/claudelineCommand5525d agoMITB0Claude Code
checklistgithub/spec-kitCommand149kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand149kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand149kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand149kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand149kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand149kyesterdayMITA14Claude Code