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 without opening a browser, (3) Get quick search results in text format, (4) Search privately without tracking, (5) Use DuckDuckGo bangs (!) from terminal.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install ddg或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install ddg⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/ddg/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: ddg description: 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 without opening a browser, (3) Get quick search results in text format, (4) Search privately without tracking, (5) Use DuckDuckGo bangs (!) from terminal. ---
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 | |--------|-------------| | -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 queries安装 Ddg 后,可以对 AI 说这些话来触发它
Help me get started with Ddg
Explains what Ddg does, walks through the setup, and runs a quick demo based on your current project
Use Ddg to use ddgr (DuckDuckGo from the terminal) to perform privacy-focused ...
Invokes Ddg with the right parameters and returns the result directly in the conversation
What can I do with Ddg in my developer & devops workflow?
Lists the top use cases for Ddg, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/ddg/ 目录(个人级,所有项目可用),或 .claude/skills/ddg/(项目级)。重启 AI 客户端后,用 /ddg 主动调用,或让 AI 根据上下文自动发现并使用。
Ddg 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
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 without opening a browser, (3) Get quick search results in text format, (4) Search privately without tracking, (5) Use DuckDuckGo bangs (!) from terminal.
Ddg 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Ddg
Identifies repetitive steps in your workflow and sets up Ddg to handle them automatically