ddgUse ddgr (DuckDuckGo from the terminal) to perform privacy-focused web searches from the command line. Use when the user wants to (1) Search the web from the terminal, (2) Perform DuckDuckGo searches without opening a browser, (3) Get quick search results in text format, (4) Search privately without tracking, (5) Use DuckDuckGo bangs (!) from terminal.
Install via ClawdBot CLI:
clawdbot install instant-picture/ddgddgr is a command-line utility to search DuckDuckGo from the terminal. It provides fast, privacy-focused web searches without opening a browser.
sudo snap install ddgr
sudo add-apt-repository ppa:twodopeshaggy/jarun
sudo apt-get update
sudo apt-get install ddgr
git clone https://github.com/jarun/ddgr.git
cd ddgr
sudo make install
Dependencies: Python 3.8 or later
snap run ddgr "search query" --np
snap run ddgr "search query" --num 5 --np
snap run ddgr "query" --time w --np # past week
snap run ddgr "query" --time m --np # past month
snap run ddgr "query" --time y --np # past year
snap run ddgr "query" --site github.com --np
snap run ddgr "query" --json --np
snap run ddgr "query" --ducky
Run without --np to enter interactive mode:
snap run ddgr "search query"
Interactive commands:
1, 2, 3... → open result in browsern → next page of resultsp → previous page of resultsq or Ctrl+D → quit? → show help| Option | Description |
|--------|-------------|
| -n N, --num N | Show N results per page (0-25, default 10) |
| -r REG, --reg REG | Region-specific search (e.g., 'us-en', 'uk-en') |
| -t SPAN, --time SPAN | Time limit: d (day), w (week), m (month), y (year) |
| -w SITE, --site SITE | Search specific site |
| -x, --expand | Show complete URLs |
| --json | Output in JSON format |
| --ducky | Open first result in browser |
| --np, --noprompt | Non-interactive mode |
| --unsafe | Disable safe search |
Use DuckDuckGo bangs to search specific sites:
snap run ddgr "!w Linux" --np # Wikipedia search
snap run ddgr "!yt music" --np # YouTube search
snap run ddgr "!gh python" --np # GitHub search
snap run ddgr "!a books" --np # Amazon search
Add to ~/.bashrc or ~/.zshrc:
alias ddg='snap run ddgr'
Then use:
ddg "search query" --np
snap run ddgr "latest AI news 2025" --num 5 --np
snap run ddgr "Ubuntu tutorial" --site askubuntu.com --np
snap run ddgr "Python 3.12 features" --time m --np
snap run ddgr "!w OpenClaw" --np
Command not found:
sudo snap install ddgrsnap run ddgr instead of just ddgrNo results:
--np to see if interactive mode worksSlow response:
--time to limit results by time for faster queriesGenerated Mar 1, 2026
Developers can quickly search for error messages, documentation, or code examples directly from the terminal without switching to a browser, enhancing workflow efficiency. This is useful for debugging or learning new technologies while maintaining privacy.
Researchers and students can perform privacy-focused searches for academic papers, definitions, or historical data using DuckDuckGo bangs to target specific sources like Wikipedia or Google Scholar. The JSON output option facilitates data extraction for analysis.
IT professionals can search for system configurations, security updates, or troubleshooting guides from the command line, especially useful in server environments without a GUI. Site-specific searches help narrow results to trusted forums like Stack Overflow.
Content creators and marketers can gather information on trends, competitors, or audience interests privately, using time-limited searches to find recent data. This aids in generating ideas without leaving a digital footprint.
Individuals concerned about online tracking can use this skill for everyday web searches, such as looking up recipes, news, or product reviews, with the assurance that no personal data is stored. The alias feature makes it convenient for regular use.
Offer a basic version of this skill for free within an AI agent platform, with premium features like advanced search filters, API access, or enhanced privacy options for a subscription fee. This attracts users who value privacy and terminal efficiency.
Package this skill as part of a larger security suite for businesses, providing encrypted, private search capabilities for employees to prevent data leaks. Include compliance features and analytics for organizational use.
Sell this skill in a marketplace for developers, bundling it with other command-line utilities or offering customization services for specific workflows. Revenue comes from one-time purchases or commissions on integrations.
💬 Integration Tip
Integrate this skill by setting up an alias in the user's shell configuration for quick access, and ensure Python dependencies are pre-installed to avoid installation issues.
Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
AI-optimized web search via Tavily API. Returns concise, relevant results for AI agents.
This skill should be used when users need to search the web for information, find current content, look up news articles, search for images, or find videos. It uses DuckDuckGo's search API to return results in clean, formatted output (text, markdown, or JSON). Use for research, fact-checking, finding recent information, or gathering web resources.
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
Search indexed Discord community discussions via Answer Overflow. Find solutions to coding problems, library issues, and community Q&A that only exist in Discord conversations.
Multi search engine integration with 17 engines (8 CN + 9 Global). Supports advanced search operators, time filters, site search, privacy engines, and WolframAlpha knowledge queries. No API keys required.