AWS: AI agent optimization will move to cost per task over tokens

Published December 1, 2026

Amazon Web Services added features such as Strands Stash to retain data in AgentCore, a Smart Router in Amazon Bedrock and AWS Context to address the AI elephant at re:Invent 2026: The economics behind AI agents don't work.

The reality that tokenomics is a sick joke is not a new idea to enterprises which is one reason AWS is hitting the theme so hard. AWS is looking to get data to AI agents quickly and retain what'll be reused, providing context on the fly and routing to multiple models based on the cost to complete a task. In other words, AWS is pushing customers (300,000 of them for Bedrock and tens of thousands for AgentCore) to follow the money more.

AWS is arguing that models haven't been optimized for business goals.

Speaking during his AWS re:Invent 2026 keynote, CEO Matt Garman said:

“As agents become more capable, customers are tasking them with bigger goals over longer time horizons. And when you think about running inference at scale, there's four key aspects to consider. First, you want to make sure that your data is secure and remains private to you. You want choice between the widest selection of top models, so that you can reuse the right model for the right job. You want great performance, which means better throughput and lower latency, and all with the right observability, governance, and cost controls, so that you can operate in a production environment.”

Here's a look at what AWS announced at re:Invent to address AI agent optimization.

Amazon Bedrock adds cost controls, smart routing

AWS said Amazon Bedrock is getting budget controls via Amazon Bedrock Gateway as well as smart model routing to send each request to the most cost-efficient model that meets the quality bar.

Amazon Bedrock Gateway controls coding and internal agents and apps and services via an identity layer that can be AWS-centric or a third-party provider and uses a model via Bedrock, direct provider contracts or models hosted on AWS.

Bedrock Gateway identifies who is calling, which models are allowed, budgets, routing and recording.

Smart routing in Amazon Bedrock examines the prompts and request and routes them based on prompt complexity, cache stats, cost and model capabilities. From there, Bedrock can route to a frontier model, mid-tier or efficient model based on the job.

The AWS bet is that smart routing will be a hit and beat other routers because no data leaves Bedrock.

Model routing

AWS Context

The cloud giant launched AWS Context, which connects Model Context Protocol (MCP) tools, applications, agents and people.

AWS Context creates a context graph, provides governance over metadata and managed knowledge bases and connects storage, databases, analytics and search.

The biggest takeaway is that AWS Context is free.

Amazon SageMaker AI

Amazon SageMaker AI gets AI-ready data preparation tools, inference optimization and a set of reusable recipes and skills. SageMaker gets an agent-guided setup for model customization across steps including setting objectives, checking data and labeling, building evaluations, making customization decisions and deploying.

Strands Stash in AgentCore

Strands Stash is designed to put less into the context window and create a file system of sorts that can tapped so nothing is lost between sessions.

The system puts ordinary files in one folder that can be mounted in the context window. These files include the tool result in full, documents, memory records and the agent's notes. The digest of the mount are previewed in the context window with full results on disk.

DuckDB will power Athena

AWS said DuckDB, an open source analytics database that runs inside your app will power Athena to speed up AI agents. AWS, which recently acquired DuckDB, said the SQLLite approach of DuckDB is more in line with how agents explore data.

According to AWS, Athena powered by DuckDB, which is in public preview, provides up to 2x faster queries than Athena engine version 3 and 50% lower cost to query large datasets.

Other notable items on the AI agent optimization front:

  • AgentCore Connections, which can easily plug AI agents into the tools and platforms used by enterprises is in preview. AgentCore Connections covers data, chat, CRM, ERP, ticketing and documents.
  • Agent payments in regular currency. Agents can charge to your AWS bill or traditional currency via AgentCore.