Skip to content

Repository files navigation

Viral Bench: the first autonomous AI marketing agent

Viral Bench agent screenshot

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.

Viral Bench performance chart

Setup

Requires Node 18+.

npm install                 # installs tsx (TS runner)
cp .env.example .env        # then fill in your keys

Env 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.env directly. With npm scripts, either export the vars or run via node --env-file=.env / pass them inline. (tsx respects exported env.)

Run

npm run auth     # one-time Doublespeed browser sign-in (writes .doublespeed-tokens.json)
npm start        # runs the agent → prints a Doublespeed review link

Before you run it for real

Open marketing-agent.ts and set the Doublespeed targets near the top to YOUR account:

  • DS_PRODUCT_ID
  • DS_ACCOUNT_ID
  • DS_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.

Notes

  • .doublespeed-tokens.json holds your refresh token — it's gitignored. Don't commit it.
  • The refresh token lasts ~90 days and auto-renews; re-run npm run auth only if it's revoked.
  • AUTO_QUEUE=false (default) leaves a draft for review — nothing is posted.

About

An autonomous AI agent that gets views on TikTok

Topics

Resources

Stars

111 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages