# How to run Amazon Ergo as an AI agent

Amazon Ergo is an open-weights reasoning model, not a standalone agent app. To use its 1-million-token context and tool calling as an everyday AI agent, pair it with an agent harness that handles memory, apps, approval gates, and a sandboxed computer.

Updated 2026-12-02. Page: https://casama.ai/learn/run-amazon-ergo-as-an-ai-agent

## What Amazon Ergo is (and what it still needs)

Released on December 1, 2026 by Amazon Frontier Model Research, **Amazon Ergo** (Ergo-1.0) is Amazon's first internally developed open-weights foundation model. It is a **1.1-trillion-parameter Mixture-of-Experts (MoE)** model with **55 billion active parameters** per token, a **1-million-token context window**, and up to **128,000 output tokens**.

Ergo was trained specifically for software engineering and long-horizon agent loops — reading large repositories, calling tools in sequence, checking its own output, and recovering from errors. Its weights are published on Hugging Face in BF16, MXFP8, and MXFP4 under the Amazon Ergo Open-Weights License for serving with **vLLM** or **SGLang**, and it is hosted on **Amazon Bedrock** on AWS Trainium hardware at over 400 output tokens per second.

What Ergo does **not** include by itself is the agent around the model:

- A sandboxed computer (terminal, files, browser) where it can actually run commands and verify code.
- Connected apps (Gmail, Google Drive, GitHub, Calendar, Slack, Notion) with scoped permissions.
- Approval gates that pause before sending an email, pushing a commit, or spending money.
- Persistent memory, scheduled routines, and native phone and desktop apps to talk to it from anywhere.

Pairing Ergo with an agent platform like **Casama** gives the model that full harness without forcing you to build and maintain one yourself.

## Three ways to run Amazon Ergo as an AI agent

| Setup | Where Ergo runs | How Casama connects | Best for |
|---|---|---|---|
| **Self-hosted vLLM / SGLang + Casama** | Your own GPU servers or private cloud | Add as an **OpenAI-compatible** provider (`http://<host>/v1`) | Full control over weights, VPC privacy, custom fine-tunes |
| **Amazon Bedrock + OpenAI-compatible gateway + Casama** | AWS Bedrock (`us.amazon.ergo-1.0` / `global.amazon.ergo-1.0`) | Point Casama's **OpenAI-compatible** provider at LiteLLM or Bedrock Access Gateway | >400 tok/s Trainium speed, zero data retention, existing AWS billing |
| **Multi-provider gateway (OpenRouter) + Casama** | Managed inference providers as they list Ergo | Paste your **OpenRouter** API key in Casama Settings | Fastest setup, zero infrastructure, automatic model fallbacks |

## How to connect Amazon Ergo to Casama

1. **Expose an OpenAI-compatible endpoint for Ergo.**
   - **Self-hosted:** Serve the Hugging Face weights with `vLLM` or `SGLang` (both expose an OpenAI-compatible `/v1/chat/completions` API with tool calling enabled).
   - **Amazon Bedrock:** Run a lightweight OpenAI-compatible proxy such as LiteLLM or AWS's Bedrock Access Gateway pointing at your Bedrock Ergo inference profile (`us.amazon.ergo-1.0` or `global.amazon.ergo-1.0`).
   - **OpenRouter:** Create an API key once Ergo is enabled on your account.
2. **Add the provider in Casama.** Open **Settings → AI Keys**, choose **OpenAI-compatible** (or **OpenRouter**), and enter your base URL, API key, and model ID.
3. **Assign Ergo per bot with a fallback.** In any bot's settings, pick Ergo as the primary model for coding, long-document review, or multi-step terminal work. Set a second provider (or Casama Cloud's built-in models) as a fallback in case your endpoint is offline or rate-limited.
4. **Give the bot tools and guardrails.** Connect GitHub, Gmail, Drive, or other apps, enable a sandboxed computer if the bot needs a shell or browser, and keep approval prompts on for external or destructive actions.

## See it in action

