Skip to main content
The Webcompute CLI command is web. Older installs may also expose webcompute, but new docs and examples use web. Start with the quickstart for the shortest first run. Stay here for exact command and flag coverage.

Global flags

Global flags can be passed before a subcommand.
FlagDescription
-V, --versionPrint the CLI version.
-k, --api-key <key>Use this Webcompute API key for the current invocation. Overrides environment and stored config.
-u, --api-url <url>Use this Gateway URL for the current invocation. Overrides environment and stored config.
-j, --jsonPrefer machine-readable JSON output when the command supports it.
-v, --verbosePrint verbose diagnostics and expanded error details.

Top-level commands

CommandPurpose
web setupConfigure local Webcompute plugin integrations for detected coding-agent hosts.
web browserManage cloud browsers and browser runtime resources.
web agent <goal...>Run a model-backed browser agent from the terminal.
web scrape <url>Read a URL through an ephemeral browser.
web screenshot <url>Capture an image of a URL through an ephemeral browser.
web pdf <url>Generate a PDF from a URL through an ephemeral browser.
web statusCheck service and auth readiness.
web doctorDiagnose local install, MCP, and plugin setup.
web mcpConfigure or run the Webcompute MCP server.
web pluginsDetect, install, update, inspect, and remove local plugin artifacts.
web configRead and write local CLI config.
web modelManage local model profiles used by web agent and MCP run_web_agent.
web login <key>Save a Webcompute API key in local config.
web logoutRemove the stored API key from local config.
web updateUpdate the local CLI, MCP server, and plugins.
web installInstall Webcompute locally.
web uninstallRemove the managed local install.

web agent

web agent [options] <goal...>
web agent is the fastest path to a useful browser-agent run. It creates or reuses a browser, lets the configured model issue bounded Playwright tool calls, and returns a final answer.
web agent \
  --url https://www.sec.gov/edgar/search/ \
  --allow-domain sec.gov \
  "Find Apple's latest 10-Q filings. Return filing date, accession number, filing URL, and a one-sentence summary."
OptionDescription
--url <url>Starting URL for the agent run.
--profile <profile>Saved model profile name.
--model <profile-or-model>Explicit model ID, or a saved profile name.
--route <route>Override model route. Accepted routes: openai, openrouter, openai-compatible, anthropic, google.
--base-url <url>Base URL for an openai-compatible route.
--model-api <api>Provider API family for compatible routes. Accepted values: chat-completions, responses.
--api-key-env <name>Environment variable containing the model-provider API key.
--allow-domain <domain>Repeatable browser navigation allow-list. Each value is passed into browser policy allowedDomains.
--max-turns <n>Maximum model turns for the run.
--max-tool-calls <n>Maximum Playwright tool calls for the run.
--timeout-ms <ms>Whole-run timeout in milliseconds.
--tool-timeout-ms <ms>Per Playwright execution timeout in milliseconds.
--approval <mode>Confirmation mode. Accepted values: ask, delegated, never. Defaults to delegated when not set.
--secret <name=ENV_VAR>Repeatable env-backed secret variable. The agent sees name; the value is loaded from ENV_VAR only when an approved tool call needs it.
--schema <path>Path to a JSON schema for final structured output.
--jsonPrint a machine-readable run envelope.
--quietPrint the final answer only.
--show-usageCompatibility flag. Usage appears in the footer when available.
--verboseInclude agent diagnostic details.
--debug-urlReveal a signed Debug UI URL. In JSON mode this appears at browser.debugUrl. Treat it like a bearer credential until it expires.
Current web agent does not expose a --proxy flag. Use the TypeScript SDK with web.agent({ browser: { create: { proxy } } }) when an agent run must create its browser through a custom proxy.

web browser

Browser commands operate on managed cloud browsers. Most commands also honor global --json and --verbose.

Browser lifecycle

