Create Your First Custodian Agent
A Custodian Agent is one configured AI assistant. Deploy one in a few lines.
from custodian_labs import Custodian
custodian = Custodian(
model="gpt-4o",
system_prompt="You help onboard new admins.",
privacy_enabled=True,
)
app = custodian.deploy()
print(app.chat_url)
reply = app.chat("What should a new admin do first?")
print(reply.response)
.deploy() creates the agent and returns a chat-ready App. The session is retained,
so follow-ups keep context:
print(app.chat("Explain that in one sentence.").response)
Sharing
custodian.deploy(share_mode="private")
custodian.deploy(share_mode="password", share_password="s3cret")
"public" is the default.
Interactive chat
app.chat() # terminal REPL; type "exit" to stop
Next
Custodian Agent Class · Builder API · Multi-Agent Squads · Data Sources & RAG