Use Tresor with Cursor

Add a custom model in Cursor and point its OpenAI-compatible settings at the Tresor API.

Cursor can route its OpenAI-compatible chat requests through Tresor. The working setup is: add a custom model first, then enable the OpenAI API key and base URL rows with your Tresor credentials.

If you value full confidentiality, we don't recommend using Cursor, even with Tresor. Cursor's BYOK docs state that requests using your own API key are still routed through Cursor's backend for final prompt building, and tab completion continues using Cursor's built-in models. So even with Tresor as your inference provider, Cursor will still be able to see the majority of your prompts and completions. If you want to use Tresor with a local coding agent, we recommend OpenCode instead, which can be configured to run fully locally with no telemetry.

1. Add a Tresor model

In Cursor, open Settings and click Add Custom Model.

Enter any Tresor model id from the models reference, for example eu/privatemode/kimi-k2.6, and make sure the switch on that model row is green.

2. Enable the OpenAI API key and base URL

In the same settings page, expand API Keys.

  • Turn on OpenAI API Key and paste your Tresor API key.
  • Turn on Override OpenAI Base URL and enter https://api.tresor.co/v1.
  • Make sure both rows stay active.
OpenAI API key: tr-...
Override OpenAI Base URL: https://api.tresor.co/v1

3. Select the model in Chat or Agent

Open Cursor Chat or Agent and pick the custom model you just added.

Once selected, Cursor sends that model's OpenAI-compatible chat requests through Tresor.

See also