setup

A guided setup command for the two-node-toolbox repository. It helps configure external hosts, AWS, kcli, and dev-scripts, then checks prerequisites and validates the setup.

In plain words
What is it for?
Use it to configure one or all supported deployment options, copy and edit configuration files, install prerequisites, and verify the result.
Why use it?
It turns first-time deployment configuration into a sequence of checks and small setup steps.

Command for Claude Code

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/openshift-eng/two-node-toolbox/setup
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/two-node-toolbox

Made for: Claude Code.

Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 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.00009 $0.03724
Opus 5 $0.00005 $0.01862
Sonnet 5 $0.00002 $0.00745
Haiku 4.5 $0.00001 $0.00372

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

Security

Grade D, and why

setup scanned grade D 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 2d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- User needs to provide: host IP, SSH user, optional sudo password

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- `~/.ssh/id_ed25519.pub` (preferred)
.claude/commands/setup.md · 333 lines

How it starts

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

You are helping a user set up the two-node-toolbox repository for the first time. Guide them through the configuration process step by step.

Command Arguments

The user may specify what they want to configure:

  • /setup or /setup with no args: Ask what to configure (default: aws + dev-scripts)
  • /setup external: Configure external host only
  • /setup aws: Configure AWS hypervisor only
  • /setup kcli: Configure kcli installation only
  • /setup dev-scripts: Configure dev-scripts installation only
  • /setup all: Configure all four options Present the options in categories. external and aws are in the "hypervisor" category. kcli and dev-scripts are in the "installer" category.

Your Task

Based on the argument provided (or user's interactive choice), guide them through configuring the selected deployment method(s). For each selected method:

  1. Check current state - Verify what's already configured
  2. Explain prerequisites - Check if required tools/files are present
  3. Guide file setup - Help copy templates and configure files (ONE STEP AT A TIME)
  4. Provide resource links - Give URLs for external resources they need
  5. Validate configuration - Check if files are properly set up
  6. Suggest next steps - Provide commands to run next

Shared Prerequisites

SSH Key Check

All deployment methods require an SSH key on the local machine. Check for any of these files:

  • ~/.ssh/id_ed25519.pub (preferred)
  • ~/.ssh/id_rsa.pub
  • Any ~/.ssh/id_*.pub file

If no SSH key exists, create one with: ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519

Note for non-default key paths: Set SSH_PUBLIC_KEY in config/instance.env. This is used by both the AWS hypervisor and dev-scripts deployments.

Inventory File

Required for: external, kcli, dev-scripts (not AWS - it auto-generates inventory)

Read the full file on GitHub · 333 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. 2d ago First seen · 333 lines · 9 tokens per session scan D 4621964a2fab

Subscribe to this mod's changes

setup is a command published in the GitHub repository openshift-eng/two-node-toolbox (5 stars, last pushed 28d ago), licensed Apache-2.0. It adds 9 tokens to every session and 3,724 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.