Amazon Ergo Coding Setup: Benchmarks, vLLM, and Bedrock Guide

Build a real Amazon Ergo coding setup with verified benchmarks, vLLM flags, Bedrock caching math, and configs for OpenCode, Cursor, and Claude Code.

DDeven Rathore 11 min read

Amazon Frontier Model Research (FMR) released Amazon Ergo on December 1, 2026 at AWS re:Invent, publishing a 1.1T-parameter open-weights coding model on Hugging Face alongside hosted inference on Amazon Bedrock. Building a practical Amazon Ergo coding setup starts with one hardware constraint: its smallest MXFP4 checkpoint weighs roughly 626 GB, making Bedrock's $0.03/M cached-input tier at over 400 tokens/sec the realistic default for most engineering teams.

Key Takeaways

  • Cluster-Class Footprint: Amazon Ergo runs a 1.1T total / 55B active MoE architecture whose MXFP4 weights take ~626 GB before KV cache, ruling out laptops and local Ollama installs.
  • Verified Coding Scores: Published benchmarks report 74.2% on DeepSWE, 65.4% on FMR-Bench AI SWE, 46.2% on Terminal-Bench 4.0, and 31.5% on FrontierSWE v2, paired with a 1M context window.
  • Day-0 vLLM Serving: Self-hosting uses vllm/vllm-openai:amazon-fmr-ergo with --enable-expert-parallel, --tool-call-parser ergo, and --reasoning-parser ergo, plus optional DSpark speculative decoding.
  • Aggressive Bedrock Caching: Amazon Bedrock serves Ergo on Trainium3 at $1.00/M input, $0.03/M cached input, and $3.00/M output tokens—a 97% discount on repeated repository context.

What Amazon Ergo Actually Is and Why Laptops Cannot Run It

Amazon Ergo is a sparse Mixture-of-Experts model designed for long-horizon coding tasks, combining 1.1 trillion total parameters with 55 billion active parameters per generated token. Its release topped Hacker News with 1,414 points and 573 comments, yet its memory footprint places it squarely in multi-GPU cluster territory.

According to the Amazon Ergo official announcement, each forward pass routes tokens across 256 routed experts using top-8 routing plus 1 shared expert. The architecture supports a 1M-token context window and up to 128K output tokens, allowing agents to hold large codebases and emit sprawling multi-file patches in a single turn.

Weight Footprints Across MXFP4, MXFP8, and BF16

The Amazon-FMR/Ergo repository on Hugging Face ships weights in three numerical formats. Even the smallest quantized checkpoint demands enterprise VRAM capacity once you account for runtime overhead.

Precision Format Approximate Weight Size Practical Hosting Footprint
MXFP4 ~626 GB 4x–8x high-VRAM server GPUs (minimum self-host tier)
MXFP8 ~1.17 TB Multi-node or dense 8x+ high-memory GPU cluster
BF16 ~2.22 TB Full-precision evaluation, tuning, or multi-node serving

Active-parameter efficiency keeps per-token compute low, which explains how Ergo runs fast once loaded. Static weight storage still requires every expert to sit in GPU memory, so consumer workstations and laptop Ollama setups cannot hold the model without crippling disk swaps.

Watch Out Never size a self-hosted GPU cluster to the raw 626 GB MXFP4 checkpoint size alone. Leaving tight headroom causes KV cache evictions as soon as an agent pushes sessions toward the 1M-token context limit.

Amazon Ergo Benchmarks: Where It Wins and Where It Trails

Published Amazon Ergo benchmarks show dependable performance on mainstream software engineering suites while leaving visible headroom on the hardest frontier tasks. All four verified figures below come directly from the Amazon-FMR/Ergo model card.

Benchmark Amazon Ergo Score Evaluation Focus
DeepSWE 74.2% Multi-file repository bug fixing and patch validation
FMR-Bench AI SWE 65.4% End-to-end agentic software engineering workflows
Terminal-Bench 4.0 46.2% Shell execution, environment debugging, and CLI recovery
FrontierSWE v2 31.5% Hardest unresolved frontier engineering problems

Scoring 74.2% on DeepSWE and 65.4% on FMR-Bench AI SWE puts Ergo firmly in the top tier of open-weights coding LLMs in 2026 for daily ticket resolution and feature implementation. The steeper drop to 46.2% on Terminal-Bench 4.0 and 31.5% on FrontierSWE v2 shows where brittle shell state and deeply novel architecture bugs still warrant human review or escalation.

Throughput and Context Window Effects on Agent Loops

