@danieladu/copilotcli
v1.0.1
Published
AI-powered CLI assistant - manage files and system with natural language
Maintainers
Readme
Copilot CLI
AI-powered command line assistant — talk to your computer in natural language.
Install
npm install -g copilotcliSetup
Set two environment variables:
# Your Anthropic API key (or local proxy key)
set ANTHROPIC_API_KEY=your-key
# (Optional) Custom API endpoint for local proxy
set ANTHROPIC_BASE_URL=http://localhost:4000Or create a .env file in any directory:
ANTHROPIC_API_KEY=your-key
ANTHROPIC_BASE_URL=http://localhost:4000
COPILOT_MODEL=claude-opus-4-6
COPILOT_SAFETY_MODE=smartUsage
# Interactive mode — enter the copilot shell
copilot
# One-shot mode — execute a single instruction
copilot "帮我列出D盘所有jpg文件"
copilot "Move all .log files from D:\ to C:\logs"Interactive Mode Commands
| Command | Action |
|---------|--------|
| /clear | Clear conversation history |
| /help | Show help |
| /exit | Exit |
Examples
copilot> 读取 D:\test.txt 的内容
copilot> 帮我把 D:\photos 里的文件按大小排序列出来
copilot> 把 D:\data\report.csv 复制到 C:\backup
copilot> 搜索 D:\projects 下所有包含 "TODO" 的文件
copilot> 运行 ipconfig 看看网络配置Options
-m, --model <model> LLM model to use (default: claude-opus-4-6)
-s, --safety <mode> Safety mode: smart | always | yolo (default: smart)
--base-url <url> Custom Anthropic API base URL
--no-color Disable colored outputSafety Modes
- smart (default) — auto-execute read operations, confirm writes/deletes
- always — confirm every operation
- yolo — no confirmations (use with caution!)
License
ISC
