You do not need to put the key in a repository or .claude/settings.local.json. The current extension supports machine-scoped claudeCode.environmentVariables and claudeCode.disableLoginPrompt; the configuration stays on this computer and applies to opened projects.
- Open the Command Palette with
Ctrl/Cmd + Shift + P. - Choose Preferences: Open User Settings (JSON).
- Make sure you are editing User/Machine settings, not the project's
.vscode/settings.json.
{
"claudeCode.disableLoginPrompt": true,
"claudeCode.environmentVariables": [
{ "name": "ANTHROPIC_BASE_URL", "value": "https://api.guardrelay.ai" },
{ "name": "ANTHROPIC_AUTH_TOKEN", "value": "gd-your-key-from-the-bot" }
]
}- File → Open Folder → choose the project.
- Click Trust in the bottom-left (or Trust the authors in the dialog) — otherwise, in Restricted Mode, the Claude Code extension won't start and the panel won't appear.
- Open the Claude Code panel → New session → send a message.
To set the model's behavior and role, create an output style in the same folder.
- Create
.claude/output-styles/my-style.md. - A name block on top, then the system prompt itself:
---
name: my-style
description: My system prompt
---
You are the Guard assistant. Answer concisely.
Always add tests to new code.Activate it in one of two ways:
- in the panel via the
/output-stylecommand → pickmy-style, or - add only the non-secret
"outputStyle": "my-style"to the project's.claude/settings.local.json— then the style turns on automatically when the folder opens:
{
"outputStyle": "my-style"
}The panel is the same Claude Code extension, so the families are the same too: Kimi, Composer and Grok all work on /v1/messages, tools included. The panel takes its model from ANTHROPIC_MODEL, as it has no command-line flag. Full breakdown on the Claude Code page.
For those families inside the same VS Code, use Cline or Roo Code with an OpenAI-compatible provider. 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.
The panel is the same Claude Code extension, so the settings are the same: the Guard address and the key in machine-scoped claudeCode.environmentVariables. The model goes in the same place, as ANTHROPIC_MODEL, because the panel has no command-line flag.
{
"claudeCode.disableLoginPrompt": true,
"claudeCode.environmentVariables": [
{ "name": "ANTHROPIC_BASE_URL", "value": "https://api.guardrelay.ai" },
{ "name": "ANTHROPIC_AUTH_TOKEN", "value": "gd-your-key-from-bot" },
{ "name": "ANTHROPIC_MODEL", "value": "k3" }
]
}If an OpenAI-compatible provider suits you better, Cline and Roo Code run in the same editor. Their fields are these: 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 in the agent settings | Value |
|---|---|
| API Provider | OpenAI-compatible |
| Base URL | https://api.guardrelay.ai/v1 |
| API Key | gd-… from the bot |
| Model | k3, k3-256k, kimi-for-coding or kimi-for-coding-highspeed |
Your own code in the same editor uses the same address. The key can be checked right in the built-in terminal:
curl -X POST https://api.guardrelay.ai/v1/chat/completions \
-H "Authorization: Bearer gd-your-key-from-the-bot" \
-H "Content-Type: application/json" \
-d '{
"model": "k3",
"messages": [{"role": "user", "content": "Hello!"}],
"max_tokens": 128
}'The panel is the same Claude Code extension, so the settings are the same: the Guard address and the key in machine-scoped claudeCode.environmentVariables. The model goes in the same place, as ANTHROPIC_MODEL, because the panel has no command-line flag.
{
"claudeCode.disableLoginPrompt": true,
"claudeCode.environmentVariables": [
{ "name": "ANTHROPIC_BASE_URL", "value": "https://api.guardrelay.ai" },
{ "name": "ANTHROPIC_AUTH_TOKEN", "value": "gd-your-key-from-the-bot" },
{ "name": "ANTHROPIC_MODEL", "value": "cursor-grok-4.6-medium" }
]
}The panel is the same Claude Code extension, so the settings are the same: the Guard address and the key in machine-scoped claudeCode.environmentVariables. The model goes in the same place, as ANTHROPIC_MODEL, because the panel has no command-line flag.
{
"claudeCode.disableLoginPrompt": true,
"claudeCode.environmentVariables": [
{ "name": "ANTHROPIC_BASE_URL", "value": "https://api.guardrelay.ai" },
{ "name": "ANTHROPIC_AUTH_TOKEN", "value": "gd-your-key-from-the-bot" },
{ "name": "ANTHROPIC_MODEL", "value": "composer-2.5" }
]
}The rest is as usual: File → Open Folder, the Trust button in the bottom-left, then the Claude Code panel → New session. In Restricted Mode the extension does not start and the panel does not appear.