Trang này hiện chỉ có bản tiếng Anh.

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

A calm painterly dusk landscape of softly lit stone terraces and warm amber lantern arches bridged across misty lavender clouds toward a deep plum horizon.

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:

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

SetupWhere Ergo runsHow Casama connectsBest for
Self-hosted vLLM / SGLang + CasamaYour own GPU servers or private cloudAdd as an OpenAI-compatible provider (http://<host>/v1)Full control over weights, VPC privacy, custom fine-tunes
Amazon Bedrock + OpenAI-compatible gateway + CasamaAWS 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) + CasamaManaged inference providers as they list ErgoPaste your OpenRouter API key in Casama SettingsFastest 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

Any model, zero markup

BYOK & local Ollama ($0)

Bring your own API keys or point bots at local Ollama models for $0.

Use the plan you already pay for

Plug in your ChatGPT subscription

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 AgentCoreCasama
What it isAWS developer runtime and SDK for building custom backend agentsReady-to-use AI agent workspace with open-source apps and developer kit
Where you use itInside your own software or AWS workflowsNative iOS, Android, macOS, Windows, Linux, web, and chat channels
ModelsBedrock models (Ergo, Claude, Nova, etc.)Casama Cloud models or BYOK (OpenAI, Anthropic, Google, OpenRouter, any OpenAI-compatible endpoint including vLLM/SGLang/Bedrock proxies)
Sandboxed computerAWS-managed code execution primitivesPer-bot Linux/desktop sandbox with live view, file browser, and terminal
Human approvalsBuild your own UI and approval flowBuilt-in approval cards, scoped action rules, and mobile push notifications
Self-hostingAWS cloud onlyFree 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

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.

Get Casama