Skip to main content
Cline is a VS Code AI coding extension. Connecting to BetterToken requires selecting the OpenAI Compatible provider in the settings UI.

Prerequisites

Install Cline

Search for Cline in the VS Code Extensions marketplace and click Install. After installation, the Cline icon appears in the activity bar.
Use Cline v3.47.0 or later. Restart VS Code and the extension after installation.

Setup

1

Clear conflicting environment variables

unset ANTHROPIC_AUTH_TOKEN
unset ANTHROPIC_BASE_URL
2

Open Cline configuration

Click Use your own API key in the Cline sidebar.
3

Configure the API provider

Fill in the following:
  • API ProviderOpenAI Compatible
  • Base URLhttps://www.bettertoken.com/v1
  • API Key → your BetterToken API Key
  • Modelclaude-sonnet-4-5 (or another supported model)
4

Save

Click Done to apply.
5

Enable Auto-approve (recommended)

In Cline’s Auto-approve settings, check Edit to allow Cline to edit files automatically for a smoother experience.

Supported models

ModelDescription
claude-sonnet-4-5Balanced — recommended
claude-opus-4-5Most capable — complex refactors
claude-haiku-4-5Fastest — quick completions
gpt-4oOpenAI flagship
gpt-4o-miniLightweight, faster