One Shared TypeScript Engine
Desktop and CLI both import @tiktok-uploader/core. All TikTok URLs, waits, and DOM locators
live in one file (selectors.ts), so a TikTok UI update is a single-file fix.
v2.0 · macOS, Windows & Linux · No Python
Built on one shared TypeScript engine driving your own installed Chrome, Edge, or Brave profile. No bundled browser download, no TikTok developer API keys, and no proxy setup.
| Video | Caption | Schedule | Flags | Status |
|---|---|---|---|---|
| 01_hook_reveal.mp4 | Behind the scenes on the v2 build #devlog | Tomorrow 18:00 | Everyone AI | Done |
| 02_workflow_clip.mp4 | Auto-staggering 10 clips on a 5-min grid | Nov 27 09:05 | Everyone | Running |
| 03_tips_cut.mov | Quick lighting setup in 20 seconds | Nov 27 18:10 | Friends Draft | Pending |
tiktok-up upload ./clips --account main --start "tomorrow 18:00" --every 12h --jitter 15m --window "09:00-21:00" --json
Core Capabilities
Every rule — schedules, session checks, PID locks, and TikTok selectors — lives in a single shared TypeScript core used identically by the Electron app and the CLI.
Desktop and CLI both import @tiktok-uploader/core. All TikTok URLs, waits, and DOM locators
live in one file (selectors.ts), so a TikTok UI update is a single-file fix.
Drives your installed Brave, Chrome, or Edge via Playwright's launchPersistentContext. Native
UA/TLS fingerprint, persistent session storage, plus Netscape cookies.txt import/export.
Each account owns an isolated profile guarded by account.lock (stale PIDs are reclaimed).
Different accounts run in parallel; colliding runs on the same account exit cleanly with code
4.
Runs headless by default, failing fast with exit code 3 on captcha challenges and saving
full-page screenshots to failures/*.png. Toggle Show browser or
--headed anytime.
Enforces TikTok's 5-minute grid, 20+ minute lead time, and 10-day (or 30-day Studio) horizon. Supports per-slot random jitter and quiet-hours windows that wrap cleanly across days.
Every row and status persists to queue.json while Electron holds a
powerSaveBlocker during runs. Restarting never loses progress — click
Retry Failed or run queue retry-failed.
Two Interfaces, One Profile
tiktok-up.A sign-in in either interface is immediately active in both. Use the GUI to curate captions and inspect failures, or drive headless batches from cron.
Select an account or click Add Account. If the status chip shows Expired,
click Sign In to authenticate once in your real browser window (or import a
Netscape cookies.txt).
Use Add Videos, Add Folder, or drag files and directories
directly onto the window. Supported formats include mp4, mov,
webm, mkv, and more.
Captions preload from matching <video>.txt sidecars (or leave empty/edit
inline, with a 150-char feed warning and 2,200-char limit). Toggle visibility, Draft, AI label,
Comment, Duet, and Stitch per row.
Set a start time, interval (e.g. 12h, 1d), optional jitter
(15m), and allowed posting window (09:00-21:00). Drafts and private
rows are skipped automatically; every row stays editable afterward.
Click Run to review the pre-run summary (account, video count, schedule span, empty captions). Batches execute headless by default unless Show browser is toggled on.
Monitor stage updates in the collapsible log drawer (with one-click Copy). Failed rows link straight to full-page failure screenshots, and Retry Failed requeues only what failed.
tiktok-up accounts add main --label "Brand Main"
tiktok-up login --account main
tiktok-up auth status --account main
# Preview slots without launching a browser
tiktok-up upload ./clips --account main \
--start "tomorrow 18:00" --every 12h \
--jitter 15m --window "09:00-21:00" --dry-run
# Run headless batch
tiktok-up upload ./clips --account main \
--start "tomorrow 18:00" --every 12h \
--jitter 15m --window "09:00-21:00"
# Post immediately with a visible browser
tiktok-up upload ./clip.mp4 --account main --headed
# Save as draft with AI-generated label
tiktok-up upload ./clip.mp4 --account main --draft --ai-label
tiktok-up queue status --account main
tiktok-up queue retry-failed --account main --headed
tiktok-up queue clear --account main --completed-only
tiktok-up doctor --account main
30 3 * * * tiktok-up upload /srv/tiktok/inbox --account main --start "tomorrow 18:00" --every 1d --json >> /var/log/tiktok.jsonl 2>> /var/log/tiktok.err
--json){"event":"batch_start","account":"main","total":2,"headless":true}
{"event":"job_stage","jobId":"a1b2","file":"/srv/tiktok/inbox/clip1.mp4","stage":"uploading"}
{"event":"job_done","jobId":"a1b2","file":"/srv/tiktok/inbox/clip1.mp4","status":"done","scheduledAt":"2026-12-01T18:00:00.000Z"}
{"event":"job_failed","jobId":"c3d4","file":"/srv/tiktok/inbox/clip2.mp4","status":"failed","error":"Captcha challenge detected","screenshot":".../failures/c3d4.png"}
{"event":"batch_done","done":1,"failed":1,"skipped":0}
| Code | Meaning |
|---|---|
0 |
All jobs succeeded (or dry run passed) |
1 |
Unexpected runtime error |
2 |
Invalid arguments, missing files, schedule or caption validation |
3 |
Not signed in, session expired, or captcha challenge |
4 |
Account locked by another process (CLI vs. desktop) |
5 |
Partial failure (some succeeded, some failed) |
6 |
All jobs failed |
Interactive Bulk Schedule Simulator
Mirrors buildStaggeredSchedule in packages/core: slots start tomorrow at
18:00 local time, stay at least 20 minutes ahead, round onto TikTok's 5-minute grid, apply jitter, and
push out of quiet hours.
Architecture & Shared Data
The React renderer never touches the filesystem, profiles, or cookies. Everything flows through one shared engine and one OS data directory.
window.api
tiktok-up · TTY & --json NDJSON
selectors.ts
CHROME_PATH → Brave → Chrome → Edge
<dataDir> Layout<dataDir>/ # TIKTOK_UPLOADER_HOME overrides
settings.json # browserPath, maxScheduleDays, theme
accounts.json # registered accounts & labels
profiles/<accountId>/
browser-profile/ # persistent Chromium userDataDir
cookies.txt # optional Netscape fallback (0600)
queue.json # persisted job rows & statuses
account.lock # PID lockfile (reclaimed if stale)
failures/ # full-page screenshots on failure
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/tiktok-uploader |
| Windows | %APPDATA%\tiktok-uploader |
| Linux | $XDG_CONFIG_HOME/tiktok-uploader (or ~/.config/tiktok-uploader) |
Quick Start
Requires Node.js 20+ and an existing installation of Chrome, Edge, or Brave on macOS, Windows, or Linux.
npm install
npm run build:cli
npm link packages/cli # puts `tiktok-up` on PATH
# Launch Electron in development mode
npm run dev:desktop
# Build dmg / nsis / AppImage + deb for the host OS
npm run dist:desktop
Instead of requiring approved TikTok Content Posting API credentials, TikTok Uploader automates TikTok's creator upload page directly inside your real installed Chromium browser (Chrome, Edge, or Brave) using Playwright's persistent browser context.
Yes. Everything stays local inside your OS data directory (or TIKTOK_UPLOADER_HOME). Each
account gets an isolated browser-profile/ directory created with 0700
permissions on POSIX, and optional cookies.txt exports are written with
0600 permissions. Nothing is sent to third-party servers.
Run tiktok-up doctor --account main first to verify your data directory, browser launch,
session validity, and the upload page's root selector. Every TikTok URL, wait timeout, and DOM locator
is isolated in packages/core/src/selectors.ts so updates are a single-file fix.
Yes across different accounts — different accounts run in parallel without conflict. For the same
account, account.lock prevents two Chromium processes from corrupting the profile: the
second process exits cleanly with code 4 (or shows a Locked by CLI chip
in the desktop UI). Stale PID locks are automatically reclaimed.
TikTok only permits scheduling on public or friends-only posts — drafts and
private ("Only me") uploads cannot be scheduled on the platform. Both the desktop Bulk
Schedule dialog and the CLI enforce this upfront so invalid jobs never fail mid-upload.