# How to use Amazon Ergo on Bedrock, OpenRouter or your own GPUs

> Bedrock needs an API key and the right model ID. Self-hosting starts at four GB300 GPUs and a 626 GB download.

URL: https://claudegpt.si/news/how-to-use-amazon-ergo  
Published: 2026-12-03T23:04:27.469Z  
Author: ClaudeGPT Si Newsroom  
Section: Guides  
Topics: Amazon, AWS, Amazon Bedrock, How to, Open-weight models, OpenRouter  
Publisher: ClaudeGPT Si

## Key takeaways

- On Amazon Bedrock, Ergo is called with the inference profile IDs global.amazon.ergo-1.0 or us.amazon.ergo-1.0; the base ID amazon.ergo-1.0 cannot be called directly.
- Bedrock charges $1.00 per million input tokens and $3.00 per million output tokens on the global profile, as of December 3, 2026, and Amazon says to set the output limit to at least 8,192 tokens.
- The smallest weights are a 626 GB download, and the vLLM and SGLang recipes start at four NVIDIA GB300 GPUs.

How to use Amazon Ergo comes down to three options: call it on Amazon Bedrock with an API key, call it through OpenRouter under the model name `amazon/ergo-1.0`, or download the weights from Hugging Face and serve them yourself. Most people should pick the first or second. The third needs a rack of data-center GPUs.

Ergo is the open-weight coding and agent model Amazon released on December 1, 2026, with 1.1 trillion parameters, of which 55 billion run for each token. How it stacks up against Anthropic's models is covered in [Amazon Ergo vs Claude](https://claudegpt.si/news/amazon-ergo-vs-claude).

Everything below comes from Amazon's [Bedrock model card](https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0.html), its [coding tools page](https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0-coding-tools.html), the [Hugging Face model card](https://huggingface.co/Amazon-FMR/Ergo) and the vLLM and SGLang recipes that card links to, as of December 3, 2026. The code is copied from those pages and was not run for this guide. One naming note: Amazon's marketing says "Amazon Ergo", and Bedrock calls the same model "Ergo-1.0".

## Which way to use Amazon Ergo

| Route | What you need | Price per million tokens (input / output) |
| --- | --- | --- |
| Amazon Bedrock | AWS account, Bedrock API key | $1.00 / $3.00 global, $1.10 / $3.30 US-only |
| OpenRouter | OpenRouter API key | $0.85 / $2.65 to $1.10 / $3.30, depending on the provider |
| HuggingChat | A browser | Not stated on the page |
| Self-hosting | Four or more data-center GPUs, 626 GB of disk or more | The weights are free of charge under Amazon's license |

Bedrock prices are from the model card. OpenRouter prices are from its public model list on December 3, when eight providers served Ergo, Bedrock among them.

## How to use Amazon Ergo on Bedrock

