PageSourceSearch

https://kilo.ai/docs/_next/static/chunks/pages/ai-providers/bedrock-f00d277f3f957194.js

js kilo.ai collected 2026-09-24 08:57:37 UTC 9,312 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3912],{8018:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>f,default:()=>y,markdoc:()=>m});var r=n(11872),i=n(12863),o=n(92130),a=n(9760),s=n(90102),d=n(89966),c=n(48059);let l={tags:(0,a.X)(s),nodes:(0,a.X)(d),functions:(0,a.X)(c),...(0,a.X)({})},p=new o.Ay.Tokenizer({allowComments:!0}).tokenize('---\ntitle: "Using AWS Bedrock with Kilo Code"\ndescription: "Configure AWS Bedrock in Kilo Code to access Claude, Llama, and other foundation models through your AWS account."\nsidebar_label: AWS Bedrock\n---\n\n# Using AWS Bedrock With Kilo Code\n\nKilo Code supports accessing models through Amazon Bedrock, a fully managed service that makes a selection of high-performing foundation models (FMs) from leading AI companies available via a single API. This provider connects directly to AWS Bedrock and authenticates with the provided credentials.\n\n**Website:** [https://aws.amazon.com/bedrock/](https://aws.amazon.com/bedrock/)\n\n## Prerequisites\n\n- **AWS Account:** You need an active AWS account.\n- **Bedrock Access:** You must request and be granted access to Amazon Bedrock. See the [AWS Bedrock documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started.html) for details on requesting access.\n- **Model Access:** Within Bedrock, you need to request access to the specific models you want to use (e.g., Anthropic Claude).\n- **AWS CLI (profile authentication only):** If you plan to use an AWS profile, install AWS CLI and configure your credentials:\n  ```bash\n  aws configure\n  ```\n\n## Getting Credentials\n\nYou have three options for configuring AWS credentials:\n\n1.  **Bedrock API Key:**\n    - Create a Bedrock-specific API key in the AWS Console. This is a simple service-specific authentication method.\n    - See the [AWS documentation on Bedrock credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_bedrock.html) for instructions on creating an API key.\n2.  **AWS Access Keys:**\n    - Create an IAM user with the necessary permissions (at least `bedrock:InvokeModel`).\n    - Generate an access key ID and secret access key for that user.\n    - _(Optional)_ Create a session token if required by your IAM configuration.\n3.  **AWS Profile:**\n    - Configure an AWS profile using the AWS CLI or by manually editing your AWS credentials file. See the [AWS CLI documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) for details.\n\n## Configuration in Kilo Code\n\n{% tabs %}\n{% tab label="VSCode" %}\n\n1. Open **Settings** and select **Providers**.\n2. Find **Amazon Bedrock** and select **Connect**.\n3. Choose an authentication method:\n   - **AWS access keys:** Enter the AWS access key ID, AWS secret access key, optional AWS session token, and AWS region.\n   - **Bedrock API key:** Enter a Bedrock API key.\n4. Select **Submit**.\n\nThe extension stores these credentials in Kilo\'s credential store, not in `kilo.json`.\n\n{% /tab %}\n{% tab label="CLI" %}\n\nBedrock supports a Bedrock API key or the AWS credentials chain.\n\n**Bedrock API key:**\n\n```bash\nexport AWS_BEARER_TOKEN_BEDROCK="your-bedrock-api-key"\n```\n\n**AWS access key environment variables:**\n\n```bash\nexport AWS_ACCESS_KEY_ID="your-access-key"\nexport AWS_SECRET_ACCESS_KEY="your-secret-key"\nexport AWS_SESSION_TOKEN="your-session-token" # Optional\nexport AWS_REGION="us-east-1"\n```\n\nOr use an AWS profile:\n\n```bash\naws configure --profile bedrock\nexport AWS_PROFILE="bedrock"\n```\n\n**Config file** (`~/.config/kilo/kilo.json` or `./kilo.json`):\n\n```jsonc\n{\n  "provider": {\n    "amazon-bedrock": {},\n  },\n}\n```\n\nThen set your default model:\n\n```jsonc\n{\n  "model": "amazon-bedrock/anthropic.claude-sonnet-4-20250514-v1:0",\n}\n```\n\n{% /tab %}\n{% /tabs %}\n\n## Tips and Notes\n\n- **Permissions:** Ensure your IAM user or role has the necessary permissions to invoke Bedrock models. The `bedrock:InvokeModel` permission is required.\n- **Pricing:** Refer to the [Amazon Bedrock pricing](https://aws.amazon.com/bedrock/pricing/) page for details on model costs.\n- **Cross-Region Inference:** Using cross-region inference may result in higher latency.\n'),u=o.Ay.parse(p,{slots:!1}),h=u.attributes.frontmatter?i.Ay.load(u.attributes.frontmatter):{},{components:g}=(0,a._)(l);var f=!0;let m={frontmatter:h};function y(e){let t=e.markdoc;return o.ZR.react(t.content,r,{components:{...g,...e.components}})}},48059:(e,t,n)=>{"use strict";n.r(t),n.d(t,{includes:()=>r,upper:()=>i});let r={transform(e){let[t,n]=Object.values(e);return!!Array.isArray(t)&&t.includes(n)}},i={transform(e){let t=e[0];return"string"==typeof t?t.toUpperCase():t}}},89966:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fence:()=>o,heading:()=>s,table:()=>c,tbody:()=>p,td:()=>g,th:()=>h,thead:()=>l,tr:()=>u});var r=n(92130),i=n(62968);let o={render:i.NG,attributes:r.a9.fence.attributes};function a(e){return"string"==typeof e?e:r.vw.isTag(e)?e.children.map(a).join(" "):""}let s={render:i.DZ,children:["inline"],attributes:{id:{type:String},level:{type:Number,required:!0,default:1},className:{type:String}},transform(e,t){let n=e.transformAttributes(t),i=e.transformChildren(t),o=n.id&&"string"==typeof n.id?n.id:i.map(a).join(" ").replace(/[?/]/g,"").replace(/\s+/g,"-").toLowerCase();return new r.vw(this.render,{...n,id:o},i)}};var d=n(17499);let c={...r.a9.table,render:d.XI},l={...r.a9.thead,render:d.D1},p={...r.a9.tbody,render:d.vc},u={...r.a9.tr,render:d.Tr},h={...r.a9.th,render:d.Th,attributes:{...r.a9.th.attributes,width:{type:String}}},g={...r.a9.td,render:d.Td,attributes:{...r.a9.td.attributes,colspan:{type:Number},rowspan:{type:Number}}}}
1,90102:(e,t,n)=>{"use strict";n.r(t),n.d(t,{browserFrame:()=>m,callout:()=>i,codicon:()=>o,copyLine:()=>a,flowDiagram:()=>f,icon:()=>c,image:()=>l,imageGallery:()=>p,kiloCodeIcon:()=>u,linebreak:()=>y,tab:()=>d,tabs:()=>s,video:()=>h,youtube:()=>g});var r=n(62968);let i={render:r.Pq,children:["paragraph","tag","list"],attributes:{title:{type:String,description:"Optional custom title for the callout"},type:{type:String,default:"note",matches:["generic","note","tip","info","warning","danger"],description:"The type of callout: generic (no icon/title), note, tip, info, warning, or danger"},collapsed:{type:Boolean,default:!1,description:"When true, the callout starts collapsed and can be expanded by clicking the header"}}},o={render:r.W6,selfClosing:!0,attributes:{name:{type:String,required:!0,description:"The name of the VS Code codicon (e.g., 'send', 'check', 'warning')"},size:{type:String,default:"1em",description:"The size of the icon (CSS font-size value)"},className:{type:String,default:"",description:"Additional CSS classes to apply to the icon"}}},a={render:r.a7,selfClosing:!0,attributes:{text:{type:String,required:!0,description:"The exact one-line text to display and copy"}}},s={render:r.tU,children:["tab"],attributes:{}},d={render:r.oz,children:["paragraph","tag","list","fence","heading"],attributes:{label:{type:String,required:!0,description:"The label shown on the tab button"}}},c={render:r.In,selfClosing:!0,attributes:{src:{type:String,required:!0},srcDark:{type:String,description:"Optional image source for dark mode. Falls back to src if not provided."},alt:{type:String,default:"icon"},size:{type:String,default:"1.2em"}}},l={render:r._V,selfClosing:!0,attributes:{src:{type:String,required:!0,description:"The image source URL"},alt:{type:String,required:!0,description:"Alternative text for the image"},width:{type:String,description:"Width of the image (e.g., '500px', '80%')"},height:{type:String,description:"Height of the image (e.g., '300px', 'auto')"},caption:{type:String,description:"Optional caption displayed below the image"}}},p={render:r.i_,children:["tag"],attributes:{columns:{type:String,description:"Preferred number of image columns on wide screens"},width:{type:String,description:"Preferred width of each gallery image"}}},u={render:r.kz,selfClosing:!0,attributes:{size:{type:String,default:"1.2em",description:"Size of the icon (CSS height value)"}}},h={render:r.n5,selfClosing:!0,attributes:{url:{type:String,required:!0,description:"The YouTube video URL"},title:{type:String,description:"Accessible title for the video iframe"},caption:{type:String,description:"Optional caption to display below the video"}}},g={render:r.Yu,selfClosing:!0,attributes:{url:{type:String,required:!0,description:"The YouTube video URL"},title:{type:String,description:"Accessible title for the video iframe"},caption:{type:String,description:"Optional caption to display below the video"}}},f={render:r.Cb,selfClosing:!0,attributes:{name:{type:String,required:!0,description:"Name of the diagram to render (must match a key in diagrams/index.ts)"},height:{type:String,default:"400px",description:"Height of the diagram container"}}},m={render:r.AR,children:["paragraph","tag","list"],attributes:{url:{type:String,description:"Optional URL to display in the address bar"},caption:{type:String,description:"Optional caption below the frame"}}},y={render:"br",selfClosing:!0}}
1,95874:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-providers/bedrock",function(){return n(8018)}])}},e=>{e.O(0,[8228,4720,636,6593,8792],()=>e(e.s=95874)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.