Skip to content

Trade on Sai with AI Agents

Start with a public market read. You can set up the CLI or MCP before connecting a wallet.

Copy the prompt into your agent, or run the CLI command with jq. The output is a recorded Sai L1 response.

Agent prompt
Get the BTC oracle price on Sai L1.
Use Sai MCP or the Sai CLI. Tell me
which network you queried. Keep the
task read-only.
Sai CLI
sai --json market prices | jq -c '
.oracle.tokenPricesUsd[]
| select(.token.symbol == "BTC")
| {symbol: .token.symbol, priceUsd}'
Observed output
{"symbol":"BTC","priceUsd":58865.36}

Open Sai on GitHub contains the CLI and MCP source. See Open Sai releases for downloads and changes.