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. Use --skip-skills to opt out.
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.
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.
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 setup claude-code, which registers the MCP server and installs 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:

