A generated title card for Amazon Ergo-1.0 reading 'How to use Amazon Ergo-1.0 in a coding agent', with chips reading '1.1T total / 55B active', '1M context, 128K output', '$1.00 in / $3.00 out' and 'always reasons: low to max', beside a four-step agent loop labelled task, tool call, verify and patch.
Guides & Insights

How to Use Amazon Ergo-1.0 in a Coding Agent

Author

jinhao.song

Date Published

Models in this article · 1View all models →
Back to all posts

Amazon Ergo-1.0 ships with a contradiction at the top of its documentation, and it is the first thing anyone wiring the model into an agent has to resolve. The Bedrock model card exposes a reasoning_effort parameter with five settings — low, medium, high, xhigh and max — and returns a 400 if you pass none. The Hugging Face card says the opposite in effect: Amazon Ergo-1.0 always reasons, and documents no effort setting at all. Both are true. The dial exists on Bedrock, it is not described anywhere a self-hoster would look, and the developers who have tested it cannot agree on whether it does much.

What follows is a usage guide rather than a launch recap: how to put Amazon Ergo-1.0 behind Claude Code, Codex or OpenCode, which settings are worth touching, where the model actually fails, and how the token math works once an agent loop is running all day. It draws on Amazon's Bedrock documentation, an independent Artificial Analysis run, and public reports from developers who tried the model in its first 24 hours. Those developer reports are community findings, not vendor guidance, and several are single observations that may not survive a second week of use.

The effort dial exists, and it is undocumented

Simon Willison ran the same pelican-SVG prompt at all five effort levels on launch day and posted the token counts to Hacker News. Low produced 12,689 output tokens, 9,520 of them reasoning, in 43 seconds. Medium rose to 14,386 output and 10,848 reasoning in 1m38s. High came back at 14,308 and 10,960 in 1m19s. Xhigh hit 15,636 and 12,048 in 1m5s, and max produced 14,482 and 11,390 in 59 seconds.

The pattern is not a staircase. Everything above low clusters within roughly 10% of everything else, and the slowest run was not the highest setting. One run per level is not strong evidence — Willison said as much in the thread — but two things follow for a practitioner. Low is materially cheaper than the rest, and paying for max by default buys nothing you can measure on a short task.

Amazon's own note that the model always reasons explains the floor: you cannot turn thinking off, only ask for more of it. It also explains the most common first error, an empty answer with finish_reason: "length". The reasoning trace consumed the output budget before an answer was emitted. Set max_completion_tokens to at least 8,192, Amazon's stated floor, and higher for long edits.

Wiring it into Claude Code, Codex, OpenCode

Three harnesses are documented, and they are not equally easy. Codex and OpenCode speak a chat-completions-shaped API and reach Bedrock directly. Claude Code speaks the Messages API and needs a local LiteLLM proxy in between, which is one more process that can fail on an auth mismatch.

• OpenCode — one block in ~/.config/opencode/opencode.json: provider bedrock-runtime with baseURL https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1, model global.amazon.ergo-1.0, context 1,048,568 and output 131,072.

• Codex CLI — ~/.codex/config.toml with wire_api = "responses", the same base URL, and web_search = "disabled", which is required because the built-in server-side tools are unavailable on this path.

• Claude Code — a LiteLLM config plus a launcher script exporting ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN and CLAUDE_CODE_MAX_CONTEXT_TOKENS, with CLAUDE_CODE_USE_BEDROCK unset.

Two traps are worth knowing before you debug anything else. The base model ID amazon.ergo-1.0 cannot be called; every request must use an inference profile, global.amazon.ergo-1.0 or us.amazon.ergo-1.0. And if your ~/.claude/settings.json sets ANTHROPIC_MODEL or CLAUDE_CODE_USE_BEDROCK, those values silently override the launcher — Amazon's documented fix is to start Claude Code with --setting-sources project,local.

