init
stronghold init is the primary setup command. It walks through system compatibility checks, account creation or login, wallet setup, proxy configuration, service installation, and proxy startup.
Usage
sudo stronghold init [flags]Flags
| Flag | Type | Description |
|---|---|---|
--yes, -y | bool | Non-interactive mode with defaults |
--private-key | string | Import an existing EVM wallet (hex format, requires --yes) |
--solana-private-key | string | Import an existing Solana wallet (base58 format, requires --yes) |
--account-number | string | Login to an existing account (requires --yes) |
--skip-service | bool | Skip proxy binary install, service setup, and transparent proxy enable (account and wallet setup only). Does not require sudo since no system-level changes are made. |
What It Does
- System check — verifies OS compatibility, firewall tools, and required kernel modules
- Account setup — creates a new account or logs in to an existing one
- Wallet creation — generates EVM (Base) and Solana wallets or imports provided keys
- Proxy configuration — configures the transparent proxy settings
- Service installation — installs and starts the system service
- Proxy startup — enables firewall rules and begins intercepting traffic
Examples
# Interactive setup (recommended for first-time users)sudo stronghold init
# Non-interactive with all defaultssudo stronghold init --yes
# Import existing wallets during setupsudo stronghold init --yes --private-key 0x<hex> --solana-private-key <base58>
# Account-only setup without proxy installationstronghold init --yes --skip-service
# Login to an existing accountstronghold init --yes --account-number XXXX-XXXX-XXXX-XXXXKey Formats
- EVM (Base): Hex-encoded private key, 64 characters, with optional
0xprefix - Solana: Base58-encoded private key, approximately 87-88 characters
Important Notes
Running stronghold init without --skip-service sets up a system-wide transparent proxy that intercepts all HTTP and HTTPS traffic on the machine. This requires root privileges because it modifies kernel-level firewall rules.
If the account requires TOTP verification (new device login), --account-number will fail in non-interactive mode. Run stronghold init interactively to complete TOTP verification.