Cline Integration
Configure Cline (VS Code autonomous coding agent) to use Antbase. Cline can create files, run terminal commands, and make multi-file edits autonomously -- all powered by Antbase's intelligent model routing.
What this enables
- Autonomous coding agent with Antbase model routing
- File creation, editing, and terminal command execution
- Multi-step task completion with approval workflow
- Automatic failover so tasks never stall on a dead provider
Quick Start
1. Install Cline
Install the Cline extension from the VS Code marketplace.
2. Configure the API provider
Open Cline's settings panel (click the Cline icon in the sidebar) and select OpenAI Compatible as the API provider.
| Field | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://antbase.ai/v1 |
| API Key | Your Antbase API key |
| Model ID | ant:coder |
Ready to use
Type a task description in the Cline input and let it work autonomously.
Configuration
Recommended model choices for Cline:
| Use case | Model | Why |
|---|---|---|
| General tasks | ant:coder | Best balance of code quality and cost |
| Complex refactoring | ant:best | Frontier models for multi-file changes |
| Quick fixes | ant:fast | Lower cost for simple tasks |
Usage Examples
Typical tasks
Describe tasks in natural language and Cline handles the rest:
- "Add input validation to the signup form and write tests for it"
- "Refactor the auth module to use JWT instead of session cookies"
- "Create a REST API endpoint for user preferences with CRUD operations"
- "Find and fix the memory leak in the WebSocket handler"
Virtual Models
| Model | Best for | Notes |
|---|---|---|
| ant:auto | General use | Adapts to task complexity automatically |
| ant:fast | Simple fixes | Low cost for small changes |
| ant:best | Complex tasks | Frontier models for ambitious refactors |
| ant:free | Testing | Zero cost for evaluation |
| ant:reasoning | Architecture | Deep reasoning for planning phases |
| ant:coder | Code generation | Recommended default for Cline |
See Virtual Models for the full list.
Troubleshooting
Cline gets confused or loops
Switch to ant:best for complex tasks. Stronger models follow Cline's tool-use protocol more reliably.
High token usage
Cline sends your project context with each request. Use .clineignore to exclude large files and directories (like node_modules, build outputs).