First-day reports were mixed in a way that suggests the harness matters more than the model. One developer on OpenCode 2.4.3 could select Ergo but hit errors on tool use. Another ran roughly a hundred tool calls through a third-party endpoint without trouble, at about 117 tokens per second with a 4.5-second time to first token. A third noted that Kiro, Amazon's own harness, did not carry the model on launch day despite appearing on the compatibility list. The common thread: a working chat completion does not prove a working agent. Tool-call formatting is the part that breaks, and it breaks per harness.

Speed is the other expectation to calibrate. Amazon advertises more than 400 output tokens per second on Bedrock; Artificial Analysis measured 164 on its own hardware, with 18.55 seconds to the first answer token and 14.3 minutes per task. Both can be true, because the vendor figure is steady-state decode while the independent number includes reasoning tokens, tool calls and queueing. Plan for the second.

If you would rather not assemble any of that, Command Code — the account that surfaced the model — says Ergo is live there on all plans and for MOAT members. That is their claim, not something verified here, and it trades setup control for a subscription.

Sampling: the card gives you nothing

Neither Amazon document publishes a temperature, top_p or repetition penalty, and the Hugging Face generation example passes no sampling parameters at all. For a model this new, that is a signal to leave defaults alone rather than port a settings file from another model. The usual reason to lower temperature — making tool calls more deterministic — is partly handled by the structured-output support Bedrock lists.

The number that does matter is the output ceiling. Amazon's OpenCode snippet warns that each request reserves its full output limit against your account quota, so a 131,072-token ceiling set just in case can throttle you at low concurrency. Keep the limit close to the size of edit you expect, and raise it per task rather than globally.

Where Ergo breaks, and what to do instead

The failures are concentrated, and Amazon's own comparison table points at them. On Terminal-Bench 4.0 the vendor reports 46.2 against Kimi K3.1 Pro at 63.3; on Terminal-Bench Science 0.1, 21.3 against 35.7. Readers called the terminal numbers low within hours of launch. If your agent lives in a shell — long chains of command execution, output parsing, retries — that is the workload where the gap is widest, and where a cheap model can cost more in retries than it saves in tokens.

• Shell-heavy loops — test before standardising. The vendor's own table is weakest here.

• First-attempt accuracy — Amazon's card concedes it trails the strongest closed models and recommends that agents verify their own changes. Give Ergo tests, a diff and a lint gate, not just a prompt.

• Vision — text in, text out. No screenshots, so a UI-debugging agent cannot see the broken page.

• Long rewrites — a 128K output cap will truncate a repo-wide refactor. Split by file.

• General knowledge and science — the card itself says to expect weaker results than on coding.

Verbosity is the hidden cost behind those failures. Artificial Analysis generated 171 million tokens running Ergo through its index, against a 107 million median for the models it compares. Its composite score of 38 puts Ergo second among open-weights models and nine points behind Kimi K3.1 Pro, while its average cost came to $1.67 per task. A model that thinks in longer traces can win on quality and still cost more per completed task than its token price suggests.

The prompting pattern that follows is less about wording than about loop design. Developers who got useful work out of Ergo in the first day described agent runs rather than chats: a task, a tool, and a way to check the result. That matches Amazon's own framing — the model is built to explore a problem, verify its work and stop — and it is the one recommendation here corroborated by the vendor documentation, the Hugging Face card and independent users alike.

Two smaller habits help. Ask for a plan before edits on anything larger than a file, because a model that reasons on every turn will produce a long trace either way, and a plan makes that trace checkable. Keep the task narrow, too: a first attempt is more likely to be directionally right than exactly right, so a tight diff is easier to verify than a broad one.

The 1M window is not a 1M working set

The documented harness configs accept 1,048,568 tokens and emit up to 131,072. Neither number says how well the model uses the window. Artificial Analysis runs fixed evaluations, not a 900K-token retrieval stress test, and no published result yet measures recall at the far end. Until one does, treat the million tokens as headroom for a large repository, not as a licence to paste one in.

