Cline is a VS Code extension that provides an autonomous AI coding assistant. It can read files, write code, run commands, and iterate on its work.
Prerequisites
Configuration
Step 1: Open Cline Settings
- Open VS Code
- Click the Cline icon in the sidebar
- Click the gear icon to open settings
Step 2: Select Provider
- In the API Provider dropdown, select OpenAI Compatible
- Enter the base URL:
https://api.infercom.ai/v1
- Enter your Infercom API key
- Enter the model name:
MiniMax-M2.7
Step 3: Model Configuration
Under Model Configuration:
| Setting | Value |
|---|
| Context Window Size | 192000 |
| Support Images | Disabled |
| Enable R1 Format | Disabled |
Support Images must be disabled - MiniMax-M2.7 doesn’t support image input.
Step 4: Verify Connection
Click Test Connection or start a conversation to verify the setup works.
This single-model setup is the simplest option and works well for most tasks. For complex projects, see the Plan/Act configuration below.
Optional: Plan/Act Modes
For complex tasks, Cline supports separate models for planning and execution. Use a frontier model (Claude, GPT, Gemini) for planning and MiniMax-M2.7 on Infercom for fast code generation.
Enable Plan/Act Modes
- In Cline settings, toggle “Use different models for Plan and Act modes”
- Configure each mode separately:
| Mode | Provider | Model | Purpose |
|---|
| Plan | Your preferred provider | Claude, GPT, Gemini | Deep reasoning for architecture decisions |
| Act | OpenAI Compatible (Infercom) | MiniMax-M2.7 | Fast code generation on EU sovereign infrastructure |
Cline preserves planning context when switching into Act mode, so MiniMax-M2.7 can continue from the plan instead of starting from scratch.
Model
Use MiniMax-M2.7 - optimized for agentic coding with 192K context window.
Usage
With Cline configured:
- Click the Cline icon in VS Code sidebar
- Type your request in the chat
- Cline will autonomously:
- Read relevant files
- Write or edit code
- Run terminal commands
- Iterate until the task is complete
Example Tasks
- “Add error handling to the login function”
- “Write unit tests for the User class”
- “Refactor this file to use async/await”
Troubleshooting
Connection Failed
Verify your configuration:
- Base URL:
https://api.infercom.ai/v1
- API key is valid
- Model name is exact:
MiniMax-M2.7
Model Not Found
Ensure the model name matches exactly (case-sensitive): MiniMax-M2.7
Slow Responses
MiniMax-M2.7 runs at 400+ tokens/sec. If responses seem slow:
- Check your network connection
- Large context (many files) increases processing time
- First request may be slower due to model loading
Next Steps