← 返回 Skills 市场
🔌

runapi-cli

作者 RunAPI · GitHub ↗ · v0.2.5 · MIT-0
cross-platform ⚠ pending
38
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install runapi-cli
功能描述
Install and use the RunAPI CLI as the universal execution layer for RunAPI models. Use when the user asks to run any RunAPI model from an agent, inspect auth...
使用说明 (SKILL.md)

RunAPI CLI

The runapi CLI is the universal execution layer for every RunAPI model that ships a CLI service. Use it whenever an agent needs to run a one-off model task, pass a JSON request body, wait for an async task, or script RunAPI from a terminal, server, or CI job.

Install

Target Command
macOS / Linux (interactive) brew install runapi-ai/tap/runapi
Server / CI (headless) curl -fsSL https://runapi.ai/cli/install.sh | sh
Pin a specific version curl -fsSL https://runapi.ai/cli/install.sh | sh -s -- --version v0.1.0

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

Source How
Browser login (interactive) runapi login
Environment export RUNAPI_API_KEY=\x3Ckey>
Saved config (recommended for servers) printf '%s' "$KEY" | runapi auth import-token --token - (writes ~/.config/runapi/config.json with mode 0600)

RUNAPI_BASE_URL overrides the default base URL. Check the current state with runapi auth status.

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, actions, and fields

The CLI is JSON-first: every service exposes typed actions, and each action 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

Run a model

Pass the request body as JSON through --input-file (or --input for inline JSON, or - for stdin). The default flow is synchronous and polls until the task completes.

# 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 \x3Ctask-id> --service suno --action text-to-music

# Inspect a task without waiting
runapi get \x3Ctask-id> --service suno --action text-to-music

JSON responses go to stdout; progress lines go to stderr. Pipe to jq for downstream parsing.

Account

runapi account info
runapi account balance

Install the skill into another agent runtime

runapi agent install-skill --target claude    # ~/.claude/skills/runapi-cli/
runapi agent install-skill --target codex     # ~/.codex/skills/runapi-cli/
runapi agent install-skill --target gemini    # ~/.gemini/skills/runapi-cli/
runapi agent install-skill --target openclaw  # ~/.openclaw/skills/runapi-cli/
runapi agent list-targets                     # JSON list with resolved paths
runapi agent install-skill --target-dir \x3Cpath>  # custom location

Safety notes for agents

  • Never paste API keys into example commands. Reference RUNAPI_API_KEY or runapi auth import-token instead.
  • The CLI exits non-zero on validation failures, network errors, and timeouts. Check the exit code before assuming success.
  • For long-running tasks, prefer --async plus a wait loop so the agent can release the shell promptly.

References

能力标签
requires-sensitive-credentials
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install runapi-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /runapi-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.5
Agent-facing CLI-first redesign
元数据
Slug runapi-cli
版本 0.2.5
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

runapi-cli 是什么?

Install and use the RunAPI CLI as the universal execution layer for RunAPI models. Use when the user asks to run any RunAPI model from an agent, inspect auth... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。

如何安装 runapi-cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install runapi-cli」即可一键安装,无需额外配置。

runapi-cli 是免费的吗?

是的,runapi-cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

runapi-cli 支持哪些平台?

runapi-cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 runapi-cli?

由 RunAPI(@runapi-ai)开发并维护,当前版本 v0.2.5。

💬 留言讨论