(我已不再支持该项目) 用于与 DuckDuckGo 的 AI 聊天服务交互的命令行接口。
A powerful CLI tool to interact with DuckDuckGo's AI
Advanced context integration, multi-models and enhanced productivity
Now with Intelligent Analytics, Context Optimization & Persistent History
Features • Installation • Usage • Configuration • Intelligent Features • Reverse Engineering
/url, /file, /search) using && to build a combined context before sending a final prompt with --.&&-- to add a final prompt to the accumulated context for the AI to process# Chain multiple commands to build a rich context before asking a question
You: /url https://devbyben.fr/about && /search devbyben.fr twitter account && /file ~/Documents/my_notes.md -- Based on all this, write a summary.The CLI now tracks comprehensive real-time metrics:
Commands:
/stats - View current session analytics anytime/exit with detailed session summaryAutomatically manages conversation context for optimal performance:
Never lose important conversations:
/history to browse and search past conversations/load| Model Name | Integration ID | Alias | Strength | Best For | Characteristics |
|---|---|---|---|---|---|
| GPT-4o mini | gpt-4o-mini | gpt-4o-mini | General purpose | Everyday questions | • Fast |
| • Well-balanced | |||||
| Claude 3 Haiku | claude-3-haiku-20240307 | claude-3-haiku | Creative writing | Explanations & summaries | • Clear responses |
| • Concise | |||||
| Llama 3.3 70B | meta-llama/Llama-3.3-70B-Instruct-Turbo | llama | Programming | Code-related tasks | • Technical precision |
| • Detailed | |||||
| Mistral Small | mistralai/Mistral-Small-24B-Instruct-2501 | mixtral | Knowledge & analysis | Complex topics | • Reasoning |
| • Logic-focused | |||||
| o4-mini | o4-mini | o4mini | Speed | Quick answers | • Very fast |
| • Compact responses |
Windows (PowerShell)
$exe="duckduckgo-chat-cli_windows_amd64.exe"; Invoke-WebRequest -Uri ((Invoke-RestMethod "https://api.github.com/repos/benoitpetit/duckduckGO-chat-cli/releases/latest").assets | Where-Object name -like "*windows_amd64.exe").browser_download_url -OutFile $exe; Start-Process -Wait -NoNewWindow -FilePath ".\$exe"Linux (curl)
curl -LO $(curl -s https://api.github.com/repos/benoitpetit/duckduckGO-chat-cli/releases/latest | grep -oP 'https.*linux_amd64' | grep -oP 'https.*v[0-9]+\.[0-9]+\.[0-9]+_linux_amd64' | head -1) && chmod +x duckduckgo-chat-cli_v*_linux_amd64 && ./duckduckgo-chat-cli_v*_linux_amd64MacOS (curl)
Apple Silicon (ARM64):
curl -LO $(curl -s https://api.github.com/repos/benoitpetit/duckduckGO-chat-cli/releases/latest | grep -oP 'https.*darwin_arm64' | grep -oP 'https.*v[0-9]+\.[0-9]+\.[0-9]+_darwin_arm64' | head -1) && chmod +x duckduckgo-chat-cli_v*_darwin_arm64 && ./duckduckgo-chat-cli_v*_darwin_arm64Intel (AMD64):
curl -LO $(curl -s https://api.github.com/repos/benoitpetit/duckduckGO-chat-cli/releases/latest | grep -oP 'https.*darwin_amd64' | grep -oP 'https.*v[0-9]+\.[0-9]+\.[0-9]+_darwin_amd64' | head -1) && chmod +x duckduckgo-chat-cli_v*_darwin_amd64 && ./duckduckgo-chat-cli_v*_darwin_amd64** Prerequisites:**
go version)chromium-browser --version)git clone https://github.com/benoitpetit/duckduckGO-chat-cli
cd duckduckGO-chat-cli
./scripts/build.sh⛓️ Example 1: Command Chaining
# Chain multiple commands to build a rich context before asking a question
You: /url https://devbyben.fr/about && /search devbyben.fr twitter account && /file ~/Documents/my_notes.md -- Based on all this, write a summary.Example 2: Code Analysis
…️ Example 3: Session Loading
# List and interactively select a previous session to restore
You: /load
# Or load a session directly by its ID
You: /load 12345
# The chat context and history will be restored for continued conversation.| Command | Example | Description |
|---|---|---|
/search [-- prompt] |
/search machine learning -- What are the best practices? |
Add search results as context and optionally process them with a prompt |
/file [-- prompt] |
/file src/main.go -- Explain this code |
Import file content as context and optionally analyze it with a prompt |
/library [command] [args] |
/library add /path/to/docs |
Manage library directories for bulk file operations |
/url [-- prompt] |
/url github.com/golang -- Summarize this page |
Add webpage content as context and optionally process it with a prompt |
/pmp [path] [options] [-- prompt] |
/pmp . -i "*.go" -e "test/*" |
Generate structured project prompts with automatic PMP installation |
/prompt or /prompt add -- |
/prompt or /prompt add myprompt -- This is my prompt |
Manage and load custom prompts. /prompt opens the interactive menu; subcommands are also available. |
/stats ✨ |
/stats |
Show real-time session analytics and performance metrics |
/api [port] |
/api or /api 8080 |
Start or stop the API server |
/model |
/model or /model 2 |
Change AI model (interactive) |
/clear |
/clear |
Reset conversation context (with session save) |
/export |
/export |
Export content (interactive) |
/copy |
/copy |
Copy to clipboard (interactive) |
/history |
/history |
Display conversation history |
/load [session_id] |
/load or /load 12345 |
Load and restore a previous session interactively or by ID |
⚙️ /config |
/config |
Modify configuration settings |
️ /version |
/version |
Show version and system info |
/update |
/update or /update --force |
Update the CLI to the latest version |
❓ /help |
/help |
Show available commands |
/exit |
/exit |
Exit application (with analytics) |
/prompt : Open the interactive prompt management menu (list, add, edit, remove)/prompt list : List all暂无开放 Issues,或尚未同步最近议题。