Cursor
- Open settings for models or custom OpenAI endpoints.
- Add the proxy as the OpenAI-compatible base URL.
- Use
local-proxy-keyas the API key if a key is required. - Add model IDs such as
gpt-5-4,claude-sonnet-4-6, orgemini-3-pro.
This proxy is OpenAI-compatible. Use the base URL below with any API key value unless your tool refuses an
empty key. In that case, use a placeholder such as local-proxy-key.
https://use-ai-production.up.railway.app/v1
https://use-ai-production.up.railway.app/v1gpt-5-4/chat/completionsThe browser workspace gives any selected model a simple filesystem it can use during chat. The model can request tools by returning JSON. The app runs the tools, sends the results back to the model, and then the model continues its answer.
{
"workspace_tools": [
{ "tool": "list_files" },
{ "tool": "get_file_tree" },
{ "tool": "get_context" },
{ "tool": "list_attachments" },
{ "tool": "search_files", "query": "button", "regex": false },
{ "tool": "read_file", "path": "src/example.js" },
{ "tool": "read_file_chunk", "path": "src/example.js", "start_line": 1, "line_count": 120 },
{ "tool": "save_file", "path": "src/example.js", "content": "console.log('hello');", "project": "optional project name" },
{ "tool": "write_file", "path": "src/example.js", "content": "console.log('hello');", "project": "optional project name" },
{ "tool": "apply_patch", "path": "src/example.js", "find": "old text", "replace": "new text" },
{ "tool": "replace_all", "path": "src/example.js", "find": "old", "replace": "new" },
{ "tool": "append_file", "path": "README.md", "content": "\nMore notes." },
{ "tool": "prepend_file", "path": "README.md", "content": "# Title\n\n" },
{ "tool": "delete_file", "path": "old-file.txt" },
{ "tool": "delete_folder", "path": "old-folder" },
{ "tool": "save_attachment", "attachment_id": "id", "path": "uploads/file.txt" },
{ "tool": "describe_image", "attachment_id": "id", "prompt": "Describe this UI screenshot." },
{ "tool": "run_check", "path": "src/example.js" },
{ "tool": "preview_project" },
{ "tool": "undo_workspace_change" },
{ "tool": "web_search", "query": "current docs or facts", "limit": 5 }
]
}
Exact menu labels change across versions. The setup pattern is the same: choose an OpenAI-compatible, custom, or local provider, then enter the proxy base URL, a placeholder API key, and a model ID.
local-proxy-key as the API key if a key is required.gpt-5-4, claude-sonnet-4-6, or gemini-3-pro.Claude Code needs an Anthropic Messages-compatible gateway. Use this only if your proxy/gateway supports Claude Code traffic:
{
"env": {
"ANTHROPIC_BASE_URL": "https://use-ai-production.up.railway.app",
"ANTHROPIC_AUTH_TOKEN": "local-proxy-key",
"ANTHROPIC_MODEL": "claude-sonnet-4-6"
}
}
Add a model entry using an OpenAI-compatible provider:
{
"models": [
{
"title": "Proxy GPT-5.4",
"provider": "openai",
"model": "gpt-5-4",
"apiBase": "https://use-ai-production.up.railway.app/v1",
"apiKey": "local-proxy-key"
}
]
}
Use OpenAI-compatible settings. If your shell or version uses different names, map them to the same values:
OPENAI_API_BASE=https://use-ai-production.up.railway.app/v1
OPENAI_API_KEY=local-proxy-key
aider --model gpt-5-4
Choose a custom OpenAI-compatible provider and set these fields:
baseURL: https://use-ai-production.up.railway.app/v1
apiKey: local-proxy-key
model: gpt-5-4
Any OpenAI-compatible script can call chat completions directly:
fetch("https://use-ai-production.up.railway.app/v1/chat/completions", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer local-proxy-key"
},
body: JSON.stringify({
model: "gpt-5-4",
messages: [{ role: "user", content: "Hello" }]
})
})
For quick setup, copy this single block into your coding tool or notes.
OpenAI-compatible API setup
Base URL: https://use-ai-production.up.railway.app/v1
API key: local-proxy-key
Default model: gpt-5-4
Chat endpoint: /chat/completions
Available model IDs:
gpt-5-5
gpt-5-4
gpt-5-3
gpt-5-1
gpt-5
gpt-5-mini
gpt-4o
gpt-4o-mini
claude-opus-4-8
claude-opus-4-7
claude-opus-4-6
claude-opus-4-5
claude-opus-4-1
claude-sonnet-4-6
gemini-3-1-pro
gemini-3-pro
gemini-3-flash
gemini-2.5-flash
deepseek-v4-pro
deepseek-v4-flash
deepseek-r1
grok-4
qwen-3-max
qwen-3-5-397b
kimi-k2-6
deepinfra-kimi-k2
llama-3-3-70b-versatile