YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
DeepSeek AI Agent Repository π
Full-featured Bash CLI agent for DeepSeek API with complete repository integration capabilities
β¨ Features
- β Interactive Chat Mode - Continuous conversation (Ctrl+C to exit)
- β
Single-shot Queries -
script.sh "your question" - β
Multi-model Support -
deepseek-chat,deepseek-coder - β
Environment-driven - Secure
.envconfiguration - β Advanced Parameters - Temperature, max tokens
- β Production Ready - Error handling, JSON parsing
- β Agentic Workflow Compatible - CrewAI, GitHub Actions ready
π¦ Quick Start
# 1. Clone repository
git clone https://github.com/swordenkisk/deepseek-ai-agent.git
cd deepseek-ai-agent
# 2. Make executable
chmod +x deepseek-ai-agent.sh
# 3. Create .env (get key from https://platform.deepseek.com/)
echo "DEEPSEEK_API_KEY=sk-your-key-here" > .env
# 4. Run!
./deepseek-ai-agent.sh "Hello, write me a Python script"
π Usage Examples
# Interactive mode
./deepseek-ai-agent.sh
# Single query
./deepseek-ai-agent.sh "Explain quantum computing simply"
# Coder model
./deepseek-ai-agent.sh -m deepseek-coder "Debug this Python code"
# Custom parameters
./deepseek-ai-agent.sh -m deepseek-chat -t 8000 -T 0.3 "Creative writing"
βοΈ Configuration
.env file:
DEEPSEEK_API_KEY=sk-your-actual-api-key
DEEPSEEK_MODEL=deepseek-chat
MAX_TOKENS=4096
TEMPERATURE=0.7
π οΈ CLI Options
| Flag | Description | Example |
|---|---|---|
-m, --model |
Model selection | -m deepseek-coder |
-t, --tokens |
Max tokens | -t 8192 |
-T, --temperature |
Creativity (0.0-2.0) | -T 0.1 |
-h, --help |
Show help | -h |
π Repository Structure
deepseek-ai-agent/
βββ deepseek-ai-agent.sh # Main executable
βββ .env.example # Template config
βββ README.md # This file
βββ docker/ # Docker deployment (optional)
βββ examples/ # Usage examples
π§ Dependencies
# Required
curl jq
# Verify installation
command -v curl >/dev/null 2>&1 || { echo "Install curl"; exit 1; }
command -v jq >/dev/null 2>&1 || { echo "Install jq"; exit 1; }
π³ Docker
# Dockerfile
FROM alpine:latest
RUN apk add --no-cache curl jq bash
COPY deepseek-ai-agent.sh /usr/local/bin/
COPY .env /
RUN chmod +x /usr/local/bin/deepseek-ai-agent.sh
CMD ["/usr/local/bin/deepseek-ai-agent.sh"]
docker build -t deepseek-agent .
docker run -it --env-file .env deepseek-agent
π Integration Examples
CrewAI Agent Repository
from crewai import Agent
agent = Agent(
role='DeepSeek Researcher',
goal='Research using DeepSeek API',
backstory='Expert researcher with DeepSeek access',
execute_function='./deepseek-ai-agent.sh "research query"'
)
GitHub Actions
- name: AI Code Review
run: ./deepseek-ai-agent.sh -m deepseek-coder "Review this PR code"
π Architecture
graph TD
User[User Input] --> CLI[deepseek-ai-agent.sh]
CLI --> Env[.env Config]
CLI --> API[DeepSeek API]
API --> JSON[JSON Response]
JSON --> JQ[jq Parser]
JQ --> Output[Clean Response]
π Security
- β Zero-trust: API key never exposed in script
- β
Environment-only:
.envgitignored by default - β No persistent storage: Stateless execution
- β Input sanitized: Safe curl JSON escaping
π€ Contributing
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
π License
MIT License - see LICENSE file.
π Acknowledgments
- DeepSeek - Amazing open API platform
- CrewAI - Agent framework inspiration
- GitHub - Agentic workflow patterns
β Star this repo if you found it useful!
π Found a bug? Open an issue!
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support