Skip to main content

Python SDK Overview

custodian-labs deploys Custodian Agents and multi-agent squads backed by your own data, with PII masking built in. Same backend as the TypeScript SDK; shared concepts in SDKs Overview.

pip install custodian-labs
from custodian_labs import Custodian

app = Custodian(model="gpt-4o", system_prompt="You are a helpful support agent.").deploy()
print(app.chat("How do I reset my password?").response)

Two ways to build one​

ApproachUse when
Custodian classFull control; add examples, files, tools, then .deploy().
CustodianBuilderThe same, as a fluent chain.

Both return an App. app.chat() retains the session for you.

Run an example​

Next​

Installation · Authentication · Data Sources & RAG · Multi-Agent Squads · Guardian Layer client