Cline

Cline

The VS Code AI coding agent that acts, not just suggests

Connect with the TokenMix CLI

The official TokenMix CLI generates a ready-to-paste config in one command — no manual environment variables:

npx tokenmix cline

Copy the output and paste it into the Cline extension settings. Prefer to configure it by hand? The full steps are below.


Introduction

Cline is the most capable open-source coding agent for VS Code. It autonomously edits code, runs terminal commands, searches the web, and iterates on tasks — asking for your approval only when something matters. Unlike Copilot or simple completions, Cline is a full agent: give it a goal, and it figures out the steps. By connecting it to TokenMix, you get access to top-tier models like claude-sonnet-4-6, claude-opus-4.8, and deepseek-v4-pro.

Prerequisites

Setup Steps

1. Install the Cline extension

Open VS Code. Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (macOS) to open the Extensions panel. Search for "Cline" and click Install.

2. Open the Cline settings panel

After installation, the Cline icon appears in the left Activity Bar (robot icon). Click it to open the Cline sidebar, then click the gear icon (⚙) at the top right of the panel.

3. Select "OpenAI Compatible" as the provider

In the Settings panel, find the API Provider dropdown and select "OpenAI Compatible".

4. Enter the TokenMix base URL

In the Base URL field, enter:

https://api.tokenmix.ai/v1

5. Enter your API key

In the API Key field, paste your TokenMix key:

sk-tm-your-key-here

6. Enter the model ID

In the Model ID field, enter one of the following recommended models:

7. Click "Verify" and save

Click the Verify button to test the connection. Once it shows a green checkmark, your setup is complete.

Verify

In the Cline sidebar, type a task in the chat box:

Create a Python function that reverses a string and add a docstring.

Cline should create or edit a file autonomously. If it reports an API error, re-check the base URL (must end with /v1) and your API key.

FAQ

Q: What's the difference between using OpenAI Compatible and Anthropic provider types? Both work with TokenMix. "OpenAI Compatible" routes requests through the OpenAI-compatible endpoint — suitable for all models including Claude. Choose "Anthropic" only if you want to pass native Anthropic request fields.

Q: Cline keeps asking for approval on every file change — can I reduce that? Yes. Open Cline settings → Auto-approve settings. You can whitelist read-only operations, terminal commands scoped to your project directory, and more.

Q: Which model should I start with? Start with claude-sonnet-4-6. It's fast, accurate, and cost-efficient for most tasks. Upgrade to claude-opus-4.8 when you hit a hard problem.