Configure Amazon Ergo for your coding agent
Pick your tool, region and inference profile. Get a working config you can paste in — plus the exact IAM policy and env vars. Generated locally in your browser. We never ask for, collect or store your AWS keys.
1 · Choose your setup
The region must match the baseURL in the config below. Codex does not read region from your AWS CLI profile — set AWS_REGION explicitly.
Global: global.amazon.ergo-1.0, any commercial region. US: us.amazon.ergo-1.0, US regions only, ~10% higher.
Ergo always reasons. Setting effort to none returns a 400 error. Set output limit ≥ 8,192 tokens — reasoning uses part of it first.
2 · Your generated config
Everything below updates live as you change the options above. Copy each block, or download the files.
3 · Checklist before you run it
- Create an AWS account (personal is fine — no enterprise account needed) and add a valid payment method. Bedrock is pay-as-you-go.
- Attach the IAM policy below to the IAM identity that makes the calls. If you get
AccessDeniedException, this is the first thing to check. - Create a Bedrock API key in the Bedrock console → API keys → Create long-term key, and store it as
AWS_BEARER_TOKEN_BEDROCK. Never paste the key into this page or share it. - Set
AWS_REGIONto the region above. Then run the install + run commands in the config block. - Expect this message from Codex and ignore it:
Model metadata for global.amazon.ergo-1.0 not found.
Cost estimator
Per-token price is not per-task price: Ergo always reasons, so simple tasks can use more output tokens than a non-reasoning model. Cached input is $0.03 / 1M tokens on Global.
Troubleshooting — from the AWS docs
| Error | Fix |
|---|---|
400 · Invocation of model ID amazon.ergo-1.0 … isn't supported | Use global.amazon.ergo-1.0 or us.amazon.ergo-1.0, never the base ID amazon.ergo-1.0. |
400 · The provided model identifier is invalid | Call from a supported region, and confirm your account has access to Ergo. |
403 · AccessDeniedException | Add the IAM policy above to the IAM identity (or the IAM user behind your API key). |
403 · UnrecognizedClientException | Confirm AWS_BEARER_TOKEN_BEDROCK is set and the key hasn't expired. |
429 · ThrottlingException | Quota used up. Retry later, lower the output limit, or request a quota increase. |
Empty answer / finish_reason: length | Raise the output limit to at least 8,192 tokens. |
Codex: error about the web_search tool | Set web_search = "disabled" in config.toml — included below. |
Codex: … auth requires … AWS_REGION | Set AWS_REGION to the region in base_url. |
| Claude Code: authentication error from the proxy | Confirm ANTHROPIC_AUTH_TOKEN matches master_key in litellm.yaml. |
What Ergo is — and isn't
Honest numbers
Amazon's own model card: DeepSWE 74.2%, FrontierSWE v2 31.5%, Terminal-Bench 4.0 46.2%. On the same card, Kimi K3.1 Pro scores higher on DeepSWE (77.9%) and Terminal-Bench 4.0 (63.3%). Ergo leads on Amazon's internal FMR-Bench AI SWE (65.4%). Treat vendor benchmarks as a starting point, not a verdict — test it on your own repo.
What about Turbo / 2,200 tokens/s?
Turbo mode (Trainium3SR) reaches 2,200 tokens/s but is in limited preview, with pricing to be announced. The $1 / $3 price and >400 tokens/s are the standard Bedrock numbers.
Can I run it locally?
Weights are downloadable from Hugging Face (MXFP4 626 GB, MXFP8 1.17 TB, BF16 2.22 TB), with day-one SGLang / vLLM support. That is the download size, not the VRAM you need — local deployment is a separate, much bigger job than this Bedrock setup.
Is this an official Amazon tool?
No. This is an independent config generator. Configs follow the AWS Bedrock docs for Ergo-1.0 with coding tools (Dec 1, 2026). If AWS changes the docs, the docs win — check them before a production rollout.
Do you store my keys or configs?
No. Generation happens in your browser. There is no account, no upload, and no field on this page for a key. Analytics, if enabled, only counts page views, generations and copies — never your config contents.