CommandOptionsDescription
web browser create--proxy <url>, --max-duration <ms>, --recordingCreate a cloud browser. --proxy routes browser traffic through the supplied proxy URL. --max-duration sets the browser lifetime in milliseconds. --recording enables browser recording.
web browser list--status <status>, --limit <n>, --cursor <cursor>, --created-after <iso>, --created-before <iso>List browsers. Status values are creating, ready, stopping, stopped, resuming, recovering, closing, closed, failed. Timestamps must be ISO strings.
web browser get <browser_id>NoneFetch browser details.
web browser status <browser_id>NoneFetch compact runtime status for a browser.
web browser stop <browser_id>NoneStop a browser while retaining recoverable state.
web browser resume <browser_id>NoneResume a stopped browser.
web browser close <browser_id>NoneClose a browser.
web browser cdp <browser_id>NonePrint a signed Chrome DevTools Protocol WebSocket URL.
web browser debug <browser_id>NonePrint a signed Debug UI URL for live inspection.
web browser cdp and web browser debug return signed bearer URLs. Do not paste them into shared prompts, logs, or tickets unless you intend to grant access.

Browser blockers and pages

CommandOptionsDescription
web browser captcha-status <browser_id>NoneFetch compact CAPTCHA and blocker status.
web browser captcha-resolve <browser_id>--timeout-ms <ms>Ask the runtime to resolve a detected CAPTCHA blocker, waiting up to the timeout.
web browser pages <browser_id>NoneList known browser pages and active-page metadata.

Dialogs and downloads

CommandOptionsDescription
web browser dialogs <browser_id>--page-id <page_id>, --status <status>, --cursor <cursor>, --limit <n>List JavaScript dialogs. Status values are open and recent.
web browser dialog <browser_id> <action> <dialog_id>--prompt-text <text>Accept or dismiss a JavaScript dialog. action must be accept or dismiss; --prompt-text applies to prompt dialogs when accepting.
web browser downloads <browser_id>NoneList browser downloads.
web browser download <browser_id> <download_id>-o, --output <path>, --overwrite, --max-bytes <n>Inspect a download, or save it locally when --output is set. --overwrite replaces an existing file. --max-bytes caps saved bytes.

Playwright execution

web browser run <browser_id> --code "return await page.title()"
OptionDescription
--code <code>Inline Playwright code body.
--file <path>Path to a JavaScript or TypeScript Playwright snippet. Use either --code or --file, not both.
--page-id <page_id>Target a known non-active page. Omit for ordinary active-page work.
--timeout-ms <ms>Execution timeout in milliseconds.
--screenshot <mode>Screenshot capture mode: never, on_error, or always.
--no-statusDo not include compact runtime status in the response.
--no-observeDo not include automatic post-step page observation.
--observe-kind <kind>Observation kind: aria, text, or none.
--observe-depth <n>ARIA observation depth.
--observe-max-chars <n>Maximum observation characters.
--observe-timeout-ms <ms>Observation timeout in milliseconds.
--observe-boxesInclude element boxes in ARIA observation when supported.

Recordings

Recording commands require the browser to have been created with recording enabled.
CommandOptionsDescription
web browser recording <browser_id>NoneShow the browser recording summary.
web browser recording segments <browser_id>NoneList recording segments.
web browser recording open <browser_id> <segment_id>NoneShow one segment manifest.
web browser recording download <browser_id> <segment_id>-o, --output <dir>Download the segment manifest, events, and frames into a local directory. Defaults to ..

Quick actions

Quick actions create an ephemeral browser for one deterministic operation.

web scrape

web scrape [options] <url>
OptionDescription
-f, --format <format>Output format. Accepted values: markdown, html, text. Defaults to markdown.
--wait-for <selector>Wait for a CSS selector before reading.
--selector <css>CSS selector that scopes page content.
--iframe <css>CSS selector of a specific iframe to target.
--max-chars <n>Soft cap on returned content characters. Valid range: 1 to 50000.
--include-linksInclude deterministic anchor links in the output.
--iframe-textWhen the format is not html, append iframe text to content.
--proxy <url>Proxy URL for the ephemeral browser.

web screenshot

web screenshot [options] <url>
OptionDescription
-o, --output <file>Output file path.
--full-pageCapture the full scrollable page.
--format <format>Image format: png or jpeg. Defaults to png.
--quality <n>JPEG quality from 1 to 100.
--selector <css>CSS selector of an element to capture.
--wait-for <selector>Wait for a CSS selector before capture.
--proxy <url>Proxy URL for the ephemeral browser.

web pdf

web pdf [options] <url>
OptionDescription
-o, --output <file>Output file path.
--format <size>Page size. Accepted values: Letter, A4, A3, Tabloid, Ledger, Legal. Defaults to Letter.
--landscapeUse landscape orientation.
--wait-for <selector>Wait for a CSS selector before PDF generation.
--proxy <url>Proxy URL for the ephemeral browser.

