Skip to the main content

The Looptake CLI

One npm package, one binary, a command for every endpoint.

Install

Package looptake on npm, binary looptake. Needs Node 22 or later.

Install

# No install
npx looptake --help

# Or install the looptake binary
npm i -g looptake

Log in

Auth

looptake login            # prompts for the key, verifies it, stores it
looptake whoami           # team, credits, scopes
looptake logout

# CI: no login needed
export LOOPTAKE_API_KEY="lt_live_…"

Create and post

Account flags (--tiktok, --instagram, --youtube) take ids from looptake accounts list. --wait polls until the job ends.

Generate and schedule

looptake generate --count 5 --prompt "September launch" --json
looptake generations get 6522d1ec-2c11-4d3a-b078-6f6cfe9f217b --json
looptake posts create \
  --suggestion-id 6522d1ec-2c11-4d3a-b078-6f6cfe9f217b \
  --tiktok ff9d429b-07c5-4320-a98c-ac6e1791b828 \
  --youtube 1c74c860-000b-4136-88a7-a17f31019346 \
  --at 2026-09-01T15:00:00Z --timezone Europe/Lisbon \
  --wait

Commands

One command per endpoint. Run looptake <command> --help for flags.

CommandDoes
looptake login | logout | whoamiStore, remove and check the key.
looptake generateGenerate video ideas. Free.
looptake generations list | get | accept | variantsRead, accept and A/B ideas.
looptake posts create | preview | import | list | get | edit | reschedule | publish | cancelSchedule, check and change posts.
looptake calendarPosts grouped by local day.
looptake automations create | generate | posts | launch | extend | pause | resume | cancelRun a month of posts.
looptake influencers list | create | get | render | videos | deleteAI avatars and talking-head videos.
looptake content <render> | status | downloadStart any of the 14 studio renders, poll and download.
looptake workspaces list | create | get | update | archive | restore | defaultBrands and client workspaces.
looptake accounts listConnected TikTok, Instagram and YouTube accounts.
looptake assets list | create | update | deleteThe media library.
looptake analytics overview | posts | export | share | revokePerformance and shared reports.
looptake credits | trendsLedger and the daily trend library.
looptake webhooks list | create | update | deleteWebhook endpoints.
looptake brand analyze | clearRebuild the brand context from a website.
looptake mcpStart the local MCP server with the stored key.

Scripting

  • --json: only data on stdout. Progress and warnings go to stderr.
  • --wait and --timeout: block until a 202 job finishes.
  • --dry-run: print the request and send nothing.
  • Writes that spend or publish get an Idempotency-Key automatically, kept across retries.

Examples

# Pick the best hook from a fresh batch and post it now
best=$(looptake generate --count 10 --json | jq -r 'max_by(.score).id')
looptake posts create --suggestion-id "$best" \
  --tiktok ff9d429b-07c5-4320-a98c-ac6e1791b828 --schedule asap --wait

# See the request without sending it
looptake posts cancel 973821cf-5cc7-44f7-8795-e68da31c59ef --dry-run

Exit codes

CodeMeaning
0Success.
1Server or network failure, or a job that ended failed.
2Bad usage or invalid_input.
3unauthorized or forbidden_scope.
4not_found.
5conflict.
6insufficient_credits. Nothing charged.
7usage_limit_reached. A team limit; retrying does not help.
8rate_limited after Retry-After. Try later.
9--wait timed out. The job is still running: do not re-run, poll it.

Config

Config

# ~/.config/looptake/config.json (or $XDG_CONFIG_HOME/looptake), written by login, mode 0600
# Precedence: flag > environment > config file
export LOOPTAKE_API_KEY="lt_live_…"
export LOOPTAKE_API_BASE="https://looptake.com/api/v1"

For agents, see MCP. For raw HTTP, see the reference.

Describe it. Looptake writes, renders, scores and posts it to TikTok, Reels and Shorts.

Credits never expire. Top up from $5.