@zhentianming/zpcode
v1.0.0
Published
A CLI tool with local agent capabilities for software development using DeepSeek
Downloads
36
Readme
ZP Code CLI
A CLI tool with local agent capabilities for software development using DeepSeek.
Features
- Interactive command-line interface
- Integration with DeepSeek large language model
- Local agent capabilities including:
- File reading and writing
- Shell command execution
- Code search and analysis
- Task planning and decomposition
- Context management for multi-turn conversations
- Safety confirmation for dangerous operations
Installation
npm install -g zpcode-cliUsage
Quick Start
Set your DeepSeek API key:
export DEEPSEEK_API_KEY=your-api-key-hereRun the CLI:
zpcode
Commands
zpcode- Start interactive chatzpcode --help- Show helpzpcode --api-key <key>- Set API key directlyzpcode --model <model>- Specify model (default: deepseek-chat)
Interactive Mode Commands
exit- Exit the CLIclear- Clear conversation history
Configuration
You can configure ZP Code via environment variables:
| Variable | Description | Default |
|----------|-------------|---------|
| DEEPSEEK_API_KEY | Your DeepSeek API key | - |
| DEEPSEEK_MODEL | Model to use | deepseek-chat |
Getting a DeepSeek API Key
- Go to DeepSeek Platform
- Sign up for an account
- Create an API key from the dashboard
- Set the
DEEPSEEK_API_KEYenvironment variable
Development
Setup
npm installBuild
npm run buildRun in Development
npm run devProject Structure
src/
├── cli/ # CLI entry and commands
├── agent/ # Agent core logic
├── llm/ # LLM providers (DeepSeek)
├── tools/ # Tool implementations
└── context/ # Memory and workspace managementLicense
ISC
