Cline is an open-source autonomous coding agent that runs as an IDE extension (VS Code / Cursor / JetBrains and more) or as a CLI. It reads files, writes code and runs commands with your approval on each step, and supports any OpenAI-compatible endpoint — good for engineers who want to bring their own model access inside their editor.
base_url or *_BASE_URL setting./v1 for anything speaking the OpenAI wire (/v1/chat/completions).GET /v1/models.Skip it — one-line setup
The script installs Cline from its official source, writes the gateway settings into the
tool's own config file (backing up any existing one) and runs a live check. It asks for your gateway key, or
take it from --key / --key-file. --uninstall restores exactly what it wrote.
curl -fsSL https://quantoport.com/agents/cline/setup | bash
1 · Install
Install Cline from its own official source.
Install the "Cline" extension from the VS Code / Cursor / Windsurf / JetBrains marketplace; CLI route: npm install -g cline
2 · Configure — point it at QuantoPort
Gateway base URL https://quantoport.com; get your key from the console.
IDE extension: open Cline settings (gear icon) -> API Provider = "OpenAI Compatible" -> Base URL = https://quantoport.com/v1 -> API Key = your key -> Model = <model-id> -> click Verify. CLI: cline auth -p openai-compatible -k "YOUR_API_KEY" -b "https://quantoport.com/v1" -m "<model-id>" On the China endpoint use https://api.shinlinkai.com/v1 for the Base URL / -b (OpenAI wire only). Provider settings are stored in ~/.cline/data/settings/providers.json.
3 · Verify
One request proves you are on our channel.
cline "reply with OK"
4 · Common pitfalls
- Do not use the official https:
//api.openai.com/v1as the Base URL, or requests will not hit our gateway. - The CLI needs
Node.js20+ (22 recommended); the provider id is openai-compatible (the default is cline). - If context length, images or tool calling misbehave, set Context Window, Image Support and Computer Use manually in Model Configuration.
- Use
CLINE_DIR(or--config) to relocate the config directory andCLINE_DATA_DIRto relocate the data directory.
Sources for the tool-side steps: docs.cline.bot/provider-config/openai-compatible docs.cline.bot/cli/cli-reference docs.cline.bot/getting-started/config docs.cline.bot/sdk/model-providers