- AI-powered shell command generator using DeepSeek V3 - Support for natural language to shell command conversion - Secure configuration management with .env files - Package structure with uv tool installation support - Chinese and English language support - Configuration validation and error handling
1.0 KiB
1.0 KiB
AI Shell
AI-powered shell command generator using DeepSeek V3 model via OpenAI-compatible API.
Features
- Generate shell commands from natural language descriptions
- Interactive execution confirmation (Enter to execute, n to cancel)
- Supports multiple languages for prompts and responses
- Uses DeepSeek V3 model for high-quality command generation
- User-friendly interface with default execution on Enter
Usage
uv run python ai.py "your command description here"
Setup
-
Install dependencies:
uv sync
-
Run the tool:
uv run python ai.py "list all files in current directory" uv run python ai.py "show disk usage" uv run python ai.py "find all Python files"
Configuration
- Model: DeepSeek V3 (deepseek-v3-250324)
- API: Volces (ByteDance) OpenAI-compatible interface
- Base URL: https://ark.cn-beijing.volces.com/api/v3/
Requirements
- Python 3.12+
- UV package manager with configured Chinese mirrors for fast downloads