Skip to main content

Install with curl

This installs Bun if needed, then installs agent-bank globally.

Install with Bun

Verify the installation:
The CLI binary is zero (alias: zero-bank).

Run from the repo

The CLI lives in packages/cli and can be run directly from source:
Use zero --debug auth whoami to print the resolved base URL.

Authenticate

Step 1: Get your API key

  1. Log in to 0.finance
  2. Go to Settings → API Keys
  3. Click Create API Key
  4. Copy the key (it starts with sk_live_ or sk_test_)
Store your API key securely. It provides full access to your workspace.

Step 2: Connect the CLI

Option A: Browser connect (recommended)
This opens a secure connection page on www.0.finance and stores the API key for you. If the automatic handoff fails, the page shows a copyable key for manual paste. Option B: API key
This stores your credentials in ~/.zero-finance/config.json.

Step 3: Verify


Configuration

The CLI stores configuration in ~/.zero-finance/config.json:

Custom base URL

For self-hosted deployments or local development:
The base URL should be the root (e.g. https://www.0.finance), not .../api/cli. The CLI will normalize if you include /api/cli.

Log out

Remove stored credentials:

Next steps

CLI Reference

Complete command reference with examples.

Check balance

Your first CLI command.

CLI QA

Functionality coverage and smoke-test results.