crabcode

Websearch

Configure the built-in websearch tool and search provider.

Web Search

crabcode exposes a built-in websearch tool by default. Agents use websearch for discovery and webfetch when they already know the URL. The default provider is Exa's hosted MCP service, which does not require an API key.

{
  "websearch": {
    "enabled": true,
    "provider": "exa-hosted-mcp"
  },
  "permission": {
    "websearch": "allow"
  }
}

Use websearch: false to disable the tool.

Providers

ProviderAPI key config
exa-hosted-mcpOptional apiKey; works without one
exaapiKey: "{env:EXA_API_KEY}"
tavilyapiKey: "{env:TAVILY_API_KEY}"
perplexityapiKey: "{env:PERPLEXITY_API_KEY}"
braveapiKey: "{env:BRAVE_SEARCH_API_KEY}"
ollama-cloudapiKey: "{env:OLLAMA_API_KEY}"
serpapiapiKey: "{env:SERPAPI_API_KEY}"
keiroapiKey: "{env:KEIRO_API_KEY}"

Only the provider names above are accepted.

Keyed provider example

{
  "websearch": {
    "provider": "keiro",
    "apiKey": "{env:KEIRO_API_KEY}"
  }
}

endpoint can override the default provider URL for testing or proxying.