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.

Free
All Features Today
BYOLLM
Your Provider, Your Rules
Unlimited Coding

Installation

npm (Recommended)All Platforms

Install globally with npm (requires Node.js 18+):

npm install -g starcode-cli

Or run directly without installing:

npx starcode-cli
Linux (x86_64)Available

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.

Build from Source

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

starcode-cli
Start interactive mode in the current directory
starcode-cli --help
Show all available options and commands
starcode-cli --version
Display the current version

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

VariableDescription
ANTHROPIC_API_KEYAPI key for Anthropic (Claude)
OPENAI_API_KEYAPI key for OpenAI (GPT-4)
DEEPSEEK_API_KEYAPI key for DeepSeek
MINIMAX_API_KEYAPI key for MiniMax
STEPFUN_API_KEYAPI key for StepFun (阶跃星辰)
XIAOMI_API_KEYAPI key for Xiaomi MiMo (all regions)
STARCODE_PROVIDERDefault LLM provider to use
STARCODE_MODELDefault 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.