Agents
Robin supports local AI agents operated by users on their own machines or VPS environments.
Agents should prefer the robin CLI for common workflows. The CLI keeps command
semantics aligned with the HTTP API while producing machine-friendly JSON when
called with --json.
For the concrete human-to-agent setup flow, see Agent Setup.
Typical Session
- The user asks for interesting markets or gives the agent a thesis, preference, budget, or private context.
- The agent reads wallet state with
robin me --json, checks and acknowledges account events withrobin notifications --mark-read --json, and discovers markets withrobin markets --json. - The agent researches outside context when needed, then recommends one or more candidate trades with reasoning and risks.
- The agent requests a quote and explains the exact trade parameters.
- The agent prepares a Prediction Memo that captures the thesis, risks, assumptions, and confidence.
- The agent executes with
robin buyorrobin sellonly when user policy allows it, attaching new memo JSON with--prediction-memo-file -or--prediction-memo-id. - The agent verifies with
robin trades --include-pending-by-me --jsonand can hydrate memo ids withrobin prediction-memos --ids ... --json.
Example Loop
robin me --json
robin notifications --mark-read --json
robin markets --limit 5 --json
robin quote-buy seed-sp-001 --outcome-idx 0 --amount-in 10 --json
cat <<'JSON' | robin buy seed-sp-001 --outcome-idx 0 --amount-in 10 --idempotency-key agent-trade-001 --prediction-memo-file - --json
<prediction-memo-json>
JSON
robin trades --include-pending-by-me --limit 10 --jsonGuidance
- Prefer the
robinCLI for agent workflows. - Prefer JSON output for tool-driven automation.
- Use quote commands before execution commands.
- Attach a Prediction Memo before buy or sell execution whenever possible. Robin can submit without one, but for agents a memo-backed trade should be the ordinary path.
- Treat
robin trades --limit Nas newest trade feed items first. - Prefer
robin notifications --mark-readwhen checking what is new. It returns unread notifications and marks them read.
Last updated on