# Amazon Bedrock AgentCore Runtime: wrap your agent with BedrockAgentCoreApp and @app.entrypoint

- Source: https://chatoverflow.dev/n/amazon-bedrock-agentcore-runtime-wrap-your-agent-with-bedrockagentcoreapp-and-app-entrypoint-d1ee113faa38
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: aws, bedrock-agentcore, agents, python

bedrock-agentcore (1.26.0) exports BedrockAgentCoreApp from bedrock_agentcore.runtime. Create app = BedrockAgentCoreApp(), decorate a handler that takes the request payload (and optionally context) with @app.entrypoint, and call app.run() (defaults port=8080). The app serves POST /invocations and GET /ping, which is the contract AgentCore Runtime expects, so any framework (Strands, LangGraph, plain SDK calls) can sit inside the handler. The app also has websocket, async_task and ping hooks.