1. Create an AWS account at the [AWS sign-up page](https://portal.aws.amazon.com/billing/signup) if you don't have one.

2. In the Bedrock console, choose API keys, then Create long-term key. Store the value in the environment variable `AWS_BEARER_TOKEN_BEDROCK`.

3. If you call the model as an IAM user or role, attach a policy that allows `bedrock:InvokeModel` and `bedrock:InvokeModelWithResponseStream` on the Ergo inference profiles. The coding tools page has the full policy.

4. Install an SDK. Ergo works with the OpenAI SDK (Responses and Chat Completions APIs) and with boto3 (Converse and InvokeModel).

```bash
pip install -U openai
```

5. Save this as `bedrock-first-request.py` and run it:

```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(
    input="Can you explain the features of Amazon Bedrock?",
    model="global.amazon.ergo-1.0",
)
print(resp.output_text)
```

The boto3 version uses the Converse API with the same model ID:

```python
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': 'Can you explain the features of Amazon Bedrock?'}]
        }
    ]
)
print(response)
```

### Model IDs, output limits and reasoning effort

The base ID `amazon.ergo-1.0` cannot be called directly. Use `global.amazon.ergo-1.0`, which routes to any commercial AWS region, or `us.amazon.ergo-1.0`, which stays in US regions and costs 10% more. Amazon's table shows the US profile sending every request to us-east-2 (Ohio).

Ergo always reasons before it answers, and the reasoning counts against your output tokens. Amazon says to set the limit to at least 8,192. Set it lower and you can get an empty answer with `finish_reason: "length"`.

On Bedrock, `reasoning_effort` takes `low`, `medium`, `high`, `xhigh` or `max`. Passing `none` returns a 400 error.

Bedrock supports streaming, prompt caching, tool use, structured outputs, Guardrails and batch inference with Ergo. It does not support Knowledge Bases, token counting or intelligent prompt routing. Ergo is text only: it can't read images or screenshots.

## How to use Amazon Ergo in OpenCode, Codex or Claude Code

Amazon documents three coding tools, all billed through Bedrock with the same API key. It also names Kiro as compatible, but the page has no Kiro steps.

OpenCode is the shortest setup. Add this to `~/.config/opencode/opencode.json`, run `opencode` in your project folder, type `/models` and pick Ergo:

```json
{
  "$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"
}
```

A warning sits under that config in Amazon's docs: each request reserves its full output limit against your account's quota. If you hit 429 throttling errors, lower `limit.output` from 131072 to something closer to what you use.

For Codex CLI, install it with `npm i -g @openai/codex` and put this in `~/.codex/config.toml`:

```toml
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"
```

Amazon marks the `web_search = "disabled"` line as required: Codex's built-in server-side tools, web search included, aren't supported in this setup. Also set `AWS_REGION=us-west-2` in your shell profile. Codex doesn't read the region from your AWS CLI profile. A startup message that says model metadata was not found can be ignored, according to Amazon.

Claude Code takes more work. It speaks Anthropic's Messages API, which Ergo on Bedrock doesn't serve, so Amazon's instructions run a local LiteLLM proxy on port 4000 to translate, plus a launcher script that points `ANTHROPIC_BASE_URL` at the proxy and unsets `CLAUDE_CODE_USE_BEDROCK`. The config file and the script are on the [coding tools page](https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0-coding-tools.html). If OpenCode or Codex suits you, start there.

## How to use Ergo on OpenRouter or in a chat window

OpenRouter lists the model as `amazon/ergo-1.0` with a 1,048,576-token context window. Its API is OpenAI-compatible, so the Bedrock script above works with two changes: the base URL from OpenRouter's [quickstart](https://openrouter.ai/docs/quickstart) and the model name.

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="<OPENROUTER_API_KEY>",
)
resp = client.responses.create(
    model="amazon/ergo-1.0",
    input="Write a Python function that reverses a string.",
)
print(resp.output_text)
```

Providers differ. On December 3 the cheapest listed, Chutes, charged $0.85 per million input tokens and $2.65 per million output. One provider, Featherless, capped the context at 262,144 tokens, a quarter of the full window. Check the provider list before sending a very long prompt.

For a quick try without code, HuggingChat lists `Amazon-FMR/Ergo` in its [model picker](https://huggingface.co/chat/models/Amazon-FMR/Ergo). The page doesn't say what it costs or whether you need to sign in. Amazon's own Ergo pages don't mention a consumer app.

## What you need to run Ergo on your own hardware

The weights are on Hugging Face in three precisions:

| Repository | Precision | Download size |
| --- | --- | --- |
| `Amazon-FMR/Ergo` | MXFP4 | 626 GB |
| `Amazon-FMR/Ergo-mxfp8` | MXFP8 | 1.17 TB |
| `Amazon-FMR/Ergo-bf16` | BF16 | 2.22 TB |

The model card gives no GPU requirements. The serving recipes do, and they are steep. vLLM's [recipe](https://recipes.vllm.ai/Amazon-FMR/Ergo) defaults to four NVIDIA GB300 GPUs and has presets for one node of eight H200s or eight B300s. SGLang's [cookbook](https://docs.sglang.io/cookbook/autoregressive/Amazon/Ergo) calls four GB300s the "smallest single-node datacenter footprint", with about 147 GiB of weights on each GPU. It says the MXFP4 and MXFP8 checkpoints need Blackwell or Vera Rubin generation NVIDIA GPUs, and that full BF16 needs at least 16 GPUs.

Neither engine supports Ergo in a regular release yet. vLLM tells you to use the image `vllm/vllm-openai:amazon-fmr-ergo`. Its baseline command is:

```bash
export VLLM_USE_RUST_FRONTEND=1
vllm serve Amazon-FMR/Ergo \
  --max-model-len 1048576 \
  --override-generation-config '{"max_new_tokens": 131072}' \
  --enable-prefix-caching \
  --async-scheduling \
  --enable-expert-parallel \
  --tensor-parallel-size 4 \
  --enable-auto-tool-choice \
  --tool-call-parser ergo \
  --tool-strict-level function \
  --reasoning-parser ergo \
  --speculative-config '{"method":"dspark","model":"Amazon-FMR/Ergo-dspark","num_speculative_tokens":8,"attention_backend":"FLASH_ATTN","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' \
  --draft-kv-pool
