← 返回
未分类 中文

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...
安装并使用 RunAPI CLI 作为 RunAPI 模型的通用执行层,用于在用户请求运行任何 RunAPI 模型、检查认证信息时使用。
runapi-ai
未分类 clawhub v0.2.5 1 版本 100000 Key: 无需
★ 0
Stars
📥 229
下载
💾 0
安装
1
版本
#latest

概述

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

TargetCommand
------
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

SourceHow
------
Browser login (interactive)runapi login
Environmentexport RUNAPI_API_KEY=
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 <task-id> --service suno --action text-to-music

# Inspect a task without waiting
runapi get <task-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 <path>  # 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

  • Browse every RunAPI model and its CLI service: https://runapi.ai/models.md

版本历史

共 1 个版本

  • v0.2.5 当前
    2026-05-25 17:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,145 📥 919,253
design-media

gpt-image

runapi-ai
Generate and edit images with GPT Image through RunAPI. Use when the user asks an agent to create, edit, or transform im
★ 0 📥 345
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,429 📥 327,047