CLI Reference
Global Options
These options apply to all subcommands:
Subcommands
exec (alias: e)
Run a task non-interactively.
savfox exec "Add input validation to the signup form"
savfox e "Explain what this function does"
Options:
review
Run a non-interactive code review.
savfox review
savfox review "Focus on security issues"
resume
Resume a previous interactive session.
savfox resume # interactive session picker
savfox resume --last # resume the most recent session
savfox resume <SESSION_ID> # resume a specific session
fork
Fork from a previous session to explore a different direction.
apply (alias: a)
Apply the most recent agent-generated diff to your working directory using git apply.
login / logout
Manage authentication credentials.
savfox login # interactive login flow
savfox --oss login # login for local OSS providers
savfox logout # remove stored credentials
gateway
Start or manage the gateway server for remote access.
savfox gateway # start the server
savfox gateway --port 8080 --token abc # custom port and token
savfox gateway status # check server health
savfox gateway logs --follow # stream logs
savfox gateway models # list available models
See Gateway for full details.
Management subcommands:
mcp-server
Run Savfox as an MCP (Model Context Protocol) server over stdio.
See MCP Server for details.
mcp
Manage MCP server configurations.
app-server
Run the app server (JSON-RPC over stdio), used by IDE extensions.
Code generation subcommands:
savfox app-server generate-ts -o ./types # generate TypeScript bindings
savfox app-server generate-json-schema -o ./schema # generate JSON Schema
sandbox
Run a command under platform-specific sandboxing.
savfox sandbox macos <command> # macOS Seatbelt
savfox sandbox linux <command> # Linux Landlock + seccomp
savfox sandbox windows <command> # Windows restricted token
See Sandbox for details.
features
Inspect and manage feature flags.
savfox features # list all feature flags
savfox features enable <F> # enable a feature
savfox features disable <F> # disable a feature
config
Manage gateway-side configuration via WS-RPC.
savfox config validate
savfox config export --format yaml --output config.yaml
savfox config convert --to yaml --output config.yaml
cloud (alias: cloud-tasks)
Experimental. Manage cloud-based tasks.
savfox cloud exec "<query>" --env <ENV_ID> # submit a task
savfox cloud status <TASK_ID> # check status
savfox cloud list # list tasks
savfox cloud apply <TASK_ID> # apply diff locally
savfox cloud diff <TASK_ID> # show diff
completion
Generate shell completion scripts.
savfox completion bash > ~/.bash_completion.d/savfox
savfox completion zsh > ~/.zfunc/_savfox
savfox completion fish > ~/.config/fish/completions/savfox.fish
savfox completion powershell > savfox.ps1
acp
Run ACP bridge over stdio, backed by gateway WS-RPC.
savfox acp --gateway-url http://127.0.0.1:18881 --token "$SAVFOX_TOKEN"
See the main Savfox repository docs for a full Zed configuration example.