Set Up Claude or OpenAI API Keys for SQL Studio
1. Create an API key
Claude (Anthropic)
- Sign in to your Anthropic account.
- Create a new API key from your developer settings.
- Copy the key once and store it in a secure password manager.
OpenAI
- Sign in to your OpenAI account.
- Create a new secret key in the API keys area.
- Copy the key once and store it securely.
2. Add the key to SQL Studio
- Open SQL Studio settings for AI provider configuration.
- Select your provider: Claude or OpenAI.
- Paste the API key into the API key field.
- Save settings and run a test action.
3. Recommended security practices
- Do not send keys through chat, email, or source control.
- Rotate keys if you suspect exposure.
- Use provider-side usage limits where available.
- Use separate keys for personal and team workflows.
Troubleshooting
Authentication failed
Re-copy the key and ensure there are no extra spaces before or after the value.
Quota or billing errors
Check your provider billing status and usage limits in the provider dashboard.
Provider mismatch
A Claude key only works with Claude provider settings, and an OpenAI key only works with OpenAI settings.