What is Amazon Ergo, and how do you run it in coding agents?
Amazon Ergo, released December 1, 2026, is a 1.1T-parameter open-weight model for coding agents, priced at $1/$3 per million tokens on Bedrock.
Key takeaways
- Amazon Ergo is an open-weight MoE model with 1.1T parameters, 55B active per token and a 1M-token context.
- On Bedrock it costs $1 input and $3 output per million tokens via the global profile.
- Codex CLI and OpenCode call it directly; Claude Code needs a local LiteLLM proxy.
- Ergo always reasons, so set an output limit of at least 8,192 tokens.
On this page
Amazon Ergo is Amazon's open-weight model for software engineering and agentic work, released on December 1, 2026 [1]. It has 1.1 trillion parameters, 55 billion active per token, and costs $1.00 per million input tokens and $3.00 per million output tokens on Amazon Bedrock [2]. Codex CLI and OpenCode call it directly; Claude Code reaches it through a local LiteLLM proxy [3].
What is Amazon Ergo?
Amazon Ergo is a text-only reasoning model aimed at coding agents and long, multi-step tasks. The Bedrock model card lists it as Amazon Ergo-1.0, with text input and text output, a 1M-token context window and a maximum output of 131,072 tokens [2]. Amazon describes its target use as an agent that reasons through a problem, plans, calls tools and checks its own results.
The architecture is a mixture-of-experts transformer. Each layer has 256 routed experts, 8 of them active per token, plus 1 shared expert [4]. The weights are published on Hugging Face under the Amazon Ergo Open-Weights License, which is free of charge and allows running, fine-tuning, modifying and redistributing the model, including in commercial products, as long as you follow the acceptable use policy [4].
| Property | Value |
|---|---|
| Release date | December 1, 2026 |
| Parameters | 1.1T total, 55B active per token |
| Context window | 1M tokens |
| Max output | 128K tokens (131,072) |
| Modalities | Text in, text out |
| Bedrock price (Global) | $1.00 input, $3.00 output, $0.03 cache read per 1M tokens |
| Bedrock speed | Over 400 output tokens per second |
| Weights | MXFP4 626 GB, MXFP8 1.17 TB, BF16 2.22 TB |
Sources for the table: the Bedrock model card [2] and the Hugging Face card [4].
How does Ergo compare with other open-weight models?
Ergo leads Kimi K3.1 Pro on Amazon's internal coding benchmark and on FrontierSWE v2, and trails it on DeepSWE, Terminal-Bench 4.0 and the science benchmarks. On the Hugging Face card, Ergo scores 65.4 on FMR-Bench AI SWE pass@1 against 58.6 for Kimi K3.1 Pro, 31.5 against 29.3 on FrontierSWE v2, 74.2 against 77.9 on DeepSWE, and 46.2 against 63.3 on Terminal-Bench 4.0 [4].
Two points matter when you read these numbers. First, FMR-Bench is Amazon's own internal suite, so it is the benchmark where outside replication is least possible [4]. Second, the card marks some cells, including every AutomationBench-AA score, as coming from an independently run public leaderboard, while the rest are Amazon's own runs.
The announcement also reports time and cost per task. On the AI SWE benchmark, Ergo averages 14.3 minutes and $1.41 per task, against 21.7 minutes and $1.58 for Kimi K3.1 Pro [1]. Closed models still score higher on that internal benchmark: the same page lists Opus 5.5 at 85.3 and GPT-6 Astra at 80.8, against Ergo's 65.4 [1].
How do you call Ergo on Amazon Bedrock?
You call Ergo through a cross-Region inference profile, never through the base model ID. The model card lists global.amazon.ergo-1.0 for Global cross-Region inference and us.amazon.ergo-1.0 for US Geo inference, and states that In-Region inference is not supported [2]. The setup guide adds that the base ID amazon.ergo-1.0 cannot be called directly [3].
Four APIs work on the bedrock-runtime endpoint: Responses, Chat Completions, Converse and InvokeModel [2]. Supported features include streaming, implicit and explicit prompt caching, client-side tool use, server-side web search, structured outputs, Bedrock Guardrails and batch inference. Knowledge Bases, intelligent prompt routing, token counting and watermarking are not supported.
Pricing depends on the profile. Global costs $1.00 input, $3.00 output, $0.03 cache read and $1.25 cache write (30-minute TTL) per million tokens; the US profile costs $1.10, $3.30, $0.033 and $1.375 [2]. Standard, Flex and Batch tiers are billed at the same rate.
The setup guide documents both the 400 error and the 8,192-token minimum [3], and the model card lists the accepted effort values as low, medium, high, xhigh and max [2]. A minimal Converse call with credentials from your normal AWS profile looks like this:
import boto3
client = boto3.client("bedrock-runtime", region_name="us-west-2")
response = client.converse(
modelId="global.amazon.ergo-1.0",
messages=[{"role": "user", "content": [{"text": "Write a Python function that reverses a string."}]}],
inferenceConfig={"maxTokens": 8192},
)
print(response["output"]["message"]["content"])The IAM identity needs bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream on the two inference profiles and the foundation model [3].
How do you run Ergo in Claude Code, Codex CLI or OpenCode?
Codex CLI and OpenCode connect to Bedrock directly, while Claude Code needs a local LiteLLM proxy. AWS's setup guide explains that Claude Code speaks the Anthropic Messages API, so the proxy translates its requests into Bedrock Responses API calls [3].
| Tool | API it uses | What to configure |
|---|---|---|
| Codex CLI | Responses | ~/.codex/config.toml with a bedrock-runtime provider, wire_api = "responses", web_search = "disabled", and AWS_REGION set in your shell |
| OpenCode | Chat Completions | ~/.config/opencode/opencode.json with an OpenAI-compatible provider pointing at the /openai/v1 base URL |
| Claude Code | Anthropic Messages, through LiteLLM | A litellm.yaml for the proxy on port 4000, then a launcher that sets ANTHROPIC_BASE_URL and points every model variable, including CLAUDE_CODE_SUBAGENT_MODEL, at global.amazon.ergo-1.0 |
All rows come from the AWS setup guide [3]. The Codex part of the configuration looks like this, with the API key read from the environment variable AWS_BEARER_TOKEN_BEDROCK through the provider's env_key setting:
model = "global.amazon.ergo-1.0"
model_provider = "bedrock-runtime"
model_reasoning_effort = "medium"
web_search = "disabled"
model_context_window = 1048568
[model_providers.bedrock-runtime]
name = "Amazon Bedrock"
base_url = "https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1"
wire_api = "responses"Three details from the guide save debugging time. Codex needs web_search = "disabled" because built-in server-side tools are not supported in that setup. In Claude Code, an env block in ~/.claude/settings.json that sets CLAUDE_CODE_USE_BEDROCK or ANTHROPIC_MODEL overrides the launcher. And in OpenCode, each request reserves its full output limit against your account quota, so keep the output limit close to what you need [3].
Can you self-host or fine-tune Ergo?
Yes. The Hugging Face card gives day-one commands for vLLM (vllm serve "Amazon-FMR/Ergo") and SGLang, both exposing an OpenAI-compatible chat completions API [4]. Plan for the size: the smallest published checkpoint, MXFP4, is a 626 GB download. The card does not state GPU requirements and points to the SGLang and vLLM recipes instead.
For fine-tuning, AWS says you can train Ergo on your own data in SageMaker AI with ready-made recipes or your own [5]. If you stay on Bedrock instead, inference runs with zero data retention and zero operator access, and prompts and outputs are not used to train models [5].
What does this mean for teams running AI agents?
For teams, Ergo adds a cheaper open-weight option for the high-volume part of agent work, such as subagents, batch refactors and long background tasks. Amazon Bedrock AgentCore's managed harness supports Ergo as the default model or for a single invocation, including mid-session, with the conversation keeping its context [6]. That makes it practical to keep a stronger model on planning and review and move routine steps to Ergo without changing agent logic.
A team that runs agents in a shared workspace like Hardi AI can treat Ergo as one more model behind a tool or subagent and compare its output against the current model on the same tickets before switching.
What are the limits and open questions?
Amazon lists the limits itself. Ergo cannot read images, screenshots or diagrams; it always reasons, which costs more output tokens on simple tasks; its first-attempt accuracy trails the strongest closed models; and it can produce code that looks right but fails, so changes need review before merging [4].
A few details are still open as of December 2, 2026. Turbo mode, which reaches 2,200 output tokens per second, is in limited preview and has no announced price [7]. The knowledge cutoff differs between sources: May 2026 on the Bedrock model card [2] and June 2026 on Hugging Face [4]. And most benchmark results come from Amazon's own runs, so independent evaluations on your own repositories will tell you more than the headline numbers.
Frequently asked questions
Is Amazon Ergo open source?
Ergo is open-weight: the weights are on Hugging Face under the Amazon Ergo Open-Weights License, which is free and allows running, fine-tuning, modifying and redistributing the model, including commercially, under an acceptable use policy.
How much does Amazon Ergo cost on Bedrock?
Through the global inference profile, Ergo costs $1.00 per million input tokens, $3.00 per million output tokens and $0.03 per million cached input tokens. The US profile costs $1.10 and $3.30.
Can I use Amazon Ergo in Claude Code?
Yes, through a local LiteLLM proxy. Claude Code speaks the Anthropic Messages API, so AWS's guide runs LiteLLM to translate requests into Bedrock Responses API calls and points every Claude Code model variable at global.amazon.ergo-1.0.
Why does Amazon Ergo return an empty answer or a 400 error?
Ergo always reasons. A reasoning effort of none returns a 400 error, and an output limit below 8,192 tokens can be used up by reasoning before the answer, so raise the limit.
Can Amazon Ergo read images or screenshots?
No. Ergo is text in, text out, and Amazon lists the inability to read images, screenshots or diagrams as a known limitation.