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

# CLI

> Use dzap/dzapai/DzapAI to run the DZap AI assistant in your terminal.

The CLI is the fastest way to use `@dzapio/ai` without writing app code.

## Command names

All three names map to the same binary:

```bash theme={null}
dzap
dzapai
DzapAI
```

## What you get

* Wallet profile bootstrap (`wallet`, `chain`, `blockchain`, `privateKey`)
* Persistent local config at `~/.dzapai/config.json`
* Tool-step streaming and optional debug output
* Explicit confirmation handling for interactive actions

## First run

```bash theme={null}
export OPENAI_API_KEY=sk-...
dzap
```

Example session:

```text theme={null}
>> /tools
>> /set wallet 0xYourAddress
>> /set chain 42161
>> show my balances
```

## Core commands

<CardGroup cols={2}>
  <Card title="Interactive shell" icon="terminal" href="/ai/cli/interactive-shell">
    Full slash-command reference and usage flow.
  </Card>

  <Card title="Configuration" icon="gear" href="/ai/cli/configuration">
    Environment variables and runtime settings.
  </Card>
</CardGroup>

## Non-interactive usage

For one-shot or scripted workflows, use the SDK or HTTP endpoint directly.
See [Ask mode](/ai/cli/ask-mode) for patterns.
