Use open weight models as your AI coding agent with Amazon Bedrock
OpenCode lets you run a private, costâeffective AI coding agent on Amazon Bedrockâs openâweight models, keeping data inâhouse and avoiding perâseat fees.

Why Now
Amazon Bedrock now supports openâweight models, enabling developers to run AI coding agents privately and flexibly, a shift driven by cost and dataâresidency concerns.
What Happened
OpenCode is an openâsource, terminalânative coding agent written in Go that can connect to over 75 LLM providers, including Bedrock. When paired with Bedrockâs openâweight models, it runs locally while inference stays within the userâs AWS account, eliminating infrastructure management and perâseat charges. Bedrock offers three pricing tiersâPriority, Standard, and Flexâallowing users to match cost to workload and keep data residency compliant with programs like HIPAA and GDPR.
Why It Matters
This setup lets enterprises keep proprietary code and prompts inside their AWS environment, reducing compliance risk and potentially cutting multiâmillionâconversation costs by switching to cheaper openâweight models. It also gives teams the flexibility to swap models per task, improving performance and cost efficiency for largeâscale agentic workflows.
The Limitation
The article focuses on Bedrockâs openâweight offerings and OpenCode; realâworld performance and cost savings depend on specific workloads and may vary from the reported examples.
What You Can Do
Try OpenCode with Bedrockâs openâweight models on a small project to benchmark cost and latency against your current coding assistant.
Source
Read original sourceWhy we picked this
Core AI content: introduces a new AI coding agent leveraging open-weight models on Amazon Bedrock, detailing configuration and usage.