Documentation
A Rust-powered terminal coding assistant — fast, stable, and always evolving. Precisely tuned for Claude, GPT, DeepSeek, Xiaomi MiMo and more. All features are free today, with subscription plans coming in the future. Code without limits.
Installation
Install globally with npm (requires Node.js 18+):
npm install -g starcode-cli
Or run directly without installing:
npx starcode-cli
Install with one command (no Node.js required):
curl -fsSL https://raw.githubusercontent.com/xyz1o2/starcode-cli/main/install-npm.sh | bash
Requires curl and npm.
Requires Rust toolchain (rustup):
git clone https://github.com/xyz1o2/starcode-cli.git cd starcode-cli/starcode-cli-main/starcode-cli cargo build --release cargo install --path .
Quick Start
1. Set up your API key
Configure your preferred LLM provider's API key:
export ANTHROPIC_API_KEY="your-api-key-here"
2. Navigate to your project
cd /path/to/your/project
3. Start StarCode CLI
starcode-cli
You'll see an interactive prompt where you can describe what you want to do.
Usage
Basic Commands
Example Prompts
Code editing:
"Refactor the auth module to use JWT tokens"Code explanation:
"Explain the data flow in this repository"Git operations:
"Create a commit with a descriptive message"Configuration
StarCode CLI can be configured through environment variables.
Environment Variables
| Variable | Description |
|---|---|
| ANTHROPIC_API_KEY | API key for Anthropic (Claude) |
| OPENAI_API_KEY | API key for OpenAI (GPT-4) |
| DEEPSEEK_API_KEY | API key for DeepSeek |
| MINIMAX_API_KEY | API key for MiniMax |
| STEPFUN_API_KEY | API key for StepFun (阶跃星辰) |
| XIAOMI_API_KEY | API key for Xiaomi MiMo (all regions) |
| STARCODE_PROVIDER | Default LLM provider to use |
| STARCODE_MODEL | Default model to use |
LLM Providers
StarCode CLI ships with the following LLM providers built in, precisely optimized for each. Configure the API key for your preferred provider to get started.
Claude
Claude 4.5 Sonnet, Claude 4 Opus, Haiku — precisely optimized for code editing and reasoning.
GPT
GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo — tuned for coding workflows.
DeepSeek
DeepSeek Coder, DeepSeek Chat — optimized for code generation and explanation.
Xiaomi MiMo · Global
Pay-as-you-go — mimo-v2-flash and more, tuned for coding tasks.
Xiaomi MiMo · China (Token Plan)
token-plan-cn endpoint — mimo-v2.5-pro and more.
Xiaomi MiMo · Singapore (Token Plan)
token-plan-sgp endpoint for Asia-Pacific.
Xiaomi MiMo · Amsterdam (Token Plan)
token-plan-ams endpoint for Europe.
MiniMax
MiniMax chat and completion models.
StepFun
StepFun — chat and reasoning models.
OpenAI Compatible
Point at any custom OpenAI-format endpoint — bring your own key, bring your own model.
Support
Need help or found a bug? We'd love to hear from you.