Introduction
Puppetflow is a source-available, self-hostable browser automation platform built for the scenarios that actually break: 2FA walls, email verification, CAPTCHA gates, human approval steps, and anything that requires more than a simple headless script.
Why Puppetflow?
Most browser automation tools work until they hit real-world authentication. Puppetflow was designed from the start to handle these cases:
- TOTP / 2FA - Compute one-time passwords at runtime from stored secrets or, on Pro and above, 1Password vault items.
- Email verification - Receive emails on custom domains, match them with rules, and extract verification codes directly in your flow.
- Human approval - Pause a running flow and wait for a team member to approve via Slack, Discord, or Telegram before continuing.
- Full observability - Live-stream the browser session, record MP4 videos, collect screenshots and downloaded files as artifacts.
How it works
You can write flows in JavaScript with Puppeteer and Puppetflow's magic methods ($gotoUrl, $gotoTab, $fillInput, $vars, $waitForEmail, $waitHumanValidation, …).
async function run($page, $input) {
await $gotoUrl('https://app.example.com/login', 'Login');
await $fillInput('#email', 'foo@example.com');
await $fillInput('#password', 'my_password');
await $clickElement('#login-btn');
// Compute a fresh TOTP code from the stored secret
await $fillInput('#otp', $vars('variable-id'));
// Pause until a matching verification email arrives
const email = await $waitForEmail('watcher-id');
// Follow the link extracted from the email body
await $gotoUrl(email.parsed, 'Email link');
await $screenshot('logged-in');
return $generateResponseSuccess('Login complete');
}Flows run inside a sandboxed Puppeteer environment, optionally connected to a remote Chromium instance through Pinokio, the bundled browser gateway. Every run produces structured output, console logs, and artifacts.
You can build flows in two ways:
- Nodal flows - Visual browser automations built from connected steps.
- Code flows - JavaScript automations that use Puppeteer and Puppetflow magic methods.
Key concepts
| Concept | Description |
|---|---|
| Flow | A code or nodal automation with settings, triggers, and actions. |
| Nodal flow | A visual automation built from connected steps. |
| Code flow | A JavaScript automation with direct browser control. |
| Snippet | A reusable code or nodal function callable from flows and other snippets. |
| Run | A single execution of a flow, with status, output, logs, and artifacts. |
| Variable | A stored value (text, secret, JSON, TOTP, vault) available at runtime. |
| Trigger | A webhook or cron schedule that starts a flow automatically. |
| Action | A post-run webhook that fires with the run result. |
| Blueprint | A reusable package of flows and snippets from the public blueprints or a private repository. |
| Private library | A workspace-scoped Git repository that adds internal blueprints to the blueprints store. |
| Mailbox | An email address on a custom domain that receives emails for your flows. |
| Watcher | A rule set attached to a mailbox that matches incoming emails for a flow. |
| Channel | A Slack, Discord, or Telegram channel for notifications and human approval. |
| MCP server | Exposes selected flows as tools for AI clients such as Claude, ChatGPT, and Cursor. |
| Workspace | A shared space where team members collaborate on flows and resources. |
| Access control | Roles, teams, ownership, and resource sharing within a workspace. |
Next steps
- Follow the Cloud Quick Start to create a managed environment without deploying infrastructure.
- Read the Flows guide to understand the core building block.
- Browse the Flow API reference for the full list of magic methods.
- Prefer your own infrastructure? Start with the Self-Hosted Quick Start.
