npm install -g veil-browser

The browser
for your agent.

veil is a stealth headless browser built for AI agents.
Post, like, reply, quote. Navigate any site. Return clean JSON.

~ veil
$ veil login x ✓ Session saved for x (54 cookies) $ veil post "The quietest days are often the most important." {"ok":true,"action":"post"} $ veil like --nth 0 {"ok":true,"action":"like","confirmed":true} $ veil reply "Great point." --nth 0 {"ok":true,"action":"reply"} $ veil quote "Worth reading." --nth 2 {"ok":true,"action":"quote","quotedUrl":"https://x.com/..."}
npm install -g veil-browser click to copy
npx playwright install chromium click to copy

How it works

Your agent decides.
veil executes.

No LLM inside veil. No magic. Just a real browser that does exactly what it's told and reports back.

01

Stealth Chromium

Launches with flags that hide automation signals. Realistic user agent, locale, timezone, and plugin fingerprint.

02

Saved sessions

Log in once with a visible browser. Cookies are saved. Every future command restores your authenticated session automatically.

03

Human timing

Random delays between actions (400–1200ms). Click forces bypass overlay interceptors. Reads wait for elements to appear.

04

Clean JSON output

Every command returns { ok, ... } or { ok: false, error }. Pipe it, parse it, chain it.


Commands

Everything you need.

One command per action. All output is JSON.

X / Social
veil post "text"Post a tweet
veil like --nth 0Like Nth post in feed
veil reply "text" --nth 0Reply to Nth post
veil repost --nth 0Repost Nth post
veil quote "text" --nth 0Quote Nth post with comment
Navigation
veil go <url>Navigate to URL
veil snapshotFull DOM tree — understand page structure
veil read [selector]Extract text from page or element
veil find "text"Check if text exists on page
Interaction
veil click <selector>Click element (--force, --nth)
veil type <selector> "text"Type into field (--clear, --delay)
veil press <key>Press keyboard key
veil scroll down|up|top|bottomScroll page
veil wait <ms>Wait N milliseconds
Session
veil login <platform>Save login session (headed browser)
veil open <platform>Restore session and navigate to home
veil shot [file.png]Screenshot (--full, --selector)
veil eval "script"Run JavaScript, returns result

For AI Agents

Built for OpenClaw
and any agent framework.

veil ships with a SKILL.md that teaches your agent every command, every selector, and every platform pattern out of the box.

WHAT VEIL IS

  • A thin CLI — no opinions, no LLM
  • Pure remote control of a real browser
  • JSON in, JSON out
  • Stealth by default
  • Persistent sessions across calls

WHAT YOUR AGENT DOES

  • Reads the page (snapshot/read)
  • Decides what action to take
  • Calls veil with precise commands
  • Verifies results from JSON output
  • Handles errors and retries