View .mdOptimized for LLMs — paste directly into ChatGPT, Claude, or Cursor.
Hosted client
The hosted client calls agents on agntz.co or your self-hosted worker over HTTPS. TypeScript uses @agntz/client; Python uses agntz.AgntzClient or agntz.AsyncAgntzClient. Both talk to the same worker API.
pnpm add @agntz/client
Same resource shape as the embedded SDK — code is portable between local and hosted modes once your local tools are HTTP or MCP tools.
Run an agent to completion. Returns { output, state, sessionId, replies } in TypeScript and the same fields as Python attributes such as result.session_id.
client.agents.stream(...)
Streams SSE events. Always yields a terminal complete or error event.
Runtime context grants
Pass context when a hosted run needs access to a resource such as memory. These are namespace grants minted by trusted server-side code; the model never receives a namespace parameter.
const result = await client.agents.run({ agentId: "support-with-memory", input: "What do you remember about me?", sessionId: "user-42", context: ["app/user/u_123"],});
External clients send Authorization: Bearer ar_live_.... Keys are issued in Settings → API Keys on agntz.co or your self-hosted UI. For browser usage, never embed an ar_live_* key client-side; proxy through your own backend and inject the key server-side.
Self-host with the same client
The hosted client works against any Agntz worker — the public api.agntz.co or your own deployment.