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
- Python
- TypeScript
pip install custodian-labs
Requires Python 3.10+.
npm install @custodianlabs/sdk
Requires Node.js 18+ (or any runtime with fetch).
Deploy and chat
- Python
- TypeScript
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
agent.ts
import { Custodian } from "@custodianlabs/sdk";
const app = await new Custodian({
model: "gpt-6-luna",
systemPrompt: "You are a friendly onboarding assistant for new admins.",
}).deploy();
console.log(app.chatUrl); // shareable chat link
console.log((await app.chat("What should a new admin do first?"))?.response);
console.log((await 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
| Add | Template |
|---|---|
| Your own files (PDF, DOCX, XLSX, CSV, TXT) | RAG agent |
| Live web search | Web research agent |
| Several specialist agents | Multi-agent router |
| PII masking before the model | Private agent |