bedrock
Amazon Bedrock
Aider can connect to models provided by Amazon Bedrock. You will need to have an AWS account with access to the Bedrock service.
To configure Aider to use the Amazon Bedrock API, you need to set up your AWS credentials. This can be done using the AWS CLI or by setting environment variables.
AWS CLI Configuration
If you haven't already, install the AWS CLI and configure it with your credentials:
This will prompt you to enter your AWS Access Key ID, Secret Access Key, and default region.
Environment Variables
Alternatively, you can set the following environment variables:
You can add these to your .env file.
Running Aider with Bedrock
Once your AWS credentials are set up, you can run Aider with the --model
command line switch, specifying the Bedrock model you want to use:
Available Models
To see some models available via Bedrock, run:
Make sure you have access to these models in your AWS account before attempting to use them with Aider.
More info
For more information on Amazon Bedrock and its models, refer to the official AWS documentation.
Also, see the litellm docs on Bedrock.
Last updated