Skip to main content
Available on the root (default user) and naive.forUser(id). Links a user’s brokerage account via an OAuth2 Connect flow — connect() returns an authorize URL the user opens to grant access; Naive stores the bearer token and proxies the brokerage’s trading API at the user’s direction. Naive is not a broker-dealer and does not exercise trading discretion.

Methods

Sensitive methods are gated by the trading primitive’s approval policy in the user’s AccountKit. Use isPendingApproval(res) to detect a deferred action and naive.forUser(id).approvals.wait(approval_id) to await the human decision. The toolset returned by agentTools() also exposes a trading primitive (connect, account, positions, orders, create_order, cancel_order, close_position, …) for drop-in Anthropic tool use. Gated by the trading primitive in the user’s AccountKit.