Skip to main content
Webcompute API keys use the wc_key_ prefix. Treat them like production credentials.

CLI and MCP

Save your key once:
The CLI stores the key in the Webcompute config directory. MCP processes launched by the CLI can use the stored key. You can also use an environment variable:

SDK workflows

The SDK reads WEBCOMPUTE_API_KEY by default:
You can also pass the key explicitly:
Use WEBCOMPUTE_SERVER_URL or new Web({ serverUrl }) only for approved non-default environments. Production defaults to https://api.webcompute.dev.

REST integrations

Send the key as a bearer token:
/health is public and does not require an API key.

Secrets for browser-agent runs

Do not put secrets directly in a browsing goal. For CLI agent runs, pass env-backed secrets:
The model receives a scoped variable description, not the raw value. The harness only makes the value available to approved browser code when the domain scope allows it.