Research · AI security · AI coding agents · Model supply chain

Amazon Ergo: the security you give up when you self-host an open coding model

Amazon's first open-weights model, Ergo, is built to run coding agents. What it is, what Amazon says about its safety, and what you own when you host it yourself.

· 7 min read

Short answer

Amazon released Ergo on 1 December 2026, an open-weights model for coding agents with 1.1 trillion parameters, free to download and run. On Amazon Bedrock it comes with zero data retention, no operator access and optional Guardrails. Download the weights and run them yourself, and Amazon says the safeguards, the runtime controls and the runtime data become your job. Before you plug it into a coding agent, sandbox the agent, cut its permissions, pin the exact files you downloaded and review every change it makes.

Amazon released Ergo on 1 December 2026, its first open-weights model, and it is built to run coding agents. On Amazon Bedrock, Amazon keeps a set of protections around it. If you download the weights and run them on your own servers, Amazon says that protecting the deployment becomes your job.

That trade is the part builders should think about before the benchmarks. This note covers what Ergo is, what Amazon says it tested, and what to put in place if you self-host it.

What Amazon released

Ergo comes from Amazon Frontier Model Research. Amazon’s launch post calls it “a fast, cost-effective frontier open-weights model for software engineering and agentic workflows.” It is a mixture-of-experts model: each token goes through a small part of the network, so it has 1.1 trillion parameters in total and uses 55 billion of them per token.

Amazon Ergo in four numbers

1.1Tparameters in total55B used per token
1Mtoken context window128K tokens of output
626 GBsmallest downloadMXFP4 files on Hugging Face
$1 / $3per million tokens on Bedrockinput / output
Sources: Amazon's launch post and the Amazon-FMR/Ergo model card on Hugging Face, read 2 December 2026.

You can use it three ways. On Bedrock, Amazon says it runs at “over 400 output tokens per second” on its Trainium3 chips. On Hugging Face you can download the weights and serve them with SGLang or vLLM. Amazon also says it “works with Claude Code, Codex, OpenCode, and Kiro,” so it can slot in behind a coding agent you already use. The license is the Amazon Ergo Open-Weights License: free of charge, and you may run, fine-tune, modify and redistribute the model as long as you follow Amazon’s acceptable use policy.

Amazon’s AWS chips vice president Ron Diamant told Reuters there is “a miss in the market where there’s no American company with the reputation of Amazon” releasing open weights. Reuters notes that Chinese companies lead this space today.

How it scores, and where it falls short

Most of the benchmark table compares Ergo with other open-weights models. On Amazon’s own internal software test, AI SWE, it leads them, and it trails the current closed models.

