DuckDuckGO-chat-CLI is a command-line interface for interacting with DuckDuckGo's AI chat service. This Go-based adaptation is built upon [duckduckgo-ai-chat].
🚀 New Features
Command System
/search <query>- Integrated web search via DuckDuckGo API/file <path>- Local file support with syntax highlighting/url <url>- Web content extraction with JavaScript rendering/clear- Intelligent context management/history- Conversation history with pagination/markdown- Markdown export with formatting/extract- AI message extraction with metadata/model- Real-time AI model switching
Installation
Latest release
curl -LO https://github.com/benoitpetit/duckduckGO-chat-cli/releases/latest/download/duckduckgo-chat-cli_linux_amd64
chmod +x duckduckgo-chat-cli_linux_amd64From sources
git clone https://github.com/benoitpetit/duckduckGO-chat-cli
cd duckduckGO-chat-cli
go buildPlatform-Specific Downloads
Linux (64-bit)
curl -LO $(curl -s https://api.github.com/repos/benoitpetit/duckduckGO-chat-cli/releases/latest | grep -oP 'https.*linux_amd64' | head -1)Windows (64-bit)
Invoke-WebRequest -Uri ((Invoke-RestMethod -Uri "https://api.github.com/repos/benoitpetit/duckduckGO-chat-cli/releases/latest").assets | Where-Object name -like "*windows_amd64.exe").browser_download_url -OutFile duckduckgo-chat-cli_windows_amd64.exeSource Installation
- Install Go from [golang.org]
- Clone repository:
git clone https://github.com/benoitpetit/duckduckGO-chat-cli.git
cd duckduckGO-chat-cli
go mod tidy
go build -o duckduckgo-chat-cli main.goSupported AI Models
- GPT-4o mini
- Claude 3 Haiku
- Llama 3.1 70B
- Mixtral 8x7B
License
This project is licensed under MIT.
Disclaimer
This project is not officially affiliated with DuckDuckGo. It represents an independent implementation interacting with DuckDuckGo's AI chat service. Please use responsibly and in accordance with DuckDuckGo's terms of service.