Tool Setup
Connect each tool with the gateway path it expects, then send one small test request before real work.
Start with these three values
Every setup starts with:
- gateway URL
- Prysm API key
- exact model name exposed by your gateway
Use the exact model name shown in model marketplace or Model Routes. Tool UIs often show a display label and a request model name separately.
Choose the right setup path
The gateway supports multiple protocol shapes. The tool determines which path you should use.
| Tool | Base URL / Env Value | Auth | Protocol | Best for |
|---|---|---|---|---|
| Cursor | {{BASE_URL}}/cursor | Cursor OpenAI API Key field | Cursor passthrough | Ask, Plan |
| Claude Code | ANTHROPIC_BASE_URL={{BASE_URL}} | ANTHROPIC_AUTH_TOKEN | Anthropic /v1/messages via gateway translation | Terminal coding workflows |
| OpenAI Codex CLI | OPENAI_BASE_URL={{BASE_URL}} | OPENAI_API_KEY | OpenAI /responses via gateway translation | Codex CLI agent workflows |
| OpenCode | {{BASE_URL}}/v1 | OpenCode provider key | OpenAI-compatible /v1 | Multi-model terminal workflows |
| Cline | {{BASE_URL}} | OpenAI Compatible key field | OpenAI-compatible | VS Code Chat, Plan, Agent |
| VS Code / Continue | {{BASE_URL}} | OpenAI-compatible API key | OpenAI-compatible | VS Code assistant workflows |
| GitHub Copilot | VS Code proxy override URL = {{BASE_URL}} | editor session auth | OpenAI-compatible proxy override | Inline completions, chat |
| Gemini CLI | GOOGLE_GEMINI_BASE_URL={{BASE_URL}} | GEMINI_API_KEY | Gemini CLI via gateway routing | Gemini-style terminal workflows |
| Qwen Code CLI | OPENAI_BASE_URL={{BASE_URL}} | OPENAI_API_KEY | OpenAI-compatible | Qwen-style terminal workflows |
| Open WebUI | connection URL = {{BASE_URL}} | Prysm API key | OpenAI-compatible backend | Team chat workspace |
| Retool Assist | custom provider base URL = public {{BASE_URL}} | Prysm API key | OpenAI-compatible custom provider | AI-assisted internal app building |
| OpenClaw | provider base URL = {{BASE_URL}} | Prysm API key | OpenAI-compatible provider backend | Chat app assistants and agents |
| SDK / Curl | {{BASE_URL}} or full endpoint | Bearer key | OpenAI-compatible | App integration, validation |
Common validation first
Run one request before opening any coding tool. This confirms that the key, model, and gateway path are all valid.
Python SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_PROXY_KEY",
base_url="{{BASE_URL}}",
)
response = client.chat.completions.create(
model="MODEL_NAME",
messages=[
{"role": "user", "content": "Reply with the word connected."}
],
)
print(response.choices[0].message.content)
JavaScript SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_PROXY_KEY",
baseURL: "{{BASE_URL}}",
});
const response = await client.chat.completions.create({
model: "MODEL_NAME",
messages: [{ role: "user", content: "Reply with the word connected." }],
});
console.log(response.choices[0].message.content);
Curl
curl {{CHAT_COMPLETIONS_URL}} \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_PROXY_KEY" \
-d '{
"model": "MODEL_NAME",
"messages": [
{"role": "user", "content": "Reply with the word connected."}
]
}'
Cursor
Cursor uses the gateway's /cursor path. The current verified integration supports Ask and Plan modes with Prysm API keys.
- Open Cursor → Settings → Cursor Settings → Models.
- Fill in OpenAI API Key with your Prysm API key.
- Enable Override OpenAI Base URL and set it to
{{BASE_URL}}/cursor. - Click Add Custom Model.
- Paste the Public Model Name from Model Routes.
- Open Ask or Plan and select that model.
First test
Send a short message in Ask mode such as Reply with: Cursor connected.
Known behavior
- Ask and Plan are the primary path for custom key setups.
- Agent mode follows Cursor's own custom key support boundaries.
- A
Model not respondingerror usually means the URL is missing/cursoror the key lacks model access.
Claude Code
Claude Code sends Anthropic Messages API requests. The gateway translates that format to the target provider.
Environment variables
export ANTHROPIC_BASE_URL="{{BASE_URL}}"
export ANTHROPIC_AUTH_TOKEN="YOUR_PROXY_KEY"
export ANTHROPIC_MODEL="MODEL_NAME"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="MODEL_NAME"
export ANTHROPIC_DEFAULT_OPUS_MODEL="MODEL_NAME"
export ANTHROPIC_DEFAULT_SONNET_MODEL="MODEL_NAME"
export ANTHROPIC_REASONING_MODEL="MODEL_NAME"
Optional config file path
- macOS / Linux:
~/.claude/settings.json - Windows:
C:\Users\your-user-name\.claude\settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "{{BASE_URL}}",
"ANTHROPIC_AUTH_TOKEN": "YOUR_PROXY_KEY",
"ANTHROPIC_MODEL": "MODEL_NAME",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "MODEL_NAME",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "MODEL_NAME",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "MODEL_NAME",
"ANTHROPIC_REASONING_MODEL": "MODEL_NAME"
}
}
First test
Validate the protocol before opening Claude Code:
curl -X POST {{BASE_URL}}/v1/messages \
-H "Authorization: Bearer YOUR_PROXY_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "MODEL_NAME",
"max_tokens": 128,
"messages": [
{"role": "user", "content": "Reply with the word connected."}
]
}'
Start Claude Code with the same model:
claude --model MODEL_NAME
Responses API note
Recent gateway builds route /v1/messages through /responses by default. This is the recommended forward path.
If your Claude Code request reaches Prysm and still fails at the model layer, ask your Prysm administrator to check the gateway's Anthropic compatibility mode.
gateway_settings:
use_chat_completions_url_for_anthropic_messages: true
This setting is useful for provider combinations that need chat-completions compatibility behind the gateway.
OpenAI Codex CLI
OpenAI Codex CLI uses the gateway root URL with standard OpenAI-compatible auth variables.
Version note
Use a gateway build that already supports /responses routing for Codex workflows.
Environment variables
export OPENAI_BASE_URL="{{BASE_URL}}"
export OPENAI_API_KEY="YOUR_PROXY_KEY"
Gateway readiness
Codex works best when Prysm already has:
/responsessupport enabled- a stable public model name for Codex to select
- a gateway configuration that already matches Codex's parameter shape
Ask your Prysm administrator to confirm this if Codex connects to Prysm and still fails before generation starts.
First test
codex --model gpt-5
Responses API note
Codex is the clearest place to think in /responses terms. The gateway's /responses support covers streaming, logging, cost tracking, get, delete, and provider bridging across supported models.
OpenCode
OpenCode works best with the OpenAI-compatible /v1 base.
Configuration file
Global config usually lives at:
~/.config/opencode/opencode.json
Sample config:
{
"provider": {
"prysm": {
"npm": "@ai-sdk/openai-compatible",
"name": "Prysm",
"options": {
"baseURL": "{{BASE_URL}}/v1"
},
"models": {
"gpt-5": {
"name": "GPT-5"
},
"claude-sonnet-4-6-stable": {
"name": "Claude Sonnet 4.6"
}
}
}
}
}
Connect and test
opencode
Inside OpenCode:
/connect
Then:
- provider name:
Prysm - API key: your Prysm API key
After that:
/models
Select one configured model and send a short test prompt.
Cline
Cline works through OpenAI Compatible mode and uses the gateway root path.
- Open the project folder in VS Code.
- Open Cline in VS Code.
- Open settings in the Cline panel.
- Select OpenAI Compatible as the provider.
- Fill in:
- Base URL:
{{BASE_URL}} - API Key:
YOUR_PROXY_KEY - Model ID:
MODEL_NAME
- Base URL:
- Save and start a chat or plan flow.
First test
Use a short prompt such as Reply with: Cline connected.
Verified path
Our internal validation has shown the smoothest Cline experience on OpenAI-compatible models and gateway-exposed domestic models that already pass the base curl test.
VS Code / Continue
Continue works cleanly when the model config uses an OpenAI-compatible provider for gateway-backed models. This keeps the requested model name aligned with the model identity returned by the gateway.
Add or update a model entry with:
- provider: OpenAI-compatible
- base URL:
{{BASE_URL}} - API key:
YOUR_PROXY_KEY - model:
MODEL_NAME
First test
Open the same VS Code workspace folder you want Continue to edit, then send a short prompt such as Reply with: Continue connected.
Setup notes
- Use OpenAI-compatible config for non-Claude gateway models.
- Keep Anthropic-specific config for real Claude-family model routes.
- Open a VS Code workspace folder before asking Continue, Cline, or another extension to create or edit files.
More supported tools
The gateway also works with several other tools that use OpenAI-compatible, Gemini-style, or editor proxy override flows.
GitHub Copilot
GitHub Copilot can route through the gateway by overriding the proxy URL in the editor settings.
Add this to VS Code settings.json:
{
"github.copilot.advanced": {
"debug.overrideProxyUrl": "{{BASE_URL}}",
"debug.testOverrideProxyUrl": "{{BASE_URL}}"
}
}
First test
Restart VS Code, open Copilot Chat, and send a short message such as Reply with: Copilot connected.
Gemini CLI
Gemini CLI works through environment variables that point it to the gateway.
export GOOGLE_GEMINI_BASE_URL="{{BASE_URL}}"
export GEMINI_API_KEY="YOUR_PROXY_KEY"
Start the CLI:
gemini
Model routing note
Gemini CLI is the cleanest fit for Gemini-family model names. If you want Gemini CLI to use another provider behind Prysm, ask your Prysm administrator to expose a compatible model alias for the CLI to call.
First test
Run a short prompt such as Reply with: Gemini connected.
Qwen Code CLI
Qwen Code CLI uses the standard OpenAI-compatible environment variables.
export OPENAI_BASE_URL="{{BASE_URL}}"
export OPENAI_API_KEY="YOUR_PROXY_KEY"
export OPENAI_MODEL="qwen-code"
Start the CLI:
qwen
Model routing note
Qwen Code CLI works best when Prysm exposes a stable public model name such as qwen-code or another exact alias for the CLI to request. Ask your Prysm administrator to confirm the exact model name if needed.
First test
Run a short prompt such as Reply with: Qwen connected.
Open WebUI
Open WebUI connects through a standard backend connection.
In Settings → Connections, create a new connection with:
- URL:
{{BASE_URL}} - Key:
YOUR_PROXY_KEY
First test
Open the model selector, choose a gateway-exposed model, and send a short message such as Reply with: Open WebUI connected.
Good fit
Open WebUI is a strong fit for shared chat access, model comparison, and light internal rollout before a team adopts editor-native tools.
Retool Assist
Retool Assist connects through a custom AI provider.
Hosted Retool requires a public URL. A local localhost gateway URL only works for self-hosted or locally bridged Retool setups.
If you only have an internal Prysm address, ask your Prysm administrator for the public URL that Retool can reach.
In Retool, create a custom AI provider with:
- Provider Schema:
OpenAI - Base URL: public
{{BASE_URL}} - API Key:
YOUR_PROXY_KEY - Model: exact public model name exposed by the gateway
First test
Open Retool Assist or an AI resource query and send a short prompt such as Reply with: Retool connected.
Good fit
Retool Assist is a strong fit for teams that build internal tools and want one governed AI backend for app generation, editing, and query assistance.
OpenClaw
OpenClaw connects chat channels and agents to the gateway through its onboarding flow.
Run onboarding:
openclaw onboard --install-daemon
During setup:
- choose the gateway-backed provider option
- set the base URL to
{{BASE_URL}} - enter
YOUR_PROXY_KEY - enter the exact model name exposed by the gateway
First test
After onboarding, verify with:
openclaw health
openclaw agent --agent main -m "Reply with: OpenClaw connected"
Good fit
OpenClaw is a strong fit when you want one gateway-backed model layer behind WhatsApp, Telegram, Discord, and other chat surfaces.
SDK and endpoint reference
Use these values when a tool asks for a full endpoint instead of a base URL:
- base URL:
{{BASE_URL}} - chat completions URL:
{{CHAT_COMPLETIONS_URL}} - embeddings URL:
{{EMBEDDINGS_URL}} - Anthropic messages URL:
{{BASE_URL}}/v1/messages - Cursor base URL:
{{BASE_URL}}/cursor - VS Code extension OpenAI-compatible base URL:
{{BASE_URL}} - OpenCode
/v1base URL:{{BASE_URL}}/v1
Troubleshooting checklist
- Confirm the tool is using the correct protocol path for that tool.
- Confirm the key has access to the selected model.
- Confirm the model name matches the gateway-exposed name exactly.
- Send one direct test request with curl or SDK before debugging the tool UI.
- Open the target VS Code workspace folder before file edits.
- Use OpenAI-compatible mode in VS Code extensions for gateway-backed non-Claude models.
- Check Logs with the request time to separate key, model, route, and upstream provider errors.