Repository navigation
Releases
sai-cli v0.2.0
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 https://github.com/Sai...
sai-cli v0.1.3
What's Changed
- sai-cli: Cancel LCD reads at the account overview deadline by @Unique-Divine in #119
- sai-cli: Report failed intent reservations as unsent by @Unique-Divine in #125
- sai-cli: Rehearse upgrades from current releases by @Unique-Divine in #127
- rust: Stabilize rejected WebSocket upgrade parity by @Unique-Divine in #149
- rust: Port Sai CLI authentication by @Unique-Divine in #106
- sai-cli: Bind position confirmations to the chain and Perp contract by @Unique-Divine in #150
- sai-cli: Show only endpoint origins in diagnostics by @Unique-Divine in #151
- sai-cli: Port Doctor and MCP Registration to Rust by @Unique-Divine in #123
- sai-cli: Refuse position quotes for another account by @Unique-Divine in #148
- docs: Audit the published Sai CLI v0.1.2 by @Unique-Divine in #169
- sai-cli: Port Rust open, close, and cancel by @Unique-Divine in #117
- sai-cli: Port Rust TP/SL and target leverage by @Unique-Divine in #181
- sai-cli: Keep session renewal commands pasteable by @Unique-Divine in #156
- sai-cli: Fix intent log paging and retained endpoint redaction by @Unique-Divine in #157
- sai-cli: Isolate MCP discovery in updater tests by @Unique-Divine in #165
- sai-cli: Report Contract Rejections in Trade Previews by @Unique-Divine in #155
- docs: Explain partial-close previews during collateral oracle outages by @Unique-Divine in #164
- sai-cli: Catch schema drift and invalid replay variables by @Unique-Divine in #166
- sai-mcp: Serve native MCP read tools over stdio by @Unique-Divine in #120
- ci: Add new issues to the Sai project and label them for triage by @Unique-Divine in #56
- sai-cli: Fix Partial-Close Minimums and Open Slippage by @Unique-Divine in #167
- sai-cli: Protect session credentials in auth output by @Unique-Divine in #152
- sai-cli: Wait for Rust Intent Receipts by @Unique-Divine in #122
- sai-cli: Prove Shared-Home Trade Counts Across Runtimes by @Unique-Divine in #184
- sai-cli: Port Rust Trade Preview Estimates by @Unique-Divine in #159
- sai-cli: Match Python v0.1.2 intent reconciliation by @Unique-Divine in #185
- sai-cli: Make settings validation errors consistent by @Unique-Divine in #191
- sai-cli: Port account overview to Rust by @Unique-Divine in #160
- sai-cli: Tighten trade arguments, MCP shutdown, and doctor checks by @Unique-Divine in #154
- sai-cli: Verify Rust close ownership and bind trade confirmations to the route by @Unique-Divine in #195
- sai-cli: Fix four Rust parity gaps against Python v0.1.2 by @Unique-Divine in #158
- sai-mcp: Report which previews can be confirmed by @Unique-Divine in #192
- sai-mcp: Omit rejected input from validation replies by @Unique-Divine in #198
- ci: Give the Python test job room for the grown suite by @Unique-Divine in #201
- sai-cli: Validate Codex Doctor Repairs and Correct MCP Reporting by @Unique-Divine in #153
- sai-cli: Ship the standalone installer and Python-to-native bridge by @Unique-Divine in #182
- sai-cli: Bind Trade Confirmations to the Verified Route by @Unique-Divine in #194
- sai-cli: Rehearse native archives and exact-version shim installs by @Unique-Divine in #116
- sai-cli: Match Python's Doctor LCD chain report by @Unique-Divine in #199
- sai-cli: Report Differing Claude MCP Entries for Manual Update by @Unique-Divine in #161
- sai-cli: Port MCP uninstall and share update repair by @Unique-Divine in #193
- sai-cli: Fix timestamps in price and account reads by @Unique-Divine in #168
- sai-cli: Port logs, skill management, and the REPL to Rust by @Unique-Divine in #126
- sai-cli: Port Rust margin and partial-close trades by @Unique-Divine in #118
- sai-cli: Wait for TP/SL and leverage receipts by @Unique-Divine in #197
- sai-cli: Port native release updates to Rust by @Unique-Divine in #121
- sai-cli: Recover Intent Events Across Log Scan Windows by @Unique-Divine in #203
- sai-mcp: Serve auth and intent wait over stdio by @Unique-Divine in #196
- sai-cli: Bind partial-close confirmation to the reduction by @Unique-Divine in #219
- sai-cli: Prepare Python release 0.1.3 by @Unique-Divine in #222
Full Changelog: sai-cli/v0.1.2...sai-cli/v0.1.3
sai-cli v0.1.2
What's Changed
- sai-cli: Compare ledger column collations in parity tests by @Unique-Divine in #92
- sai-mcp: Bind partial-close previews to the position's leverage by @Unique-Divine in #58
- sai-cli: Harden the release rehearsal by @Unique-Divine in #97
- sai-cli: Fix paging for long log runs and stats continuations by @Unique-Divine in #93
- sai-cli: Refresh logging settings and reject malformed endpoint URLs by @Unique-Divine in #98
- sai-cli: Preserve ledger locks and make Sai home private by @Unique-Divine in #99
- sai-cli: Preserve Legacy MCP Entries and Keep Client Output Private by @Unique-Divine in #95
- sai-cli: Show only Keeper origins in status and diagnostics by @Unique-Divine in #96
- sai-cli: Add sai account overview, expiry warnings, and sai auth renew by @Unique-Divine in #61
- sai-cli: Show fee, liquidation, and fill estimates in trade previews by @Unique-Divine in #100
- sai-cli: Wait for an intent's final outcome and return a receipt by @Unique-Divine in #70
- sai-cli: Port market and account reads and live watches to Rust by @Unique-Divine in #104
- release: Set sai-cli version to 0.1.2 by @Unique-Divine in #124
Full Changelog: sai-cli/v0.1.1...sai-cli/v0.1.2
sai-cli v0.1.1
What's Changed
- sai-cli: Keep intents pending through next-oracle fills by @Unique-Divine in #57
- rust: Scaffold the sai Rust workspace by @Unique-Divine in #51
- rust: Port sessions, storage, and the intents ledger by @Unique-Divine in #65
- sai-cli: Give every failure a code and an exit code agents can branch on by @Unique-Divine in #63
- rust: Port settings, sai config, and the log writer by @Unique-Divine in #68
- sai-cli: Show full help when a command that needs input runs bare by @Unique-Divine in #67
- sai-cli: Join logs by intent and run, add stats, and publish the event schema by @Unique-Divine in #69
- test: Add a parity harness for the Rust port by @Unique-Divine in #60
- sai-cli: Block a retried open while Keeper still holds the first one by @Unique-Divine in #80
- test: Defer parity cases for the new logs commands by @Unique-Divine in #87
- scripts: Rehearse upgrades and rollback before a release by @Unique-Divine in #81
- sai-cli: Repair stale MCP registrations in sai doctor and after updates by @Unique-Divine in #59
- rust: Port the Keeper client and intent reconciliation by @Unique-Divine in #82
- docs: Point sign-in at the live Sai Web connect button by @Unique-Divine in #78
- sai-cli: Project Keeper intent and history output before printing by @Unique-Divine in #89
- release: Set sai-cli version to 0.1.1 by @Unique-Divine in #86
Full Changelog: sai-cli/v0.1.0...sai-cli/v0.1.1
sai-cli v0.1.0
What's Changed
- sai-cli: Add the Sai trader CLI by @Unique-Divine in #10
- ci: Run pytest, Ruff, and ty on pull requests by @Unique-Divine in #8
- sai-cli: Connect with the Sai Web token or a Foundry keystore by @Unique-Divine in #13
- sai-cli: Add --skill, --version, and Git install instructions by @Unique-Divine in #12
- sai-cli: Sign in without passwords by @Unique-Divine in #15
- sai-cli: Keep sign-in under sai auth without requiring ud by @Unique-Divine in #16
- sai-mcp: Serve Sai reads, previews, and trades to agents over MCP by @Unique-Divine in #14
- sai-cli: Connect several accounts and switch the active one by @Unique-Divine in #18
- sai-mcp: List, switch, and act as connected accounts by @Unique-Divine in #19
- sai-cli: Store settings in ~/.sai/config.toml with sai config by @Unique-Divine in #28
- sai-mcp: Serve the MCP from sai mcp serve and list every tool by @Unique-Divine in #25
- sai-mcp: Register Sai with Claude Code, Codex, and Cursor by @Unique-Divine in #29
- sai-cli: Add release workflow and sai update --check by @Unique-Divine in #26
- sai-cli: Add sai doctor with local and network checks by @Unique-Divine in #27
- sai-cli: Shorten address to addr in commands, tools, and output by @Unique-Divine in #30
- sai-cli: Sign in with one key NAME, using ud when it knows the name by @Unique-Divine in #31
- sai-cli: Release under sai-cli/v tags and install from release wheels by @Unique-Divine in #37
- sai-cli: Install updates from release wheels, automatically by default by @Unique-Divine in #39
- sai-cli: Log commands, MCP calls, and intents as JSONL under ~/.sai/logs by @Unique-Divine in #38
- sai-cli: Add sai skill show, source, and install, and sync the skill from jiyuu by @Unique-Divine in #36
New Contributors
- @Unique-Divine made their first contribution in #10
Full Changelog: https://github.com/SaiDotFun/open-sai/commits/sai-cli/v0.1.0