Amazon Ergo Setup Guide: Bedrock, Coding Agents & vLLM
Copy-paste configurations to run Amazon Ergo (Ergo 1.0) on AWS Bedrock, connect it to Claude Code, OpenCode, or Kiro, or self-host open weights (BF16 / MXFP8 / MXFP4) with vLLM and SGLang.
# 1. Install AWS SDK
pip install boto3
# 2. Configure AWS credentials
export AWS_ACCESS_KEY_ID="AKIA..."
export AWS_SECRET_ACCESS_KEY="..."
export AWS_DEFAULT_REGION="us-east-1"
# 3. Run Python Converse API with cachePoint
python3 - <<'EOF'
import boto3
client = boto3.client("bedrock-runtime", region_name="us-east-1")
resp = client.converse(
modelId="amazon.ergo-1-0-v1:0",
system=[
{"text": "You are an expert software engineer."},
{"cachePoint": {"type": "default"}}
],
messages=[{"role": "user", "content": [{"text": "Write unit tests for auth.ts"}]}],
inferenceConfig={"maxTokens": 8192, "temperature": 0.1}
)
print(resp["output"]["message"]["content"][0]["text"])
EOFChoosing Hugging Face Weights for Self-Hosting
- MXFP4 (~550 GB) — Best default for single 8×H200 (1,128 GB) nodes with room for long-context KV cache.
- MXFP8 (~1,100 GB) — Fits 16×H100 or 8×B200 clusters when you want 8-bit microscaling precision.
- BF16 (~2,200 GB) — Full 16-bit weights requiring multi-node H200/B200 clusters.
Prompt Caching Checklist for Coding Agents
- Place static repository context, AGENTS.md, and tool definitions before the
cachePointmarker. - Keep prefix ordering deterministic across agent turns to sustain 80%+ cache hits at $0.03 / 1M tokens.
- Set
maxTokensup to 128K for large multi-file refactors.
Native Trainium 3 hosting at $1.00 / $0.03 cached / $3.00 per 1M tokens.
- 400+ output tok/s
- 97% Prompt Caching
- Zero cluster ops
Spin up 8×H200 or H100 pods for MXFP4 / MXFP8 self-hosting with vLLM.
- Per-second billing
- NVLink 8-GPU nodes
- Custom Docker images
Deploy open-weight MoE models on dedicated clusters with predictable SLAs.
- Open-weight support
- Dedicated throughput
- Private VPC options
Explore More Amazon Ergo Tools
VRAM & GPU Calculator
Calculate BF16 / MXFP8 / MXFP4 weights + KV cache VRAM and H100/H200/B200 node counts.
Ergo vs Claude Opus 5.5
Compare DeepSWE 74.2% vs 71.3% benchmarks and monthly Coding Agent API bills.
Pricing & Break-Even
Compare AWS Bedrock $1/$0.03/$3 rates against 24/7 H200 self-hosting clusters.
Frequently Asked Questions
What is the fastest way to call Amazon Ergo via API?+
The fastest path is AWS Bedrock using the Converse API (`boto3` in Python, AWS SDK for Java/Node.js, or an OpenAI-compatible Bedrock gateway). Enable prompt caching on your system prompt and repository context to unlock the $0.03/1M cached input rate.
How do I connect Claude Code to Amazon Ergo?+
Run a local or team proxy such as LiteLLM that translates Anthropic Messages API requests to AWS Bedrock, then set `ANTHROPIC_BASE_URL` and `ANTHROPIC_MODEL` in your shell before launching `claude`.
Which open-weight format should I download from Hugging Face for vLLM?+
For most self-hosted GPU clusters, choose `MXFP4` (~550 GB) to fit on a single 8×H200 node with ample KV cache headroom, or `MXFP8` (~1,100 GB) on multi-node H200/B200 clusters. `BF16` (~2,200 GB) is best reserved for research or multi-node full-precision evaluation.
Which coding tools natively or via proxy support Amazon Ergo?+
Amazon Ergo works with AWS Bedrock natively and is compatible with Claude Code (via proxy), Codex, OpenCode, and Kiro.