AI coding in terminal
Kilo CLI brings AI-powered coding assistance directly to your terminal. Connect it to Qwen Cloud via Token Plan (Team Edition), Coding Plan, or pay-as-you-go billing.
Get running in a few minutes:
You should see: Kilo generates the fibonacci function code
Open
You must first purchase a Token Plan (Team Edition) with an active subscription on the Token Plan page.
Replace
Replace
Replace
To add more models, append them in the same format within
After saving the configuration, restart Kilo CLI, type
"Invalid API key" error
Reduce usage by:
If you encounter errors, refer to the FAQ documentation for the corresponding billing plan:
Quick start
Get running in a few minutes:
Configuration
Open ~/.config/kilo/config.json with a text editor and add the configuration for your chosen plan.
Free quota and billing:
- First-time users get a free quota (valid for 90 days)
- Enable Free quota only to prevent unexpected charges
Token Plan (Team Edition)
You must first purchase a Token Plan (Team Edition) with an active subscription on the Token Plan page.
Replace YOUR_API_KEY with the Token Plan (Team Edition) dedicated API Key. For available models, see Token Plan (Team Edition) supported models.
Coding Plan
Replace YOUR_API_KEY with the Coding Plan dedicated API Key. For available models, see Coding Plan supported models.
Pay-as-you-go
Replace YOUR_API_KEY with your Qwen Cloud API Key. For available models, see supported models.
models.
Model recommendations
| Task | Model | Why |
|---|---|---|
| Simple tasks | qwen3-coder-plus | Fast responses, low cost |
| Standard coding | qwen3-coder-plus | Balanced performance |
| Complex algorithms | qwen3.6-plus | Strong reasoning |
| Architecture design | qwen3.6-plus | Deep code understanding |
Verify configuration
After saving the configuration, restart Kilo CLI, type /models, search for "Qwen Cloud", and select the model you want to use.
For more tips and common commands, see the Kilo Code official documentation.
Limitations
- Terminal only: No GUI interface
- Token usage: Multi-file edits consume more tokens
- Model compatibility: Not all features work with all models
Troubleshooting
"Invalid API key" error
Solution:"Model not found" error
- Verify API key is correct and matches your plan
- Ensure API key has quota or active subscription
Solution:High token consumption
- Check model ID spelling
- See Model list
Solution:Slow responses
- Work in specific directories
- Use precise prompts
- Clear context with new sessions
- Choose appropriate models for tasks
Solution:
- Use faster models like
qwen3-coder-next- Check network connection
- Reduce context size
Token optimization
Reduce usage by:
- Focused directories: Navigate to specific project folders
- Clear prompts: Be specific about what you need
- Model selection: Use lightweight models for simple tasks
- Context management: Start new sessions for unrelated tasks
- Incremental changes: Make small, focused edits
FAQ
If you encounter errors, refer to the FAQ documentation for the corresponding billing plan:
- Pay-as-you-go: Error codes and troubleshooting
- Coding Plan: Coding Plan FAQ
- Token Plan (Team Edition): Token Plan FAQ
Related resources
- Token Plan: Setup with subscription
- Coding Plan: Setup with subscription
- Models: Available models
- API docs: OpenAI-compatible reference
- Official docs: Kilo CLI documentation