How do I change Cursor's AI model settings?
Accessing AI Model Settings
Open Cursor's Settings by pressing Ctrl+, (Cmd+, on Mac) or by clicking the gear icon in the bottom left corner. Then navigate to the 'AI' section.
Here you'll find options for the default AI model used for features like Chat, Edit, and Code Generation. You can choose from models like GPT-4, GPT-3.5, Claude, and others.
The available models may depend on your subscription plan. Free users typically have access to a limited set, while Pro users get more options.
Selecting and Configuring Models
Use the dropdown menus to select the model for each feature. For example, you might want a faster model for autocomplete and a more powerful one for chat.
You can also set a custom model by providing an API key from OpenAI or other providers. This allows you to use models not officially supported by Cursor.
Some models have additional settings like temperature or max tokens. These can usually be adjusted in the same settings area or via a configuration file.
Model Availability and Pricing
Cursor offers different models based on your plan. The free tier includes access to basic models, while the Pro plan (around $20/month) unlocks advanced models like GPT-4.
If you use your own API key, you'll be billed directly by the provider (e.g., OpenAI) based on usage. Cursor itself doesn't charge for that.
Model availability can change over time as new models are released and old ones deprecated. Check Cursor's documentation or settings for the latest options.
Common mistakes
- Thinking you can use any model for free; some require a Pro subscription or your own API key.
- Assuming model settings apply globally; you can often set different models for different features.
- Forgetting that using your own API key may incur costs from the provider, not Cursor.
