Files
openclaw/docs/tools/duckduckgo-search.md
Dave Morin c48b36a255 Keep key-free web search providers opt-in (#93616)
Merged via squash.

Prepared head SHA: 5de02da038
Co-authored-by: davemorin <78139+davemorin@users.noreply.github.com>
Co-authored-by: vincentkoc <25068+vincentkoc@users.noreply.github.com>
Reviewed-by: @vincentkoc
2026-06-16 21:02:07 +08:00

2.8 KiB

summary, read_when, title
summary read_when title
DuckDuckGo web search -- key-free provider (experimental, HTML-based)
You want a web search provider that requires no API key
You want to use DuckDuckGo for web_search
You want an explicitly selected key-free search provider
DuckDuckGo search

OpenClaw supports DuckDuckGo as a key-free web_search provider. No API key or account is required.

DuckDuckGo is an **experimental, unofficial** integration that pulls results from DuckDuckGo's non-JavaScript search pages - not an official API. Expect occasional breakage from bot-challenge pages or HTML changes.

Setup

No API key needed - just set DuckDuckGo as your provider:

```bash openclaw configure --section web # Select "duckduckgo" as the provider ```

Config

{
  tools: {
    web: {
      search: {
        provider: "duckduckgo",
      },
    },
  },
}

Optional plugin-level settings for region and SafeSearch:

{
  plugins: {
    entries: {
      duckduckgo: {
        config: {
          webSearch: {
            region: "us-en", // DuckDuckGo region code
            safeSearch: "moderate", // "strict", "moderate", or "off"
          },
        },
      },
    },
  },
}

Tool parameters

Search query. Results to return (1-10). DuckDuckGo region code (e.g. `us-en`, `uk-en`, `de-de`). SafeSearch level.

Region and SafeSearch can also be set in plugin config (see above) - tool parameters override config values per-query.

Notes

  • No API key - works after you select DuckDuckGo as your web_search provider
  • Experimental - gathers results from DuckDuckGo's non-JavaScript HTML search pages, not an official API or SDK
  • Bot-challenge risk - DuckDuckGo may serve CAPTCHAs or block requests under heavy or automated use
  • HTML parsing - results depend on page structure, which can change without notice
  • Explicit selection - OpenClaw does not choose DuckDuckGo automatically when no API-backed provider is configured
  • SafeSearch defaults to moderate when not configured
For production use, consider [Brave Search](/tools/brave-search) (free tier available) or another API-backed provider.