sail on PyPI) for Python 3.9+. It shares one
engine with the TypeScript and
Rust SDKs, so behavior matches across languages. This
page covers install and Python-specific notes.
Install
sail CLI on your PATH. To install
the CLI on its own, see Install the CLI.
Configure
SetSAIL_API_KEY in the environment; the SDK
also reads the credential sail auth login stores under ~/.sail. See
Configuration.
Quickstart
Sync and async
Every method that does I/O has an async twin under.aio (the interactive
shell is sync-only), so the same surface works from scripts and from
asyncio without blocking the event loop:
Python-only features
@sail.function: decorate a local Python function and run it inside a Sailbox as if it were local.- Voyages and Inference: the agent flight recorder and attributed model calls.
Errors
Everything the SDK raises derives fromsail.SailError, with Python builtins
(ValueError, LookupError, TimeoutError, …) where they are the natural
fit. See Errors.