Benchmark accuracy tells only part of the story inside an iterative agent harness. Running on Trainium3 in Amazon Bedrock, Amazon Ergo sustains over 400 tokens/sec, shrinking the dead time between tool calls across 20-step or 40-step edit-test-fix loops.

Pairing high decode speed with a 1M-token context window lets an agent keep service modules, compiler output, and failing test traces in working memory simultaneously. That combination pays off during structured cross-file refactors—such as using AI coding agents for Rust porting and hot-path rewrites—where fast iteration often beats slower single-shot guesses.

Self-Hosting Amazon Ergo with vLLM and DSpark Speculative Decoding

Teams with existing GPU nodes can launch an Amazon Ergo vLLM self-host endpoint on Day 0 using Amazon FMR's published Docker image and parser flags. Omitting either custom parser breaks structured tool execution and mixes reasoning tokens into user-visible output.

The official vLLM serving recipe specifies three required serving flags for agentic workloads: --enable-expert-parallel to distribute the 256 routed experts cleanly across GPUs, --tool-call-parser ergo to emit valid function calls, and --reasoning-parser ergo to isolate thinking traces.

docker run --gpus all --ipc=host \
  -p 8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:amazon-fmr-ergo \
  --model Amazon-FMR/Ergo \
  --tensor-parallel-size 8 \
  --enable-expert-parallel \
  --tool-call-parser ergo \
  --reasoning-parser ergo

This command exposes an OpenAI-compatible HTTP server on port 8000 ready for multi-turn tool calling across an 8-GPU server node.

Adding DSpark Speculative Decoding and SGLang Disaggregation

To lower per-token decode latency on self-hosted hardware, attach the companion Amazon-FMR/Ergo-dspark draft network for block speculative decoding. Structured source code, imports, and repetitive diffs yield strong draft acceptance rates, speeding up long patch generations without altering output distribution.

vllm serve Amazon-FMR/Ergo \
  --tensor-parallel-size 8 \
  --enable-expert-parallel \
  --tool-call-parser ergo \
  --reasoning-parser ergo \
  --speculative-config '{"model": "Amazon-FMR/Ergo-dspark"}'

Check the vLLM serving recipe for Amazon Ergo to match speculative draft-length settings to your exact GPU topology and batch concurrency. If your cluster handles heavy repository ingestion alongside live IDE completions, SGLang provides a strong alternative with prefill/decode disaggregation so long-context prefills do not stall interactive decoding.

Connecting Amazon Ergo to OpenCode, Cursor, and Claude Code

Wiring Amazon Ergo into your daily editor takes a few lines of config once your Bedrock access or vLLM endpoint is active. Each coding harness speaks a slightly different wire protocol, so match the adapter to the client.

OpenCode via Amazon Bedrock

OpenCode supports Amazon Bedrock directly, letting you target Ergo with the us.amazon.ergo-1.0 model identifier and standard AWS credentials. Drop the following provider block into opencode.json in your project root or global config directory.

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "amazon-bedrock": {
      "models": {
        "us.amazon.ergo-1.0": {
          "name": "Amazon Ergo 1.0",
          "limit": {
            "context": 1000000,
            "output": 128000
          }
        }
      }
    }
  },
  "model": "amazon-bedrock/us.amazon.ergo-1.0"
}

OpenCode resolves your active AWS profile, IAM role, and region automatically from your shell environment, keeping API secrets out of version control.

Cursor with Local vLLM or OpenRouter

Cursor speaks the OpenAI Chat Completions protocol natively, making it straightforward to connect against a self-hosted vLLM cluster or an OpenRouter endpoint. Open Settings → Models, add Amazon-FMR/Ergo as a custom model name, and override the OpenAI Base URL.

Base URL:   http://<your-vllm-host>:8000/v1
Model Name: Amazon-FMR/Ergo
API Key:    <your-vllm-api-key-or-openrouter-key>

Make sure your vLLM server launched with --tool-call-parser ergo; otherwise Cursor's composer and file-editing tools will fail to parse structured edits.

Claude Code via a LiteLLM Proxy Bridge

Claude Code communicates over the Anthropic Messages API, so routing it to Amazon Ergo requires a protocol translation proxy. LiteLLM fills that gap cleanly by accepting Anthropic-format requests locally and forwarding them to Amazon Bedrock or your vLLM server.

# litellm_config.yaml
model_list:
  - model_name: amazon-ergo
    litellm_params:
      model: bedrock/us.amazon.ergo-1.0
      aws_region_name: us-east-1
  - model_name: amazon-ergo-vllm
    litellm_params:
      model: openai/Amazon-FMR/Ergo
      api_base: http://<your-vllm-host>:8000/v1
      api_key: os.environ/VLLM_API_KEY

