Cursor can call an OpenAI-compatible address, and Guard serves one. Put the key into the editor's own settings and the built-in agent starts working through Guard.
- Cursor → Settings → Models.
- Scroll past the model list and expand API Keys.
- Paste your
gd-…into OpenAI API Key and turn on the switch next to it. - Turn on Override OpenAI Base URL and set the address below.
https://api.guardrelay.ai/v1Type the id you need into Add or search model and add it, then make sure its switch is on.
| id for Cursor | Context | When to use |
|---|---|---|
claude-sonnet-5-5 | 1M | default |
claude-sonnet-5 | 1M | explicit Sonnet 5 version |
claude-opus-5-5 | 1M | newest Opus: complex code and long agent runs |
claude-opus-5 | 1M | complex code and long agent runs |
claude-opus-4-8 | 1M | the previous flagship |
claude-haiku-5-5 | 1M | newest Haiku: fast and cheap |
claude-haiku-4-5 | 200K | previous Haiku version |
claude-fable-5 | 1M | separate model |
claude-fable-5-1 | 1M | separate model |
Loose spellings such as sonnet-5, opus-5 or Claude-Sonnet-5 are accepted too: the server normalizes them.
| id for Cursor | Context | When to use |
|---|---|---|
k3 | 1M | default: a long history or a large document |
k3-256k | 256K | 262,144-token window; the same base rate as k3 |
kimi-for-coding | 1M | K2.8 Preview: code and tool work |
kimi-for-coding-highspeed | 256K | the separate K2.7 Code HighSpeed model |
Type the id exactly, with no shortening and no spelling of your own: Cursor will not fill in a short form.
Grok 4.7 has eight ids: low, medium, high, xhigh, and Fast are encoded in the full string; the Guard window is 256K. The eight Grok 4.6 ids remain available; Grok 4.5 is removed. Composer has two ids. Copy the full string from Models.
The full table for every family is on the Models page.
New Chat → pick the added model in the list next to the input → send a request. Restarting Cursor is not needed.
The built-in agent works with supported capabilities: long conversations, reading and searching project files, editing and creating code, running terminal commands and showing the output, images and attachments, replies in a strict format. Responses stream, and you can stop and continue them. Image, attachment and strict-format support depends on the selected family and API; for example, Composer does not accept images.
Web search and opening pages by link are done by Cursor on its own and returned to the model — no separate charge for that.
Cursor sends a large service block with every message — tool descriptions and the agent’s working rules. On a confirmed cache hit, this repeated input is charged at the lower cache-read rate.
A sufficiently large first request may write the cache, and later matching requests may read it at a lower rate. Hits and savings are not guaranteed: check cached tokens, tariff and final cost in request history.
Your Cursor subscription pays for the editor. Requests made with your gd-… are charged to the Guard balance and do not count against Cursor limits — see your Guard account.
| What you see | What to do |
|---|---|
The model you chose is not available | That id is not in the Guard catalog. Check the table above or the Models page. |
| An error about a resource that cannot be found | Make sure the address ends with /v1 and has no extra path. |
| An authorization error | The key was not copied in full, or the OpenAI API Key switch is off. |
| A built-in Cursor model answers | In the list next to the input pick the model you added. |
| An old chat behaves as before | Settings apply to new chats — open New Chat. |
- Install Cursor, sign in, and use File → Open Folder to open a separate test folder without secrets.
- Get a Guard key. Availability of Use OpenAI API Key depends on your Cursor plan; Guard documentation does not require buying a new plan.
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.
- Open Cursor Settings → Models. Select Add Custom Model, enter
glm-5.3in Custom model name, and select Add. Addglm-5.3-flashseparately if needed. - Expand API Keys, enter the
gd-…key in OpenAI API Key, and enable Use OpenAI API Key. - Enable Override OpenAI Base URL and enter
https://api.guardrelay.ai/glm/v1without/chat/completions. - Open New Chat and select
glm-5.3beside the input field.
| Cursor field | Value |
|---|---|
| Custom model name | glm-5.3 |
| OpenAI API Key | gd-… |
| Use OpenAI API Key | enabled |
| Override OpenAI Base URL | enabled |
| Base URL | https://api.guardrelay.ai/glm/v1 |
| Final request | POST https://api.guardrelay.ai/glm/v1/chat/completions |
- In a new chat without files, send:
Reply with exactly GLM_OK and remember the word PINE. - In the same chat, send:
What word were you asked to remember?ExpectPINE. - For a project check, open a test
README.md, ask Cursor to read one line, and approve no other actions.
| 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. |
- Cursor with GLM is not yet verified; Agent, tools, and continuation are not claimed here.
- 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
glm-5.3-flash, but PNG, PDF, or MP4 upload through Cursor UI is not confirmed. - 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. |
| API key settings are unavailable | This is a Cursor plan or account restriction. Do not buy a new plan for this guide; use confirmed Cline or VS Code Claude Code instead. |
- Install Cursor, sign in, and use File → Open Folder to open a separate test folder without secrets.
- Get a Guard key. Availability of Use OpenAI API Key depends on your Cursor plan; Guard documentation does not require buying a new plan.
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.
- Open Cursor Settings → Models. Select Add Custom Model, enter
gemini-4-argonin Custom model name, and select Add. Add the other IDs from the table below separately if needed. - Expand API Keys, enter the
gd-…key in OpenAI API Key, and enable Use OpenAI API Key. - Enable Override OpenAI Base URL and enter
https://api.guardrelay.ai/v1without/chat/completions. - Open New Chat and select
gemini-4-argonbeside the input field.
| Cursor field | Value |
|---|---|
| Custom model name | gemini-4-argon |
| OpenAI API Key | gd-… |
| Use OpenAI API Key | enabled |
| Override OpenAI Base URL | enabled |
| Base URL | https://api.guardrelay.ai/v1 |
| Final request | POST https://api.guardrelay.ai/v1/chat/completions |
- In a new chat without files, send:
Reply with exactly GUARD_GEMINI_OK and remember the word PINE. - In the same chat, send:
What word were you asked to remember?ExpectPINE. - For a project check, open a test
README.md, ask Cursor to read one line, and approve no other actions.
| 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. |
- Cursor itself handles files and commands; it sends the chat history 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. |
| API key settings are unavailable | This is a Cursor plan or account restriction. Do not buy a new plan for this guide; use Cline or VS Code with Claude Code instead. |
- Install Cursor, sign in, and use File → Open Folder to open a separate test folder without secrets.
- Get a Guard key. Availability of Use OpenAI API Key depends on your Cursor plan; Guard documentation does not require buying a new plan.
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.
- Open Cursor Settings → Models. Select Add Custom Model, enter
muse-wonder-1.0in Custom model name, and select Add. Add the other IDs from the table below separately if needed. - Expand API Keys, enter the
gd-…key in OpenAI API Key, and enable Use OpenAI API Key. - Enable Override OpenAI Base URL and enter
https://api.guardrelay.ai/v1without/chat/completions. - Open New Chat and select
muse-wonder-1.0beside the input field.
| Cursor field | Value |
|---|---|
| Custom model name | muse-wonder-1.0 |
| OpenAI API Key | gd-… |
| Use OpenAI API Key | enabled |
| Override OpenAI Base URL | enabled |
| Base URL | https://api.guardrelay.ai/v1 |
| Final request | POST https://api.guardrelay.ai/v1/chat/completions |
- In a new chat without files, send:
Reply with exactly GUARD_MUSE_OK and remember the word PINE. - In the same chat, send:
What word were you asked to remember?ExpectPINE. - For a project check, open a test
README.md, ask Cursor to read one line, and approve no other actions.
| 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. |
- Cursor itself handles files and commands; it sends the chat history 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. |
| API key settings are unavailable | This is a Cursor plan or account restriction. Do not buy a new plan for this guide; use Cline or VS Code with Claude Code instead. |
Install Cursor, sign in to your account, and open a project. Get your gd-… key from the Guard bot. Cursor routes GPT-model requests through OpenAI API Key and a Base URL override shared by OpenAI models; this setup uses Chat Completions.
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 |
- Open a test folder without secrets and with a
README.mdthrough File → Open Folder. Then open Cursor Settings → Models. Select Add Custom Model, enter the exactgpt-6-astravalue in Custom model name, then select Add. If that ID is already in the list, do not add it again. - Expand API Keys below. Paste your
gd-…key from the bot into OpenAI API Key. Cursor hides saved keys and showsSecret saved; this is expected. Enable Use OpenAI API Key. - Enable Override OpenAI Base URL and set the displayed Base URL to exactly
https://api.guardrelay.ai/codex/v1, without a trailing slash. Leave the field to save it. - Open New Chat, select
gpt-6-astrabeside the input, and send:Read README.md and explain in two sentences what this test project does. Do not change anything.If Cursor asks for permission, allow only a read of that file. - Continue in the same chat with:
Name one fact from README.md that supports your explanation.Open a new chat for a different task.
| Cursor field | Value |
|---|---|
| Custom model name | gpt-6-astra |
| OpenAI API Key | gd-… |
| Use OpenAI API Key | enabled |
| Override OpenAI Base URL | enabled |
| Base URL | https://api.guardrelay.ai/codex/v1 |
| Final request | POST https://api.guardrelay.ai/codex/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.