The skyvern CLI gives you direct access to browser automation, workflow management, credential storage, and more — all from your terminal. Use it in shell scripts, CI/CD pipelines, or for quick one-off tasks.
skyvern run server # Start the local API serverskyvern run mcp # Start the MCP server (stdio transport)skyvern run mcp --http # Start the MCP server (HTTP transport)skyvern status # Check if services are runningskyvern stop # Stop running services
All browser commands operate on an active session. Create one first, then run actions against it.
Copy
Ask AI
# Browser session managementskyvern browser session create # Start a cloud browser sessionskyvern browser session create --timeout 30 # Custom timeout (minutes)skyvern browser session list # List active sessionsskyvern browser session get --session pbs_xxxskyvern browser session connect --cdp ws://localhost:9222 # Connect to local Chromeskyvern browser session close # Close the active session# Navigationskyvern browser navigate --url https://example.com# AI-powered actionsskyvern browser act --prompt "Click the Sign In button"skyvern browser extract --prompt "Get all product names and prices"skyvern browser validate --prompt "Is the user logged in?"# Precision actions (CSS/XPath selectors or natural language intent)skyvern browser click --selector "#submit-btn"skyvern browser click --intent "the checkout button"skyvern browser type --selector "#email" --text "user@example.com"skyvern browser select --selector "#country" --value "US"skyvern browser scroll --direction down --amount 500skyvern browser press-key --key Enterskyvern browser hover --selector ".menu-item"skyvern browser wait --selector "#results" --state visible# Screenshotsskyvern browser screenshotskyvern browser screenshot --full-page --output page.png# Run JavaScriptskyvern browser evaluate --expression "document.title"# Full task automation (multi-step agent)skyvern browser run-task --prompt "Find the cheapest flight from NYC to LA"skyvern browser login --url https://app.example.com --credential-id cred_xxx
Every browser command supports --json for machine-readable output, and --session / --cdp to target a specific session. If omitted, the CLI uses the last active session automatically.
Expose your local Chrome to Skyvern Cloud so tasks can access localhost, internal tools, and your existing login sessions.
Copy
Ask AI
# Launch with ngrok tunnel and your Chrome profile's cookies/loginsskyvern browser serve --tunnel --use-local-profile# Use a specific Chrome profileskyvern browser serve --tunnel --use-local-profile --chrome-profile-name "Profile 2"# Headless mode with JSON output (for scripting)skyvern browser serve --tunnel --headless --json
The --use-local-profile flag clones cookies and saved passwords from your Chrome profile into the served browser. Your original profile is never modified, and it works while Chrome is open.
Always pass --api-key when using --tunnel. Without it, anyone with the ngrok URL has full browser control.
See the full guide for all options, manual tunnel setup, and security details.
Register Skyvern’s MCP server with your AI coding tool in one command:
Copy
Ask AI
skyvern setup claude-code # Auto: .mcp.json in a project, ~/.claude.json otherwiseskyvern setup claude-code --project # Force project-local Claude Code configskyvern setup claude-code --global # Force global Claude Code configskyvern setup claude # Register with Claude Desktopskyvern setup cursor # Register with Cursorskyvern setup windsurf # Register with Windsurfskyvern mcp switch # Interactively switch existing Skyvern MCP configsskyvern mcp switch --dry-run # Preview changes without writing filesskyvern mcp profile list # List saved switch sourcesskyvern mcp profile save work-prod --api-key YOUR_KEY --base-url https://api.skyvern.com
For the local self-hosted path, skyvern quickstart or skyvern init can also configure Claude Code during the interactive MCP step. In a project directory that flow writes .mcp.json, installs .claude/skills/qa, and keeps the MCP connection fully local for localhost testing.skyvern mcp switch updates existing Skyvern entries in Claude Code, Claude Desktop, Cursor, Windsurf, and Codex configs. It lets you choose a source from env, saved profiles, existing configs already on disk, or manual entry; creates backups before writing; and preserves the config’s current transport shape. If a tool has no Skyvern entry yet, run skyvern setup first.
Skills are bundled reference markdown files that teach AI coding tools how to use Skyvern. They are not the same as MCP tools — they are documentation that an AI agent can load to learn the CLI and API.
Copy
Ask AI
skyvern skill list # List available skillsskyvern skill show skyvern # Render a skill in the terminalskyvern skill path skyvern # Print the absolute path to a skill fileskyvern skill path # Print the skills directoryskyvern skill copy --output ./docs # Copy all skills to a local directoryskyvern skill copy skyvern -o . # Copy a single skill
Loading skills into AI tools
Skills are plain markdown files. You can load them into any AI coding tool that supports custom instructions:Claude Code — the recommended local path is skyvern quickstart or skyvern init, then choose Claude Code during MCP setup. That writes .mcp.json and installs bundled skills like /qa. You can also run skyvern setup claude-code later if you are configuring MCP separately.Codex — copy the skill into your project’s .codex/skills/ directory:
Copy
Ask AI
skyvern skill copy skyvern -o .codex/skills/
Any tool — point your tool at the file path returned by skyvern skill path skyvern.
All commands support --json for structured output, making it easy to compose with jq and other tools:
Copy
Ask AI
# Extract the session ID from a new sessionSESSION=$(skyvern browser session create --json | jq -r '.session_id')# Extract data and pipe to a fileskyvern browser extract --prompt "Get all links" --json | jq '.extracted' > links.json# Check workflow run status in a scriptSTATUS=$(skyvern workflow status --run-id wr_xxx --json | jq -r '.status')