AI Cloud Architect

Use open weight models as your AI coding agent with Amazon Bedrock

AWSHow-to by Aris Tsakpinis, Suryansh Rana, Saurabh Trikande and Sainath MiriyalaAWS Artificial Intelligence Blog

Pair OpenCode, an open-source terminal-native AI coding agent, with open weight models on Amazon Bedrock to get a secure, flexible, pay-per-use coding assistant. Learn how to configure multi-model workflows, match the right model to each task, and keep your data in your own AWS account with no infrastructure to manage.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows how to run the open-source OpenCode coding agent against open weight models on Amazon Bedrock, with different models assigned to planning and build roles.

Who it is for

Developers and architects on AWS who want a terminal coding agent that keeps code inside their AWS account and pays per token.

Key points

  • Configured via opencode.json with separate plan and build model agents
  • Bedrock Flex tier is 50% lower cost than Standard for latency-tolerant batch coding work
  • Default Bedrock limits cited as 100M tokens per minute and 10K requests per minute

The same at other vendors