From request to tool
You describe the goal. CAP matches it to the Voltage sandbox tool before the agent installs anything.
Tools for AI agents at capcli.com
CAP CLI helps AI agents use real tools without guessing commands or exposing secrets. Describe the job, see what the tool needs, approve the important steps, and let the agent run it in a controlled local setup.
$ cap resolve "set up a new lightning testnet node" --json
{
"rank": 1,
"package": "lightningnode/voltage-sandbox",
"best_for": "create a Voltage MutinyNet Lightning node",
"review": {
"tier": "verified-runtime",
"risk": "medium"
},
"policy_profile": "balanced",
"try": "allowed",
"install": "requires-approval",
"safeTrials": [
"voltage-sandbox brief --json",
"voltage-sandbox doctor --json"
]
}
Paste these prompts into a local coding agent that can run terminal commands, such as Codex, Claude Code, Cursor, or Windsurf. The first prompt installs CAP CLI. The second is a real task you can run after CAP is connected.
Install CAP CLI from https://capcli.com/. Make sure the cap command works in this terminal. Then connect CAP to this agent: use cap setup codex for Codex, or cap setup claude for Claude Code. If the installer prints a NEXT command, run that exact command before continuing.
Use CAP to help me create a new MutinyNet Lightning node on Voltage. Do not ask me to paste API keys, passwords, macaroons, or seed phrases into chat. Use the local voltage-sandbox credential prompts, and ask me before creating the node, adding funds, or running payment tests.
Use these commands if you prefer to see each step yourself. The installer places the CAP command in ~/.cap/bin.
curl -fsSL https://capcli.com/install.sh | sh && export PATH="$HOME/.cap/bin:$PATH" && cap doctor
cap setup codex
cap setup claude
cap resolve "set up a new lightning testnet node" --json
cap info lightningnode/voltage-sandbox --json
After you paste the Lightning sandbox prompt above, CAP gives the agent a safer path through the task. It resolves the request to lightningnode/voltage-sandbox, shows the review record, runs safe checks first, and asks before setup changes anything live.
cap resolve "set up a new lightning testnet node" --json
cap info lightningnode/voltage-sandbox --json
cap try lightningnode/voltage-sandbox --json
cap add lightningnode/voltage-sandbox
cap run lightningnode/voltage-sandbox -- brief --json
cap run lightningnode/voltage-sandbox -- doctor --json
cap run lightningnode/voltage-sandbox -- credentials --gui
cap run lightningnode/voltage-sandbox -- report --json
You describe the goal. CAP matches it to the Voltage sandbox tool before the agent installs anything.
The agent can run read-only checks like brief and doctor before taking bigger steps.
Creating a node, adding funds, and running payment tests only happen after local prompts or your approval.
CAP gives agents a predictable path from a plain-English request to a real tool run. The agent can discover the right package, try low-risk checks, install after approval, and then run through local policy.
plain request
Describe the outcome you want, not the package or command.
cap resolve
CAP matches the request to reviewed package candidates.
cap try
Safe smoke checks run in a temporary environment.
cap add
The package is pinned only after policy and approval checks.
cap run
The agent executes through CAP with local prompts for live changes.
Trial checkpoint
cap try sits before installcap try is the low-commitment safety and fit check between inspection and install. It lets an agent prove that a candidate package can install in a temporary environment and run its declared safe path before CAP pins it to your project or global tool store.
--help, doctor --json, brief --json, or dry-run commands.
cap resolve "set up a new lightning testnet node" --json
cap info lightningnode/voltage-sandbox --json
cap try lightningnode/voltage-sandbox --json
cap add lightningnode/voltage-sandbox --yes
For voltage-sandbox, the try step can run brief --json, doctor --json, and credentials --check --json.
Safety Model
CAP keeps agent tool use understandable: inspect the package, try only the safe path it declares, and stop before anything persistent or live happens.
cap try runs declared smoke checks in a temporary CAP home, without pinning the package.
CAP separates low-risk discovery from actions that change your machine, secrets, or live accounts.
CAP can run brief and doctor first. Creating the node, entering Voltage credentials, adding funds, or running a payment test stops for you.
Start with the registry for package discovery, then use the HTTP endpoints for integrations and the docs for command behavior.
Static JSON for clients that want the full package catalog.
/registry/packages.jsonQuery packages by task, name, keyword, or capability text.
/api/search?q=voltageFetch the normalized package list exposed by the hosted API.
/api/packagesFetch one package record with review, policy, and install metadata.
/api/package?id=lightningnode/voltage-sandboxReview commands, options, recipes, and project files.
/docs.htmlCreate a manifest, run preflight checks, and publish into a local registry.
/publisher-workflow.htmlRead the package runbook for the Lightning sandbox workflow.
/docs/voltage-sandbox-cli.mdDownload the browser-served CLI bundle used by the installer.
/cli/cap.jsRemove CAP from this machine, including its local files, shell setup, and agent connections.
cap uninstall