openclaw - 💡(How to fix) Fix [Bug]: web_search unavailable in isolated cron sessions despite toolsAllow set and BRAVE_API_KEY present [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#81538Fetched 2026-05-14 03:31:05
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
2
Timeline (top)
labeled ×2commented ×1subscribed ×1

web_search tool reports unavailable when fired from an isolated cron session, despite toolsAllow: ["web_search"] being set on the cron job, BRAVE_API_KEY present in the Docker container environment, and tools.web.search.apiKey set in /config/openclaw.json.

Root Cause

web_search tool reports unavailable when fired from an isolated cron session, despite toolsAllow: ["web_search"] being set on the cron job, BRAVE_API_KEY present in the Docker container environment, and tools.web.search.apiKey set in /config/openclaw.json.

Code Example

Cron job JSON output showing toolsAllow: ["web_search"] present. Stanley's output each run: "Web search provider is currently unavailable."
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

web_search tool reports unavailable when fired from an isolated cron session, despite toolsAllow: ["web_search"] being set on the cron job, BRAVE_API_KEY present in the Docker container environment, and tools.web.search.apiKey set in /config/openclaw.json.

Steps to reproduce

  1. Configure a cron job with sessionTarget: isolated and toolsAllow: ["web_search"]
  2. Set BRAVE_API_KEY as a Docker environment variable
  3. Set tools.web.search.apiKey in persistent config
  4. Fire the cron — web_search reports unavailable

Expected behavior

Isolated session uses web_search via the configured key Actual: Session reports web search provider unavailable

Actual behavior

Isolated cron session reports "Web search provider is currently unavailable" on every run, both scheduled and manual. Tool does not execute.

OpenClaw version

2026.5.7 Platform: Ubuntu 24, Docker (Hostinger KVM1 VPS)

Operating system

macOS 11.7.11

Install method

Docker (Hostinger HVPS managed Docker, ghcr.io/hostinger/hvps-openclaw)

Model

openrouter/anthropic/claude-haiku-4.5

Provider / routing chain

BRAVE_API_KEY (Brave Search API) → web_search tool → OpenRouter → Anthropic Claude Haiku 4.5

Additional provider/model setup details

BRAVE_API_KEY set as Docker environment variable. tools.web.search.apiKey set in persistent config at /config/openclaw.json. toolsAllow: ["web_search"] set on cron job via openclaw cron edit. Key confirmed visible inside container via docker exec env.

Logs, screenshots, and evidence

Cron job JSON output showing toolsAllow: ["web_search"] present. Stanley's output each run: "Web search provider is currently unavailable."

Impact and severity

Affects isolated cron sessions on Docker VPS installs. Severity: blocks workflow — scheduled security scan cron cannot retrieve live CVE data. Frequency: always. Consequence: security news scan delivers empty fallback message on every scheduled and manual run.

Additional information

Last known good: approximately 2026.4.21 (web_search worked in isolated sessions). First known bad: 2026.5.7 (current). Hostinger Kodee support confirmed isolated sessions likely run in a separate env scope that doesn't inherit Docker environment variables, but adding the key to persistent config also did not resolve it.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Isolated session uses web_search via the configured key Actual: Session reports web search provider unavailable

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: web_search unavailable in isolated cron sessions despite toolsAllow set and BRAVE_API_KEY present [1 comments, 2 participants]