# Amazon Ergo for Developers: Call It on Bedrock, Plug It Into Your Coding Agent, or Self-Host It

Amazon released **Ergo** on December 1, 2026: a 1.1-trillion-parameter, **open-weights** model built for software engineering and agentic workflows. The weights are on Hugging Face under a free licence, it's on Amazon Bedrock at **$1 per million input tokens and $3 per million output tokens**, and it plugs into coding agents like Claude Code, Codex, OpenCode and Kiro.

This post is the developer's version of the story: what's inside the model, three ways to use it (with code), what self-hosting actually takes, and what the licence allows. Everything below is from Amazon's announcement, the Hugging Face model card, the licence and the Bedrock model card, checked on December 2, 2026.

---

## The model in one table

|  | Amazon Ergo-1.0 |
| --- | --- |
| Architecture | Mixture-of-experts transformer |
| Experts | 256 routed experts per layer, 8 active per token, plus 1 shared |
| Parameters | 1.1T total, **55B active per token** |
| Context window | 1,048,576 tokens (1M) |
| Max output | 131,072 tokens (128K) |
| Modalities | Text in, text out |
| Weights | MXFP4 (626 GB), MXFP8 (1.17 TB), BF16 (2.22 TB) |
| Serving engines | SGLang and vLLM, supported from day one |
| Recommended sampling | temperature 1.0, top_p 0.99 |
| Licence | Amazon Ergo Open-Weights License (free) |

### Why mixture-of-experts matters for you

In a dense model, every parameter takes part in every token. In Ergo, a router sends each token through **8 of 256 experts** (plus one shared expert) in each layer. That's how a 1.1T-parameter model computes with only **55B parameters per token**.

Two practical consequences:

- **Compute per token is like a ~55B model.** That's a big part of why Amazon can serve it fast and cheaply.
- **Memory is like a 1.1T model.** Every expert must be loaded, because any token might need any expert. Memory, not compute, is what makes self-hosting hard.

## How it performs (and how to read the numbers)

Amazon says Ergo "ranks first among U.S. open-weights models on all seven coding benchmarks we report", and first or second among all the open-weights models it compared. A few rows from the model card, against the strongest open-weights model in Amazon's table, Kimi K3.1 Pro:

