Amazon has just launched Amazon Ergo (amazon.ergo-1.0), its first frontier open-weights model, unveiled at AWS re:Invent 2026. It’s built for software engineering and long-running agentic work, the kind of multi-file refactors and autonomous terminal tasks that eat through tokens fast.

The headline numbers: a 1.1-trillion-parameter Mixture-of-Experts model, a context window of just over 1 million tokens, more than 400 output tokens per second on Amazon Bedrock, and pricing of $1 per million input tokens and $3 per million output tokens. That’s a fraction of what closed frontier models cost.

Whether you want to call it through an API, plug it into OpenAI’s tools (the OpenAI SDK and Codex CLI) or run it inside Claude Code, here’s the complete step-by-step setup.

Amazon Ergo at a Glance

Model IDamazon.ergo-1.0 (call it through an inference profile; see Step 1)
Size1.1 trillion parameters, Mixture-of-Experts
Context window1,048,568 tokens
Speed on Bedrock400+ output tokens per second (served on AWS Trainium3)
Bedrock pricing (global)$1 input / $3 output per 1M tokens
Bedrock pricing (US-only)$1.10 input / $3.30 output per 1M tokens
LicenceErgo Open-Weights License: run, fine-tune and redistribute, including commercially, under an acceptable use policy
Best forCoding agents, multi-file refactors, long-horizon business workflows

Because it’s open-weights, you can also download Ergo from Hugging Face and self-host it on vLLM or SGLang. That suits teams with serious GPU budgets; for running smaller open models on everyday hardware, see how to run AI offline from a USB drive. For everyone else, Amazon Bedrock is the fastest route.

Step 1: Set Up Amazon Bedrock Access

Check Your IAM Permissions

Your AWS user or role needs bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream on the Ergo inference profiles.

Always Use an Inference Profile (Crucial!)

Ergo only runs through cross-Region inference. Calling the base ID amazon.ergo-1.0 directly returns a 400 error. Use one of these instead:

  • global.amazon.ergo-1.0: global routing, works from any commercial Region ($1 / $3 per 1M tokens).
  • us.amazon.ergo-1.0: US Regions only ($1.10 / $3.30 per 1M tokens).

Create a Bedrock API Key

In the Amazon Bedrock console (for example in us-west-2), open API keys and create a long-term key. Short-term keys expire and need regenerating. Then export it in your terminal:

export AWS_REGION=us-west-2
export AWS_BEARER_TOKEN_BEDROCK="your-bedrock-api-key"

Treat this key like a password: don’t commit it to Git or paste it into shared documents.

No AWS account? You can also use Ergo through OpenRouter with the model slug amazon/ergo-1.0.

Step 2: Use Amazon Ergo With OpenAI Tools

Bedrock exposes an OpenAI-compatible endpoint, so OpenAI’s tools can talk to Ergo with no translation layer.

Option A: The OpenAI Python SDK

Point the standard openai client at Bedrock’s /openai/v1 base URL, using your Bedrock key:

import os
from openai import OpenAI

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

response = client.responses.create(
    model="global.amazon.ergo-1.0",
    input="Write a Python script to parse nested JSON logs and extract error tracebacks."
)

print(response.output_text)

Option B: Codex CLI

Codex CLI connects straight to Bedrock’s Responses API. Add this to ~/.codex/config.toml:

model = "global.amazon.ergo-1.0"
model_provider = "bedrock-runtime"
model_reasoning_effort = "medium"
web_search = "disabled"   # required: Bedrock doesn't run server-side tools like web search
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"

Tips:

  • Set AWS_REGION in your shell profile. Codex doesn’t read the Region from your AWS CLI profile.
  • A “model metadata … not found” warning on startup is safe to ignore.
  • Working outside a Git repo? Add --skip-git-repo-check.

Step 3: Use Amazon Ergo Inside Claude Code

Claude Code speaks Anthropic’s Messages API, while Ergo’s Bedrock endpoint speaks OpenAI’s format. AWS’s documented fix is a small local LiteLLM proxy that translates between them. (If you already use Claude for business automation, like automating Instagram carousels with Claude, this lets you try Ergo in the same workflow.)

1. Create a LiteLLM Config

Run mkdir -p ~/ergo-claude-code, then save this as ~/ergo-claude-code/litellm.yaml:

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

The master_key is just a local placeholder you choose. It isn’t a real credential, but it must match the token Claude Code sends in the next step.

2. Start the Local Proxy

Using uv (or your preferred Python runner), start LiteLLM on port 4000:

uv tool run --from 'litellm[proxy]' litellm \
  --config ~/ergo-claude-code/litellm.yaml \
  --host 127.0.0.1 \
  --port 4000

The proxy reads your Bedrock key at startup, so restart it if you change the key.

3. Launch Claude Code Pointed at Ergo

In a second terminal tab, point Claude Code at the proxy and map every model slot, including subagents, to Ergo:

export ANTHROPIC_BASE_URL="http://127.0.0.1:4000"
export ANTHROPIC_AUTH_TOKEN="sk-ergo-local"   # must match master_key
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   # this setup uses the proxy, not Bedrock mode

claude --setting-sources project,local

--setting-sources project,local skips your user-level ~/.claude/settings.json, so any Bedrock or model overrides saved there don’t override this setup.

3 Gotchas to Keep in Mind

  1. Reasoning is always on. Ergo always thinks before answering, so a reasoning effort of none returns a 400 error. Use medium (as in the configs above) or higher.
  2. Don’t set your output limit too low. Ergo uses part of the output limit for reasoning, so allow at least 8,192 output tokens. If the limit is too low, you’ll get an empty response that stopped for length.
  3. …but don’t set it needlessly high either. Every request reserves its full output limit against your Bedrock quota, so keep the limit close to what you actually need to avoid throttling yourself.

Is Amazon Ergo Worth Trying?

If you run coding agents or long automated workflows, Ergo’s low per-token price and high speed make it worth testing against your current model, especially for high-volume tasks where cost adds up quickly. It fits neatly into a lean solopreneur tech stack, and because the setup above plugs into tools you already use, switching back is just a config change. If you build apps with AI, it’s also a cheap engine for vibe coding business websites.

Frequently Asked Questions

Is Amazon Ergo free?

The weights are open, so you can self-host it without paying per token, but you’ll need substantial GPU hardware for a 1.1-trillion-parameter model. On Amazon Bedrock it costs $1 per million input tokens and $3 per million output tokens with global routing.

Why do I get a 400 error when calling amazon.ergo-1.0?

Ergo can’t be called by its base model ID. Use the global.amazon.ergo-1.0 or us.amazon.ergo-1.0 inference profile instead. A 400 error can also mean you set reasoning effort to none.

Can Claude Code connect to Ergo directly?

No. Claude Code uses the Anthropic Messages API, and Ergo’s Bedrock endpoint uses OpenAI-style APIs. A local LiteLLM proxy translates between them, as shown in Step 3.

Can I use Ergo without an AWS account?

Yes. Ergo is available on OpenRouter as amazon/ergo-1.0, or you can download the open weights and host it yourself.

MY assistant is in touch with you AudioNative Player…


Discover more from GotMeNow Blog

Subscribe to get the latest posts sent to your email.

Leave a Reply

You May Love