Amazon Bedrock
Run Claude Code, Codex and OpenCode on Amazon Bedrock instead of their own sign-in. AWS bills your account directly.
What it is
Amazon Bedrock runs AI models inside your AWS account. If your company already pays for AWS, your agents can run there, under your company’s billing and rules.
AWS bills you directly. Cocobox does not see your bill. Your AWS keys stay on your Mac, in your AWS profile or the system keychain.
Set it up
Open Settings › Agents and find the Amazon Bedrock card.
Choose how to sign in: an AWS profile or a Bedrock API key. See Sign-in options.
Pick a region.
Turn Bedrock on for each agent you want on it: Claude Code, Codex or OpenCode.
Click Check. It shows Ready, Needs sign-in or Failed.
If Claude Code is already set to use Bedrock in ~/.claude/settings.json, the card shows it as already set up.
The first-run setup offers it too: when an agent can’t sign in, the agents step shows Use Amazon Bedrock instead….
Sign-in options
- AWS profile: pick a profile from
~/.aws/config. SSO profiles are marked. If an SSO login has expired, the card shows Needs sign-in and the command to copy,aws sso login --profile P, with your profile’s name. - Bedrock API key: paste a key. It is kept in the system keychain.
Models and regions
- Claude Code: pick an inference profile family. Global is AWS’s list price. Regional families (us, eu, apac, jp, au) keep requests in that area and cost about 10% more. You can also pin the Opus, Sonnet and Haiku models, picked from your account’s own list.
- Codex: needs a Bedrock model. Pick one from your account’s OpenAI models. Switching Codex to Bedrock in a tab restarts that tab on the new model and keeps the conversation.
- OpenCode: pick a Bedrock model in the tab’s model list.
What you see
- A tab on Bedrock shows a Bedrock · region chip.
- Stats has a tile for spend billed to your AWS account. Regional profiles are counted at the extra 10%.
Limits
- Remote SSH tabs don’t use Bedrock yet.
- Bedrock settings stay on this Mac. They are not synced to your other devices and not exported.
Troubleshooting
- Needs sign-in: your SSO login expired. Click Copy command, run the
aws sso logincommand in a terminal, then click Check again. - Not checked: the AWS CLI isn’t installed, so Cocobox can’t check a profile. Install it and click Check again. The agent may still work without it.
- Failed: the card names AWS’s reason. For AccessDenied, your AWS user or role needs the
bedrock:InvokeModel*andbedrock:ListInferenceProfilespermissions. - Ready, but the agent’s replies fail: Check only lists your inference profiles. It can’t tell whether a model is turned on. If the tab shows an AWS error about model access, turn on access to that model in the Amazon Bedrock console, in the region you picked.