Skip to main content

Quickstart: your first agent

Deploy an AI agent and chat with it in about two minutes.

Get an API key​

Sign up, then click Get Started Free on Subscriptions. Your key appears on API Keys. It starts with custodian_labs_.

export CUSTODIAN_SDK_API_KEY="custodian_labs_..."

Install the SDK​

pip install custodian-labs

Requires Python 3.10+.

Deploy and chat​

agent.py
from custodian_labs import Custodian

app = Custodian(
model="gpt-6-luna",
system_prompt="You are a friendly onboarding assistant for new admins.",
).deploy()

print(app.chat_url) # shareable chat link
print(app.chat("What should a new admin do first?").response)
print(app.chat("Say that in one sentence.").response) # remembers the conversation

That's a live agent. It now has:

  • A chat endpoint you can call from any backend. See Platform API: Chat.
  • A share link at chat.custodianlabs.io. Anyone with the link can chat unless you make it private. See Share and chat.
  • An entry in My AIs in the Dashboard.
Free plan

The Free plan allows 1 live agent at a time. To deploy another, delete the first in My AIs or upgrade. See Plans and limits.

Chat in your terminal

Call app.chat() with no message to open an interactive chat. Type exit to quit.

Make it do more​

AddTemplate
Your own files (PDF, DOCX, XLSX, CSV, TXT)RAG agent
Live web searchWeb research agent
Several specialist agentsMulti-agent router
PII masking before the modelPrivate agent