CLI Reference
Command-line interface reference for all Seashail commands and subcommands.
Seashail provides a command-line interface for running the MCP server, managing agent configurations, diagnostics, and upgrades. This page documents all available commands with their flags and usage examples.
There is NO
seashail walletcommand. Wallet operations are MCP tools only. Usecreate_wallet,import_wallet, and other wallet tools via MCP agents.
seashail mcp
Run the MCP server over stdio. By default this starts a lightweight stdio proxy that forwards to a singleton local Seashail daemon (so multiple agents can share one key and policy state).
Flags
Prop
Type
Examples
Start MCP server in proxy mode (recommended):
seashail mcpStart with testnet override:
seashail mcp --network testnetStart in standalone mode (no daemon sharing):
seashail mcp --standaloneNotes
- Proxy mode (default) allows multiple agent processes to share one daemon state (keystore, passphrase session, policy).
- The proxy auto-spawns the daemon if it's not already running.
- Use
--standalonefor isolated testing or single-agent scenarios. - See architecture for details on the proxy/daemon relationship.
seashail daemon
Run the singleton Seashail daemon. The daemon holds the exclusive keystore lock and manages passphrase sessions across all MCP clients.
Flags
Prop
Type
Examples
Run daemon until terminated:
seashail daemonRun daemon with auto-exit after 5 minutes idle:
seashail daemon --idle-exit-seconds 300Notes
- You usually don't need to run this manually —
seashail mcpin proxy mode auto-spawns the daemon. - The daemon holds an exclusive filesystem lock at
$DATA_DIR/seashail-daemon.lockto prevent split-brain state. - When all MCP clients disconnect, the idle timer starts. If
--idle-exit-secondsis set, the daemon exits after that duration.
seashail paths
Print resolved paths for data directory, config directory, and log file. Useful for debugging configuration issues.
Flags
No flags.
Examples
seashail pathsOutput (JSON):
{
"config_dir": "/Users/you/.config/seashail",
"data_dir": "/Users/you/.local/share/seashail",
"log_file": "/Users/you/.local/share/seashail/seashail.log.jsonl"
}Notes
- Paths follow platform conventions (XDG on Linux, macOS Application Support, Windows AppData).
- Override with
SEASHAIL_CONFIG_DIRandSEASHAIL_DATA_DIRenvironment variables.
seashail doctor
Print a quick self-diagnostic report. The report contains no secrets and is safe to paste in issues or support requests.
Flags
Prop
Type
Examples
Human-readable report:
seashail doctorMachine-readable JSON:
seashail doctor --jsonNotes
- The report includes version info, resolved paths, wallet count, policy summary, and basic connectivity checks.
- Safe to paste publicly — no private keys, passphrases, or addresses are included.
seashail agent list
List supported agent targets for print and install commands.
Flags
No flags.
Examples
seashail agent listOutput (JSON):
[
{ "name": "cursor", "config_path": "~/.cursor/mcp_config.json" },
{ "name": "vscode", "config_path": "~/.vscode/mcp_config.json" },
{ "name": "windsurf", "config_path": "~/.windsurf/mcp_config.json" },
{
"name": "claude-desktop",
"config_path": "~/Library/Application Support/Claude/claude_desktop_config.json"
}
]Notes
- Currently supports Cursor, VSCode, Windsurf, and Claude Desktop.
- Use these target names with
agent printandagent install.
seashail agent print
Print a full JSON config template to stdout for a specific agent target. Use this to inspect the config before installing.
Flags
Prop
Type
Examples
Print Cursor config:
seashail agent print cursorPrint testnet config:
seashail agent print cursor --network testnetNotes
- The output is valid JSON that can be piped to a file or directly installed.
- Templates include the correct
seashail mcpcommand with appropriate flags.
seashail agent install
Install a config template to the agent's default config path (or a custom path via --path).
Flags
Prop
Type
Examples
Install to default location:
seashail agent install cursorInstall testnet config:
seashail agent install cursor --network testnetInstall to custom path:
seashail agent install cursor --path ~/my-config.jsonNotes
- If the config file already exists, you'll be prompted to confirm overwrite.
- After installation, restart your agent/editor to load the new config.
seashail openclaw install
Install or manage the OpenClaw plugin integration. This provides first-class Seashail tools in OpenClaw.
Flags
Prop
Type
Examples
Install with defaults:
seashail openclaw installInstall with testnet mode:
seashail openclaw install --network testnetDev install with local plugin:
seashail openclaw install --link --plugin ./packages/openclaw-seashail-pluginNotes
- This command runs
openclaw plugins installunder the hood and updates OpenClaw config. --restart-gatewayautomatically restarts OpenClaw's gateway to pick up changes.--onboard-walletcreates a default wallet if none exists, making setup frictionless.
seashail upgrade
Upgrade Seashail to the latest version by re-running the hosted installer.
Flags
Prop
Type
Examples
Interactive upgrade:
seashail upgradeNon-interactive upgrade:
seashail upgrade --yesSilent upgrade (for scripts):
seashail upgrade --yes --quietNotes
- Override auto-detection with
SEASHAIL_UPGRADE_METHOD=installer. - The upgrade command checks your current version and only upgrades if a newer version is available.