⚙️ Anthropic Provider Setup
Easily integrate Anthropic’s Claude models with Flexpilot, a powerful AI code assistant in VS Code, similar to GitHub Copilot. Here’s a quick guide to get you started!
🔑 Getting API Key
- Go to the Anthropic Console and sign in or create a new account.
- Navigate to API Keys in your settings.
- Click
Create Key
and copy the key immediately — it won’t be visible again!
NOTE
Keep your API key secure! Never share it publicly.
🛠️ Configuration
Access Flexpilot settings from VS Code:
- Press
Ctrl+Shift+P
(Windows) orCmd+Shift+P
(Mac). - Select
Flexpilot: Configure the Language Model Provider
. - Choose
Add New Configuration
. - Select
Anthropic (anthropic-chat)
as the provider.
- Press
Enter a nickname when prompted. Pressing Escape will cancel the model configuration.
Enter your API Key when prompted.
Enter the base URL when prompted. The default value is
https://api.anthropic.com/v1
. Use a different URL value for API calls if required, such as for proxy servers, gateways, etc.Enter the Anthropic Model Name when prompted.
NOTE
Anthropic does not provide an API to get the list of models automatically, so please refer to their documentation here for the correct Anthropic API model name (e.g., claude-3-5-sonnet-20241022
).
📌 Important Notes
- 💳 API Usage: You’re billed per token (input & output). Check Anthropic's pricing for details.
- 💼 Model Selection: Different Claude models may have different pricing tiers.
🚫 Troubleshooting
- API Key Issues: Ensure the API key is correct and active.
- Credit Balance: Verify you have enough balance to use the API.
- Rate Limits: Check if you’ve hit any rate limits for your API usage.
For detailed guidance on API usage, see Anthropic’s API Documentation.