explaingit

fahmidme/agentcore-agui-starter

Analysis updated 2026-05-18

10TypeScriptAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

A reference project showing how to stream an AI agent from Amazon Bedrock into a Next.js chat interface using the AG-UI protocol.

Mindmap

mindmap
  root((agentcore-agui-starter))
    What it does
      Streams AI agent responses
      Shows tool calls live
      Connects Bedrock to web UI
    Tech stack
      Python agent
      Next.js frontend
      AWS Bedrock
      AG-UI protocol
    Use cases
      Learn agent architecture
      Prototype agent UI
      Study streaming protocols
    Audience
      Developers
      AI engineers
    Setup
      Needs AWS account
      Needs Bedrock access
      Needs Node and Python

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Learn how to connect an AI agent to a streaming chat UI.

USE CASE 2

Prototype a Bedrock-backed agent with tool calling before building a full app.

USE CASE 3

Study the AG-UI protocol for streaming agent events to a browser.

What is it built with?

TypeScriptPythonNext.jsAWS BedrockCopilotKitStrands SDK

How does it compare?

fahmidme/agentcore-agui-starterbbdaii/three-pivot-controlscodee-sh/payload-training-app
Stars101010
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyhardeasymoderate
Complexity4/52/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires an AWS account with Bedrock model access and configured AWS credentials.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

AgentCore AG-UI Starter is a reference project that shows how to connect an AI agent running on Amazon Bedrock to a chat interface built with Next.js. It focuses on one complete path: a Python agent talks to AWS, and a web browser shows the conversation as it streams in, including when the agent calls a tool. The project uses the Strands Agents SDK to build the agent, which runs on Amazon Bedrock AgentCore, a managed service from AWS for hosting and invoking agents. Messages and tool calls travel over a protocol called AG-UI, sent as a stream of events so the chat updates in real time instead of waiting for a full response. On the browser side, CopilotKit renders the chat and displays tool activity as it happens. A simple add_numbers tool is included so you can watch the tool call and its result appear step by step. To run it locally, you need an AWS account with access to Bedrock models, AWS credentials set up on your machine, the AgentCore command line tool, the uv Python tool, Python 3.12 or newer, and Node.js 20.9 or newer. Setup involves cloning the repo, copying example config files, installing dependencies for both the Python agent and the Next.js web app, starting the agent locally, then starting the web server. Once running, you can chat with the assistant and watch tool calls happen live. The project explains that its memory is not permanent. Conversation history is only kept for the current browser session, sent along with each new message so the agent has context. Closing the browser or starting a new session means the agent forgets everything. The README notes that durable memory across sessions would require a separate AWS feature called AgentCore Memory, which this starter does not set up. This is meant as a teaching example rather than a full application, useful for developers who want to understand how the pieces of an AI agent system fit together. It is released under the MIT License.

Copy-paste prompts

Prompt 1
Help me set up AWS Bedrock credentials so I can run the AgentCore AG-UI Starter locally.
Prompt 2
Explain how AG-UI events like TOOL_CALL_START flow from the Strands agent to the Next.js UI in this project.
Prompt 3
Show me how to add a new tool to the Strands agent in this starter, similar to add_numbers.
Prompt 4
Walk me through deploying the StreamingAssistant runtime to AgentCore from this repo.

Frequently asked questions

What is agentcore-agui-starter?

A reference project showing how to stream an AI agent from Amazon Bedrock into a Next.js chat interface using the AG-UI protocol.

What language is agentcore-agui-starter written in?

Mainly TypeScript. The stack also includes TypeScript, Python, Next.js.

What license does agentcore-agui-starter use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is agentcore-agui-starter to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is agentcore-agui-starter for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.