Use Cline in VS Code with a TeeChat API key

Cline is an open-source coding agent that runs inside Visual Studio Code. You can point it at TeeChat OpenAPI the same way you would WorkBuddy: OpenAI-compatible base URL + a TeeChat API key. You do not need a TeeChat SDK.

Requests are handled inside TeeChat’s confidential computing service: the TLS connection terminates inside measured secure hardware, and user data appears in plaintext only briefly inside that hardware. You can optionally verify OpenAPI. This is the convenient path for IDE agents. TeeChat’s own chat app uses a stronger, app-native confidential path when you need that product experience — the two are complementary, not the same.

TeeChat prep matches setting up WorkBuddy. Use a dedicated key labeled for Cline so you can revoke it without affecting other tools.

Use this chat model id exactly: Qwen/Qwen3.8-27B.


When to use OpenAPI

Use TeeChat OpenAPI when…Prefer TeeChat chat when…
Your tool only needs a base URL + API keyYou want the full TeeChat app experience
You integrate agents, IDEs, or RAG stacksYou want conversations in your own folders
You want an OpenAI-compatible backend on confidential hardwareYou want in-app verification of conversation encryption

Before you start

  1. You are signed in to TeeChat (or you will create an account first).
  2. You can install VS Code on this machine.
  3. You will create a dedicated TeeChat API key labeled for Cline.

1. Install VS Code

Download and install Visual Studio Code from https://code.visualstudio.com/. Open it once so Extensions can run.


2. Install the Cline extension

In VS Code:

  1. Open Extensions (Ctrl+Shift+X / Cmd+Shift+X).
  2. Search for Cline.
  3. Install Cline by Cline (publisher Cline / marketplace id saoudrizwan.claude-dev).
  4. Reload the window if VS Code asks you to.

Cline’s own provider notes: OpenAI Compatible.


3. Create an API key in TeeChat

Open TeeChat (desktop or web) → Settings → General → Account → API keys.

TeeChat Settings: Account → API keys

  1. Enter a label such as cline.
  2. Click Create key.
  3. After creation, the full sk-… is shown once in the settings panel — click Copy, store it somewhere safe, confirm you saved it, then click Done.

TeeChat: the full API key is shown only once — copy and save it

The full key is shown only once. The server does not keep recoverable plaintext; if you did not save it in time, it cannot be read again — revoke it and generate a new one.

Usage from all keys on the same account shares one token pool; using separate keys lets you revoke one key without affecting the others.


4. Open Cline and choose Bring my own API key

Click the Cline icon in the VS Code Activity Bar (sidebar) to open the Cline panel.

On first launch, Cline asks how you want to connect models. Choose Bring my own API key (not Cline’s hosted plan). That opens API settings.

If you already skipped that screen: click the gear in the Cline panel, or the API Provider dropdown under the chat area.


5. OpenAI Compatible — Base URL and key

In API settings:

  1. Set API Provider to OpenAI Compatible.
  2. Fill in the fields to match this table:
FieldValue
Base URLhttps://openapi.teechat.ai/v1
API KeyThe TeeChat sk-… you saved
Model IDQwen/Qwen3.8-27B
Context window (if shown)65536 on Standard · 262144 on Pro / Pro+ / Team (engine window; not an SLA)
Azure IdentityLeave off
Image support / Computer UseLeave off until you confirm the model supports that path

Use the base URL …/v1. Cline appends chat (and related) paths for you. The key stays in Cline’s local VS Code settings on this machine.

Save (and Verify if Cline shows that button).


6. Send a short test

In the Cline chat, send a short message (for example, “Reply with the single word pong.”).

A normal reply means the integration works. You can then give Cline agent tasks (read/edit files, run commands).


Practical tips


Security notes


Also: WorkBuddy and OpenClaw

The same TeeChat OpenAPI backend works in other OpenAI-compatible tools:


Revision log

  1. Chat model id → Qwen/Qwen3.8-27B

← All posts