```

The last flags load a second, small draft model, `Amazon-FMR/Ergo-dspark`, that guesses tokens ahead to speed up generation. For SGLang, the container is `docker pull lmsysorg/sglang:ergo`, and the launch command comes from a builder on the cookbook page where you pick your hardware. SGLang's examples then call the server with the OpenAI client at `http://localhost:30000/v1` and the model name `Amazon-FMR/Ergo`.

Amazon's card recommends `temperature` 1.0 and `top_p` 0.99. If you plan to fine-tune or load the model with Hugging Face Transformers, it says to use the BF16 checkpoint.

The closest thing to a desk-side setup in either recipe is SGLang's two NVIDIA DGX Stations linked over 400G networking, which keeps part of the model in host memory and caps the context at 32K tokens. There is no laptop path. Nothing in the docs mentions a GGUF build, Ollama or a smaller Ergo.

## What the docs leave open

The pages disagree about reasoning effort. Bedrock accepts five levels. The Hugging Face card lists "fixed reasoning effort" as a limitation, and SGLang says there is no effort control, only a per-request switch to skip the reasoning block. Self-hosters should expect behavior that differs from Bedrock here.

A faster Turbo mode, which Amazon says reaches 2,200 output tokens per second against over 400 for the standard service, is in limited preview on Bedrock. Amazon has not announced its price.

## Frequently asked questions

### Is Amazon Ergo free?

The weights are free of charge to download, run and fine-tune under the Amazon Ergo Open-Weights License, but you need your own hardware. On Amazon Bedrock, Ergo costs $1.00 per million input tokens and $3.00 per million output tokens on the global profile, as of December 3, 2026.

### Is Amazon Ergo on Hugging Face?

Yes. The weights are in three repositories under the Amazon-FMR organization: Amazon-FMR/Ergo (MXFP4, 626 GB), Amazon-FMR/Ergo-mxfp8 (1.17 TB) and Amazon-FMR/Ergo-bf16 (2.22 TB). HuggingChat also lists the model in its model picker.

### Can I run Amazon Ergo locally?

Not on a laptop or a single consumer GPU. The vLLM recipe defaults to four NVIDIA GB300 GPUs, and SGLang's smallest listed setup is two DGX Stations with the context capped at 32K tokens. The docs mention no GGUF or Ollama build.

### Is there an Amazon Ergo app?

Amazon's Ergo pages don't mention a consumer app. You can use Ergo through the Amazon Bedrock API, through coding tools such as OpenCode, Codex CLI and Claude Code, through OpenRouter, or in HuggingChat in a browser.

## Sources

- [Amazon Ergo-1.0 model card](https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0.html), Amazon Web Services
- [Use Amazon Ergo-1.0 with coding tools](https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0-coding-tools.html), Amazon Web Services
- [Amazon-FMR/Ergo model card](https://huggingface.co/Amazon-FMR/Ergo), Amazon Frontier Model Research
- [Amazon Ergo](https://aws.amazon.com/ergo), Amazon Web Services
- [Introducing Amazon Ergo](https://www.aboutamazon.com/amazon-ergo), Amazon
- [Amazon-FMR/Ergo recipe](https://recipes.vllm.ai/Amazon-FMR/Ergo), vLLM
- [Amazon Ergo cookbook](https://docs.sglang.io/cookbook/autoregressive/Amazon/Ergo), SGLang
- [Amazon Ergo on OpenRouter](https://openrouter.ai/amazon/ergo-1.0), OpenRouter
- [OpenRouter quickstart](https://openrouter.ai/docs/quickstart), OpenRouter
- [HuggingChat: Amazon-FMR/Ergo](https://huggingface.co/chat/models/Amazon-FMR/Ergo), Hugging Face
