To view this agent in action, visit viralbench.ai.
This agent autonomously gets views on TikTok without any human intervention.
To run, get your API key from Lightreel and Doublespeed. Update GOAL with your marketing goal.
Requires Node 18+.
npm install # installs tsx (TS runner)
cp .env.example .env # then fill in your keysEnv vars (in .env, or exported in your shell):
OPENROUTER_API_KEY— runs the main agent (Claude Opus 4.8)LIGHTREEL_API_KEY— public Lightreel API key (lr_live_...)SCRAPE_CREATORS_API_KEY— resolves TikTok/IG URLs into images for the agent to "see"
The script reads
process.envdirectly. With npm scripts, either export the vars or run vianode --env-file=.env/ pass them inline. (tsx respects exported env.)
npm run auth # one-time Doublespeed browser sign-in (writes .doublespeed-tokens.json)
npm start # runs the agent → prints a Doublespeed review linkOpen marketing-agent.ts and set the Doublespeed targets near the top to YOUR account:
DS_PRODUCT_IDDS_ACCOUNT_IDDS_ACCOUNT_USERNAME
(As shipped they point at a specific test account.) Tunables like MODEL, MAX_ROUNDS,
MAX_LIGHTREEL_CALLS, IMAGE_MODEL_OVERRIDE, and AUTO_QUEUE are all in the CONFIG block.
.doublespeed-tokens.jsonholds your refresh token — it's gitignored. Don't commit it.- The refresh token lasts ~90 days and auto-renews; re-run
npm run authonly if it's revoked. AUTO_QUEUE=false(default) leaves a draft for review — nothing is posted.