AICredits logo
Integrations

Cursor

Use AICredits in Cursor by configuring an OpenAI-compatible base URL and AICredits API key for chat, agents, and coding workflows.

Use this page with an AI assistant

Opens a new chat with this docs URL and the correct AICredits base URLs.

Cursor works with AICredits when you use an OpenAI-compatible custom endpoint. This lets Cursor requests route through your AICredits wallet while still using familiar model IDs and chat formats.

Configuration

Open Cursor settings and configure the OpenAI-compatible provider:

SettingValue
API keysk-your-aicredits-key
Base URLhttps://api.aicredits.in/v1
Default modelopenai/gpt-4o-mini or anthropic/claude-sonnet-4.5

Cursor settings change over time. If the labels differ, look for settings named custom OpenAI endpoint, OpenAI base URL, or OpenAI-compatible provider.

Model Choices

Cursor workflowRecommended model
Quick edits and explanationsopenai/gpt-4o-mini
Larger coding changesanthropic/claude-sonnet-4.5
Long context analysisgoogle/gemini-2.5-flash
Cost-sensitive agent runsdeepseek/deepseek-v4-flash

Environment Fallback

If your Cursor setup reads shell variables, use:

export OPENAI_API_KEY="sk-your-aicredits-key"
export OPENAI_BASE_URL="https://api.aicredits.in/v1"

Restart Cursor after changing shell variables.

Verify

Ask Cursor:

Explain this repository in three bullet points.

Then check Dashboard → Usage to confirm the request was billed through AICredits.

Troubleshooting

Cursor still uses another provider — Make sure the selected provider/model in Cursor is the OpenAI-compatible custom provider you configured.

Invalid API key — Use an AICredits key from Dashboard → API Keys.

Model dropdown does not include your model — Use a custom model ID field if available, or choose a model ID listed on Models.

On this page