CLI & Skills
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.
Install
Getting started
Two commands to go from install to working MCP:
login handles both new signups and returning users. setup detects Claude Code, Cursor, Windsurf, and Claude Desktop, then writes the correct MCP config for each one. Pass --api-key YOUR_KEY to either command if you already have a key.
Don’t want to install the CLI? You can also copy-paste the MCP config JSON directly — see MCP Server for the zero-install path.
Command reference
Onboarding
Services
Browser automation
All browser commands operate on an active session. Create one first, then run actions against it.
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.
Local browser serve
Expose your local Chrome to Skyvern Cloud so tasks can access localhost, internal tools, and your existing login sessions.
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.
Workflows
Credentials
Credentials are created interactively via stdin so secrets never appear in shell history.
Note: credentials (plural) is used for the interactive add command; credential (singular) for list/get/delete. Both forms are intentional.
Workflow blocks
MCP setup
Register Skyvern’s MCP server with your AI coding tools:
Use bare skyvern setup to configure everything at once. The per-tool subcommands are for when you only want to target one tool.
skyvern setup claude-code writes the MCP config and copies bundled skills (including /qa) into your project’s .claude/skills/ directory. In a project, the default target is .mcp.json; use --global to override. Use --skip-skills to opt out.
For Claude Desktop on macOS or Windows, the recommended no-Node path is the downloadable .mcpb bundle in MCP Server. skyvern setup claude still writes the manual mcp-remote JSON bridge, so remote mode requires Node.js unless you use the bundle.
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.
Self-hosted setup
These commands are for running Skyvern on your own infrastructure. If you’re using Skyvern Cloud, you don’t need them — skyvern login + skyvern setup is all you need.
For the local self-hosted Claude Code path, skyvern quickstart or skyvern init can also configure MCP during the interactive wizard. In a project directory that flow writes .mcp.json, installs .claude/skills/qa, and keeps the connection fully local for localhost testing.
Other
CLI vs MCP: when to use which
The CLI and MCP server share the same underlying logic. The CLI is for humans and scripts; MCP is for AI assistants that call tools programmatically.
Skills
Skills are bundled markdown files that teach AI coding tools how to use Skyvern. They ship with pip install skyvern and are automatically installed when you run skyvern setup claude-code or choose Claude Code during skyvern init / skyvern quickstart.
Loading skills into AI tools
Skills are plain markdown files. Load them into any AI coding tool that supports custom instructions:
Claude Code — run skyvern quickstart or skyvern init, then choose Claude Code during MCP setup. You can also run skyvern setup claude-code later. Both paths register the MCP server and install skills into .claude/skills/. The /qa skill is immediately available.
Codex — copy skills into your project’s .codex/skills/ directory:
Any tool — point your tool at the file path returned by skyvern skill path qa.
JSON output
All commands support --json for structured output, making it easy to compose with jq and other tools:
Troubleshooting
Command not found: skyvern
Make sure the package is installed and on your PATH:
If using a virtual environment, activate it first. You can also run via module:
Authentication errors
Verify your API key is set:
You can also pass it directly:
Get an API key from Settings in the Skyvern dashboard.
No active browser session
Browser commands require an active session. Create one first:
Or specify a session explicitly:

