Synopsis
Arguments
Master password for vault encryption. If not provided, you will be prompted interactively.
Store the derived encryption key in the system keychain (macOS only) to avoid entering the master password on every command.
API service name for the first credential (e.g., “openai”, “anthropic”). If not provided, you will be prompted.
Name for the first credential (e.g., “production”, “dev”). If not provided, you will be prompted.
API key value for the first credential. If not provided, you will be prompted.
Daily spending budget in USD. If not provided, you will be prompted (default: 10.0).
Maximum requests per minute. If not provided, you will be prompted (default: 60).
Apply system-level user and permission setup commands. Without this flag, commands are shown in dry-run mode.
Examples
Interactive setup
Non-interactive setup
Setup with keychain integration (macOS)
Apply system setup
Behavior
- Creates encrypted SQLite database for credential storage
- Validates master password (minimum 8 characters recommended: 12+)
- Stores the first API credential in the vault
- Creates or updates fishnet.toml configuration file
- Sets file permissions to owner-only (mode 0600)
- Displays system setup commands (requires —apply-system to execute)
Error messages
Password mismatch:Exit codes
- 0 - Initialization completed successfully
- 1 - Error occurred (password mismatch, validation failed, etc.)
Related commands
- fishnet start - Start the server after initialization
- fishnet add-key - Add more credentials after initialization
- fishnet policy - Edit the configuration file