Start the proxy with litellm --config litellm_config.yaml --port 4000, then point Claude Code at it using environment variables.

export ANTHROPIC_BASE_URL="http://localhost:4000"
export ANTHROPIC_API_KEY="local-proxy-key"
claude --model amazon-ergo

This bridge translates tool schemas, system prompts, and streaming chunks without modifying Claude Code itself.

Pro Tip Prompt caching only triggers when leading message prefixes stay byte-identical across turns. Bloated or dynamically changing MCP tool schemas can bust your cache prefix and erase the $0.03/M rate—review our guide on lean MCP server setups for Claude Code to keep tool definitions tight.

Bedrock Pricing vs. Self-Hosting: Cost and License Tradeoffs

For individual engineers and most product teams, Amazon Ergo Bedrock pricing beats dedicated GPU clusters on both cost and operational overhead. Prompt caching does the heavy lifting because coding agents resend the same repository context on nearly every turn.

Token Math at Real Agent Cache Hit Rates

Amazon Bedrock bills Ergo on Trainium3 at $1.00 per million uncached input tokens, $0.03 per million cached input tokens, and $3.00 per million output tokens. Take an active coding day that processes 10 million input tokens and generates 500,000 output tokens:

Prompt Cache Hit Rate Input Cost (10M Tokens) Output Cost (500K Tokens) Daily Total 22-Day Monthly Total
0% (All Uncached) $10.00 $1.50 $11.50 $253.00
80% Cached $2.24 $1.50 $3.74 $82.28
90% Cached $1.27 $1.50 $2.77 $60.94

At a realistic 90% cache hit rate, a heavy coding workflow costs roughly $2.77 per day—or $60.94 across a 22-day engineering month—with zero idle spend overnight or on weekends. Renting a 4x–8x high-VRAM GPU node to self-host MXFP4 weights bills around the clock whether anyone is shipping code, so self-hosting makes financial sense mainly under strict data-residency rules, air-gapped networks, or sustained high-volume batch workloads.

Amazon Ergo Open-Weights License Caveats

Amazon Ergo publishes downloadable checkpoints on Hugging Face, though its legal terms differ sharply from permissive licenses such as Apache 2.0 or MIT. The model ships under the Amazon Ergo Open-Weights License, which enforces acceptable use policies and restricts stripping or modifying its safety alignment.

The license also establishes revenue and commercial service thresholds that affect organizations reselling hosted inference or embedding the model inside large-scale commercial platforms. Before deploying self-hosted weights into a customer-facing service, have legal review the full license file in the Amazon-FMR/Ergo repository.

Frequently Asked Questions

Can You Run Amazon Ergo Locally on Consumer Hardware or Ollama?

No. Even in its smallest MXFP4 quantization, Amazon Ergo requires roughly 626 GB of memory for model weights alone before adding KV cache for long contexts. Running it locally requires a 4x–8x high-VRAM server GPU node, so individual developers should connect to Amazon Bedrock or a shared vLLM server instead.

How Much Does Amazon Ergo Cost on Amazon Bedrock with Prompt Caching?

Amazon Bedrock charges $1.00 per million uncached input tokens, $0.03 per million cached input tokens, and $3.00 per million output tokens on Trainium3. Because cached input costs 97% less than uncached input, a heavy coding day with 10M input tokens and 500K output tokens drops from $11.50 uncached to $2.77 at a 90% cache hit rate.

How Do You Configure Tool Calling and Reasoning Parsers for Amazon Ergo in vLLM?

Launch the official vllm/vllm-openai:amazon-fmr-ergo container with --enable-expert-parallel, --tool-call-parser ergo, and --reasoning-parser ergo. For lower decode latency on self-hosted GPUs, you can also attach the Amazon-FMR/Ergo-dspark draft network via --speculative-config following Amazon FMR's vLLM serving recipe.

Can You Use Amazon Ergo Inside Claude Code, OpenCode, or Cursor?

Yes. OpenCode connects natively to Amazon Bedrock using the us.amazon.ergo-1.0 model ID, Cursor points its OpenAI Base URL at a local vLLM cluster or OpenRouter, and Claude Code works by routing ANTHROPIC_BASE_URL through a local LiteLLM proxy backed by Bedrock or vLLM.

Deven Rathore

Engineering workflows, AI coding tools, and developer guides published on DuneBook.