Skip to main content

A local AI agent powered by DeepSeek — reads, writes, executes, and browses the web from your terminal.

Project description

DeepClaw

DeepClaw is a local AI agent powered by DeepSeek models, running in your terminal. It reads/writes files, executes shell commands, searches codebases, and browses the web — autonomously. Features streaming output, context compression, a Jinja2-driven Skill system, and a VS Code-style Plugin architecture for unlimited extensibility. Zero environment variables, one-command setup, ready to work.

Software Architecture

User → CLI (Rich TUI) → Agent Core (streaming + tool-call loop) → DeepSeek API
                              ↓
                    Tool Execution Layer
           (file I/O, shell, grep, web search, HTTP)
                              ↓
              Skill Engine (Jinja2) ←→ Plugin System (hot-load)

Built with Python, using openai SDK for API calls and Rich for terminal UI. Skills use Jinja2 templates with YAML front matter; Plugins are dynamically-loaded Python modules following a VS Code Extension-like contract.

Installation

# PyPI (recommended)
pip install deepclaw-ai
deepclaw

# From source
git clone https://github.com/boyin111-1/DeepClaw.git
cd DeepClaw
pip install -r requirements.txt
python -m deepclaw

On first run, you'll be guided through setup: choose DeepSeek official API (API Key only) or third-party API (Key + URL + model).

Usage

Command Description
deepclaw Launch interactive CLI (when installed via pip)
python -m deepclaw Launch from source
python -m deepclaw --model deepseek-v4-pro Start with a specific model
python -m deepclaw --plugin weather Load plugins at startup
python -m deepclaw --resume Restore last session

In-session commands:

Command Description
/help Show all commands
/skill <name> List / load / unload skills
/plugin list Manage plugins
/model View / switch models
/config View / edit configuration
/back Load / delete saved sessions
/export Export conversation to Markdown
/exit Quit (auto-saves session)

Skill System

Skills are plain Markdown files with YAML front matter and Jinja2 templates. They define custom AI behavior — code review, project workflow, git operations, and more.

Place skills in ~/.deepclaw/skills/<name>/SKILL.md and load with /skill <name>. Example:

---
name: My Reviewer
params:
  focus: { type: enum, values: [安全, 性能, 风格], default: 安全 }
---
# {{ name }}
Focus on **{{ focus }}** when reviewing code.

Load with /skill reviewer — interactive parameter forms appear for skills with parameters.

Plugin System

Plugins run arbitrary Python code with full freedom:

# ~/.deepclaw/plugins/my-plugin/main.py
def on_load(api):
    api.register_tool({"function": {"name": "my_tool", ... }}, handler)
    api.status_bar.set("my-plugin", "Ready")
    api.on("chat:after", lambda resp: print(resp))

Extensions can: inject tools, register commands, subscribe to events, run background services, or even take over the UI entirely (mode: gui).

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Share skills and plugins via the Discussions tab.

License

MIT License — see LICENSE.

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

deepclaw_ai-0.1.1.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

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

deepclaw_ai-0.1.1-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file deepclaw_ai-0.1.1.tar.gz.

File metadata

  • Download URL: deepclaw_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for deepclaw_ai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 45bbc3aeb3d9014d6a3fcdb21f5c839973becb09cba3201b428f403afacabab1
MD5 72325863ec2d54c07dd46a8dc8937919
BLAKE2b-256 cf448a113cd664625c72e36018d2b4491504e56e39b9dd825aec905f4b2a5cdd

See more details on using hashes here.

File details

Details for the file deepclaw_ai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: deepclaw_ai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for deepclaw_ai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f97c4b5514e39ad6814b5ff89352a8b984d5f4654649af41e266cfd8b269832f
MD5 39c80b2fb96dc666ea112fb3e7a792b8
BLAKE2b-256 1d7c9adcb707fbf24cfeb48c4bb05b7ffcaef0b4476d753cb5689844e776e75b

See more details on using hashes here.

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