> ## Documentation Index
> Fetch the complete documentation index at: https://docs.privacyboost.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

# Installation

This guide covers installing the Privacy Boost CLI tool.

## Prerequisites

* Rust 1.70 or later (for building from source)
* An Ethereum RPC endpoint
* A private key with funds for transactions

## Installation Methods

### From Pre-built Binary

Download the latest release for your platform:

```bash theme={null}
# macOS (Apple Silicon)
curl -L https://github.com/sunnyside-io/privacy-boost-sdk/releases/latest/download/privacy-boost-darwin-arm64.tar.gz | tar xz
sudo mv privacy-boost /usr/local/bin/

# macOS (Intel)
curl -L https://github.com/sunnyside-io/privacy-boost-sdk/releases/latest/download/privacy-boost-darwin-x64.tar.gz | tar xz
sudo mv privacy-boost /usr/local/bin/

# Linux (x86_64)
curl -L https://github.com/sunnyside-io/privacy-boost-sdk/releases/latest/download/privacy-boost-linux-x64.tar.gz | tar xz
sudo mv privacy-boost /usr/local/bin/

# Linux (ARM64)
curl -L https://github.com/sunnyside-io/privacy-boost-sdk/releases/latest/download/privacy-boost-linux-arm64.tar.gz | tar xz
sudo mv privacy-boost /usr/local/bin/
```

### From Source (Currently unavailable)

Build from the repository:

```bash theme={null}
# Clone repository
git clone https://github.com/sunnyside-io/privacy-boost-sdk.git
cd privacy-boost

# Build CLI using Make
make cli

# Binary will be at dist/cli/privacy-boost
./dist/cli/privacy-boost --version
```

### Cargo Install (Currently unavailable)

To install the privacy-boost crate from crates.io:

```bash theme={null}
cargo install privacy-boost-cli
```

## Verify Installation

```bash theme={null}
privacy-boost --version
# privacy-boost 0.1.0

privacy-boost --help
```

## Configuration

### Configuration File

Create a configuration file at `~/.privacy-boost/config.toml`:

```toml theme={null}
# Network configuration
server_url = "https://optimism.sepolia.privacyboost.io"
weth_contract_address = "0x4200000000000000000000000000000000000006"
rpc_url = "https://sepolia.optimism.io"
timeout_secs = 30
```

### Environment Variables

Override configuration with environment variables:

```bash theme={null}
export SERVER_URL="https://optimism.sepolia.privacyboost.io"
export RPC_URL="https://sepolia.optimism.io"
export WETH_CONTRACT_ADDRESS="0x4200000000000000000000000000000000000006"

export PRIVATE_KEY="0x..."
```

## Quick Example

```bash theme={null}
# Login with private key
privacy-boost login --private-key $PRIVATE_KEY

# Check status
privacy-boost status

# Check balance
privacy-boost balance --token 0x...

# Deposit tokens
privacy-boost shield --token 0x... --amount 1000000000000000000

# Send privately
privacy-boost send --token 0x... --amount 500000000000000000 --recipient 0x04...

# Withdraw
privacy-boost unshield --token 0x... --amount 250000000000000000 --recipient 0x...

# View history
privacy-boost history
```

## Commands

| Command            | Description                                           |
| ------------------ | ----------------------------------------------------- |
| `init`             | Initialize configuration file                         |
| `login`            | Connect wallet, derive privacy keys, and authenticate |
| `logout`           | Clear session                                         |
| `status`           | Show connection status                                |
| `balance`          | Check a token balance                                 |
| `balances`         | Check all token balances                              |
| `deposit`          | Deposit tokens to private balance                     |
| `withdraw`         | Withdraw to public address                            |
| `send`             | Send private transfer                                 |
| `history`          | View transaction history                              |
| `sessions`         | List saved sessions                                   |
| `resolve-identity` | Look up identity by address or MPK                    |

## Next Steps

* [Getting Started](./getting-started) - Basic CLI usage
