Bedrock allows Claude models to cache tool payloads, system messages, and chat
messages between requests. Enable this behavior by adding
promptCaching: true under defaultCompletionOptions in your model
configuration.
Authentication will be through temporary or long-term credentials in
~/.aws/credentials under a configured profile (e.g. “bedrock”).
Copy
Ask AI
[bedrock]aws_access_key_id = abcdefgaws_secret_access_key = hijklmnoaws_session_token = pqrstuvwxyz # Optional: means short term creds.
You can also use an AWS accessKeyId and secretAccessKey for authentication instead of a local credentials profile.
config.yaml
Copy
Ask AI
models: - name: <MODEL_NAME> provider: bedrock model: <MODEL_ID> env: region: us-east-1 accessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }} # can also enter key inline here for local assistants secretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # can also enter key inline here for local assistants roles: - chat