Cursor

How It Works

Cursor supports custom providers via the "Override OpenAI Base URL" setting. By pointing it at June's API and providing your June API key, all requests are routed through June's infrastructure. This gives you the same privacy and billing benefits you're used to from June, within a coding agent of your choice.

Setup

  • In Cursor, open Settings and click on Models.
  • Scroll down to the "Api Keys" section, and enable the "Override OpenAI Base URL" setting; use the URL https://api.blockchain.info/ai/api/v1.
  • In the OpenAI API Key setting, paste your June API Key.
  • In the models list, click "Add Custom Model" and paste the exact model ID, e.g. blockchain/june.

Model Selection

You can add any other models you want to use under the "Models" section. See the models guide for the full list of supported models.

Note

Using the June API within Cursor currently only works for open-weights models. If you try to use a proprietary model, e.g. openai/gpt-5.5 or anthropic/claude-opus-4.7, Cursor still sends the request directly to that provider, but may use your June API key, which will break requests.