# The noduma command

Every noduma command, the environment it reads and how to get it.

Source: https://docs.noduma.dev/cli/

`noduma` is one program for consumers, contributors and the maintainers. Every [installer](/contributors/install/) puts it on your PATH beside Noduma desktop. `noduma --help` lists the commands, and `noduma <command> --help` the options of each.

## Commands

### For consumers

| Command | What it does |
|---|---|
| [`noduma chat`](/cli/chat/) | Chat with Noduma's models in the terminal |
| [`noduma agent`](/cli/chat/#noduma-agent) | The chat, with tools the model may use in the current folder, each write or command only after your yes |
| [`noduma credits`](/cli/credits/) | Your credit balance |

### For contributors

| Command | What it does |
|---|---|
| [`noduma contribute`](/cli/contribute/) | Set this PC up to share in the background, and start, stop or remove it |
| [`noduma pair`](/cli/pair/) | Pair this PC with your account in the browser |
| [`noduma setup`](/cli/setup/) | Install a pinned llama.cpp engine and a model that fits this PC |
| [`noduma share`](/cli/share/) | Share this PC's engine with a coordinator in the foreground |

### For maintainers and Enterprise

| Command | What it does |
|---|---|
| [`noduma coordinator`](/cli/coordinator/) | Run a coordinator, or manage its accounts and PCs |
| `noduma maintainer` | The maintainers' dashboard, on loopback beside the coordinator (`noduma operator` is an alias) |

### The local laboratory

Three trusted nodes on one machine, for developing Noduma itself; not the network.

| Command | What it does |
|---|---|
| `noduma init` | Create `.env` with a random token for the Docker laboratory |
| `noduma serve` | Start a laboratory node |
| `noduma peers` | Show the nodes' status, model and counters |
| `noduma run` | Send a request to an available node |
| `noduma health` | Check that a node process responds |
| `noduma version` | Print the version |

The account commands of the next release are on [Account commands](/cli/account-commands/).

## Environment

| Variable | Used by | Meaning |
|---|---|---|
| `NODUMA_API_KEY` | `chat`, `agent`, `credits` | Your API key (`ndm_k_...`); never printed |
| `NODUMA_API_URL` | `chat`, `agent` | The API address; default `https://app.noduma.dev/v1` |
| `NODUMA_NODE_KEY` | `share` | A node key from a coordinator's invite; never printed |
| `NODUMA_COORDINATOR` | `share`, `credits` | The coordinator's address |
| `NODUMA_JOIN` | `contribute` | A join code from an invite (`ndm_j_...`), which holds the node key |
| `NODUMA_APP` | `pair`, `contribute` | The Noduma app's address |
| `NODUMA_TOKEN`, `NODUMA_PEERS`, `NODUMA_MODEL`, `NODUMA_BACKEND` | the laboratory | Its shared secret, node list, model and engine address |

Credits are not money: they cannot be bought or paid out.
