Connect OpenCode to the Scrapingbypass API

Prepare web requests in your OpenCode project terminal, keep access rules in AGENTS.md and configure the API key in the execution environment. Inspect the target response before continuing development or data processing.

OpenCodecloudbypass-project

› Connect OpenCode to the API. Keep credentials in secure configuration and prepare one read-only request.

Read CLOUDBYPASS_APIKEY, set x-cb-host and check the runtime that sends the request.

bash
curl --include --request GET \
  "https://api.cloudbypass.com/" \
  --header "x-cb-host: example.com" \
  --header "x-cb-apikey: ${CLOUDBYPASS_APIKEY:?}" \
  --max-time 90

Set your key and target URL, then send the request from your runtime.

Inspect x-cb-status, HTTP status and actual business content after the request.

› Integration task
OpenCode · Integration setup preview
  • Prepare your OpenCode project
  • Configure credentials and make a request
  • Check the response before continuing

Choose the integration that fits your project

Call the API directly from an existing project. Choose a Skill or MCP when you need reusable tasks or connected tools.

Call the public API

Use your existing HTTP client and control requests, sessions and result handling. Available today.

API documentation

Organize tasks with a Skill

Give the agent access rules, then prepare parameters, check status and handle failures by task.

Cloudbypass Skill

Connect OpenCode to the Scrapingbypass API

Prepare web requests in your OpenCode project terminal, keep access rules in AGENTS.md and configure the API key in the execution environment. Inspect the target response before continuing development or data processing.

OpenCode

Set up, request and validate

Fetch one target page and confirm its contents before adding proxies, sessions or downstream processing.

  1. Prepare your OpenCode project

    Configure OpenCode and your model provider using the documentation for your version. Put targets, output fields and stopping conditions in AGENTS.md; configure the Scrapingbypass key separately from model-provider credentials.

  2. Configure credentials and make a request

    Set CLOUDBYPASS_APIKEY in the environment that runs the request. Use your existing HTTP client or project terminal for one read-only request. Keep real secrets out of project rules, conversations and repositories.

  3. Check the response before continuing

    Inspect x-cb-status, the target HTTP status and body. Handle access and parsing failures separately. Follow the API docs for V2 / V2s stable proxies and sessions, and limit retries.

Start with a minimal requestHTTP API
curl --include --request GET \
  "https://api.cloudbypass.com/" \
  --header "x-cb-host: example.com" \
  --header "x-cb-apikey: ${CLOUDBYPASS_APIKEY:?}" \
  --max-time 90

# POSIX shell example; set the key securely first.
# Check x-cb-status, target status and content.
# For V2 / V2s, add version and stable proxy parameters.
Store the key in your runtime. After sending the request, check the status and body.

OpenCode environments and MCP tool capabilities

OpenCode supports local and remote MCP tools, but this guide uses the public HTTP API and does not provide a hosted Scrapingbypass MCP endpoint. OpenCode 1 and 2 have different installation paths; follow your version documentation.

Runtime configuration, task recipes and validation records
CheckWhat to inspectNext action
Credentials and scopeCheck credentials, balance and authorized accessFix configuration instead of blindly changing IPs
Version and sessionMatch stable proxies and sessions for V2 / V2sRebuild the verification session after a proxy change
Two status layersCheck x-cb-status and the target HTTP statusA 200 response can still be a login or challenge page
Output and retriesCheck content type, expected fields and attempt budgetStop on configuration errors; limit transient retries

Put your integration to work

Choose a task guide for access strategies, implementation steps and troubleshooting.

Planning and troubleshooting

Development and tool integration

Business use cases

Frequently asked questions

Which integration should I use today?

Start with the public HTTP API. OpenClaw can use the published Skill. Existing HTTP MCP tools must support custom headers and secure credentials. The hosted MCP service is still planned.

How do I check whether my target website is accessible?

Send one request and check that the status and body match what you need. Relevant access scenarios include Cloudflare JavaScript Challenge, Turnstile, DataDome and Imperva / Incapsula; test compatibility with your target. reCAPTCHA and hCaptcha are not included in the current integration capabilities. Restricted content still requires the appropriate account permissions.

Where should API keys and proxy passwords go?

Keep them in secure configuration in the actual runtime or a trusted server. Do not put them in browser code, shared repositories, prompts, screenshots or public logs. Remote services have separate environments.

Do MCP or Skills automatically handle pagination and extraction?

Not by default. The access layer handles requests and responses; workflows or site recipes handle pagination, field extraction, deduplication, login state and business-specific signatures. Diagnose failures instead of retrying indefinitely.

API integration questions, response checks and technical support

Make your first web request

Set your key and target URL, confirm the response, then connect the request to your project.