Windsurf, opencode, Kilo Code, and Roo Code
On this page
A growing ecosystem
Beyond Cline, Cursor, and Copilot, several other editors and tools support grok-build-0.1 via OpenAI API compatibility. They all follow the same setup: configure the base URL https://api.x.ai/v1, your xAI API key, and the model grok-build-0.1.
Windsurf
Windsurf (formerly Codeium) is an AI code editor built on VS Code, similar to Cursor in its approach. It integrates an AI assistant directly into the editor with agentic capabilities.
Configuration
- Open Windsurf settings
- In the models or providers section, add a custom provider
- Base URL:
https://api.x.ai/v1 - API Key: your xAI key
- Model:
grok-build-0.1
Windsurf offers features similar to Cursor: contextual chat, multi-file editing, and inline completion. The speed of grok-build-0.1 is particularly well-suited for real-time completion.
opencode
opencode is a CLI tool (command-line interface) for AI-assisted development. It runs in the terminal without a graphical interface, making it lightweight and fast.
Configuration
Configure opencode via a configuration file or environment variables:
export OPENAI_API_KEY="your-xai-key"
export OPENAI_BASE_URL="https://api.x.ai/v1"
export OPENAI_MODEL="grok-build-0.1"
opencode is ideal for developers who prefer working in the terminal and don’t need a graphical interface to interact with the AI.
Kilo Code
Kilo Code is an open-source VS Code extension for AI-assisted development. Its approach is similar to Cline, focusing on transparency and user control.
Configuration
- Install Kilo Code from the VS Code marketplace
- Open the extension settings
- Configure an OpenAI-compatible provider
- Base URL:
https://api.x.ai/v1 - API Key: your xAI key
- Model:
grok-build-0.1
Kilo Code displays the estimated cost of each interaction and gives fine-grained control over the permissions granted to the agent.
Roo Code
Roo Code (formerly Roo Cline) is a fork of Cline that adds additional features, including support for custom “modes” that define the agent’s behavior (architect, code, debug, etc.).
Configuration
Configuration is identical to Cline:
- Install Roo Code from the VS Code marketplace
- Select an OpenAI-compatible provider
- Base URL:
https://api.x.ai/v1 - API Key: your xAI key
- Model:
grok-build-0.1
Roo Code modes let you adapt grok-build-0.1’s behavior to the task: “architect” mode for design, “code” mode for implementation, and “debug” mode for diagnostics.
Which editor should you choose?
Your choice depends on your workflow and preferences:
- Terminal first → opencode
- VS Code + total control → Cline or Kilo Code
- VS Code + custom modes → Roo Code
- Integrated AI editor → Cursor or Windsurf
- Multi-editor → GitHub Copilot
All these tools work with grok-build-0.1 via the same API. Try a few and stick with the one that best fits your workflow.
Key takeaways
- All these editors use the same configuration: xAI base URL + API key + model
- Windsurf and Cursor are standalone editors with integrated AI
- opencode runs on the command line
- Kilo Code and Roo Code are open-source VS Code extensions
- The choice depends on your workflow, not the model