Cline custom API setup guide

Cline and Roo Code are popular VS Code AI coding extensions. Connect either extension to the qionggeme gateway with an OpenAI-compatible Base URL.

Quick configuration

API Provider
OpenAI Compatible
Base URL
https://qionggeme.com/v1
API Key
sk-your API key
Example Model ID
claude-sonnet-4-6
Confirmation
Click Let's go!

Before you begin:

Cline and Roo Code use essentially the same provider setup. The steps below use Cline’s labels.

Setup steps

  1. Open Cline settings

    Click the Cline icon in the VS Code activity bar. First-time users see the API setup screen. If Cline is already configured, click the current API Provider name at the top of the panel to change it.

  2. Choose the API provider

    From the API Provider menu, choose OpenAI Compatible. This option allows a custom Base URL for a third-party gateway.

  3. Enter the Base URL, API key, and model

    • Base URL: https://qionggeme.com/v1 — OpenAI Compatible mode normally requires /v1; never use https://qionggeme.com/docs.
    • API Key: sk-your API key
    • Model: claude-sonnet-4-6 or claude-opus-4-8
  4. Optionally create multiple model profiles

    Cline can save multiple API profiles—for example, Sonnet for routine coding and Opus for difficult tasks. Use exact model IDs from the model pricing page.

  5. Click Let's go! and test the setup

    Click Let's go! to validate the connection. After it succeeds, enter a task such as “Refactor this file” in the chat.

Configuration example

# Cline / Roo Code core settings
API Provider: OpenAI Compatible
Base URL: https://qionggeme.com/v1
API Key: sk-your API key
Model ID: claude-sonnet-4-6
          (or another exact ID from the pricing page)

Troubleshooting

Cline returns 401 Unauthorized or invalid api key

Check the key, set Base URL exactly to https://qionggeme.com/v1, confirm sufficient balance, and verify that the token can use the selected model.

The Base URL works without /v1 in another client but fails here

Cline’s OpenAI Compatible provider expects the OpenAI Base URL, so use https://qionggeme.com/v1. Do not substitute the content site or add /docs.

The model is not found

Use an exact currently available ID from the pricing page or console, such as gpt-5.4 or grok-4.5 when offered.

Cline is about to edit files or run a command I did not expect

Keep confirmation prompts enabled and review each proposed edit or command. Avoid Auto Approve unless you understand and accept the additional risk.

Ready to get started?

Create a qionggeme account, generate an API key, and access every currently available model.

Create an account

Frequently asked questions

Must I choose OpenAI Compatible in Cline?

For a third-party gateway, choose an option that permits a custom Base URL, normally OpenAI Compatible. The official Anthropic option may not allow an alternate endpoint.

Why do I get 401 Unauthorized or invalid api key?

Check the key, use https://qionggeme.com/v1 as the Base URL, confirm sufficient balance, and verify the token’s permission for that model.

What is the difference between Cline and Roo Code?

Roo Code is a community-enhanced fork of Cline with additional modes and features. Their provider configuration is broadly similar.

Can Cline call GPT or Grok models?

Yes. Replace the Model ID with an exact model currently offered, such as gpt-5.4 or grok-4.5.

Is it safe to let Cline edit files and run commands?

Cline normally requests confirmation before file writes or command execution unless Auto Approve is enabled. Keep confirmation enabled and review actions carefully.