feat(search): Add DuckDuckGo fallback for credit-card-free web search#78
Merged
lxowalle merged 9 commits intosipeed:mainfrom Feb 13, 2026
Merged
feat(search): Add DuckDuckGo fallback for credit-card-free web search#78lxowalle merged 9 commits intosipeed:mainfrom
lxowalle merged 9 commits intosipeed:mainfrom
Conversation
- Refactor web tool to use Provider pattern (Brave/DuckDuckGo) - Add robust HTML scraping for keyless DuckDuckGo search - Update README with search provider guidelines
…ion support the control with config.js
…ion result handling
Collaborator
|
Thanks for your contribution! We are forming the PicoClaw Developer Group to accelerate the evolution of the project. Any developer with more than one merged PR is invited to join. Would you like to join the PicoClaw Dev Group? If so, please reply with your email address or send an email to support@sipeed.com with the subject line: [Join PicoClaw Dev Group] + Your GitHub account. We will send the Discord invite link to your inbox. |
Contributor
Author
|
Hi lxowalle,
I would like to join the PicoClaw Dev Group.
As requested, my GitHub account is https://github.com/SatyamDevv. Please
send the Discord invite link to this email address.
Thanks,
Satyam Tiwari
…On Fri, Feb 13, 2026 at 9:47 PM lxowalle ***@***.***> wrote:
*lxowalle* left a comment (sipeed/picoclaw#78)
<#78 (comment)>
Thanks for your contribution! We are forming the PicoClaw Developer Group
to accelerate the evolution of the project. Any developer with more than
one merged PR is invited to join.
Would you like to join the PicoClaw Dev Group? If so, please reply with
your email address or send an email to ***@***.*** with the
subject line: [Join PicoClaw Dev Group] + Your GitHub account. We will send
the Discord invite link to your inbox.
—
Reply to this email directly, view it on GitHub
<#78 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARMAS4IH2MTIAFLVZEVZIHL4LX2LLAVCNFSM6AAAAACU5KLAEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQOJYGA2TKNRXGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
emadomedher
pushed a commit
to emadomedher/picoclaw
that referenced
this pull request
Feb 17, 2026
feat(search): Add DuckDuckGo fallback for credit-card-free web search
StarWindv
referenced
this pull request
in StarWindv/PicoClaw-shou
Feb 19, 2026
feat(search): Add DuckDuckGo fallback for credit-card-free web search
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.
🚀 Context
Currently, the
web_searchtool relies exclusively on the Brave Search API. While Brave offers a generous free tier (2,000 queries/month), signing up often requires a credit card for verification. This creates significant friction for new users or those running on ephemeral hardware (like the $10 SBCs PicoClaw targets) who just want to test the agent out of the box.✨ Changes
This PR introduces a Smart Search Provider system that automatically degrades gracefully if no API key is configured.
pkg/tools/web.gointo aSearchProviderinterface.DuckDuckGoSearchProviderwhich scrapes generic HTML results.goquery) to maintain the strictly mandated <10MB RAM footprint.config.tools.web.search.api_keyis empty, the system automatically switches to DuckDuckGo.📝 Example Scenarios
Scenario 1: No Configuration (New User)
Previously, this would return an error or panic.
Config:
Terminal Output:
Scenario 2: Power User (Brave API)
Users who want higher rate limits and structured JSON results can still use Brave.
Config:
{ "tools": { "web": { "search": { "api_key": "BSAxx..." } } } }Behavior:
The system detects the key and initializes the
BraveSearchProviderautomatically. No code changes required by the user.✅ Checklist
web.goto use Provider pattern