Decodo for DeepSeek Harness (dsh-web-fetch)

DeepSeek Harness (DSH) provides a built-in web_fetch tool, but direct requests are often blocked by target websites with 403 errors or bot challenges. To read blocked pages (such as retail, real estate, or job listings), bot detection must be bypassed. This plugin routes traffic from this tool through the Decodo Web Scraping API, enabling the agent to retrieve content without changing prompts or adding new tools.

What Is This

This is a DeepSeek Harness (DSH) plugin maintained by Decodo. It switches the agent’s built-in web_fetch tool backend to the Decodo Web Scraping API. This allows the agent to retrieve content through Decodo’s anti-bot handling when needed, while keeping the standard DSH workflow unchanged.

Core Features

  • Unified Routing: All web_fetch requests are routed through Decodo; the agent does not need to choose a provider or learn a new tool.
  • Markdown Input: By default, the API returns Markdown, which DSH passes to the model. If conversion fails, raw HTML is returned, which DSH will convert.
  • Explicit Pinning: The plugin pins the provider to decodo so it works even when other providers are mounted.
  • Request Limits: Per-process request caps to prevent agent loops from causing billing spikes.
  • Actionable Errors: Authentication, rate limit, verification, timeout, and scraping errors are mapped to specific codes and one-line messages for the model to handle.

Installation and Activation

Installation requires Node.js 20+ and pnpm. Use the dsh CLI manager to install the plugin:

pnpm add -g @deepseek-ai/dsh
dsh plugin --profile <name> add @decodo/dsh-web-fetch

<name> is the profile name (e.g., headless for single runs, web for UI). Install this into each desired profile.

Configuration and Usage

After installation, set the API key. Obtain a Web Data API key from the Decodo dashboard and export it:

export DECODO_API_KEY='your-api-key'

For legacy plans, use SCRAPER_API_TOKEN. To override settings in a profile (e.g., changing timeout or key environment variable), edit cordis.patch.yml. Configuration example:

- id: web-fetch-decodo
  config:
    apiKeyEnv: DECODO_API_KEY

To test the setup and verify the provider is pinned:

dsh --profile <name> --dump-config | grep -A4 -E '^- id: (web|tool-web|web-fetch-decodo)$'

Example usage:

dsh --profile headless "Fetch https://www.zillow.com/ and tell me the first heading"

Use Cases and Considerations

This plugin is suitable for agents that need to read live web pages, especially blocked pages (retail, real estate, travel, ticketing) or pages requiring residential IPs. Common use cases include competitor and pricing research, lead and company research, and document collection.

  • Prerequisites: Node.js 20+ and pnpm are required.
  • Limitations: Some websites may reject requests. Success depends on the target page.
  • Billing: Agent loops are the primary billing risk, so request limits are critical.
  • License: MIT License.
  • No Credit Card Required: Getting started does not require a credit card.

Summary

This plugin connects DSH’s web_fetch tool to Decodo, handling bot detection without changing prompts or adding new tools. It provides Markdown output and error handling so the agent can respond to scraping failures.

GitHub | DSH Directory

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye