Agent Chat UI
A deployable chat interface for Python and TypeScript LangGraph agents.
- Source repo
- langchain-ai/agent-chat-ui
- Stars
- ★ 3.3k
- Last updated
- 29d ago
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 51/100 · Major gaps
At a glance
- How it runs
- Works with
- Platform-specific
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A LangGraph developer running a Python or TypeScript graph locally needs a working chat front end without building one from scratch.
- Not a fit if
- Teams without an existing LangGraph server who want a ready-to-chat app
- Teams needing non-LangGraph agents or a generic chat protocol
- Production teams unwilling to set up an API proxy or custom auth
- Website
- agentchat.vercel.app ↗ set on GitHub
- Maintenance
- Archived (read-only)last commit 2026-11-03
- Source review
- 51/100 · Major gaps 1 safety controls not found
What does this agent do, and when should you use it?
Agent Chat UI is a Next.js application that connects to any LangGraph server whose state contains a messages key. Users supply a deployment URL, an Assistant or Graph ID, and, when required, a LangSmith API key before submitting conversations and viewing streamed responses. The interface can also render agent-produced artifacts in a panel beside the chat. It can run locally with pnpm dev or be used through the hosted site; production deployments require either an API Passthrough proxy or custom authentication. It is not an agent runtime and does not create graphs or select models, so adoption requires an existing compatible LangGraph service.
The app reads a Deployment URL, Assistant/Graph ID, authentication scheme, and optional LangSmith API key, then fetches and submits runs to the selected LangGraph server through a browser chat interface. useTypedStream, an extension of useStream, configures the apiUrl, assistantId, and optional authentication headers; the UI uses on_chat_model_stream events for live output and renders messages saved in graph state. A model tagged langsmith:nostream does not emit the events used for live display. To suppress a message permanently, its ID must be prefixed with do-not-render- before it enters state and the model must carry the langsmith:do-not-render tag. Components can obtain the artifact context from thread.meta.artifact and use Artifact to produce content in a right-hand panel. In production, langgraph-nextjs-api-passthrough can proxy requests to LANGGRAPH_API_URL and inject LANGSMITH_API_KEY on the server, or developers can modify useTypedStream to send a custom token through defaultHeaders.
- A LangGraph developer running a Python or TypeScript graph locally needs a working chat front end without building one from scratch.
- A team with a deployed LangGraph assistant wants to give internal users an interface configured by deployment URL and Assistant ID.
- A developer needs streamed agent output while selectively preventing internal model messages from appearing live or at all.
- A team building a writing or content-generation graph wants generated material displayed as an artifact beside the conversation.
- An engineering team productionizing a LangGraph app needs either a Next.js proxy that keeps the LangSmith key server-side or a path to custom token authentication.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx create-agent-chat-app
- Ports
3000- Environment variables
NEXT_PUBLIC_API_URLNEXT_PUBLIC_ASSISTANT_IDLANGGRAPH_API_URLLANGSMITH_API_KEY- Config files
.env.example.env
How do you install or deploy this agent?
A Next.js-capable environment and pnpm are required. Create an app directly with:
npx create-agent-chat-appAlternatively, clone and start the repository:
git clone https://github.com/langchain-ai/agent-chat-ui.git
cd agent-chat-ui
pnpm install
pnpm devOpen http://localhost:3000. Local use also requires a LangGraph server with a messages key in its state. The source does not specify exact supported Node.js or pnpm versions.
How do you use this agent?
Start the application or visit https://agentchat.vercel.app. Enter the LangGraph Deployment URL and Assistant/Graph ID. A LangSmith API key is additionally required for a deployed LangGraph server; enable Built with Agent Builder for Agent Builder deployments so the authentication scheme becomes langsmith-api-key. Select Continue to begin submitting messages.
To skip the setup form, copy .env.example to .env and set:
NEXT_PUBLIC_API_URL=http://localhost:2024
NEXT_PUBLIC_ASSISTANT_ID=agent
NEXT_PUBLIC_AUTH_SCHEME=Restart the application after editing the file. For LangSmith Agent Builder, use NEXT_PUBLIC_AUTH_SCHEME=langsmith-api-key.
For the documented production proxy path, configure:
NEXT_PUBLIC_ASSISTANT_ID="agent"
LANGGRAPH_API_URL="https://my-agent.default.us.langgraph.app"
NEXT_PUBLIC_API_URL="https://my-website.com/api"
LANGSMITH_API_KEY="lsv2_..."Do not give LANGSMITH_API_KEY a NEXT_PUBLIC_ prefix. The proxy injects it into LangGraph requests on the server.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.
What are this agent's strengths and limitations?
- One interface can connect to LangGraph services implemented in either Python or TypeScript, provided their state exposes a
messageskey. - It supports both an interactive setup form and fixed configuration through
NEXT_PUBLIC_API_URL,NEXT_PUBLIC_ASSISTANT_ID, and related environment variables. - Message visibility controls cover both suppressing live streams and permanently filtering selected messages through documented tags and ID conventions.
- The built-in artifact context lets components present non-chat content in a dedicated side panel.
- Production guidance covers both a ready-made Next.js API Passthrough route and a more flexible custom-authentication route.
- Core operation depends on a LangGraph server and its
messagesstate convention; no support for other agent runtimes or a generic chat protocol is documented. - The default direct-from-client connection is unsuitable for production because it requires each user to provide a LangSmith API key and LangGraph configuration.
- Production adoption adds work: teams must configure an API proxy or implement token acquisition, access control, and
useTypedStreamheader changes. - Deployed LangGraph connections ordinarily require a LangSmith API key, introducing secret-management and operational responsibilities.
- The installation material does not state supported Node.js or pnpm versions, resource requirements, or recovery behavior.
How does this agent compare with similar options?
Compared with the default direct client connection, API Passthrough is the quicker production option: it proxies requests server-side and keeps the LangSmith API key away from users, but requires proxy configuration. Custom authentication offers more control and can support client requests with tailored access rules, but it requires an authentication flow in the LangGraph deployment plus UI changes for token retrieval and request headers.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Agent Chat UI This agent | 51 · Major gaps | Web appFree + model costs | ★ 3.3k | 29d ago | TypeScript | — |
| Open Multi-Agent Canvas | 35 · Major gaps | Web appFree + model costs | ★ 566 | 6mo ago | TypeScript | — |
| Open Generative UI | 74 · Some gaps | CLIFree + model costs | ★ 4.3k | 1mo ago | TypeScript | Claude API |
| AI Agent Service Toolkit | 69 · Some gaps | FrameworkFree + model costs | ★ 4.6k | 3d ago | Python | OpenAI API |
How does FollowAgents rate this agent?
Why each dimension lost points
The README explains client connections to LangGraph and how an API passthrough can inject a LangSmith key in deployment. It explicitly warns that an unauthenticated public proxy can read, overwrite, and delete threads and store items and start billed runs. This makes the main data flow and risk reasonably visible, but evidence for access controls in the default development setup, user confirmation, and rollback is limited. The README says not to expose the key with a NEXT_PUBLIC_ prefix, supporting some sensitive-data handling; the dependency list and overrides do not amount to a security audit. Publisher identity is unverified, and the license notice does not establish maintainer identity or an update path.
The README describes the product as connecting to LangGraph servers with a messages key and provides setup, environment-variable, and deployment instructions that are broadly consistent. package.json and CI show dependency management and formatting and lint checks, but the packet does not establish dependency availability or runtime failure messaging. CI checks do not demonstrate runtime reliability.
The README covers local development, deployed servers, Agent Builder, Python and TypeScript graph configuration, message hiding, and artifact display, and identifies support for LangGraph servers with a messages key. Environment variables and two authentication approaches explain adaptation options; however, authentication customization requires user code changes, and the stated boundaries are primarily documentation.
The README is organized around setup, usage, environment variables, and production deployment, with commands, code examples, and explicit production security limitations. The MIT license is complete. package.json has a clear name but version 0.0.0; the supplied material has no changelog, version policy, or clear maintenance responsibility, so those areas lose points.
The app provides a chat interface for LangGraph agents, and the README explains streaming, message hiding, and artifact use, showing practical value. Installation is direct, but production authentication and proxy protection require additional deployment work; the packet provides no cost or resource-use evidence for a higher score.
README configuration and security claims are supported by concrete environment variables, steps, and code snippets, and it distinguishes local development from production. package.json and CI corroborate package management and static checks, but provide limited independent support for the specific runtime behavior described. This review uses only the supplied files and does not treat documentation claims as executed verification.
- Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
- If deploying with LANGGRAPH_API_URL and LANGSMITH_API_KEY, protect API passthrough callers first. The README explicitly says an exposed, unauthenticated proxy may let anyone who can reach it read, modify, or delete deployment data and start billed runs.
- Production authentication, custom access controls, and secret configuration are left to the deployer; the supplied material contains no runtime verification or dependency security audit.
FAQ
Does it run or create a LangGraph agent?
messages key.When is a LangSmith API key required?
LANGSMITH_API_KEY stays server-side and must not use the NEXT_PUBLIC_ prefix.Can internal model messages be hidden?
langsmith:nostream only prevents live streaming, so a saved message can still appear afterward. Permanent suppression requires both a do-not-render- ID prefix before state storage and the langsmith:do-not-render tag.Must I self-host the interface?
agentchat.vercel.app site is available, while npx create-agent-chat-app and the repository setup support local or self-managed deployment.Can production deployments use custom authentication?
useTypedStream to pass it through defaultHeaders.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.