Skip to main content

Share and chat

Every deployed agent or squad gets three ways in. You don't need to build a front end.

Way inWho uses itWhere
Share linkAnyone you send it tohttps://chat.custodianlabs.io/{app_id}
Chat APIYour backendPOST /apps/{app_id}/chat. See Platform API: Chat.
My AIsYou, in the Dashboarddashboard.custodianlabs.io/dashboard/my-ais

deploy() returns the link as app.chat_url in Python and app.chatUrl in TypeScript. It opens a hosted chat page at chat.custodianlabs.io.

Choose who can use it with share_mode when you deploy:

share_modeWho can chat
public (default)Anyone with the link.
passwordAnyone with the link and the password.
privateOnly you, through the API or the Dashboard.
app = custodian.deploy(share_mode="password", share_password="spring-launch")
print(app.chat_url)
const app = await custodian.deploy({ shareMode: "password", sharePassword: "spring-launch" });
console.log(app.chatUrl);

Squads take the same options on squad.deploy() / team.deploy().

note

Chats on a share link run on your account. They count toward your plan's usage like any other request.

My AIs​

My AIs lists every agent and squad you've deployed, from either SDK or the API. For each one you can:

  • Copy the share link to send it to someone.
  • Change sharing between public, password and private, or change the password.
  • Rename it.
  • Add your own LLM provider keys. See Models and BYOK.
  • Get API instructions: the endpoint and a ready-to-run curl example.
  • Delete it.

Call it over HTTP​

curl -X POST "https://platform.custodianlabs.io/v1/apps/$APP_ID/chat" \
-H "X-API-Key: $CUSTODIAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message": "Hello!"}'

Send the returned session_id back on the next request to continue the conversation. See Platform API: Chat.