Setup guide
Use Cursor with your own API key
Cursor is an AI code editor that lets you bring your own API key for chat and agent features. Connect your KMYAI key and those requests come out of your token balance, with the model choice in your hands.
Setup
Open the Models settings
In Cursor go to Settings → Models.
Enter the key and base URL
Put your KMYAI key in “OpenAI API Key”, turn on “Override OpenAI Base URL” and enter:
Base URLhttps://kmyai.cloud/api/v1Add a model and verify
Use “Add model” to add the model name you want, for example:
Modelclaude-sonnet-5-5Then press Verify. Once it passes, the model appears in the chat and agent menus.
Good to know
- Some Cursor features such as Tab completion use Cursor's own servers; with your own key only chat and agent requests go through it.
- Cursor moves these settings around between versions. If you can't find them, search the settings for “Base URL”.
- The model name must match the name on KMYAI exactly. Current names are on the API page in the app.
- If you regenerate your key you need to update it in Cursor as well.
Alternatives to Cursor
If you want full control with your own key, Cline or Roo Code in VS Code and Claude Code in the terminal are good options. All three use the same KMYAI balance and leave the model choice entirely to you.
Frequently asked questions
Does it work without a Cursor Pro subscription?
You can use chat and agent features with your own API key; which features are available on the free plan is decided by Cursor and can change over time.
Verify fails — why?
Usually the base URL is missing /v1 at the end, or the model name does not match the name on KMYAI. Also check that the key belongs to an account with a balance.
Can I use Claude models in Cursor?
Yes. KMYAI also serves Claude models in the OpenAI-compatible format; add the model name and select it.
Where can I see my usage?
The Usage page on KMYAI lists every request with its model, tokens and cost.
Related pages
Get started
Create a free account, add tokens and start working with the best models.