Ddg
Use 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
Use 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
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
ddgr 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 |
|---|---|
, | Show N results per page (0-25, default 10) |
, | Region-specific search (e.g., 'us-en', 'uk-en') |
, | Time limit: d (day), w (week), m (month), y (year) |
, | Search specific site |
, | Show complete URLs |
| Output in JSON format |
| Open first result in browser |
, | Non-interactive mode |
| 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 queriesNo automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.