Skip to main content
Cursor is a VS Code-derived editor with an agent. It can send OpenAI-compatible chat requests to a custom base URL, which is enough to run it on Triw.

Requirements

Install

  1. Download from cursor.com/downloads.
  2. Install and sign in.

Point it at Triw

  1. Open Settings (Cmd/Ctrl + ,) → Models.
  2. Under API Keys, enable OpenAI API Key and paste your sk-... Triw key.
  3. Enable Override OpenAI Base URL and enter:
  1. Click Verify. Cursor sends a test request; a green result means the key and URL are accepted.
  2. Under Model names, add the exact ids from GET /v1/models — for example claude-sonnet-4-5, gpt-4o-mini. Custom ids are not discoverable by Cursor, so they must be typed.

Verify

Open chat, ask a one-line question, then check Logs in the Triw console. A row with your key and model confirms routing.

What is not routed

  • Tab completion and Cursor’s proprietary models stay on Cursor’s infrastructure.
  • Only OpenAI-compatible chat/edit requests use your base URL.

Troubleshooting

Cursor stores API keys in local settings in plain text. Use a dedicated Triw key so you can revoke it without touching other clients.