# Connect Cline to WanAPIs

> In Cline for VS Code, choose OpenAI Compatible and point the Base URL at WanAPIs to call GPT, Claude, Gemini and more with one key, paying per token.

Web page: https://wanapi.ai/docs/cline

Cline is an open-source AI coding agent for VS Code that supports OpenAI-compatible endpoints. Point its Base URL at WanAPIs to use models from many providers, paying per token.

## Setup steps

### 1. Get an API key

Create an account in the WanAPIs console and generate an API key starting with sk-. New accounts get free trial credit.

### 2. Choose OpenAI Compatible in Cline

Open Cline settings (gear icon), set API Provider to "OpenAI Compatible" and fill in the Base URL, API key and model ID as below.

**Cline → Settings**

```
API Provider: OpenAI Compatible
Base URL: https://api.wanapis.com/v1
API Key: sk-xxx
Model ID: gpt-5.5
```

### 3. Save and start a task

Save, then start a task from the Cline panel. To switch models, just change the Model ID — see the model marketplace for what's available.

## FAQ

### Should the Base URL include /v1?

Yes. In OpenAI Compatible mode, use https://api.wanapis.com/v1.

### Can I use Claude models?

Yes. Enter the Claude model name and it's called through the OpenAI-compatible endpoint. See the model marketplace for the list.

---

Generated by the WanAPIs website and kept in sync with the web page. All guides in Markdown: https://wanapi.ai/docs/index.md
