The current CLI experience is centered on interactive mode.
For one-shot/scripted usage, use the SDK or HTTP endpoint directly.
Option 1: SDK one-shot call
Option 2: HTTP /ask_stream (Server-Sent Events)
The server exposes a single streaming endpoint, POST /ask_stream. The body
uses user_query, session_id, and metadata.accountInfo[]:
The response is Content-Type: text/event-stream. It emits one step event per
tool call, a final finalText event, then [DONE]:
When the assistant fetches balances for the UI, the final event also carries
balance_data and balance_ui: true.
When to use which mode
Last modified on June 18, 2026