agent-uiBatteries-included agent component for React/Next.js from ui.inference.sh. One component with runtime, tools, streaming, approvals, and widgets built in. Cap...
Install via ClawdBot CLI:
clawdbot install okaris/agent-uiBatteries-included agent component from ui.inference.sh.
# Install the agent component
npx shadcn@latest add https://ui.inference.sh/r/agent.json
# Add the SDK for the proxy route
npm install @inferencesh/sdk
// app/api/inference/proxy/route.ts
import { route } from '@inferencesh/sdk/proxy/nextjs';
export const { GET, POST, PUT } = route;
# .env.local
INFERENCE_API_KEY=inf_...
import { Agent } from "@/registry/blocks/agent/agent"
export default function Page() {
return (
<Agent
proxyUrl="/api/inference/proxy"
agentConfig={{
core_app: { ref: 'openrouter/claude-haiku-45@0fkg6xwb' },
description: 'a helpful ai assistant',
system_prompt: 'you are helpful.',
}}
/>
)
}
| Feature | Description |
|---------|-------------|
| Runtime included | No backend logic needed |
| Tool lifecycle | Pending, progress, approval, results |
| Human-in-the-loop | Built-in approval flows |
| Widgets | Declarative JSON UI from agent responses |
| Streaming | Real-time token streaming |
| Client-side tools | Tools that run in the browser |
import { Agent } from "@/registry/blocks/agent/agent"
import { createScopedTools } from "./blocks/agent/lib/client-tools"
const formRef = useRef<HTMLFormElement>(null)
const scopedTools = createScopedTools(formRef)
<Agent
proxyUrl="/api/inference/proxy"
config={{
core_app: { ref: 'openrouter/claude-haiku-45@0fkg6xwb' },
tools: scopedTools,
system_prompt: 'You can fill forms using scan_ui and fill_field tools.',
}}
/>
| Prop | Type | Description |
|------|------|-------------|
| proxyUrl | string | API proxy endpoint |
| name | string | Agent name (optional) |
| config | AgentConfig | Agent configuration |
| allowFiles | boolean | Enable file uploads |
| allowImages | boolean | Enable image uploads |
# Chat UI building blocks
npx skills add inference-sh/skills@chat-ui
# Declarative widgets from JSON
npx skills add inference-sh/skills@widgets-ui
# Tool lifecycle UI
npx skills add inference-sh/skills@tools-ui
Component docs: ui.inference.sh/blocks/agent
Generated Mar 1, 2026
Integrate the agent component into a SaaS platform to provide real-time AI assistance for users navigating complex workflows. It enables human-in-the-loop approvals for critical actions like data exports or billing changes, enhancing user trust and reducing errors.
Deploy the component as a chat interface on a company website to handle customer inquiries with client-side tools for form-filling and information retrieval. Streaming responses ensure quick, engaging interactions while built-in widgets can display dynamic content like order status.
Use the agent in internal tools to help employees with tasks like generating reports or filling out HR forms, leveraging human-in-the-loop approvals for sensitive operations. The runtime-included feature minimizes backend development, speeding up deployment across departments.
Implement the component in an e-learning platform to create interactive AI tutors that guide students through lessons with real-time feedback and form-based quizzes. Client-side tools allow for seamless interaction without server dependencies, ideal for scalable educational apps.
Offer the agent component as part of a monthly subscription for businesses building AI chat interfaces, with tiered pricing based on usage or features like advanced tools and human-in-the-loop approvals. Revenue streams include recurring fees from SaaS companies and startups integrating AI assistants.
Provide the agent for free with basic features to attract developers, then monetize through premium add-ons like custom widgets, enhanced tool capabilities, or priority support. This model drives adoption in the React/Next.js community and generates revenue from enterprise upgrades.
License the agent component to other companies for rebranding and integration into their products, charging a one-time fee or ongoing royalties. This targets industries like healthcare or finance that need tailored AI interfaces with compliance-ready human-in-the-loop workflows.
💬 Integration Tip
Start by setting up the API proxy route and environment variable as shown in the quick start, then customize the agent config with your specific core app and system prompt for rapid deployment.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection