Skip to main content
The LaserSell CLI runs as a daemon that monitors your wallet and automatically executes exits when your strategy conditions are met.

How it works

After unlocking your wallet, the CLI connects to the LaserSell stream and begins monitoring. All activity is logged to the terminal via structured log output.
lasersell
The daemon runs until you press Ctrl+C to gracefully shut down.

Log output

The CLI outputs structured events as they happen:
EventMeaning
startupCLI started, wallet unlocked
stream_connectedConnected to the LaserSell stream
wallet_registeredWallet ownership verified with the server
balance_updateSOL balance polled
session_startedNew position detected and monitoring began
pnl_updateProfit/loss update for an active position
sell_scheduledExit condition triggered, sell queued
sell_attemptSell transaction submitted
sell_completeSell confirmed on-chain
session_closedPosition fully exited
liquidity_snapshotPool liquidity update (trend + depth bands)
stream_disconnectedStream connection lost

CLI flags

FlagShortDescription
--setupForce-run the onboarding wizard
--config <path>-fPath to a custom config file
--debugWrite debug-level logs to ~/.lasersell/debug.log
--smokeRun a connectivity health check and exit
--export-private-keyExport your wallet’s base58 private key to stdout
--smoke, --setup, and --export-private-key are mutually exclusive.

Headless operation

The CLI is designed for headless server deployments. For automated unlock, set the passphrase via environment variable:
export LASERSELL_WALLET_PASSPHRASE="your-passphrase"
lasersell
On a VPS, run in a tmux or screen session, or use systemd to manage the process.

Exit strategies

The CLI supports all LaserSell exit strategies, configured in ~/.lasersell/config.yml:
StrategyConfig fieldDescription
Take-profittarget_profitExit when profit reaches this % of entry
Stop-lossstop_lossExit when loss reaches this % of entry
Trailing stoptrailing_stopExit when profit drops this % from peak
Deadline timeoutdeadline_timeoutForce exit after N seconds
Sell on graduationsell_on_graduationExit when token migrates to a new DEX
Exit laddertake_profit_levelsSell partial amounts at multiple profit thresholds
Liquidity guardliquidity_guardExit when pool liquidity drops below safe threshold
Breakeven trailbreakeven_trailTrailing stop that activates once position breaks even
At least one exit condition must be enabled. See Example Configuration for the full config reference.

Copy trading

Monitor other wallets and optionally auto-buy when they buy:
watch_wallets:
  - pubkey: "TraderWallet1..."
    label: "whale"
  - pubkey: "TraderWallet2..."
    auto_buy:
      amount: 0.1       # SOL
      amount_usd1: 0.0   # USD1
Positions from watched wallets are managed by the same exit strategy as your own positions.

Modifying your strategy

Edit ~/.lasersell/config.yml and restart the daemon. Changes take effect on the next launch. To re-run the setup wizard:
lasersell --setup