Repository navigation
sfx-api setup: the install command shared by the AI servers.--models sa3-medium,sa3-small,moss
(default all),--check(changes nothing: machine, per-component state and download bytes),
--yes,--json(one object on stdout),--prefix,--lan(token fromSFX_API_TOKEN, the
config or generated; never printed),--port,--coordinate-with NAME=URL,--service(launchd
plist,bootout+bootstrap, waits for/v1/health),--label-suffix. Stable Audio 3 runs its
owninstall.shat a pinned commit; MOSS gets a pinned checkout, the README's pinned environment and
the model at a pinned revision. Downloads resume, a stalled one is restarted, free disk is checked
first. The config is merged (existing values kept), written atomically with mode 0600 and validated
by the server's own loader.- The Stable Audio 3 weights are fetched at a pinned revision before
install.shruns offline;
both engines' dependencies resolve withUV_EXCLUDE_NEWER. Peer URLs and tokens and the LAN
token are checked before any download; a known peer gets its new URL.--label-suffixneeds
--port. Usage errors with--jsonstill print the JSON object. The plist is replaced atomically,
launchd is given time to drop the old agent, and directories setup creates are 0700.
Install / update
uv tool install git+https://github.com/kabatin/sfx-api@v0.1.1 # new install
uv tool install --reinstall git+https://github.com/kabatin/sfx-api@v0.1.1 # update an existing installThe config and its token are kept. Restart the server after updating, once /v1/health shows "running": 0:
launchctl kickstart -k gui/$(id -u)/com.github.kabatin.sfx-api for the LaunchAgent, or run sfx-api setup --service again.
ixa 0.8.3 and later do this for you: pnpm ixa ai install upgrades an older sfx-api before checking what is installed.
Full changes: v0.1.0...v0.1.1