@recoupable/cli) wraps the Recoup API for terminal-first workflows. It’s available as a global npm package and comes pre-installed in sandbox environments.
The CLI is in beta. The commands listed below are what’s shipped today (v0.1.13). For research workflows and most content operations, call the REST API directly — the CLI is gradually catching up.Agents: if a command isn’t listed below, don’t retry — fall back to the corresponding REST endpoint linked under each command.
Install
Authenticate
Set your API key as an environment variable:Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
RECOUP_API_KEY | Yes | — | Your Recoup API key |
RECOUP_API_URL | No | https://api.recoupable.com | API base URL override |
--json for machine-readable output and --help for usage info.
Commands
whoami
Show the authenticated account. SeeGET /api/accounts/id.
orgs
List organizations. SeeGET /api/organizations.
artists
List artists. SeeGET /api/artists.
notifications
Send a notification email to the authenticated account. SeePOST /api/notifications.
| Flag | Required | Description |
|---|---|---|
--subject <text> | Yes | Email subject line |
--text <body> | No | Plain text or Markdown body |
--html <body> | No | Raw HTML body (takes precedence over --text) |
--cc <email> | No | CC recipient (repeatable) |
--room-id <id> | No | Room ID for a chat link in the email footer |
--account <accountId> | No | Send to a specific account (org keys only) |
chats
Manage chats. SeeGET /api/chats and POST /api/chats.
sandboxes
Manage sandboxes. SeeGET /api/sandboxes and POST /api/sandboxes.
tasks
Check background task status. SeeGET /api/tasks/runs.
songs
Run AI music analysis. SeePOST /api/songs/analyze and GET /api/songs/analyze/presets.
--preset or --prompt is required. The other flags are optional.
| Flag | Required | Description |
|---|---|---|
--preset <name> | Conditional | Curated analysis preset. Required when --prompt is omitted. |
--prompt <text> | Conditional | Custom text prompt. Required when --preset is omitted. |
--audio <url> | No | Public URL to the audio file (MP3, WAV, FLAC). Some presets analyze the audio file; others (like catalog_metadata) work from metadata alone. |
--max-tokens <n> | No | Max tokens to generate (default 512). |
content
Content creation pipeline — generate AI-powered social videos for artists.List templates
Validate an artist
Check that an artist has the required assets before creating content. SeeGET /api/content/validate.
Estimate cost
Preview estimated cost and duration before kicking off the pipeline. SeePOST /api/content/estimate.
Create content
Run the full content-creation pipeline for an artist. SeePOST /api/content/create.
| Flag | Required | Description |
|---|---|---|
--artist <id> | Yes | Artist account ID |
--template <name> | No | Template name (default: random) |
--lipsync | No | Enable lipsync mode |
--upscale | No | Enable upscaling |
--caption-length <n> | No | Max caption length in characters |
