Cline in VS Code
On this page
Cline: The AI Agent in VS Code
Cline is a VS Code extension that turns your editor into an AI pair programming environment. It can read your files, run commands in the terminal, and modify your code directly. Connected to grok-build-0.1, it delivers a fast, smooth development experience.

Installation
- Open VS Code
- Go to the Extensions tab (Ctrl+Shift+X)
- Search for Cline in the marketplace
- Click Install
The extension appears in the VS Code sidebar with its dedicated icon.
Configuration with grok-build-0.1
Step 1: Open Cline Settings
Click the Cline icon in the sidebar, then access settings (gear icon or via the command palette).
Step 2: Configure the API Provider
- Select “Use your own API key”
- In the Provider field, choose an OpenAI-compatible provider or manually enter the xAI information
- Enter your xAI API key
Step 3: Configure the Model
- Navigate to API Configuration in Cline settings
- Set the base URL to
https://api.x.ai/v1 - Select or enter
grok-build-0.1as the model
Step 4: Verify
Open the Cline panel and send a simple message like “Describe the structure of this project”. If you get a response, the configuration is correct.
Daily Use
Referencing Files
In the Cline chat, use @ to reference files in your project:
“@src/api/users.ts add input validation with Zod”
Cline sends the file content to the model, which can then propose precise modifications.
Action Approval
Cline asks for your approval before any action that modifies your code or runs a command. You retain full control. You can configure the automatic approval level in settings.
Plan Mode vs Action Mode
- Plan: Cline describes what it will do before doing it. Useful for complex tasks
- Action: Cline executes directly. Faster for simple tasks
Advantages of Cline with grok-build-0.1
What sets Cline apart in the ecosystem starts with its business model: the extension is open source—you can inspect how it works, or even modify it—and operates on a BYOK (Bring Your Own Key) basis, with no separate subscription. You only pay for your xAI API consumption, making costs directly proportional to actual usage. In terms of capabilities, Cline is truly agentic: it doesn’t just suggest code in a panel, it executes changes—creating files, making modifications, running commands—with your validation at every step. And since it reads your source code to build context, its proposals rely on your actual conventions rather than generalities.
Key Takeaways
- Cline installs from the VS Code marketplace
- Configure the xAI API key and grok-build-0.1 model
- The base URL is
https://api.x.ai/v1 - Use
@to reference files in your prompts - Cline requests approval before every modification