Repository navigation
Sai 0.2.0 is the first native CLI release for Linux and macOS. It uses the
same profile and command names as the Python CLI, including sai mcp serve.
Upgrade
-
If you made a trade preview before upgrading, make a fresh preview before
confirming the trade. -
If uv installed the Sai 0.1.3 release wheel, run
sai updateto switch to
native Sai. You can also runsai update --to 0.1.4after the Python
bridge is published, then runsai updateto switch. For an older release
wheel, update to 0.1.3 first. The switch keeps the uv launcher and your
profile. Restart agent clients to load the updated MCP server.
#226,
#232,
#238 -
On Windows,
sai updatestays on 0.1.3 because native Sai does not run
on Windows (#260).
Run the managed installer to install the full Python CLI instead:uv run https://raw.githubusercontent.com/SaiDotFun/open-sai/main/scripts/install.py --full-python --version 0.2.0 -
If uv installed Sai from Git, uninstall the
sai-clitool, use the
managed installer
with--version 0.1.3or--version 0.1.4, then runsai update. Your Sai profile stays in place. -
The standard
sai-cliwheel is a small launcher that downloads and runs
the matching native binary. The full Python wheel and source package are
insidesai-cli-0.2.0-full-python.zip. Windows runs full Python.
To keep using Python on Linux or macOS, use the
managed installer
with--full-python --version 0.2.0.
#227,
#246
Trade Previews and Order Entry
- Open a trade with a market symbol such as
--market BTC. If the symbol
matches several markets, Sai lists their IDs. Text mode shows a compact
market table. Usesai trade cancel IDto cancel a pending order.
#235,
#249 - Leverage and margin previews show estimated collateral before and after
the trade in USDC and USD. Use--max-collateral-usdto size a margin-add
quote. The contract settles target leverage against the position at
execution, so final collateral can differ from the quote.
#235,
#248,
#249 - Sai rechecks market rules before sending a confirmed trade. If a market
stopped accepting opens after the preview, Sai reports the change. If
a close needs a market price and its publication time is unavailable or
stale, get a fresh preview once the price is available.
#233,
#239 - A partial close can leave a position below the opening minimum. If Sai
cannot read the collateral price, a rebuilt partial-close quote can show
the USDC estimate. Preview again when the price is available before
confirming.
#241,
#256
Trade Results and Account Reads
- With
--wait, trade commands poll Keeper for up to 60 seconds for an
outcome, and text mode prints a progress line. Without--wait, the
command returns while the intent is pending. For a delayed result, the
recovery command points to the same intent. MCP replies
include the account and intent key when a trade may already be pending.
#225,
#228,
#241,
#249 - A market-open receipt shows the fill price and filled collateral when
Keeper ties those values to the opening fill. Sai leaves those fields empty
when the fill details are unavailable.
#228,
#240 - Balances show their source block and age. Text mode marks reads older
than five minutes as stale and says when the age is unknown. Account
overview keeps available positions when a position or fill read fails and
reports the error in that section.
#235,
#237,
#248,
#249
Command Help, Logs, and MCP
- Commands such as
sai intent waitandsai logs intentshow their full
help when you leave out required input. Invalid config overrides tell you
which setting and source caused the error.
#200,
#230 - The native MCP server offers account overview and intent logs. Agent
clients can read the retained intent trail offline or include the current
Keeper status when connected.
#229 - MCP install reports show the resolved executable and summarize saved
environment entries.sai doctorand foreground updates can repair stale
Codex and Cursor registrations through native upgrade and rollback.
Sai prints manual repair steps for Claude Code entries that need attention.
#230,
#238,
#242,
#244
Release Checks
- Release rehearsals stage both package layouts and smoke-test all four
native builds. The tests compare behavior on the Python and native CLIs,
including intent logs that span midnight UTC.
#170,
#223,
#227,
#246,
#247,
#259
Choose the Sai Package
The standard sai-cli wheel, sai_cli-0.2.0-py3-none-any.whl, is the native shim.
It downloads and runs the matching native Sai binary on Linux and macOS.
Install the Full Python CLI
Run the installer to verify and install the full Python wheel from
this release. The installer records the release for sai update.
uv run https://raw.githubusercontent.com/SaiDotFun/open-sai/main/scripts/install.py --full-python --version 0.2.0To inspect the packages from this release, download sai-cli-0.2.0-full-python.zip and SHA256SUMS.
Compute the ZIP's SHA-256 and compare it with the ZIP's entry in SHA256SUMS.
- Linux:
sha256sum sai-cli-0.2.0-full-python.zip - macOS:
shasum -a 256 sai-cli-0.2.0-full-python.zip - Windows PowerShell:
Get-FileHash -Algorithm SHA256 sai-cli-0.2.0-full-python.zip
After the hashes match, extract the ZIP to inspect sai_cli-0.2.0-py3-none-any.whl and the sdist.
uv run --no-project python -m zipfile -e sai-cli-0.2.0-full-python.zip full-pythonWhat's Changed
- ci: Give Rust parity checks 30 minutes by @Unique-Divine in #223
- ci: Compare Rust parity against Python v0.1.2 by @Unique-Divine in #170
- sai-cli: Show full help for bare commands that require input by @Unique-Divine in #200
- sai-cli: Match Python auth behavior and preserve native upgrades by @Unique-Divine in #226
- sai-mcp: Serve account overview and intent logs over stdio by @Unique-Divine in #229
- sai-cli: Give Keeper 60 seconds to report trade outcomes by @Unique-Divine in #225
- sai-cli: Rehearse native cutover and rollback on an existing profile by @Unique-Divine in #232
- sai-cli: Check Rust trade execution before reserving intents by @Unique-Divine in #233
- sai-cli: Validate account overview reads by @Unique-Divine in #237
- sai-cli: Repair MCP registrations through native cutover and rollback by @Unique-Divine in #238
- sai-cli: Fix recovery hints, fill receipts, and intent trails by @Unique-Divine in #228
- sai-cli: Match trade input and confirmation parity by @Unique-Divine in #239
- sai-cli: Compare full trade previews and verified receipts by @Unique-Divine in #240
- sai-cli: Make trades easier to place and confirm by @Unique-Divine in #235
- sai-cli: Match Python v0.1.3 CLI Behavior in Rust by @Unique-Divine in #230
- sai-cli: Shorten MCP install reports by @Unique-Divine in #242
- ci: Publish native archives on Sai release tags by @Unique-Divine in #227
- sai-cli: Record Rust Parity Decisions and Fix UTC Rollover by @Unique-Divine in #247
- sai-cli: Count Other Environment Entries in Rust MCP Reports by @Unique-Divine in #244
- sai-mcp: Return actionable trade confirmation results by @Unique-Divine in #241
- sai-mcp: Run the Rust preview and trade tools by @Unique-Divine in #234
- ci: Publish the native shim on Sai releases by @Unique-Divine in #246
- sai-cli: Cover Partial-Close Preview and Submission Parity by @Unique-Divine in #256
- sai-cli: Show USDC collateral in USD in Python previews and balances by @Unique-Divine in #248
- Use NIBIRU_PM for release immutability checks by @Unique-Divine in #259
- sai-cli: Port Python trade UX to Rust by @Unique-Divine in #249
- sai-cli: Prepare the native 0.2.0 release by @Unique-Divine in #262
Full Changelog: sai-cli/v0.1.3...sai-cli/v0.2.0