A command-line interface for interacting with the DeepSeek API, allowing you to ask questions or perform searches directly from your terminal.
- Simple command-line interface for DeepSeek API
- Ask questions with natural language
- Perform targeted searches
- Easy installation and configuration
- Bash: Available by default on most Unix-like systems (e.g., Linux, macOS)
curl: Used for making API requests, typically pre-installedjq: A lightweight JSON processor. Install it with:- macOS:
brew install jq - Ubuntu:
sudo apt-get install jq - Fedora:
sudo dnf install jq
- macOS:
Follow these steps to set up the DeepSeek CLI on your system:
-
Clone the repository:
git clone https://github.com/Jack5316/deepseek-cli.git
-
Navigate to the directory:
cd deepseek-cli -
Make the script executable:
chmod +x deepseek.sh
-
Move the script to a PATH directory (optional, for system-wide access):
sudo mv deepseek.sh /usr/local/bin/deepseek
The tool provides two primary commands:
deepseek ask "Your question here"deepseek search "Your search query here"Ask a simple question:
deepseek ask "What is the capital of France?"Search for detailed information:
deepseek search "Latest AI developments in 2025"You can tailor the tool to your needs:
- API Key: Update the
API_KEYvariable in the script with your own DeepSeek API key. - System Prompts: Adjust the prompts in the
deepseek_askanddeepseek_searchfunctions to modify the AI's behavior. - Output Format: Modify the JSON parsing to change how responses are displayed.
To remove the tool from your system:
sudo rm /usr/local/bin/deepseekThis project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to:
- Open an issue to report bugs or suggest features
- Submit a pull request with improvements
- Share how you're using the tool
Created by Jiawei (Jack) Tan
Last updated: 2025-03-04