Cline is a popular agent extension for VS Code. It connects to Guard via the Anthropic provider and accepts a third-party key with no paid restrictions (unlike Cursor).
- Install the Cline extension from the VS Code Marketplace.
- In Cline settings → API Provider → choose Anthropic.
- Enable Use custom base URL and enter
https://api.guardrelay.ai. - API Key — your
gd-…from the bot. - Model —
claude-sonnet-5-5orclaude-opus-5.
| Field | Value |
|---|---|
| API Provider | Anthropic |
| Custom Base URL | https://api.guardrelay.ai |
| API Key | gd-… |
| Model | claude-sonnet-5-5 / claude-opus-5 |
For Kimi in Cline, select k3 or k3-256k. With Anthropic use Custom Base URL https://api.guardrelay.ai and your gd-… key; with an OpenAI-compatible provider use the fields below. In Cline, kimi-for-coding and kimi-for-coding-highspeed may return 403 kimi_agent_not_allowed: use a supported client such as Roo Code or Kilo Code. Do not remove or impersonate the agent name in the system prompt to bypass this restriction.
| Field | Value |
|---|---|
| API Provider | OpenAI-compatible |
| Base URL | https://api.guardrelay.ai/v1 |
| API Key | gd-… |
| Model | k3, k3-256k |
They work through the Anthropic provider (https://api.guardrelay.ai) and through an OpenAI-compatible one (https://api.guardrelay.ai/v1). Put the exact id in Model, for example cursor-grok-4.6-high or composer-2.5.
- Install VS Code and Cline extension version 4.1.20 from Marketplace.
- Open Preferences: Open User Settings (JSON), add the field below, and restart the VS Code window.
- Open a test folder through File → Open Folder.
{
"cline.rollout.bundleOverride": "legacy"
}Get a universal gd-… key from the direct API link in @guardapi and choose an API package. Do not put the key in a project, repository, task prompt, or screenshot. Balance and usage are available in your Guard account.
- Select the gear in Cline and choose OpenAI Compatible under API Provider.
- Set Base URL to
https://api.guardrelay.ai/glm/v1; Cline appends/chat/completionsitself. - Enter the
gd-…key in API Key and manually set Model ID toglm-5.3. - Leave Reasoning Effort and other undocumented fields disabled. If the UI requires an output cap, use a conservative client budget of
4096, not an assumed model limit.
| Cline field | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://api.guardrelay.ai/glm/v1 |
| API Key | gd-… |
| Model ID | glm-5.3 |
| Final request | POST https://api.guardrelay.ai/glm/v1/chat/completions |
- Create a test
README.mdcontainingGUARD_GLM_OKand open a new Cline task. - Send:
Read README.md and reply with exactly GUARD_GLM_OK. Change nothing; approve only file reading. - In the same task, ask for the line again without rereading the file. The answer should retain context.
| Model ID | When to use it |
|---|---|
glm-5.3 | Default model; text and coding tasks. |
glm-5.3-flash | Fast model; at API level it accepts PNG and PDF through all three protocols, and MP4 through Chat Completions only. |
- Streaming Chat, client-side file and terminal tools, and continuation of one task are confirmed.
- The client itself executes file, edit, and terminal tools. This profile does not connect Z.AI tools or MCP automatically.
- The Chat API permits MP4 with Flash and PNG/PDF at API level; Cline attachment buttons were not checked.
- The profile uses OpenAI-compatible Chat Completions. The GLM server prompt is off by default for ordinary API access; client setup does not enable it.
- Native TXT, DOCX, and XLSX are outside the confirmed GLM contract. Use PDF for documents, or PNG with
glm-5.3-flashfor images.
| Symptom | What to check |
|---|---|
401 invalid_api_key | The client received the complete active gd-… key; the variable is set in the same process that starts the client. |
404 model_not_found | The model ID is exactly glm-5.3 or glm-5.3-flash; old GLM IDs, aliases, Turbo, and FlashX are unsupported. |
404 or incorrect path | Base URL is https://api.guardrelay.ai/glm/v1. The client appends /chat/completions; do not add it twice. |
400 invalid_request | The documented API format is selected; reasoning, temperature, MCP, or other unconfirmed fields were not copied from an older profile. |
402 insufficient_balance | Check available balance and unfinished reservations in your Guard account. |
| The request uses another engine | Check Cline 4.1.20 and the user setting cline.rollout.bundleOverride = legacy; SDK-next compatibility is not claimed by this profile. |
- Install VS Code and the Cline extension from Marketplace.
- Open Preferences: Open User Settings (JSON), add the field below, and restart the VS Code window.
- Open a test folder through File → Open Folder.
{
"cline.rollout.bundleOverride": "legacy"
}Get a universal gd-… key from the direct API link in @guardapi and choose an API package. Do not put the key in a project, repository, task prompt, or screenshot. Balance and usage are available in your Guard account.
- Select the gear in Cline and choose OpenAI Compatible under API Provider.
- Set Base URL to
https://api.guardrelay.ai/v1; Cline appends/chat/completionsitself. - Enter the
gd-…key in API Key and manually set Model ID togemini-4-argonor another ID from the table below. - Leave Reasoning Effort and other undocumented fields disabled. If the UI requires an output cap, use a conservative budget of
4096.
| Cline field | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://api.guardrelay.ai/v1 |
| API Key | gd-… |
| Model ID | gemini-4-argon |
| Final request | POST https://api.guardrelay.ai/v1/chat/completions |
- Create a test
README.mdcontainingGUARD_GEMINI_OKand open a new Cline task. - Send:
Read README.md and reply with exactly GUARD_GEMINI_OK. Change nothing; approve only file reading. - In the same task, ask for the line again without rereading the file. The answer should retain context.
| Model ID | Input and window |
|---|---|
gemini-4-argon | Text, images, PDF; 1,048,576-token window, shared by input and answer. |
gemini-3.8-flash | Text, images, PDF; 1,048,576-token window for input. |
- Cline itself executes file and terminal tools; it sends the task history to Gemini with every request.
- The Guard catalog takes text, images, and PDF as input and returns text. How to send a file or an image depends on the client's interface; this guide does not describe attachments.
- The profile uses OpenAI-compatible Chat Completions. The server prompt is a separate setting of the Gemini family: it applies only when the key has the entitlement and the option is on; client setup does not enable it.
| Symptom | What to check |
|---|---|
401 invalid_api_key | The client received the complete active gd-… key; the variable is set in the same process that starts the client. |
404 model_not_found | The model ID is an exact ID from the table above or the short name gemini; other spellings are unsupported. |
404 or incorrect path | Base URL is https://api.guardrelay.ai/v1. The client appends /chat/completions; do not add it twice. |
400 invalid_request | The documented API format is selected; extra settings from an older profile were not copied: reasoning, temperature, MCP, and others. |
402 insufficient_credit | Check available balance and unfinished reservations in your Guard account. |
| The request uses another engine | Check the user setting cline.rollout.bundleOverride = legacy; other engines are not described by this profile. |
- Install VS Code and the Cline extension from Marketplace.
- Open Preferences: Open User Settings (JSON), add the field below, and restart the VS Code window.
- Open a test folder through File → Open Folder.
{
"cline.rollout.bundleOverride": "legacy"
}Get a universal gd-… key from the direct API link in @guardapi and choose an API package. Do not put the key in a project, repository, task prompt, or screenshot. Balance and usage are available in your Guard account.
- Select the gear in Cline and choose OpenAI Compatible under API Provider.
- Set Base URL to
https://api.guardrelay.ai/v1; Cline appends/chat/completionsitself. - Enter the
gd-…key in API Key and manually set Model ID tomuse-wonder-1.0or another ID from the table below. - Leave Reasoning Effort and other undocumented fields disabled. If the UI requires an output cap, use a conservative budget of
4096.
| Cline field | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://api.guardrelay.ai/v1 |
| API Key | gd-… |
| Model ID | muse-wonder-1.0 |
| Final request | POST https://api.guardrelay.ai/v1/chat/completions |
- Create a test
README.mdcontainingGUARD_MUSE_OKand open a new Cline task. - Send:
Read README.md and reply with exactly GUARD_MUSE_OK. Change nothing; approve only file reading. - In the same task, ask for the line again without rereading the file. The answer should retain context.
| Model ID | Input and window |
|---|---|
muse-wonder-1.0 | Text, images, PDF; 1,048,576-token window. |
muse-spark-1.3 | Text, images, PDF; 1,048,576-token window. |
muse-spark-1.2 | Text, images, PDF; 1,048,576-token window. |
- Cline itself executes file and terminal tools; it sends the task history to Muse with every request.
- The Guard catalog takes text, images, and PDF as input and returns text. How to send a file or an image depends on the client's interface; this guide does not describe attachments.
- The profile uses OpenAI-compatible Chat Completions. The server prompt is a separate setting of the Muse family: it applies only when the key has the entitlement and the option is on; client setup does not enable it.
| Symptom | What to check |
|---|---|
401 invalid_api_key | The client received the complete active gd-… key; the variable is set in the same process that starts the client. |
404 model_not_found | The model ID is an exact ID from the table above or the short name muse; other spellings are unsupported. |
404 or incorrect path | Base URL is https://api.guardrelay.ai/v1. The client appends /chat/completions; do not add it twice. |
400 invalid_request | The documented API format is selected; extra settings from an older profile were not copied: reasoning, temperature, MCP, and others. |
402 insufficient_credit | Check available balance and unfinished reservations in your Guard account. |
| The request uses another engine | Check the user setting cline.rollout.bundleOverride = legacy; other engines are not described by this profile. |
For Cline 4.1.20, use the legacy engine and OpenAI Compatible: this profile sends streaming Chat Completions to the Codex family address and carries history within the same task. Get your gd-… key from the Guard bot. This profile makes no SDK-next compatibility claim.
For a connection check, use a plain chat without files and ask “Reply: connection established”. To check project work, create a separate guard-test folder in File Explorer or Finder, open it in your editor, and create README.md containing “This is a Guard test project”. The file-reading example below uses that folder.
| Model ID | Name |
|---|---|
gpt-6-astra | GPT-6 Astra |
gpt-6.1-sol | GPT-6.1 Sol |
gpt-6-sol | GPT-6 Sol |
gpt-6-luna | GPT-6 Luna |
gpt-5.6-sol | GPT-5.6 Sol |
gpt-5.6-terra | GPT-5.6 Terra |
gpt-5.6-luna | GPT-5.6 Luna |
- Install Cline 4.1.20. In VS Code User Settings JSON add
"cline.rollout.bundleOverride": "legacy", restart the window, and open a test folder without secrets and with aREADME.mdthrough File → Open Folder. - Select the settings gear in Cline and choose OpenAI Compatible under API Provider. A Cline account sign-in is not needed for your own Guard key.
- Set Base URL to
https://api.guardrelay.ai/v1. - Paste your
gd-…key from the bot into API Key. Do not put it in a project file or task message. - Choose custom model ID entry under Model ID and enter exactly
gpt-6-astra. If the model list is empty, type the ID manually. Other exact IDs are under Models. - Leave optional Model Configuration numeric limits unchanged. If Reasoning Effort is available, choose only a value listed for that model under Models; otherwise keep its default. Return to the Cline panel.
- Start a new task and send:
Read README.md and explain in two sentences what this test project does. Do not change anything.If Cline asks for permission, allow only a read of that file. - After the reply, send in the same task:
Name one fact from README.md that supports your explanation.Start a new task for a different question.
| Cline field | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://api.guardrelay.ai/v1 |
| API Key | gd-… |
| Model ID | gpt-6-astra |
| Final request | POST https://api.guardrelay.ai/v1/chat/completions |
After checking file reading, you can request a change: “Add a Test section and one descriptive line to README.md.” Review the proposed edit and approve it if it matches your task. Command, file and tool permissions are controlled by the client; connecting Guard does not require granting unrestricted access to your whole computer.