v vanemmerik.ai / aws-ai
Tip of the Day 2026 · 05 · 26 ≈ 6 min read Bedrock AgentCore · Runtime

AgentCore Runtime, the missing primitive.

AgentCore Runtime is the secure, serverless execution environment at the centre of Amazon Bedrock AgentCore. Bring an agent written in any framework — Strands, LangGraph, LlamaIndex, Google ADK, OpenAI Agents — pointed at any foundation model. AWS handles sessions, isolation, and the long timeout you actually need.

$ npm install -g @aws/agentcore  — scaffold, deploy, invoke

01Why AgentCore Runtime exists

Hosting an agent is not the same problem as hosting a web service. Agents hold conversation state, call tools, stream tokens for minutes at a time, and have to be isolated from each other so one user's session never sees another's. AWS Lambda is too short for long reasoning loops; ECS or EKS gives you a cluster to operate; rolling your own EC2 means rolling your own session manager and identity layer.

AgentCore Runtime removes that whole layer. You give it a container image (or let the CLI build one for you), and it runs your agent behind an HTTP endpoint with these guarantees baked in:

The shift

Runtime is the missing primitive between "Lambda for short requests" and "a Kubernetes cluster you operate yourself." You write the agent code; AWS runs the agent lifecycle.

02The fastest path: the AgentCore CLI

The official path from "no code" to "deployed agent" is the AgentCore CLI — distributed as an npm package. It scaffolds a project, deploys via CDK, and invokes the running endpoint.

~/projects/MyAgent — agentcore
~/projects npm install -g @aws/agentcore added 1 package in 4s ~/projects agentcore create --name MyAgent --defaults framework: Strands protocol: HTTP model: Bedrock memory: none scaffolded MyAgent/ app/MyAgent/main.py agentcore/agentcore.json ~/projects cd MyAgent && agentcore dev → Agent inspector at http://localhost:8080 (Ctrl-C to stop) ~/MyAgent agentcore deploy CDK synth · 12 resources · IAM, ECR, AgentCore Runtime Build (linux/arm64) · push to ECR · create runtime version v1 Endpoint DEFAULT → v1 arn:aws:bedrock-agentcore:us-east-1:…:runtime/MyAgent ~/MyAgent agentcore invoke "Hello, tell me a joke" Why did the agent join AgentCore? It needed the runtime.

Reconstruction · not a recording of a real run

The agentcore create flags worth knowing:

The scaffold drops you into a project with three things that matter: agentcore/agentcore.json (project + agent config), app/MyAgent/main.py (your agent code), and aws-targets.json (account + region targets).

03The container contract

If you bring your own container (the "no CLI" path), Runtime expects a small contract from the image — and the failure modes when you get it wrong are obvious enough to be worth memorising.

RequirementWhy
ARM64 image (linux/arm64) AgentCore Runtime is Graviton. An x86 image fails to start with exec /bin/sh: exec format error.
HTTP listener on :8080 Runtime's data-plane invokes your container over HTTP at port 8080.
POST /invocations The request path Runtime calls with each user prompt.
GET /ping Liveness check. Return 200 OK; anything else and Runtime declares the instance unhealthy.
runtimeSessionId in request Use it to tag your downstream resources so multiple concurrent sessions don't collide.

The starter Dockerfile from the docs uses FROM public.ecr.aws/docker/library/python:3.12-slim with --platform=linux/arm64 on the build, then pip install for the agent framework plus FastAPI/Uvicorn for the HTTP layer. The CLI's --build Container mode generates this for you.

04Sessions, endpoints, versions

Three concepts you'll see repeatedly:

Together: Runtime → Version → Endpoint → Session. Endpoints decouple clients ("hit the production endpoint") from versions ("v17 is the build we shipped on Tuesday").

05How Runtime fits with the rest of AgentCore

Runtime is one of eleven AgentCore services. It's the host; the others plug in:

Runtime can run completely standalone — none of the others are required — but the value compounds quickly when you bring two or three of them in.

06Limits worth knowing on day one

07Try it in five minutes

If you have Node 20+, Python 3.10+, the AWS CDK installed, and AWS credentials configured, the full happy path is four commands:

$ npm install -g @aws/agentcore $ agentcore create --name HelloAgent --defaults $ cd HelloAgent && agentcore dev  # local inspector $ agentcore deploy  # CDK → Runtime + IAM + ECR

agentcore status shows the deployed endpoint URL; agentcore invoke "Hello" sends a prompt; agentcore logs --tail streams CloudWatch.

Tomorrow we'll look at the /invocations HTTP contract in detail — what the request and response actually look like on the wire when you bypass the CLI and call Runtime directly with boto3 or curl.

Verified against the official AWS docs on 2026-05-26.
Sources: AgentCore overview, Runtime CLI getting started, Custom container guide, Versioning & endpoints.
If the docs change, this tip is a snapshot of that day — check the sources for current behaviour.
Heads up — this tip is from 2026-05-26. AWS services move fast. Cross-check the AgentCore developer guide before relying on specifics, then come back for today's tip →
C

This page — research, writing, verification, and deployment — was built by Claude Cowork. No human touched the prose, the layout, or the upload pipeline. The tip was generated this morning, cross-checked against the official AWS docs by an independent verification pass, and published to Cloudflare R2 on a schedule.

A daily experiment by Monty van Emmerik · vanemmerik.ai · what is Claude Cowork?