A fat context costs twice even when it fits. Input is billed at $1.00 per million tokens, and every turn re-sends the conversation, so a 200K-token working set costs about $0.20 per turn before the model writes anything. Latency compounds the same way. A working set in the tens of thousands of tokens, assembled from the files a task actually touches, is cheaper and easier to reason about than a dump of the repository.

Cache math that pays for itself on turn two

Prompt caching is the feature that makes an all-day agent loop affordable, and the arithmetic is unusually clean. Cached reads cost $0.03 per million tokens against $1.00 for fresh input. Writing the cache costs $1.25, a $0.25 premium over ordinary input. One cached read saves $0.97 per million, so the write pays for itself the first time the prefix is reused — and an agent session reuses it on every turn.

The constraint is the 30-minute TTL. A loop that pauses for lunch loses the cache and pays the write premium again. The practical rule is to keep the stable part of the prompt — system instructions, repository map, conventions — at the very top and never reorder it, so each turn's cache hit covers the largest possible prefix. Interleaving changing content into the top of the prompt is what quietly turns a cached session into a full-price one.

Self-hosting is a cluster decision

The weights are downloadable, and the smallest build is 626 GB in MXFP4; the FP8 set is 1.17 TB and BF16 is 2.22 TB. With 55 billion active parameters this is not a single-GPU model. One developer who read the config pointed out that attention is a 512-token sliding window plus dense global layers, which makes the KV cache, not the weights, the binding constraint at long context.

vLLM and SGLang both serve it from day one, and the model card ships Docker examples for each. Self-host if data residency or fine-tuning requires it. Do not do it to save money unless you already own the cluster: at $1.00 and $3.00 per million tokens, matching Bedrock's price on your own hardware takes a utilisation curve most teams never reach.

The licence is also narrower than open weights suggests. An Amazon employee posting in a personal capacity said on Hacker News that the terms exclude model-as-a-service use and therefore do not meet the OSI definition, and another reader flagged a $20 million threshold above which reselling requires a separate agreement. Read the licence page before a legal review, not the announcement.

Screenshot of the AWS Bedrock page 'Use Amazon Ergo-1.0 with coding tools': the model ID table listing global.amazon.ergo-1.0 for any commercial AWS Region and us.amazon.ergo-1.0 for US Regions only, the line that the base model ID amazon.ergo-1.0 cannot be called directly, and a note that Ergo always reasons, that a reasoning effort of none returns a 400 error, and that the output limit should be at least 8,192 tokens.

Testing it without moving your stack

Ergo itself is Bedrock-only today and is not in OrcaRouter's catalogue, so we cannot route it for you. The comparison you can run without a second contract sits on the other side of the decision: the models you would weigh Ergo against are reachable through one API for 200+ models at 0% markup on provider list price, and a routing rule can send the same task to two of them, so the delta gets measured on your own repository rather than on a vendor chart. That is a cheaper way to learn whether a $1/$3 model with a terminal-shaped weakness is worth adding than migrating a production agent first.

Screenshot of the Artificial Analysis page for Amazon Ergo, showing an Intelligence Index of 38 ranked second of 35 open-weights models, 18.55 seconds to first answer token, 164 output tokens per second, 14.3 minutes per index task, $1.67 cost per task, 171 million output tokens, and technical specifications of a 1M context window with 1.1T total and 55B active parameters.

What would change this advice

Two measurements would. An independent long-context evaluation would tell you whether the million-token window is usable or decorative, and a second serving option beyond Bedrock would make price and latency a comparison rather than a number. Until then, the sensible deployment is the one the model's own card describes: a coding agent with tools, tests and a human review gate, on tasks where shell execution is not the bottleneck.

A generated single-column scoreboard headed 'Amazon Ergo-1.0 — the scoreboard', with rows reading Intelligence Index 38 (AA), Speed 164 tok/s (AA), Terminal-Bench 4.0 46.2 (vendor), Context 1M in / 128K out, Price $1.00 in / $3.00 out and Cache read $0.03; the footer reads 'Terminal-Bench Amazon-reported; Index and speed per Artificial Analysis, 1 December 2026.'