ergollm.dev
Developer Integration Guide

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.

Setup
Native AWS Bedrock Converse API with prompt caching (97% discount on cached tokens).
# bedrock_setup.py
# 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"])
EOF

Choosing 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 cachePoint marker.
  • Keep prefix ordering deterministic across agent turns to sustain 80%+ cache hits at $0.03 / 1M tokens.
  • Set maxTokens up to 128K for large multi-file refactors.
Run Amazon Ergo 1.1T — Managed API & GPU Cloud
Partner / Reference Links

Explore More Amazon Ergo Tools

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.