AI SWE (FMR-Bench, Amazon's internal test), pass@1

Opus 5.5 (closed)
85.3
GPT-6 Astra (closed)
80.8
Ergo (open)
65.4
Kimi K3.1 Pro (open)
58.6
GPT-5.5 (closed, previous)
55.3
Source: Amazon's launch post, 1 December 2026. Amazon ran this test on its own held-out tasks; it is not a public benchmark.

The model card lists limits that matter for code review. Ergo’s first-attempt accuracy “trails the strongest closed models,” so Amazon recommends agents verify their own changes. It can produce output that is confident and wrong, and the card says changes should be reviewed before merging. It is text only, so it cannot read a screenshot or a diagram.

What Amazon says it tested

Amazon’s launch post opens its safety section with a line every agent builder should keep in mind: “an agent that can run commands can also delete files or expose credentials.”

Amazon says it tested Ergo for harmful content, agent behavior and privacy. In sandboxed agent scenarios it checked that the model “stops and asks before a dangerous action.” It says Ergo is “trained to be resistant to malicious instructions planted in the content it reads,” which is indirect prompt injection: an order hidden in a file, web page or issue that the agent reads while working. Outside firms also evaluated it under Amazon’s Frontier Model Safety Framework, covering offensive cyber operations, CBRN capabilities, loss of control and harmful manipulation.

Resistant means harder to fool. OWASP’s entry on prompt injection says “it is unclear if there are fool-proof methods of prevention” for it, because of how these models work. So the protections around the agent still decide how much damage one planted instruction can do.

Bedrock or self-hosted: who owns what

This is the line in Amazon’s post that changes your threat model: “customers who fine-tune or self-host Ergo are responsible for evaluating and safeguarding their own deployments, including protecting their own runtime data, and applying appropriate runtime controls.”

The same model, two ways to run it

On Amazon BedrockAmazon says prompts and outputs are not stored or used for training, and the model runs on the Nitro System with zero operator access
zero data retentionGuardrails, optional
Self-hosted from Hugging FaceYou download the files, run the server and keep the logs. Amazon says evaluating and safeguarding the deployment is yours
your sandboxyour logsyour patching
Either way: the agentThe coding tool that runs Ergo holds your repo, shell and keys. That part was always yours
permissionsreview
Our layout of Amazon's statements in the Ergo launch post, 1 December 2026.

Self-hosting has a real privacy upside: your prompts stay on your own network. The cost is that the record of every prompt, file and secret the agent sees now sits on your servers, and you have to protect it. Agent records can hold secrets: in the Cursor breach, stored agent traces held credentials that an attacker then used.

What to check before you plug Ergo into an agent

  1. Download from the right place, and pin it. Ergo’s repository is Amazon-FMR/Ergo, published as safetensors, a format that holds numbers and no code to run. Check the publisher name exactly, because a name can change hands. Unit 42 recommends pinning “to a specific commit using the revision parameter”. Our note on what is in a model file covers these attacks in detail.
  2. Treat the serving stack as software you own. vLLM, SGLang and the container around them need patching and should not be reachable from the internet. Decide who can call it.
  3. Box in the agent. Run it in a container or VM with no cloud keys, no SSH keys and no production access. Give it the repository and nothing else. OWASP’s advice for prompt injection starts with least privilege.
  4. Keep a human on anything that writes, deletes or sends. Amazon tested that Ergo stops before dangerous actions in its own sandbox. Your agent tool should enforce the same with approval prompts, whatever the model does.
  5. Protect the logs. Prompts, tool calls and outputs land on your disks. Set who can read them and how long you keep them, and scan them for secrets.
  6. Review every change before it merges. That’s Amazon’s own advice on the model card. Run your tests and security scans on agent-written code the same way you would for a new hire’s first pull request.

If you are learning to build and attack systems like this, our AI Security Engineer course covers agent permissions and prompt injection with hands-on labs.

Sources

Each page below was opened on 2 December 2026.

  • Amazon, “Introducing Amazon Ergo”, 1 December 2026: aboutamazon.com
  • Amazon Frontier Model Research, Ergo model card: huggingface.co
  • Reuters, via The Korea Times, “Amazon unveils new open-weight AI model, faster chip at annual conference”, 2 December 2026: koreatimes.co.kr
  • TechCrunch, “Amazon releases its first open-weight model, Ergo”, 1 December 2026: techcrunch.com
  • OWASP GenAI Security Project, “LLM01: Prompt Injection”: genai.owasp.org
  • Palo Alto Networks Unit 42, “Model Namespace Reuse”, 3 September 2025: unit42.paloaltonetworks.com

Every course, one plan

Move into AI security from the role you have

34 courses, 420+ videos, labs in your browser and on AWS, Azure and Google Cloud, graded capstones and a certificate for each course.

Regular price $49now $15.99a month Or regular price $299 $149.99 once for Lifetime access. Every course, every update. Final price: nothing is added at checkout.

Enroll now Explore our courses

Every TSG course

Enroll: Monthly or Lifetime

Both plans open every course on the platform, with every lab and every future update, the day you join.

  • 34courses
  • 420+videos
  • 3clouds included
  • All 34 courses, from Learn 101 to AI Security Engineer
  • 420+ videos across AI Security Engineer and the cloud courses, plus reading pages, quizzes and handbooks
  • Browser labs, laptop labs and cloud labs on AWS, Azure and Google Cloud
  • A certificate for each course you finish, with a public verify link
  • New courses at no extra cost, and every future update

Already a member? Sign in

Choose your plan
Need an invoice for a company?

Paid by card in US dollars. Final price: nothing is added at checkout. You pay on Razorpay's secure page; we never see your card or bank details.

  • Paid on Razorpay's secure page: Card, in US dollars
  • Refund policy