Cline
Cline is an open-source AI coding assistant for VS Code with full agentic capabilities -- file editing, terminal commands, and browser use. It has excellent support for custom OpenAI-compatible endpoints.
Setup
- Install Cline from the VS Code Extensions marketplace
- Click the Cline icon in the Activity Bar (sidebar)
- Click the gear icon to open provider settings
- Select "OpenAI Compatible" from the provider dropdown
- Fill in:
- Base URL:
https://api.modelbridge.dev/v1 - API Key:
mb_live_your_key_here - Model ID:
claude-sonnet-4-6
- Base URL:
- Send a test message to verify the connection
VS Code settings.json
You can also configure Cline directly in your VS Code settings:
settings.json
{
"cline.apiProvider": "openai-compatible",
"cline.openAiCompatible.baseUrl": "https://api.modelbridge.dev/v1",
"cline.openAiCompatible.apiKey": "mb_live_your_key_here",
"cline.openAiCompatible.modelId": "claude-sonnet-4-6"
}
Features that work with ModelBridge
- Chat and code generation -- Full conversation with context
- File editing -- Cline can read, create, and edit files in your project
- Terminal commands -- Cline can run shell commands with your approval
- Tool use -- Cline sends OpenAI-format
toolsdefinitions, which ModelBridge supports natively - Token usage tracking -- Cline displays per-message token counts when the response includes
usagedata
Tips
- Cline shows a green checkmark when the connection is valid
- You can switch providers in Cline's settings without losing previous configurations
- After selecting the model, you can customize max output tokens, context window size, and per-token pricing for cost tracking