Skip to content

Anthropic ​

This guide introduces how to configure and use the Anthropic Claude model in Aide.

You can find more detailed information in the Anthropic Claude Official Reference Documentation.

API Base URL Configuration ​

You need to configure aide.openaiBaseUrl to anthropic@https://api.anthropic.com

Note

Since the Anthropic interface is not compatible with the OpenAI interface specification, you need to add anthropic@ as a prefix in the URL. This is a very important configuration, so please ensure it is set correctly.

API Key Configuration ​

You need to configure aide.openaiKey as your Anthropic Claude API Key.

Model Configuration ​

You need to configure aide.openaiModel to the Anthropic Claude model. We recommend using the claude-3-5-sonnet-20240620 model. For more models, please refer to the Model List Documentation.

Example Configuration File ​

Below is a complete configuration example:

json
{
  "aide.openaiBaseUrl": "anthropic@https://api.anthropic.com",
  "aide.openaiKey": "your-anthropic-api-key",
  "aide.openaiModel": "claude-3-5-sonnet-20240620"
}

Make sure to replace "your-anthropic-api-key" with your actual API Key.

Released under the MIT License.