API Key Configuration in AI

From the Cursor cheat sheet ยท AI Models & Configuration ยท verified Jul 2026

API Key Configuration

Use your own API keys

bash
# Configure in Cursor Settings > Models

# Supported custom keys:
- OpenAI API key
- Anthropic API key
- Google AI API key
- Azure OpenAI endpoint
- AWS Bedrock credentials

# Configuration steps:
1. Open Cursor Settings (Ctrl+Shift+J)
2. Navigate to Models
3. Enter API key
4. Verify connection

# Notes:
- Keys encrypted, not stored locally
- Custom keys don't support o1/o1-mini
- Usage billed to your account
bash
// EXAMPLE: Azure OpenAI setup
{
  "azure": {
    "endpoint": "https://myorg.openai.azure.com",
    "apiKey": "your-api-key",
    "deployment": "gpt-4"
  }
}

// EXAMPLE: Using custom OpenAI key
Settings > Models > OpenAI
API Key: sk-...
โœ“ Verified and connected
๐Ÿ’ก Use custom keys for unlimited usage
โšก Azure/AWS for enterprise compliance
๐Ÿ” Keys verified before activation
๐Ÿ“Œ Reasoning models require Cursor subscription
apikeysconfiguration

Continue with Cursor

Save the full cheat sheet or work through every related task.

More AI tasks

Back to the full Cursor cheat sheet