- **Video (0:45):** [BYOK & local Ollama ($0)](https://media.casama.ai/reels/g6-v2.mp4) — Bring your own API keys or point bots at local Ollama models for $0.
- **Video (0:45):** [Plug in your ChatGPT subscription](https://media.casama.ai/reels/g6b-v2.mp4) — Sign in with your ChatGPT plan to power your self-hosted Casama bots.

## Amazon Bedrock AgentCore vs. Casama

At AWS re:Invent, Amazon also highlighted **Bedrock AgentCore** as its managed runtime for Ergo. Both let you run Ergo on long-horizon tasks, but they serve different needs:

| | Amazon Bedrock AgentCore | Casama |
|---|---|---|
| **What it is** | AWS developer runtime and SDK for building custom backend agents | Ready-to-use AI agent workspace with open-source apps and developer kit |
| **Where you use it** | Inside your own software or AWS workflows | Native iOS, Android, macOS, Windows, Linux, web, and chat channels |
| **Models** | Bedrock models (Ergo, Claude, Nova, etc.) | Casama Cloud models or BYOK (OpenAI, Anthropic, Google, OpenRouter, any OpenAI-compatible endpoint including vLLM/SGLang/Bedrock proxies) |
| **Sandboxed computer** | AWS-managed code execution primitives | Per-bot Linux/desktop sandbox with live view, file browser, and terminal |
| **Human approvals** | Build your own UI and approval flow | Built-in approval cards, scoped action rules, and mobile push notifications |
| **Self-hosting** | AWS cloud only | Free personal self-hosting on your own server, or managed on Casama Cloud |

If you are an engineering team embedding an invisible agent microservice inside an AWS product, AgentCore is built for that. If you want an AI teammate you can actually message from your phone, connect to your apps, schedule on routines, and supervise with one-tap approvals, Casama is ready out of the box.

## Practical tips for running Ergo in an agent loop

- **Use Ergo where 1M context and speed shine:** multi-file refactors, PR reviews, reading entire codebases or long financial/legal packets, and repetitive multi-step workflows.
- **Keep approvals on for external actions:** at >400 tokens/second, a long-horizon model can chain dozens of tool calls in seconds. Casama's approval rules let read-only steps run automatically while pausing before emails, posts, or destructive commands.
- **Pair with a fallback model:** if a task relies heavily on visual screenshots or your self-hosted GPU cluster is busy, a per-bot fallback keeps routines running without manual intervention.

## Questions

### Is Amazon Ergo an AI agent or a model?

Amazon Ergo is an open-weights reasoning model (1.1T total / 55B active parameters, 1M context), not a standalone agent application. To run it as an AI agent, you connect it to an agent harness like Casama that provides tools, memory, approvals, routines, and a sandboxed computer.

### Can I self-host Amazon Ergo and use it with Casama?

Yes. Serve the Ergo weights from Hugging Face using `vLLM` or `SGLang`, then add the server's `/v1` URL in Casama under **Settings → AI Keys → OpenAI-compatible**. A self-hosted Casama server is free for personal use and can talk directly to a local or private-network model server.

### Can I use Amazon Ergo from Amazon Bedrock inside Casama?

Yes, by placing a lightweight OpenAI-compatible gateway (such as LiteLLM or AWS's Bedrock Access Gateway) in front of your Amazon Bedrock inference profile (`us.amazon.ergo-1.0` or `global.amazon.ergo-1.0`) and adding that gateway URL as an OpenAI-compatible provider in Casama.

### How does Amazon Ergo compare to running a small local model on Ollama?

Small local models on a laptop GPU are great for short, private tasks, but they often lose track across 20+ sequential tool calls. Amazon Ergo is a frontier-scale 1.1T MoE model designed for long-horizon coding and multi-step tool use — it requires multi-GPU server hardware to self-host, or managed inference on Bedrock.

### What is the difference between Amazon Bedrock AgentCore and Casama?

Bedrock AgentCore is an AWS infrastructure runtime for developers building custom backend agents on AWS. Casama is a complete multi-platform AI agent workspace (iOS, Android, macOS, Windows, Linux, web) with built-in app integrations, approval gates, routines, and sandboxed computers that can use Ergo alongside other models.

## Related questions

- [Which AI agents let you choose the model or use your own API keys?](https://casama.ai/learn/which-ai-agents-let-you-choose-the-model)
- [Can AI agents run on local models like Ollama?](https://casama.ai/learn/can-ai-agents-run-on-local-models)
- [How do I self-host an AI agent?](https://casama.ai/learn/how-to-self-host-an-ai-agent)
- [Best open-source AI agents](https://casama.ai/compare/best-open-source-ai-agents)
- [What is a computer-use AI agent?](https://casama.ai/learn/what-is-a-computer-use-agent)

Get the app at https://casama.ai/download and sign up free
