Developer docs

CLI

kinetune runs every operation from the terminal. It prints JSON whenever its output is piped, so local agents and scripts read it directly.

Install (Node 20+)
npm install -g @kinetune/cli
# or without installing:
npx @kinetune/cli --help

The CLI is open source (MIT) at kinetune/cli, and each npm release carries a provenance statement linking it to that repo.

Sign in
kinetune auth login                            # browser sign-in, picks the workspace
kinetune auth login --api-key kt_live_YOUR_KEY  # or store an API key
kinetune auth status

Several workspaces

A sign-in acts for one workspace. Sign in to each one you work in; the CLI keeps them all, and the last is the default. Any command takes --organization (an id or the workspace's name) to act for another:

Workspaces
kinetune auth login --organization ORG_ID         # add a workspace (the consent screen preselects it)
kinetune auth list                                # the workspaces you are signed in to
kinetune kit add --kind place --name Desk --file desk.png --rights-confirmed --organization "Reeve House Records"
kinetune auth logout --organization ORG_ID        # forget one; plain logout forgets them all

KINETUNE_ORGANIZATION does the same for a whole shell or script, and KINETUNE_CONFIG_DIR keeps a separate set of sign-ins in another folder.

Working with it

Commands follow the API: kinetune songs list --q "tide" --limit 20, kinetune songs draft SONG_ID, kinetune quote lyric-video --song-id SONG_ID. Path ids are arguments, fields are flags, and --input file.json (or - for stdin) takes the whole request. Files go up by path or https URL: --audio ./song.wav. Every page of the API reference names its command.

kinetune create … always quotes first and asks before charging; pass --yes or a ceiling with --max-credits 120 in scripts. kinetune videos wait and kinetune videos download finish the job.

A Canvas: kinetune create canvas --song-id SONG_ID --picture '{"kind":"cover","motion":"push"}' --seconds 6.5, or from clips with --loop drift|rebound|cuts, a visualizer, or {"kind":"generate","from":"cover","with":"artist","video":"high"} (priced higher; the quote says by how much). --light '{"preset":"polar-curves/halo-ring"}' and --atmosphere dust go over the picture. kinetune clips retry-import IMPORT_ID tries a failed clip again.

Cover art: kinetune covers quote --count 2, then kinetune covers make --song-id SONG_ID --count 2 --credits N with the price it showed; kinetune covers get REQUEST_ID follows the round, and kinetune covers use SONG_ID COVER_ID puts one in use. kinetune songs download SONG_ID saves the song's cover at full size and its audio (--cover or --audio for one).

Artist pages: kinetune artists page check novalane, kinetune artists page claim ARTIST_ID --handle novalane, kinetune artists page update ARTIST_ID --theme paper --genres Alt-pop (--sections takes JSON and replaces every section), kinetune artists page preview|publish|unpublish ARTIST_ID and kinetune artists page stats ARTIST_ID --days 30. The page's links: kinetune artists profiles list|add|order|update|remove|discover; confirm a profile found automatically with kinetune artists profiles update ARTIST_ID PROFILE_ID --confirmed once the artist says it is theirs.

Give a local agent (Codex, Cursor, opencode, Claude Code…) the Kinetune skill so it knows the workflow: npx skills add kinetune/skills. It's open source at kinetune/skills.

For agents
kinetune schema create canvas   # JSON Schema of a command's input
kinetune openapi                 # the whole API as OpenAPI 3.1
kinetune songs list --json       # JSON even in a terminal

Environment and exit codes

KINETUNE_API_KEYA workspace API key; wins over the stored sign-in (CI, servers).
KINETUNE_URLAnother deployment of the app (defaults to this site).
KINETUNE_ORGANIZATIONThe workspace commands act for (an id or name you signed in to), like --organization.
KINETUNE_CONFIG_DIRWhere credentials live; default ~/.config/kinetune (mode 600). A second folder is a second, separate set of sign-ins.
Exit codes0 done · 1 API or network error · 2 invalid usage or over --max-credits · 3 not signed in or not allowed