CLI to use DuckDuckGo AI Chat service from terminal
Based on the ideas of duckduckGO-chat-cli
By using this client you accept DuckDuckGo AI Chat ToS
Model | Performance | Best For | Features |
---|---|---|---|
GPT-4o mini | Fast | Quick answers & basic tasks | • General-purpose |
Claude 3 Haiku | Balanced | Technical discussions | • Good context handling • Structured responses |
Llama 3.3 | Code-optimized | Programming tasks | • Documentation analysis • Code generation |
Mixtral 8x7B | Knowledge-focused | Complex topics | • Detailed explanations • Deep analysis |
o3-mini | Fastest | Simple queries | • Lightweight • Quick responses |
Install this tool using pip
:
pip install duckduckgo-ai-chat
For help, run:
duckchat --help
You can also use:
python -m duckchat --help
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd duckduckgo-ai-chat
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest