Skip to main content
The skyvern CLI gives you direct access to browser automation, agent management, credential storage, and more, all from your terminal. Use it in shell scripts, CI/CD pipelines, or for quick one-off tasks.

Install

Set your API key:
Optionally run the interactive setup wizard to configure your environment:

Command reference

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.

Connect your local browser to Skyvern Cloud

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.
See the full guide for all options, manual tunnel setup, and security details.

Agents

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.

Agent blocks

MCP setup

Register Skyvern’s MCP server with your AI coding tool in one command:
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, Codex, Hermes, and OpenClaw 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.

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 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.
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:
Hermes: copy the skill to your active Hermes profile’s skills directory. The skill needs Hermes-compatible frontmatter (metadata.hermes.requires_tools instead of allowed-tools):
Replace the frontmatter in the copied SKILL.md with:
Then move it into place: cp /tmp/skyvern-skill/SKILL.md ~/.hermes/profiles/<your-profile>/skills/skyvern-browser-automation/SKILL.mdVerify with hermes skills list | grep skyvern.
When both the Skyvern MCP server and the CLI skill are configured, Hermes prefers MCP tools over shelling out to the CLI, which is faster. The skill’s judgment procedure (task classification, step ordering) works with either execution path.
OpenClaw: copy the skill into your OpenClaw workspace skills/ directory. By default that workspace lives at ~/.openclaw/workspace/, but if you’ve customized the workspace path, use that location instead.
OpenClaw’s MCP config provides the callable Skyvern tools; the workspace skill is optional guidance that teaches the agent when to use them.
Any tool: point your tool at the file path returned by skyvern skill path skyvern.

JSON output

All commands support --json for structured output, making it easy to compose with jq and other tools:

Troubleshooting

Make sure the package is installed and on your PATH:
If using a virtual environment, activate it first. You can also run via module:
Verify your API key is set:
You can also pass it directly:
Get an API key from Settings in the Skyvern dashboard.
Browser commands require an active session. Create one first:
Or specify a session explicitly: