Requirements
Install
- Download from cursor.com/downloads.
- Install and sign in.
Point it at Triw
- Open Settings (
Cmd/Ctrl + ,) → Models. - Under API Keys, enable OpenAI API Key and paste your
sk-...Triw key. - Enable Override OpenAI Base URL and enter:
- Click Verify. Cursor sends a test request; a green result means the key and URL are accepted.
- Under Model names, add the exact ids from
GET /v1/models— for exampleclaude-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.

