Skip to main content
Cline is an AI-powered coding assistant. This tutorial demonstrates how to configure Cline to use models provided by W&B Inference. The Cline agent is available as a command line tool or as an integration with many IDEs. This page will show configuration with the Cline CLI and with Cline as a Visual Studio Code extension, but configuration in other IDEs should be similar.

Prerequisites

You will need your W&B API key.

Set up Cline in the command line

Install the Cline CLI.
npm install -g cline
See Cline’s installation instructions for troubleshooting. These instructions were tested with Cline CLI version 2.5.1. You can run cline version to verify what you have installed. Run the following command, substituting <your_api_key> with your W&B API key.
cline auth -k <your_api_key> -p openai -b https://api.inference.wandb.ai/v1 -m moonshotai/Kimi-K2.5
This will configure Cline to use W&B Inference’s OpenAI-compatible endpoint and the Kimi K2.5 model. For model availability and pricing, see our model catalog. Run a simple test to verify everything is working:
cline "What is 2 + 2?"
If Cline responds with an answer, your installation and authentication are complete. For more information on using the Cline CLI, see the Cline Quickstart.

Set up Cline in Visual Studio Code

You can also install Cline as a Visual Studio Code extension. Search for Cline in the VS Code Extensions Marketplace, or install it from the Visual Studio Code Marketplace. Click the Install button.
VS Code extension installation
Click the newly added Cline icon in your Activity Bar to open the Cline sidebar. If the Cline icon is not showing in the Activity Bar, click the dropdown to see more options. VS Code extension installation Select “Bring my own API key” and press the Continue button. Select Bring Your Own Key Specify the following values, substituting <your_api_key> with your W&B API key:
SettingValue
API ProviderOpenAI Compatible
Base URLhttps://api.inference.wandb.ai/v1
OpenAI Compatible API Key<your_api_key>
Model IDmoonshotai/Kimi-K2.5
Pricing can be specified by expanding Model Configuration. For model availability and pricing, see our model catalog. Click the Continue button. Try submitting a prompt like “Write a Python program to compute the first 10 Fibonacci Numbers”. Submit your coding task to the agent For more information on using Cline, see the Cline Documentation.