MandAPI
English ▾
Coding tools

Use MandAPI for chat in Cursor

Set the OpenAI-compatible endpoint in Cursor and start with a supported chat model.

Use this recipe with your coding assistant

Read the prompt
Guide my installed Cursor through a MandAPI chat setup using its application settings. Check that the build exposes API Keys and Override OpenAI Base URL, and whether team policy permits personal keys. Use https://api.mandapi.com/v1 and the exact MandAPI MODEL_ID I choose. Enter the key only in the credential interface, never in the repository or chat. Explain that Tab and some agent features can use Cursor's own service. Preserve previous settings, start a new chat with the selected model, and guide a small read-only example plus the MandAPI usage check. If Cursor's model-name routing selects another credential slot, diagnose it without inventing an upstream alias. Report how to restore the old provider.
TXT

Choose a supported chat model

Cursor's own-key integration is intended for chat models. Tab completion continues using Cursor's built-in service, and a working chat connection does not establish support for every Agent feature. Team policies can restrict personal keys. Cursor's own plan charges may also apply; your MandAPI balance covers the model requests sent to MandAPI.

Select an exact MandAPI model ID that works with OpenAI-compatible Chat Completions and your installed Cursor build. Use that value wherever this guide says MODEL_ID.

Set the endpoint through Cursor's interface

Open Cursor Settings → Models, expand API Keys, and find OpenAI API Key. Enter your MandAPI key privately, enable use of that key, then enable Override OpenAI Base URL.

text
OpenAI API Key: your private MandAPI key
Override OpenAI Base URL: https://api.mandapi.com/v1
Custom model ID: MODEL_ID

Save the settings. Add the exact model ID to Cursor's model list if your version provides an Add model control. These are application settings; editing a project's VS Code JSON is not a documented substitute for the credential interface.

Start a small chat

Restart Cursor, open a new chat and select the configured model rather than Auto. Ask it to explain a short function without editing files. Check the corresponding request in your MandAPI usage dashboard. Then try the particular coding actions you need.

Resolve model and credential errors

If the API Keys section is hidden or requests are rejected by team policy, check with the team administrator. If a request reaches the wrong provider, inspect which credential slot Cursor selects: model-name prefixes can affect that choice. Do not rename a model only in Cursor when MandAPI expects a different exact ID; choose another supported real ID or use the Claude Code recipe for Anthropic routing.

If the custom connection fails, verify the override, key switch and model selection. To return to your previous setup, disable the override and restore the previous selected provider.

References

Topics inspired by public documentation; instructions and examples adapted for MandAPI.