cloudbase-agent

Build and deploy AG-UI agent HTTP services on CloudBase.

Updated May 14, 2026
One-click install
npx skills add https://github.com/williamwang25/ams-admin --skill cloudbase-agent-williamwang25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudbase-agent
Source: https://github.com/williamwang25/ams-admin/tree/main/.windsurf/rules/cloudbase-agent/ts
Command: npx skills add https://github.com/williamwang25/ams-admin --skill cloudbase-agent-williamwang25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build, deploy, and integrate AI agent services that stream events to clients using the AG-UI protocol on CloudBase.

Core Features & Use Cases

  • Agent server deployment (CloudBase): Expose an AG-UI compatible HTTP service via @cloudbase/agent-server, including SSE streaming and OpenAI-compatible routes.
  • Adapter integration: Use the official LangGraph and LangChain adapters, or implement custom adapters via AbstractAgent, to translate framework I/O into AG-UI events.
  • Client UI connectivity: Connect web clients using @ag-ui/client or WeChat Mini Program UIs using @cloudbase/agent-ui-miniprogram with client tools support.

Quick Start

Deploy an AG-UI agent server on CloudBase using manageAgent, then connect a web or Mini Program client to the server’s /send-message or /agui endpoint to stream agent events.

Frequently Asked Questions about cloudbase-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an AI agent server on CloudBase with SSE streaming?

To deploy an AI agent server on CloudBase with SSE streaming, use the manageAgent MCP tool to deploy your service with a scf_bootstrap entry, exposing AG-UI compatible HTTP routes for client connectivity.

Can I use LangGraph or LangChain adapters to stream agent events via the AG-UI protocol?

Yes, you can use LangGraph or LangChain adapters to stream agent events via the AG-UI protocol by translating framework inputs and outputs into standard AG-UI events like RUN, TEXT, TOOL, and STATE.

How do I connect a WeChat Mini Program UI to an AG-UI agent backend?

You can connect a WeChat Mini Program UI to an AG-UI agent backend by using the @cloudbase/agent-ui-miniprogram package to interface with the server's /send-message or /agui endpoint for streaming events.

What is the AG-UI event lifecycle when building custom agents with AbstractAgent?

The AG-UI event lifecycle when building custom agents with AbstractAgent requires proper handling of RUN, TEXT, TOOL, and STATE events to ensure correct communication between the agent server and UI clients.

Do I need specific dependency versions for @cloudbase/agent-server and @langchain packages?

Yes, you need dependency alignment using @latest for @cloudbase/agent-* and @langchain/* packages to ensure compatibility when building and deploying AG-UI agent services on CloudBase.

Can I implement a custom adapter instead of using the LangGraph and LangChain adapters for my agent?

Yes, you can implement a custom adapter instead of using the LangGraph and LangChain adapters by extending the AbstractAgent implementation to translate your framework's I/O into AG-UI events.