Welcome to the ClientAgentJS documentation. This library is designed to add AI agent capabilities to your web applications with a Zero-Backend approach.
createAgent, sessions, profiles, and MCP management.ClientAgent as a global object if you include dist/clientagentjs.global.js via a <script> tag.Explore these examples to learn how to integrate ClientAgentJS into different scenarios:
The flagship example. A professional chat interface that includes session management, streaming cancellation, Markdown rendering, and real-time event logging.
AI-powered forms. Demonstrates how to add AI help to standard text fields for content improvement and generation based on form context.
Model Context Protocol. A technical example on connecting the agent to external MCP servers to access databases or local files.
To test any example locally:
npm run buildnpx serve or python3 -m http.server)See license: ClientAgentJS