MCP commands

web mcp run

Run the MCP server. Stdio transport is the default.
OptionDescription
--transport <transport>MCP transport: stdio or http.
--host <host>HTTP host. HTTP transport must bind to a loopback host.
--port <port>HTTP port.
--allow-origin <origin>Repeatable allowed browser origin for MCP-created browsers.
--allow-domain <domain>Repeatable allowed browser domain for MCP-created browsers.
--private-access <scope>Repeatable private-access scope. Current CLI support is localhost.

web mcp setup [target]

Write MCP config for an agent target. Supported targets are claude, codex, opencode, cursor, and devin.
OptionDescription
--scope <scope>Host-specific scope such as user or project.
--surface <surface>MCP surface: runtime, agent, or all.
--model <profile>Model profile for the agent surface.
--forceReplace an existing non-managed Webcompute entry.
--dry-runPrint the proposed mutation without writing.
--jsonOutput raw JSON.
--quietSuppress non-error output.

Other MCP commands

CommandOptionsDescription
web mcp config [target]--surface <surface>, --model <profile>Print read-only MCP config for a target.
web mcp doctor--json, --quietCheck local MCP readiness.

Model profile commands

web model setup starts a guided setup flow in an interactive terminal. For automation, pass --route, --model, and the other values directly.
CommandOptionsDescription
web model setup--name <profile>, --route <route>, --model <model>, --api-key-env <name>, --base-url <url>, --model-api <api>, --default, --json, --quietCreate or update a model profile. Routes are openai, openrouter, openai-compatible, anthropic, and google. Model APIs are chat-completions and responses. --json is non-interactive; --quiet suppresses success output after a fully specified save.
web model list--jsonList saved model profiles.
web model show [profile]--json, --sdkShow one model profile, or the default profile when omitted. --sdk prints copy-paste SDK code that uses the same model settings explicitly.
web model use <profile>NoneSet the default model profile.
web model doctor [profile]--jsonCheck profile readiness and credential env state.
web model unset <profile>NoneDelete a model profile.

Plugin commands

Supported plugin targets are claude, codex, and opencode.
CommandOptionsDescription
web plugins detect--json, --quiet, --verboseDetect supported local agent tools.
web plugins list--json, --quiet, --verboseList supported plugin targets and install state.
web plugins install <targets...>--json, --quiet, --verboseInstall Webcompute plugin artifacts for the specified targets.
web plugins update [targets...]--json, --quiet, --verboseReapply installed plugin artifacts. Omit targets to update all installed targets.
web plugins doctor [targets...]--json, --quiet, --verboseCheck plugin payloads and config drift.
web plugins uninstall <targets...>--json, --quiet, --verboseRemove Webcompute plugin artifacts.

Local install commands

web install, web setup, web update, and web uninstall share local lifecycle options.
OptionDescription
--channel <name>Release channel.
--version <semver>Exact release version.
--manifest-url <url>Explicit release manifest URL.
--plugins <csv>Plugin targets as comma-separated names: claude,codex,opencode.
--no-pluginsSkip plugin setup.
--yesAccept defaults and run non-interactively.
--no-modify-pathDo not modify shell profile PATH blocks.
--jsonOutput raw JSON.
--quietReduce human-readable output.
--verbosePrint verbose output.
Additional lifecycle options:
CommandExtra optionDescription
web install--allow-downgradeAllow installing an older release.
web update--allow-downgradeAllow updating to an older release.
web uninstall--purgeAlso remove Webcompute-owned config, cache, state, and logs.

Config and auth commands

CommandOptionsDescription
web config set <key> <value>NoneSet a local config value. Valid keys are apiKey, serverUrl, and debug. Boolean strings true and false are stored as booleans.
web config get <key>NonePrint a local config value. apiKey is masked.
web config listNonePrint all stored local config values. apiKey is masked.
web config unset <key>NoneRemove a local config value.
web login <key>NoneSave a Webcompute API key. Keys must start with wc_key_.
web logoutNoneRemove the stored API key.
web statusNoneCheck Gateway health and auth readiness.
web doctor--jsonDiagnose local install, MCP, and plugin setup.