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 .env configuration
  • βœ… 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: .env gitignored by default
  • βœ… No persistent storage: Stateless execution
  • βœ… Input sanitized: Safe curl JSON escaping

🀝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. 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!

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support