cloudbase-agent-python

Create Python AI agent backends with FastAPI and AG-UI streaming.

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/mbpz/poetry-atlas-mp --skill cloudbase-agent-python-mbpz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudbase-agent-python
Source: https://github.com/mbpz/poetry-atlas-mp/tree/main/.agents/skills/cloudbase/references/cloudbase-agent/py
Command: npx skills add https://github.com/mbpz/poetry-atlas-mp --skill cloudbase-agent-python-mbpz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cloudbase-agent-langgraph, cloudbase-agent-server, langchain-openai, cloudbase-agent-tools, cloudbase-agent-storage, cloudbase-agent-observability, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables you to build production-ready AI agent backends using the CloudBase Agent Python SDK. It allows you to create agents with various frameworks like LangGraph, CrewAI, or LlamaIndex, and serve them via FastAPI with AG-UI protocol support.

Core Features & Use Cases

  • Framework Support: Build agents using LangGraph, CrewAI, LlamaIndex, or custom logic.
  • FastAPI Integration: Serve agents via FastAPI with AG-UI protocol streaming and OpenAI-compatible endpoints.
  • Tools and Storage: Integrate tools like bash, filesystem, code execution, and various storage solutions like in-memory or long-term memory.
  • Observability: Add monitoring and tracing capabilities with OpenTelemetry and Langfuse.
  • Authentication and User Context: Manage user context and authentication using CloudBase Agent's built-in features.

Quick Start

Install dependencies:

pip install cloudbase-agent-langgraph

Create server entry point:

# server.py
from cloudbase_agent.server import AgentServiceApp

def create_agent():
    # Create and return your agent instance
    pass

app = AgentServiceApp()
app.run(create_agent)

Frequently Asked Questions about cloudbase-agent-python

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

FAQPage Schema
How do I build an AI agent backend with FastAPI and LangGraph?

To build an AI agent backend with FastAPI and LangGraph, you can use the CloudBase Agent Python SDK to create your agent instance and serve it via the AgentServiceApp, which provides FastAPI server support with AG-UI protocol streaming. This requires Python 3.10 and the cloudbase-agent-langgraph library.

What is the AG-UI protocol for AI agent streaming?

The AG-UI protocol is a streaming mechanism used to serve AI agent responses through a FastAPI server. It enables real-time communication between the agent backend and clients, supporting OpenAI-compatible endpoints alongside the agent frameworks like CrewAI and LlamaIndex.

Can I use CrewAI or LlamaIndex instead of LangGraph for my agent backend?

Yes, you can use CrewAI or LlamaIndex instead of LangGraph to build your AI agent backend. The CloudBase Agent Python SDK offers multi-framework support, allowing you to integrate various AI frameworks or even implement custom logic for your specific use case.

How do I add persistent memory and observability to a Python AI agent?

To add persistent memory and observability to a Python AI agent, you can utilize cloudbase-agent-storage for long-term memory solutions and cloudbase-agent-observability for monitoring. These tools integrate OpenTelemetry and Langfuse tracing directly into your FastAPI agent backend.

What tools can I integrate into an AI agent using the CloudBase Agent Python SDK?

Using the cloudbase-agent-tools dependency, you can integrate bash, filesystem, and code execution tools into your AI agent. These tools allow your LangGraph or LlamaIndex agents to interact with the system environment and execute tasks dynamically.

Does the CloudBase Agent Python SDK support OpenAI-compatible API endpoints?

Yes, the CloudBase Agent Python SDK supports OpenAI-compatible endpoints natively through its FastAPI integration. This allows clients expecting OpenAI API structures to communicate directly with your custom LangGraph or CrewAI agent backends.