Skip to content

rcliao/shell-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shell-search

Agent-friendly web search CLI. Returns search results as markdown or JSON.

Part of the Ghost in the Shell ecosystem.

Install

go install github.com/rcliao/shell-search/cmd/shell-search@latest

Usage

shell-search "query"                        # Markdown output, auto-detect provider
shell-search "query" --json                 # JSON output
shell-search "query" -p brave -n 10         # Brave provider, 10 results
shell-search "query" -f pw                  # Results from past week
shell-search "query" -f pd --country us     # Past 24h, US results

Provider Auto-Detection

Checks environment variables in order:

  1. BRAVE_SEARCH_API_KEY → Brave Search
  2. TAVILY_API_KEY → Tavily
  3. Falls back to ddgr (no key needed, must be installed)

Override with --provider / -p flag.

Flags

Flag Short Default Description
--num -n 5 Number of results
--freshness -f Time filter: pd (24h), pw (7d), pm (31d), py (1yr)
--country Country code (e.g., us, jp)
--provider -p auto Provider: brave, tavily, ddgr
--timeout 30 Request timeout in seconds
--json false Output as JSON

Build

make build    # Build binary
make test     # Run tests
make vet      # Run go vet

License

MIT

About

Agent-friendly web search CLI — Brave, Tavily, and DuckDuckGo with markdown/JSON output.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors