Skip to main content

DeepSeek AI-powered CLI agent with HITL guardrails for code assistance and automation

Project description

DeepSeeker

AI-powered CLI agent with HITL guardrails for code assistance and automation.

DeepSeeker - MQ-9 Reaper HITL Model

PyPI version Python 3.10+ License: MIT

Features

  • Multi-Provider Support: DeepSeek, OpenAI, Anthropic
  • Tool Use: Bash, Read, Write, Edit, Glob, Grep
  • HITL Guardrails: MQ-9 Reaper model for operation safety
  • Streaming Responses: Real-time output with tool execution display
  • Interactive Shell: Slash commands, history, auto-completion

Installation

pip install deepseeker

Quick Start

# Interactive mode
deepseekpy

# Quick query
deepseekpy -q "explain this code"

# Set API key
deepseekpy --key YOUR_DEEPSEEK_API_KEY

API Key Setup

On first launch, you'll be prompted to enter your API key:

No DEEPSEEK API key found
Get your key from: https://platform.deepseek.com/api-keys
Enter DEEPSEEK_API_KEY: sk-...

Keys are stored securely in ~/.agi/secrets.json (mode 0600).

HITL Guardrails (MQ-9 Reaper Model)

Operations are classified by risk level:

Level Approval Examples
ROUTINE Auto-approved ls, git status, file reads
ELEVATED Logged File writes, git operations
CRITICAL 1 confirmation sudo operations, system changes
LETHAL 2 confirmations + 5s delay rm -rf /, disk writes

Commands

Command Description
/help Show help
/model [provider] Switch AI provider
/tools List available tools
/guardrails Show guardrails status
/secrets Manage API keys
/exit Exit

Tools

  • Bash: Execute shell commands
  • Read: Read files with line numbers
  • Write: Create/overwrite files
  • Edit: Precise text replacement
  • Glob: Find files by pattern
  • Grep: Search file contents

API Error Handling

DeepSeeker detects and handles API errors:

  • Invalid Key: Prompts for new key
  • Rate Limited: Shows wait message
  • Frozen Account: Displays support info
  • Quota Exceeded: Shows billing link

License

MIT License - see LICENSE for details.

Author

Bo Shang bo@shang.software

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepseeker-2.2.3.tar.gz (540.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepseeker-2.2.3-py3-none-any.whl (536.5 kB view details)

Uploaded Python 3

File details

Details for the file deepseeker-2.2.3.tar.gz.

File metadata

  • Download URL: deepseeker-2.2.3.tar.gz
  • Upload date:
  • Size: 540.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for deepseeker-2.2.3.tar.gz
Algorithm Hash digest
SHA256 0122824079b1a5a02b694fc13c72cfff506a26928076ad288fc7d31062b465a6
MD5 7f3b7be4d77f5ebe38e62a93394353e8
BLAKE2b-256 b749cf97deb8b29a2f22070b97bc5f2ca4cd1668617ac928d59c9f042c50ab4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for deepseeker-2.2.3.tar.gz:

Publisher: workflow.yml on ErosolarAI/deepseeker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file deepseeker-2.2.3-py3-none-any.whl.

File metadata

  • Download URL: deepseeker-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 536.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for deepseeker-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4ea2d6aa0f57841b1701ce77c472f6fda15563dad1a2f19c1b248a14829cad1b
MD5 48a878658a4a9194b7341c3fd7cdf189
BLAKE2b-256 d447f9d85e4a0006c2c92d049c0f08b9c70e58c9e9d07bf66d72d05cac60158e

See more details on using hashes here.

Provenance

The following attestation bundles were made for deepseeker-2.2.3-py3-none-any.whl:

Publisher: workflow.yml on ErosolarAI/deepseeker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page