| Benchmark | Ergo | Kimi K3.1 Pro |
| --- | --- | --- |
| AI SWE (Amazon's internal FMR-Bench), pass@1 | **65.4** | 58.6 |
| FrontierSWE v2, score | **31.5** | 29.3 |
| DeepSWE, pass@1 | 74.2 | **77.9** |
| Terminal-Bench 4.0, pass@1 | 46.2 | **63.3** |
| AutomationBench-AA (public leaderboard) | 70.0 | **73.3** |

Read it with three caveats:

1. Most cells are **Amazon's own runs**; only the ones marked with † on the model card come from independent public leaderboards.
2. The strongest result is on Amazon's **internal** benchmark, which nobody else can reproduce.
3. On the independent Artificial Analysis Intelligence Index, The Register reports Ergo at **38** vs Kimi K3.1 Pro at **47**.

Amazon's own pitch is speed and cost per task rather than raw capability: on its AI SWE benchmark, Ergo averaged **14.3 minutes and $1.41 per task**, versus 21.7 minutes and $1.58 for Kimi K3.1 Pro. Peter DeSantis, who leads Amazon's model and chip teams, told The Register that Ergo is "not quite as good as the latest generation closed weight models. But it's close". Test it on your own tasks before you decide.

![Three ways to run Amazon Ergo: Bedrock API, coding agents, or your own hardware](https://cdn.hashnode.com/uploads/covers/6ac50f8204b5daa1f6f2a208/455ee651-0995-4e3e-aa1e-a34254f5f42a.png align="center")

## Option 1: Call it on Amazon Bedrock

This is the fastest way to try Ergo. Bedrock serves it on AWS **Trainium3** at more than 400 output tokens per second, with **zero data retention** (Amazon says it doesn't store prompts or outputs, or train on them).

Things to know from the Bedrock model card:

- **Model ID:** `amazon.ergo-1.0`. It's available only through **cross-Region inference profiles**: `global.amazon.ergo-1.0` (worldwide routing) or `us.amazon.ergo-1.0` (US only). In-Region inference isn't supported.
- **Price:** Global is $1.00 input / $3.00 output per million tokens, with cached input reads at $0.03. The US geo profile is 10% more ($1.10 / $3.30).
- **APIs:** Responses, Chat Completions, Converse and InvokeModel.

Bedrock exposes an **OpenAI-compatible endpoint**, so the OpenAI Python SDK works. Create a Bedrock API key in the console, set it as `AWS_BEARER_TOKEN_BEDROCK`, then:

```python
import os
from openai import OpenAI

region = "us-west-2"
client = OpenAI(
    api_key=os.environ["AWS_BEARER_TOKEN_BEDROCK"],
    base_url=f"https://bedrock-runtime.{region}.amazonaws.com/openai/v1",
)

resp = client.responses.create(
    model="global.amazon.ergo-1.0",
    input="Write a Python function that validates an ISO 8601 date string, with tests.",
)
print(resp.output_text)
```

That's the pattern from AWS's own sample. If you already use the Chat Completions API, the same client works with `client.chat.completions.create(model="global.amazon.ergo-1.0", messages=[...])`.

### Estimating cost

Agent workloads are input-heavy: every step re-sends the conversation, files and tool results. A quick way to estimate a run:

```python
def ergo_cost(input_tokens, output_tokens, cached_input_tokens=0, us_geo=False):
    """Bedrock on-demand prices for Amazon Ergo-1.0, per the model card (Dec 2026)."""
    rate_in, rate_out, rate_cache = (1.10, 3.30, 0.033) if us_geo else (1.00, 3.00, 0.03)
    fresh = input_tokens - cached_input_tokens
    return (fresh * rate_in + cached_input_tokens * rate_cache + output_tokens * rate_out) / 1_000_000

# e.g. an agent run that reads 400k tokens (300k of them cached) and writes 30k
print(f"${ergo_cost(400_000, 30_000, cached_input_tokens=300_000):.3f}")  # $0.199
```

Prompt caching matters a lot here: cached input is billed at 3% of the normal input rate.

## Option 2: Use it inside your coding agent

Amazon says Ergo works with **Claude Code, Codex, OpenCode and Kiro**. On Bedrock, the model card notes that **Claude Code needs a LiteLLM proxy** in front of Bedrock; the others connect through Bedrock directly. AWS keeps setup steps for each tool on the Bedrock page "Use Amazon Ergo-1.0 with coding tools".

This is where Ergo's speed matters most. An agent that edits a repository may make dozens of model calls per task, so tokens per second turns directly into minutes saved.

Practical tips:

- Start with a **non-critical repo** and compare Ergo with your current model on the same five or ten real tasks: time, cost and whether the result passes review.
- Keep your agent's **human-approval steps** on for anything destructive. Amazon says it tested that Ergo stops and asks before dangerous actions in sandboxed scenarios, but that's not a substitute for your own guardrails.

## Option 3: Self-host the weights

The weights are on Hugging Face at `Amazon-FMR/Ergo` (MXFP4), with `Ergo-mxfp8` and `Ergo-bf16` variants. SGLang and vLLM support them from day one, and SageMaker AI can fine-tune and host it on AWS.

**The memory math comes first.** Weights alone, before any KV cache for long contexts:

| Format | Download size | Fits in 8 × 80 GB GPUs (640 GB)? | Fits in 8 × 141 GB GPUs (1,128 GB)? |
| --- | --- | --- | --- |
| MXFP4 | 626 GB | Barely, with almost nothing left for KV cache | Yes, with room for KV cache |
| MXFP8 | 1.17 TB | No | No (needs more than one node) |
| BF16 | 2.22 TB | No | No (needs several nodes) |

So realistically, self-hosting means at least a full **8-GPU node with high-memory accelerators**, for the smallest format. That's simple arithmetic from the published sizes, not an official hardware requirement: check the model card and your serving engine's docs for supported configurations, and remember that long contexts need a lot of KV-cache memory on top.

A vLLM launch typically looks like this (tensor parallelism across the 8 GPUs of one node):

```bash
vllm serve Amazon-FMR/Ergo \
  --tensor-parallel-size 8 \
  --max-model-len 131072
```

Start with a shorter `--max-model-len` than the full 1M context and raise it once you know how much memory is left for the cache. Use the model card's recommended sampling: `temperature=1.0`, `top_p=0.99`.

One more expectation to set: AWS's Matt Wood told GeekWire that Ergo will run on other hardware, but "not at those speeds on off-the-shelf GPUs". Amazon co-designed the model with its Trainium chips, so self-hosting buys you **control**, not speed.

### Why self-host at all?

- **Data never leaves your infrastructure:** useful for regulated industries and private code.
- **Fine-tuning:** you can keep training Ergo on your own code base or documents and own the result.
- **Stability:** a downloaded model can't be retired or repriced by its maker.

The model card also notes the flip side: if you self-host or fine-tune, **you're responsible for evaluating and safeguarding your deployment**, including runtime controls.

## The licence: read this before you ship

Ergo is open-weights, not open-source. The Open Source Initiative's definition of open-source AI requires the training code and detailed training-data information too; Amazon has released the weights and a licence.

The **Amazon Ergo Open-Weights License** is free and lets you **run, fine-tune, modify and redistribute** Ergo and **build it into commercial products**, as long as you follow its acceptable use policy.

The clause that matters for some teams: if you operate a **Model-as-a-Service business** (offering models to third parties who control the inputs and get the outputs), and your company and its affiliates have **gross revenue over US$20 million in any 12 months**, you need a **separate written agreement with Amazon** before offering Ergo in that business. Internal use, research and using Ergo to power features of your own product aren't affected by that clause.

If you're an AI platform, inference provider or reseller, talk to your legal team before you list Ergo.

## When Ergo is a good fit

| Use Ergo when… | Look elsewhere when… |
| --- | --- |
| You run lots of agent or coding tasks and cost per task matters | You need the most capable model for the hardest reasoning |
| Speed matters (long agent loops, interactive tools) | You need images, audio or other non-text input |
| You need an open-weights model from a US company | You need fully open-source AI (training data and code) |
| You want to fine-tune and own a strong base model | You can't afford a multi-GPU node and don't want to use a cloud API |

## Track how models like Ergo talk about you

One more angle for teams that care about AI search: every new model that powers assistants and agents is another place your product can be recommended, or left out. [Vista AI's Brand Visibility Dashboard](https://www.vistaai.io/features/brand-visibility-dashboard) tracks visibility by engine and region, share of voice against competitors, rankings per query and sentiment, with the full AI answers behind each number.

## Key takeaways

- **Ergo is a 1.1T mixture-of-experts model that computes with 55B parameters per token.** That's why it's fast to serve and memory-hungry to host.
- **Bedrock is the easy path:** `global.amazon.ergo-1.0`, $1/$3 per million tokens, OpenAI-compatible endpoint, zero data retention.
- **It works in Claude Code (via LiteLLM), Codex, OpenCode and Kiro.** Benchmark it on your own tasks.
- **Self-hosting starts at 626 GB of weights**, which in practice means a full high-memory 8-GPU node, and won't match Amazon's Trainium speeds.
- **The licence is free and commercial-friendly**, except for model-as-a-service businesses over $20M in revenue, which need a separate deal.

*Sources, checked December 2, 2026: Amazon,* [*Introducing Amazon Ergo*](https://www.aboutamazon.com/amazon-ergo)*; Hugging Face,* [*Amazon-FMR/Ergo model card*](https://huggingface.co/Amazon-FMR/Ergo) *and* [*licence*](https://huggingface.co/Amazon-FMR/Ergo/blob/main/LICENSE.md)*; AWS,* [*Amazon Bedrock model card for Amazon Ergo-1.0*](https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0.html)*; Open Source Initiative,* [*Open Source AI Definition 1.0*](https://opensource.org/ai/open-source-ai-definition)*;* [*GeekWire*](https://www.geekwire.com/2026/amazon-shifts-ai-strategy-with-new-open-weights-ergo-model-and-faster-trainium3sr-system/) *(Dec 1, 2026);* [*The Register*](https://www.theregister.com/ai-and-ml/2026/12/02/amazon-is-back-in-the-llm-race-with-open-weights-ergo/5313855) *(Dec 2, 2026).*
