Skip to main content
The AgentOSClient provides a Python interface for interacting with running AgentOS instances. It enables you to:
  • Run agents, teams, and workflows programmatically with streaming support
  • Manage sessions for conversation persistence across runs
  • Search and manage knowledge in connected knowledge bases
  • Access memories stored for users
  • Monitor traces for debugging and observability

Quick Start

Streaming Responses

Stream responses in real-time for a better user experience:

Authentication

When connecting to authenticated AgentOS instances, pass headers with your requests:

Error Handling

API Reference

For complete method documentation, parameters, and response types, see the AgentOSClient Reference.

Examples

Basic Client

Connect and explore an AgentOS instance

Run Agents

Execute streaming and non-streaming agent runs

Run Teams

Execute team runs with member coordination

Run Workflows

Execute workflow pipelines

Session Management

Create, list, and manage sessions

Knowledge Search

Search and upload knowledge content

Memory Operations

Create, list, and manage user memories