Skip to main content

Scripting Guide

Automate Privacy Boost operations with shell scripts and batch processing.

JSON Output

Use --output json (or -o json) for machine-readable output:

Environment Setup

Configuration Script

Create a setup script:
Usage:

Loading the Private Key

The CLI takes the key from one of three places, best first:
  1. Interactive prompt. Leave both --private-key and PRIVATE_KEY unset and the CLI prompts for the key with echo disabled, so it never reaches argv, shell history, or the terminal scrollback. Use this for anything you run by hand. The prompt reads the controlling terminal directly, so it is not available under CI and cannot be fed from a pipe.
  2. PRIVATE_KEY environment variable. The non-interactive fallback. The CLI accepts it and prints a warning at startup.
  3. --private-key on the command line. Avoid it. Arguments are readable by every process on the machine through ps, and they land in shell history and process accounting logs. The flag is hidden from --help for that reason.
None of these encrypt the key at rest. A key kept in a file is a plaintext secret that grants full control of the account, so restrict it to your own user and prefer a real secret store wherever you have one.

Automation Scripts

Daily Deposit Script

Batch Transfer Script

Monitor Balance Script

Error Handling

Retry Logic

Error Notifications

Cron Jobs

Daily Balance Report

Auto-Deposit on Low Balance

Integration Examples

With GitHub Actions

Next Steps