cloudbase-agent-python

Build AI agent backends with CloudBase Agent Python SDK and FastAPI.

1|1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/xianmingyao/openclaw-CaySon --skill cloudbase-agent-python-xianmingyao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudbase-agent-python
Source: https://github.com/xianmingyao/openclaw-CaySon/tree/main/skills/cloudbase/references/cloudbase-agent/py
Command: npx skills add https://github.com/xianmingyao/openclaw-CaySon --skill cloudbase-agent-python-xianmingyao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CloudBase Agent Python SDK enables developers to build production-ready AI agent backends by orchestrating adapters for LangGraph, CrewAI, and LlamaIndex, serving them via FastAPI with AG-UI streaming and OpenAI-compatible endpoints, while integrating tools, memory, observability, and middleware.

Core Features & Use Cases

  • Multi-framework agent backends via dedicated adapters (LangGraph, CrewAI, LlamaIndex).
  • Dual protocol support: AG-UI native streaming and OpenAI-compatible endpoints.
  • Rich memory and persistence options (in-memory, long-term storage, and checkpointing).
  • Observability, logging, and authentication middleware for production-grade deployments.
  • Real-world use: deploy chatbots, HITL workflows, and enterprise agent APIs.

Quick Start

Install Python 3.10, install the CloudBase Agent packages, define a create_agent factory, and run the FastAPI server with AgentServiceApp.

Frequently Asked Questions about cloudbase-agent-python

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

FAQPage Schema
How do I deploy a LangGraph agent as an HTTP service with streaming?

Deploy a LangGraph agent as an HTTP service by using the CloudBase Agent Python SDK to orchestrate adapters and serve them via FastAPI with AG-UI streaming and OpenAI-compatible endpoints. Define a create_agent factory and run the AgentServiceApp server.

Can I use FastAPI middleware for authentication and observability in AI agent backends?

FastAPI middleware supports authentication and observability in AI agent backends. The CloudBase Agent Python SDK applies generator-based middleware within the FastAPI server to handle production-grade logging and secure access for real-world chat workloads.

What Python version is required for the CloudBase Agent Python SDK?

Python 3.10 is required for the CloudBase Agent Python SDK. You also need compatible CloudBase Agent packages like cloudbase-agent-langgraph, cloudbase-agent-server, and related dependencies to build and run the FastAPI-based server.

Does the CloudBase Agent Python SDK support CrewAI and LlamaIndex frameworks?

The CloudBase Agent Python SDK supports CrewAI and LlamaIndex frameworks. It orchestrates dedicated adapters for multi-framework agent backends, allowing you to integrate these frameworks alongside LangGraph for production-ready deployments.

How does AG-UI streaming work with OpenAI-compatible endpoints?

AG-UI streaming works with OpenAI-compatible endpoints through dual protocol support in the CloudBase Agent Python SDK. This setup enables native streaming responses and standard API interactions for chatbots and enterprise agent APIs.

What memory and persistence options are available for AI agent backends?

Memory and persistence options for AI agent backends include in-memory storage, long-term storage, and checkpointing. The CloudBase Agent Python SDK integrates these options to maintain context and state in production-grade HITL workflows.