react components
AI-native react components.
chat, generative UI, tool approvals. drop in, connect to any inference.sh agent, ship.
import { AgentChatProvider, Chat }
from '@inference/ui'
<AgentChatProvider agent="my-agent">
<Chat />
</AgentChatProvider>full agent chat in 4 lines.
not just chat
30+ widgets your agent can render
agent decides what to render. components are typed with JSON schemas. structured output → rich UI.
streaming
real-time token streaming with useAgentChat(). no manual SSE parsing. state managed for you.
tool approvals
HITL gates render as UI. user clicks approve or reject inline. no modal interruptions.
embed anywhere
react natively. iframe for anything else. proxy adapters for next.js, remix, sveltekit, hono.
npm i @inference/uinpm i -g @inference/beltfrequently asked questions
is this just a chat widget?
no. it's a full generative UI system. your agent can render tables, charts, forms, cards, not just text. components are typed with JSON schemas.
can I use these without inference.sh agents?
the components are designed for inference.sh agents. if you're using another runtime, check /agents for how to connect, or use the embed/iframe mode.
what frameworks are supported?
React natively. proxy adapters for Next.js, Remix, SvelteKit, Hono, and Express. iframe embed works anywhere.
we use cookies
we use cookies to ensure you get the best experience on our website. for more information on how we use cookies, please see our cookie policy.
by clicking "accept", you agree to our use of cookies.
learn more.