To learn how to use Amazon Ergo, pick one of three routes: call it through Amazon Bedrock with an inference profile, point a coding tool at Bedrock using the configs AWS publishes, or download the weights for server hardware. Ergo launched on 1 December 2026 and is available now, not a preview. Last checked: 3 December 2026.
Two traps break most first calls. The base model ID cannot be called directly, and every request needs an output limit of at least 8,192 tokens because the model always reasons. For the launch background, see yesterday’s Amazon Ergo news post.
What Amazon Ergo is, in short
Amazon Ergo-1.0 is a mixture-of-experts transformer from Amazon Frontier Model Research for software engineering and agentic work. The AWS Bedrock model card lists 1.1 trillion total parameters with 55 billion active per token, a 1M-token context window, maximum output of 128K tokens (131,072), and text in, text out only. The Hugging Face card adds the expert layout: 256 routed experts, 8 active per token, plus 1 shared expert.
The Bedrock card gives a knowledge cutoff of May 2026; the Hugging Face card gives June 2026. Neither explains the difference, so treat the cutoff as May to June 2026.
On Bedrock, Ergo runs at over 400 output tokens per second, per Amazon’s own figures. A faster Turbo mode reaching 2,200 tokens per second exists in limited preview, with pricing to be announced later, per the Hugging Face card. On-demand pricing on the model card is $1.00 per million input tokens and $3.00 per million output tokens on the Global profile (cache read $0.03, cache write $1.25); the US profile costs slightly more at $1.10 / $3.30 / $0.033 / $1.375. Standard, Flex and Batch tiers run at the same rate.
On benchmarks, keep the picture honest. Amazon’s own table puts Ergo ahead on FrontierSWE v2 (31.5 against 29.3) and its internal FMR-Bench, while Kimi K3.1 Pro leads on DeepSWE (77.9 against 74.2) and Terminal-Bench 4.0 (63.3 against 46.2). Apart from dagger-marked leaderboard rows, these are vendor-run results.
Prerequisites: account, IAM policy and API key
AWS documentation says to complete four setup steps before configuring any coding tool.
- An AWS account.
- An IAM policy attached to the identity making the calls. The AWS coding-tools page policy allows
bedrock:InvokeModelandbedrock:InvokeModelWithResponseStreamon the US inference profile, the Global inference profile, and the foundation model ARN (arn:aws:bedrock:*::foundation-model/amazon.ergo-1.0). - An API key. AWS documentation says to open the Amazon Bedrock console, choose API keys, then Create long-term key, and store the value as the environment variable
AWS_BEARER_TOKEN_BEDROCK. Short-term keys from theaws-bedrock-token-generatorpackage expire. - The SDKs for the APIs you plan to use. For Responses and Chat Completions, AWS documentation says to run
pip install -U openai aws-bedrock-token-generator. For Converse and InvokeModel,pip install -U boto3.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream"
],
"Resource": [
"arn:aws:bedrock:*:*:inference-profile/us.amazon.ergo-1.0",
"arn:aws:bedrock:*:*:inference-profile/global.amazon.ergo-1.0",
"arn:aws:bedrock:*::foundation-model/amazon.ergo-1.0"
]
}
]
}
The Bedrock route: profiles, endpoint and the 8,192-token rule
Ergo on Bedrock is available through cross-Region inference only; In-Region inference is not supported. Every call uses an inference profile ID, and the base model ID amazon.ergo-1.0 cannot be called directly. The two profile IDs are global.amazon.ergo-1.0 (any commercial AWS Region) and us.amazon.ergo-1.0 (US Regions only, routing to us-east-2 Ohio per the model card). The endpoint pattern is https://bedrock-runtime.<region>.amazonaws.com; the AWS examples use us-west-2.
The reasoning floor is the other trap. Ergo always reasons, a reasoning effort of none returns a 400 error, and AWS documentation says to set an output limit of at least 8,192 tokens because reasoning consumes part of that limit before the answer appears.
For readers calling from India, the model card lists ap-south-1 (Mumbai) and ap-south-2 (Hyderabad) as Global-only source Regions. A call from either city works through the Global profile, and Global routing can send the request to any enabled Region. There is no in-country processing promise here, so do not assume data stays inside India.
One privacy point works in your favour on this route. The model card states that Ergo on Bedrock runs with Zero Data Retention and Zero Operator Access, so prompts and outputs are not stored or used to train models. Streaming, prompt caching, tool use, structured outputs, Guardrails and batch inference are supported.
How to use Amazon Ergo with OpenCode
OpenCode connects directly to Bedrock over the Chat Completions API. AWS documentation says to install OpenCode from opencode.ai, then add a bedrock-runtime provider to ~/.config/opencode/opencode.json with base URL https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1, the API key read from AWS_BEARER_TOKEN_BEDROCK, and the model global.amazon.ergo-1.0 set with context 1048568, output 131072 and reasoningEffort medium. The provider uses the @ai-sdk/openai-compatible package, and the top-level model field points at bedrock-runtime/global.amazon.ergo-1.0.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"bedrock-runtime": {
"npm": "@ai-sdk/openai-compatible",
"name": "Amazon Bedrock",
"options": {
"baseURL": "https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1",
"apiKey": "{env:AWS_BEARER_TOKEN_BEDROCK}"
},
"models": {
"global.amazon.ergo-1.0": {
"name": "Ergo 1.0",
"limit": { "context": 1048568, "output": 131072 },
"options": { "reasoningEffort": "medium" }
}
}
}
},
"model": "bedrock-runtime/global.amazon.ergo-1.0"
}
After saving the config, AWS documentation says to run opencode in the project folder and switch models with /models. Each request reserves its full output limit against quota, so keep limit.output close to need.
How to use Amazon Ergo with Codex CLI
Codex CLI connects directly to Bedrock over the Responses API. AWS documentation says to install it with npm i -g @openai/codex (or brew install codex). The config at ~/.codex/config.toml sets model = "global.amazon.ergo-1.0", model_provider = "bedrock-runtime", model_reasoning_effort = "medium", model_context_window = 1048568, and a provider block with base_url = "https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1", env_key = "AWS_BEARER_TOKEN_BEDROCK" and wire_api = "responses".
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"
env_key = "AWS_BEARER_TOKEN_BEDROCK"
wire_api = "responses"
First, web_search must be "disabled", because built-in server-side tools such as web search are not supported on this route. Second, AWS_REGION=us-west-2 must be set in the shell profile, because Codex does not read the Region from the AWS CLI profile. After that, AWS documentation says to run codex in the project folder, or codex exec "your prompt", adding --skip-git-repo-check outside a git repository.
How to use Amazon Ergo with Claude Code
Claude Code speaks the Anthropic Messages API, so it needs a proxy in this setup. AWS documentation says to run a local LiteLLM proxy that translates Claude Code requests into Bedrock Responses calls.
- Install Claude Code and install
uv. - Save a LiteLLM config as
~/ergo-claude-code/litellm.yaml. It mapsglobal.amazon.ergo-1.0toopenai/global.amazon.ergo-1.0athttps://bedrock-runtime.us-west-2.amazonaws.com/openai/v1, reads the key fromAWS_BEARER_TOKEN_BEDROCK, sets reasoning effort to medium, turns ondrop_params: true, and sets amaster_keyofsk-ergo-local. - Start the proxy with
uv tool run --from 'litellm[proxy]' litellm --config ~/ergo-claude-code/litellm.yaml --host 127.0.0.1 --port 4000. Restart the proxy after any key change. - Save a launcher script as
~/ergo-claude-code/claude-ergoand make it executable withchmod +x. It setsANTHROPIC_BASE_URLtohttp://127.0.0.1:4000,ANTHROPIC_AUTH_TOKENto themaster_keyvalue,ANTHROPIC_MODELand the Opus, Sonnet, Haiku and subagent defaults toglobal.amazon.ergo-1.0,CLAUDE_CODE_MAX_CONTEXT_TOKENSto 1048568, and unsetsCLAUDE_CODE_USE_BEDROCK. - Run the launcher in the project folder.
model_list:
- model_name: global.amazon.ergo-1.0
litellm_params:
model: openai/global.amazon.ergo-1.0
api_base: https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1
api_key: os.environ/AWS_BEARER_TOKEN_BEDROCK
extra_body:
reasoning:
effort: medium
litellm_settings:
drop_params: true
general_settings:
master_key: sk-ergo-local
#!/usr/bin/env bash
export ANTHROPIC_BASE_URL="http://127.0.0.1:4000"
export ANTHROPIC_AUTH_TOKEN="sk-ergo-local"
export ANTHROPIC_MODEL="global.amazon.ergo-1.0"
export ANTHROPIC_DEFAULT_OPUS_MODEL="global.amazon.ergo-1.0"
export ANTHROPIC_DEFAULT_SONNET_MODEL="global.amazon.ergo-1.0"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="global.amazon.ergo-1.0"
export CLAUDE_CODE_SUBAGENT_MODEL="global.amazon.ergo-1.0"
export CLAUDE_CODE_MAX_CONTEXT_TOKENS="1048568"
unset CLAUDE_CODE_USE_BEDROCK
exec claude "$@"
If ~/.claude/settings.json has an env block setting CLAUDE_CODE_USE_BEDROCK or ANTHROPIC_MODEL, those values override the launcher. AWS documentation says to use --setting-sources project,local to skip user settings in that case. Kiro is named as a compatible harness on the Bedrock model card, but the coding-tools page publishes no setup steps for it, so this guide covers the three documented tools only.
The self-hosted route: download sizes and the licence
The weights are downloadable from Hugging Face in three precisions: MXFP4 at 626 GB, MXFP8 at 1.17 TB and BF16 at 2.22 TB. Those sizes rule out laptop use entirely; self-hosting means server hardware, before any cache. The Hugging Face card says SGLang and vLLM support Ergo from day one, and the BF16 checkpoint is the one for Transformers inference or fine-tuning. For smaller models that do run on a laptop, our Ollama guide covers the local route.
The licence text itself was read for this guide. It grants permission free of charge to use, run, deploy, copy, fine-tune, modify, publish, distribute, sublicense and sell copies, subject to carrying the licence in copies and following the Acceptable Use Policy. Section 3 adds a commercial condition: if you or an affiliate operates a Model as a Service business — providing third parties access to models for inference or fine-tuning through an API or hosted endpoint — and combined gross revenue exceeds US$20,000,000 in any consecutive 12-month period, a separate written agreement with Amazon is required before offering Ergo through that business. Internal use, research, and using Ergo inside your own product outside a Model as a Service business are carved out.
The Acceptable Use Policy, dated 1 December 2026, states that Ergo is not intended for individuals under the age of 18, and that anyone using Ergo for consequential decisions — the policy lists medical diagnosis, judicial proceedings, housing or government benefits, education, hiring, lending, and legal, financial or medical advice — must apply human oversight, testing and other safeguards.
Troubleshooting: what went wrong
| Error | What it usually means | Fix |
|---|---|---|
| 400, in-Region invocation not supported | Base model ID used | Use global.amazon.ergo-1.0 or us.amazon.ergo-1.0 instead |
| 400, model identifier invalid | Unsupported Region or no account access | Use a supported Region; confirm account access |
| 403 AccessDeniedException | IAM permissions missing | Add invoke permissions to the IAM identity |
| 403 UnrecognizedClientException | Bearer token unset or expired | Confirm the token is set and unexpired |
| 429 ThrottlingException | Account quota used up | Retry later, lower the output limit, or request a quota increase |
| Empty answer with length, incomplete or max_tokens | Output limit too small | Raise the output limit to at least 8,192 tokens |
| Codex error about the web_search tool | Web search not supported here | Set web_search = "disabled" in config.toml |
| Codex error about AWS_REGION | Codex cannot find the Region | Set AWS_REGION to the Region in base_url |
| Claude Code authentication error from the proxy | Token mismatch | Make ANTHROPIC_AUTH_TOKEN match master_key in litellm.yaml |
Security note before you run any of this
Keep the Bedrock API key in the AWS_BEARER_TOKEN_BEDROCK environment variable only. Never paste it into code, a config file you commit, or a screenshot. The master_key value in the LiteLLM config (sk-ergo-local) is a user-chosen local placeholder string for the proxy on your own machine, not a real credential — AWS documentation says any string works as long as it matches ANTHROPIC_AUTH_TOKEN in the launcher. The real Bedrock key bills to your AWS account, so treat it differently.
Two limits from the Hugging Face card belong in any plan. Ergo is text-only — it cannot read images, screenshots or diagrams — and Amazon states it can produce confident but incorrect code, so review generated changes before merging. First-attempt accuracy trails the strongest closed models; agent workflows that test their own changes suit Ergo better than one-shot generation.
The next step depends on your route. Bedrock readers: create the IAM policy and long-term key, then make one call with global.amazon.ergo-1.0 and an 8,192-token output limit before wiring up a coding tool. Self-hosting readers: check storage and memory against the 626 GB minimum first, because that single number decides whether the download route is open to you at all.
Frequently asked questions
Can I call Amazon Ergo with the model ID amazon.ergo-1.0?
No. AWS documentation says the base model ID cannot be called directly, and In-Region inference is not supported. Use an inference profile ID instead: global.amazon.ergo-1.0 from any commercial Region, or us.amazon.ergo-1.0 from US Regions.
Why did my first Ergo call return an empty answer?
Ergo always reasons, and reasoning consumes part of the output limit before the answer appears. AWS documentation says to set an output limit of at least 8,192 tokens. An empty answer with a length, incomplete or max_tokens status points to a limit set too low.
Can I run Amazon Ergo on a laptop?
No. The smallest download, MXFP4, is 626 GB, with MXFP8 at 1.17 TB and BF16 at 2.22 TB. Self-hosting needs server hardware. For models that do run locally, see our Ollama guide linked in the article.
What does the Amazon Ergo licence allow, and where is the limit?
The licence, read in full for this guide, permits free use, fine-tuning, modification, redistribution and commercial products, subject to the Acceptable Use Policy. The limit sits in Section 3: a Model as a Service business with over US$20,000,000 in combined gross revenue across any 12 months needs a separate written agreement with Amazon first.
Sources
- AWS, Amazon Ergo-1.0 model card (read 3 December 2026): https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0.html
- AWS, Use Amazon Ergo-1.0 with coding tools (read 3 December 2026): https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0-coding-tools.html
- Amazon Frontier Model Research, Ergo model card on Hugging Face (read 3 December 2026): https://huggingface.co/Amazon-FMR/Ergo
- Amazon Ergo Open-Weights License, full text including Exhibit A Acceptable Use Policy dated 1 December 2026 (read 3 December 2026): https://huggingface.co/Amazon-FMR/Ergo/blob/main/LICENSE.md
Ahesanur Asun is the Founder and Editor of UptoFeed, where he publishes updates on
AI news, artificial intelligence tools, and emerging technology. He focuses on explaining complex AI developments in a clear and practical way so readers can quickly understand and use the latest innovations.