Elffuss BraidHub

kikocis/continue public

accessKeyId and secretAccessKey bedrock auth options
Changeset35c0ed0a3308dc4326ffd86d528025d94df5efa8e651e8617c99598dbfeef075
AuthorDallin Romney <dallinromney@gmail.com> · 2025-07-11 00:10 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-07-11 00:10 -07:00
Parents845b4f2ce14e

Browse the files at this changeset

1 file changed

modified docs/customize/model-providers/top-level/bedrock.mdx +35 −0
@@ -186,6 +186,41 @@
186186 aws_session_token = pqrstuvwxyz # Optional: means short term creds.
187187 ```
188188
189+You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication instead of a local credentials profile.
190+
191+<Tabs groupId="config-example">
192+ <TabItem value="yaml" label="YAML">
193+ ```yaml title="config.yaml"
194+ models:
195+ - name: Claude 3.7 Sonnet
196+ provider: bedrock
197+ model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
198+ env:
199+ region: us-east-1
200+ accessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }} # can also enter key inline here for local assistants
201+ secretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # can also enter key inline here for local assistants
202+ roles:
203+ - chat
204+ ```
205+ </TabItem>
206+ <TabItem value="json" label="JSON">
207+ ```json title="config.json"
208+ {
209+ "models": [
210+ {
211+ "title": "Claude 3.7 Sonnet",
212+ "provider": "bedrock",
213+ "model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
214+ "region": "us-east-1",
215+ "accessKeyId": "[YOUR_ACCESS_KEY_ID]",
216+ "secretAccessKey": "[YOUR_SECRET_ACCESS_KEY]"
217+ }
218+ ]
219+ }
220+ ```
221+ </TabItem>
222+</Tabs>
223+
189224 ## Custom Imported Models
190225
191226 To setup Bedrock using custom imported models, add the following to your config file: