0 tokens
Message history
Linked to current chat

API and Agentic Tool Setup

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

Universal settings

  • Base URL: https://use-ai-production.up.railway.app/v1
  • API key: leave blank if supported, otherwise use any placeholder string.
  • Default model: gpt-5-4
  • Chat endpoint: /chat/completions

Workspace file tools

The 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": "run_python", "path": "src/example.py" },
    { "tool": "preview_project" },
    { "tool": "undo_workspace_change" },
    { "tool": "web_search", "query": "current docs or facts", "limit": 5 }
  ]
}

run_python executes .py workspace files in the browser with Pyodide. The first run downloads the Pyodide runtime, then text workspace files are mounted under /workspace so local imports can resolve when the imported files exist in the workspace.

Endpoint models

Agentic coding tools

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.

Cursor

  1. Open settings for models or custom OpenAI endpoints.
  2. Add the proxy as the OpenAI-compatible base URL.
  3. Use local-proxy-key as the API key if a key is required.
  4. Add model IDs such as gpt-5-4, claude-sonnet-4-6, or gemini-3-pro.

Windsurf

  1. Open Cascade or model provider settings.
  2. Select a custom OpenAI-compatible provider when available.
  3. Set the base URL, placeholder key, and preferred model.

Cline

  1. Open Cline settings in VS Code.
  2. Choose an OpenAI-compatible provider.
  3. Paste the base URL and select or type a model ID.

Claude Code

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"
  }
}

Roo Code

  1. Open provider settings.
  2. Choose OpenAI-compatible or custom OpenAI.
  3. Use the proxy URL, placeholder key, and model ID.

Continue

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"
    }
  ]
}

Aider

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

OpenCode and similar CLIs

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

Custom scripts

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" }]
  })
})

One-Copy Setup

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
Local storage warning Chats, workspace files, and the optional R2 token are saved in this browser only. Anyone using this browser profile may be able to access them.