runapi-cli
FreeNo executable scriptsNot checkedUse the RunAPI CLI for one-off artifacts and results, or RunAPI's standard x402 REST flow for wallet-funded Task calls without an API key. Use when an agent…
by runapi-ai1,999 installs in other catalogsAbout this skill
RunAPI CLI
The runapi CLI executes one-off artifacts or results only for services in its
installed command catalog. An app, backend, worker, library, or production code
integration uses a RunAPI SDK instead.
Choose route
Use the CLI for a one-off artifact or result. Use an SDK for an app, backend,
worker, library, or production code. Before composing a service command,
discover the installed command catalog with runapi --help; proceed only when
it lists the service. An absent service routes to its SDK or public API contract,
not to a guessed CLI command.
Install
| Target | Command |
|---|---|
| macOS / Linux (interactive) | brew install runapi-ai/tap/runapi |
| Server / CI (headless) | curl -fsSL https://runapi.ai/cli/install.sh | sh |
The installer detects OS and architecture (Linux and macOS, amd64 and arm64), verifies a SHA-256 checksum from https://runapi.ai/cli/latest.json, and refuses to write the binary if verification fails.
Authentication
Check the current state first:
runapi auth status
| Source | How |
|---|---|
| Environment (agent/headless default) | Read RUNAPI_API_KEY from the environment |
| Saved config (agent/server/CI) | printf '%s' "$RUNAPI_API_KEY" | runapi auth import-token --token - (writes ~/.config/runapi/config.json with mode 0600) |
| Browser login (interactive fallback) | runapi login in a terminal, or the MCP login tool from an MCP host |
RUNAPI_BASE_URL overrides the default base URL.
The RunAPI MCP Server reads the same ~/.config/runapi/config.json as the CLI. After runapi login or the MCP login tool completes, authenticated MCP tools can use the saved credentials after the host reloads config if needed.
Avoid runapi auth import-token --token "$KEY" directly — the value would be visible in ps -ef on shared hosts. Use stdin (--token -) or RUNAPI_API_KEY in the environment.
Discover services, commands, and fields
The CLI is JSON-first: every service exposes typed commands, and each command
documents its request fields through --help. Always inspect before composing a
request instead of guessing flags.
runapi --help
runapi suno --help
runapi suno text-to-music --help
Select capability in order: use runapi --help to choose a listed service,
then inspect runapi <service> --help. Choose <action> only from service help,
then inspect runapi <service> <action> --help for the current request contract,
including nested fields and rules. Use only the listed service, action, model,
fields, and conditional combinations.
Run a model
Write valid JSON to a file and pass it with --input-file. The default command
waits synchronously and polls until the task completes. Use inline --input or
stdin only when the caller specifically needs that transport.
# Synchronous: submit and poll until done
runapi suno text-to-music --input-file request.json
# Asynchronous: submit and return immediately, then poll separately
runapi suno text-to-music --async --input-file request.json
runapi wait <task-id> --service suno --action text-to-music
# Inspect a task without waiting
runapi get <task-id> --service suno --action text-to-music
Use --async only when the user explicitly requests background execution,
polling, or webhook integration. Preserve the returned task ID and use the exact
service/action pair from the submitted command for get or wait.
A wait timeout (exit code 5) stops polling, not the task. Read
error.details.task_id and error.details.retrieve_command from the JSON on
stdout, run that command (or wait with the same arguments) to fetch the
result, and do not resubmit the request.
JSON responses go to stdout; progress lines go to stderr. Pipe to jq for downstream parsing.
Account
runapi account info
runapi account balance
Live pricing
Pricing commands return current estimates for paid tasks. pricing list and
ordinary pricing quote calls do not require an API key. A quote with an
Account-owned source_task_id follows the normal API-key authentication rules.
runapi pricing list --service suno
runapi pricing quote --service suno --action text_to_music --model suno-v6 \
--params '{"vocal_mode":"auto_lyrics","prompt":"A chill lo-fi beat"}'
runapi pricing quote --service suno --action text_to_music --model suno-v6 \
--params-file pricing-inputs.json
Self-funded x402 REST calls (no API key)
Use this route when the agent has a wallet and must pay for a supported Task endpoint directly. It is REST-only; the CLI and MCP server do not add an x402 transport. Do not register, create an API key, buy credits, or create a Task before payment.
Use the x402 v2 client provided by the agent runtime or wallet platform. An available wallet signer and x402 v2 client are prerequisites; otherwise stop and report the missing prerequisite. Use standard x402 signing; the API-key path remains a separate authentication route.
Pre
Install runapi-cli in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the runapi-cli skill do?
Use the RunAPI CLI for one-off artifacts and results, or RunAPI's standard x402 REST flow for wallet-funded Task calls without an API key. Use when an agent needs to discover models or prices, create a paid Task, poll its result, or run a supported CLI service. Use an SDK for app or production integration.
How do I install the runapi-cli skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the runapi-cli skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic