Repository navigation
fix: accept BRAVE_SEARCH_API_KEY for Brave web search - #19182
Closed
Plutarch01 wants to merge 4 commits into
Closed
Plutarch01 wants to merge 4 commits into
Plutarch01 wants to merge 4 commits into
Conversation
added 4 commits
January 30, 2026 14:08
- Update repository from github.com/clawdbot/clawdbot to github.com/openclaw/openclaw - Build new Docker image openclaw:local - Migrate config from ~/.clawdbot/ to ~/.openclaw/ - Update environment variables CLAWDBOT_* to OPENCLAW_* - Remove deprecated browser.controlUrl config - Configure gateway authentication token - Add comprehensive migration documentation The Control UI now requires token authentication: - Token configured in ~/.openclaw/openclaw.json - Access via http://localhost:18789 - Enter token on Overview page to connect Verified working with Playwright MCP - all services operational.
Add comprehensive security hardening documentation for Docker deployments: - SECURITY_HARDENING.md: Full security guide with configuration examples - HARDENING_COMPLETE.md: Post-hardening summary and verification steps - docker-compose.hardened.yml: Example hardened Docker Compose configuration Includes: - Nested sandboxing configuration for tool isolation - Session isolation (per-channel-peer DM scope) - Read-only volume mounts for Documents/Downloads - Container security hardening (no-new-privileges, read-only root, tmpfs) - Resource limits (CPU/memory constraints) These files serve as templates and documentation for users running OpenClaw in Docker who want to improve their security posture.
Contributor
Additional Comments (1)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: src/agents/tools/web-search.ts
Line: 137:137
Comment:
Consider mentioning `BRAVE_SEARCH_API_KEY` in the error message since it's now a supported alias
```suggestion
message: `web_search needs a Brave Search API key. Run \`${formatCliCommand("openclaw configure --section web")}\` to store it, or set BRAVE_API_KEY or BRAVE_SEARCH_API_KEY in the Gateway environment.`,
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise. |
Author
|
Superseded by a clean rebased PR: #19186 (same fix plus reviewer suggestion for error text). Closing this one to keep review focused. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BRAVE_SEARCH_API_KEYas an env-var alias when resolving Brave web search API credentialsapiKeyfirst, thenBRAVE_API_KEY, then aliasTesting
resolveSearchApiKeyinsrc/agents/tools/web-search.tsGreptile Summary
Added support for
BRAVE_SEARCH_API_KEYenvironment variable as an alias for Brave web search API credentials, maintaining existing precedence order (config apiKey →BRAVE_API_KEY→BRAVE_SEARCH_API_KEY).Confidence Score: 5/5
Last reviewed commit: 830c650
(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!