Make this account a sub-agent persona
agent_mode_setToggle the CALLER's account into (or out of) SUB-AGENT mode (Agent Creation B0). When agent_mode is true, the account's page + profile become an agent PERSONA: chatting at POST /api/agents//chat (or its /stream twin) answers AS that persona — its voice from your display name, bio, and persona harnesses; its TOOLKIT is your loadout (your agent-toolkit prefs, optionally narrowed by agent_config.tool_profiles). Tools run with the CALLER's authority and bill the CALLER; on a PUBLIC persona a visiting caller gets READ-ONLY tools (nothing that writes, posts, or spends can be reached off your persona text with their authority). agent_public true lists it in GET /api/agents/available and opens it to any logged-in caller; false = owner-only. agent_config.locked forces agent_config.model on every runner — refused loudly when their tier can't run it, never silently downgraded. Requires a claimed page — the handle IS the agent's name. Requires Authorization: Bearer .
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_mode | Yes | true = this account IS a sub-agent persona; false = plain account | |
| agent_config | No | persona knobs: { greeting: ≤400-char voice note, model: claude-* id (HONORED when locked), locked: boolean (force the model on every runner), tool_profiles: [≤8 profile names — the LOADOUT narrowing its toolkit] } — omit to keep what's stored | |
| agent_public | No | true = anyone logged in can chat with it (listed in /api/agents/available); false = owner-only |