# shardio CLI

> Every shardio command and option.

## Using shardio

`shardio` is the program you install on a machine to serve models from it. This page lists every command it has, generated from the program itself: how to run it, what it does, its options and examples.

New to serving? Start with [Serve models](/start/serve-quickstart/). On the machine, `shardio --help` or `shardio <command> --help` prints the same help in your terminal.

The first entry, [`shardio`](#shardio), says which commands change whether Shardio sends the node requests, which change what runs on the machine, and which change the node it belongs to, and where the machine keeps its two settings files.

## Commands

### `shardio`

Serve open models on your NVIDIA GPU with Shardio, and earn per token.

```
shardio [OPTIONS] COMMAND [ARGS]...
```

New machine? Run `shardio check` to see that it can serve, then `shardio up`. `up` asks a few questions, shows a code to approve in your Shardio console, lets you choose the models to serve and starts them. It runs in that terminal until Ctrl-C; `shardio up --detach` keeps it running in the background until `shardio down`.

Each command changes one of three things. Requests: `pause`, `resume` and `schedule` change only whether Shardio sends this node requests, and the models stay loaded on this machine. This machine: `up` starts the node and `down` stops it, after asking Shardio to stop sending it requests; `restart` loads one model again. Membership: `node remove` removes the node from your account, or one machine from the node.

Settings are two files. ~/.config/shardio/config.toml holds this machine's credential. ~/.config/shardio/node.yaml holds its node, its name and the models first chosen for it; after that first choice the node's models are kept on Shardio, where `shardio models` shows them and `shardio models set` changes them. `shardio config path` prints where both files are on this machine.

#### Options

| Option | Value | Description |
|---|---|---|
| `--version` |  | Show the installed Shardio release and exit. |
| `--home` | `DIR` | Keep this machine's settings and working files in DIR instead of ~/.config/shardio and ~/.local/share/shardio. |
| `--api-url` | `URL` | Shardio API address. Change it only when Shardio support asks you to. |
| `--config` | `PATH` | This machine's node settings file.  [default: ~/.config/shardio/node.yaml] |
| `-h, --help` |  | Show this message and exit. |

#### Commands

- Getting started: `shardio check`, `shardio up`
- Running: `shardio models`, `shardio pause`, `shardio resume`, `shardio restart`, `shardio down`, `shardio update`, `shardio setup`, `shardio calibrate`, `shardio schedule`
- Inspecting: `shardio status`, `shardio requests`, `shardio logs`, `shardio node`
- Account: `shardio auth`, `shardio config`

### `shardio check`

Check that this machine can start Shardio.

```
shardio check [OPTIONS]
```

Runs the checks `shardio up` runs before it sets anything up, for the way this machine runs Shardio: the GPU and its driver and the installed release's signature; in Shardio's container (the Linux default) also the container runtime, the NVIDIA CDI setup that hands the container the GPU, a few kernel settings and the folder the container is given, and says whether Shardio's node image is downloaded yet (`shardio up` downloads it once the machine is approved). Prints one line per check: ok, warn, FAIL, or ???? for a check that could not be made. It changes nothing. Run it before your first `shardio up`, and again after changing drivers or hardware. Also checks engine-image headroom on the container storage filesystem, keeping room for unpacking and a safety reserve. On an enrolled machine, also warns when the weights cache has too little free space for chosen models. This advisory downloads nothing; partial downloads are not credited, and unpacking can need more space. Cached weights are verified before they count toward available capacity; this can read many gigabytes.

Exits with status 1 when a required check fails or could not be made; warnings alone do not.

#### Options

| Option | Value | Description |
|---|---|---|
| `--json` |  | Print the results as JSON. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio check
shardio check --json
```

### `shardio auth`

Enrol this machine under your Shardio account.

```
shardio auth [OPTIONS] COMMAND [ARGS]...
```

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Commands

`shardio auth login`

### `shardio auth login`

Enrol this machine with a code you approve in the console.

```
shardio auth login [OPTIONS]
```

Prints a short code and a link. Open the link on any device where you are signed in to Shardio, enter the code and approve it; the code expires after ten minutes. The machine then gets its own credential, saved in ~/.config/shardio/config.toml. You never type a password or a token here.

`shardio up` does this for you on a new machine. Existing machine credentials and node identity are preserved by default: login is not an identity reset. A valid saved credential may need no new code.

On a new machine the options answer the setup questions, which is how to enrol from a script, with no terminal: --machine is then required, and the answers are saved to node.yaml.

To deliberately start fresh, preserve the old configuration as evidence. First finish the GPU driver install and check that the complete GPU UUID set is readable as your ordinary user; reboot if the driver change needs it. Choose a unique node name in the intended node.yaml.

Create a new private directory outside cloned/shared configuration with `mkdir -m 700 <fresh-private-dir>`. It must have no config.toml, machine token, machine/node ID, cached approval or adoption context. Do not copy identity state. Use the same global options for login and up: `shardio --home <fresh-private-dir> --config <node.yaml> auth login`, then `shardio --home <fresh-private-dir> --config <node.yaml> up`.

A new hardware fingerprint starts a new machine/history, not a recovery or transfer of ambiguous old history. An identical known fingerprint still names its existing identity; a fresh home cannot bypass identity conflicts or another account's registration. Renaming alone does not change hardware identity.

Replacing an unusable saved credential in a terminal requires explicit confirmation and first saves a private timestamped copy of the old configuration. Without a terminal, use the fresh-home workflow instead; --yes does not approve replacing a saved machine identity.

#### Options

| Option | Value | Description |
|---|---|---|
| `--api-url` | `URL` | Shardio API address. Change it only when Shardio support asks you to. Environment variable `SHARDIO_API_URL`. |
| `--machine` | `NAME` | This machine's name in the console.  [default: the hostname] |
| `--node` | `NAME` | The new node's name, answering the setup question.  [default: Shardio picks one] |
| `--models` | `IDS` | The node's first models, answering the question `shardio up` asks: model ids from `shardio models`, comma-separated, or `auto` for what Shardio recommends. |
| `--yes` |  | If this machine is in another node now, move it out without asking. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio auth login
shardio auth login --machine gpu-box-2
shardio auth login --machine gpu-box-2 --node gpu-node --models auto --yes
```

### `shardio setup`

Change this machine's name, node or link address.

```
shardio setup [OPTIONS]
```

Writes the options you pass into node.yaml, then updates this machine on Shardio. Settings you leave out keep their current value. It changes only who this machine is: its name, its node, how many machines that node expects and its link address. The machine must be enrolled already: on a new machine, run `shardio up` instead.

It never changes the models. Until the node has its first models, the `models:` list in node.yaml (or the question `shardio up` asks) names them; after that, `shardio models set` changes them.

#### Options

| Option | Value | Description |
|---|---|---|
| `--node` | `NAME` | The node's name. On a machine that joined another node: the node it belongs to, by name or id. |
| `--machine` | `NAME` | This machine's name in the console. |
| `--expect-machines` | `N` | How many machines this node will have. Set it on the node's first machine; once that many have joined, the node takes no more. |
| `--link-address` | `ADDRESS` | This machine's address on the private network that links the machines of a multi-machine node. Required on each of them; `shardio up` then prints the firewall rule to write. |
| `--yes` |  | If this machine is in another node now, move it out without asking. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio setup --machine gpu-box-2
shardio setup --expect-machines 2 --link-address 10.0.0.11
```

### `shardio models`

Show or change the models this node serves.

```
shardio models [OPTIONS] [COMMAND] [ARGS]...
```

Without a subcommand, lists the models this node can serve, each by name and model id, with Shardio's recommendation (marked *), why the network needs it, and whether it fits; then the node's current models. Run it on the node's first machine.

Where the models come from: for the node's first models, `shardio up` uses the `models:` list in node.yaml, or asks when there is none. From then on the node's models are kept on Shardio, also when they are changed in the console, and `shardio up` keeps them: editing node.yaml changes nothing until you run `shardio models set --from-config`. `models: auto` takes Shardio's recommendation once, when the first models are chosen; `shardio models set --auto` works it out again.

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio models
shardio models add gemma4-26b-a4b
shardio models remove clef-flash
shardio models set gemma4-26b-a4b qwen3.6-35b-a3b
```

#### Commands

`shardio models list`, `shardio models pause`, `shardio models resume`, `shardio models set`, `shardio models add`, `shardio models remove`

### `shardio models list`

List this node's models and their pause controls.

```
shardio models list [OPTIONS]
```

Shows whether each model can pause to free GPU memory, or why not, and its requested and actual state. Each recipe is listed by the id to use with `shardio models pause --build ID` or `shardio models resume --build ID`.

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio models list
```

### `shardio models pause`

Pause one model and free its GPU memory.

```
shardio models pause [OPTIONS]
```

Finishes requests already running before unloading the model. Other models keep serving. In contrast, whole-node `shardio pause` stops new requests but keeps models loaded. Name a recipe with --build, or choose one when asked in a terminal.

#### Options

| Option | Value | Description |
|---|---|---|
| `--build` | `ID` | Exactly one recipe, by the id `shardio models list` shows beside a model. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio models pause --build ID
```

### `shardio models resume`

Load a paused model again.

```
shardio models resume [OPTIONS]
```

The model takes requests only after it has loaded and passed its health check. Other models keep serving. Name a recipe with --build, or choose one when asked in a terminal.

#### Options

| Option | Value | Description |
|---|---|---|
| `--build` | `ID` | Exactly one recipe, by the id `shardio models list` shows beside a model. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio models resume --build ID
```

### `shardio models set`

Choose the whole set of models this node serves.

```
shardio models set [OPTIONS] [MODEL_ID]...
```

Replaces the node's models with the ones you name, by model id (`shardio models` lists them); `shardio models add` and `shardio models remove` change one or a few and keep the rest. In a terminal it first shows what changes, the models added and removed or why they do not fit, and asks before applying it. From a script, the models you name are applied without a question. If anything is refused, the node keeps the models it has.

With no model id it lists the models with the node's current ones chosen, as the console's chooser does, and asks which to serve; that needs a terminal. --auto serves what Shardio recommends, and --from-config the models in node.yaml. Name only one of these.

This never edits node.yaml: `shardio models` shows the node's models. A running node starts the new models on its own; `shardio status --watch` follows them.

#### Arguments

| Argument | Type | Required |
|---|---|---|
| `[MODEL_ID]...` | text | no |

#### Options

| Option | Value | Description |
|---|---|---|
| `--auto` |  | Serve what Shardio recommends for this node, worked out when it is applied. |
| `--from-config` |  | Serve the models named under `models:` in this machine's node.yaml. |
| `--build` | `ID` | Expert: serve exactly this recipe, by the id `shardio status --details` lists beside a model, instead of letting Shardio pick one. Repeat for several. Repeatable. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio models set
shardio models set gemma4-26b qwen3.6-35b
shardio models set --auto
```

### `shardio models add`

Add models to the ones this node serves.

```
shardio models add [OPTIONS] MODEL_ID...
```

Adds each model you name, by model id (`shardio models` lists them), and keeps the node's other models serving as they are. In a terminal it shows what changes and asks before applying it; from a script it applies without a question. It is worked out from the models the node serves now, so if they change before it is applied (in the console, say), nothing is changed and you run it again. If anything is refused, the node keeps the models it has. A running node starts the new models on its own; `shardio status --watch` follows them.

#### Arguments

| Argument | Type | Required |
|---|---|---|
| `MODEL_ID...` | text | yes |

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio models add gemma4-26b-a4b
shardio models add gemma4-26b-a4b qwen3.6-35b-a3b
```

### `shardio models remove`

Stop serving some of this node's models.

```
shardio models remove [OPTIONS] MODEL_ID...
```

Removes each model you name, by the model id `shardio models` or `shardio status` shows beside it, and keeps the others serving. A node keeps at least one model: to stop taking requests, run `shardio pause`. In a terminal it shows what changes and asks before applying it; from a script it applies without a question. It is worked out from the models the node serves now, so if they change before it is applied (in the console, say), nothing is changed and you run it again.

#### Arguments

| Argument | Type | Required |
|---|---|---|
| `MODEL_ID...` | text | yes |

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio models remove clef-flash
```

### `shardio up`

Start serving on this machine, setting it up first if needed.

```
shardio up [OPTIONS]
```

On a new machine, `up` asks a few questions (saved to node.yaml), shows a code to approve in your Shardio console, lets you choose the models to serve and starts them. On a machine that is set up, it starts right away. If it was stopped part way, it picks up at the step still missing.

Once the node has models, `up` keeps the ones chosen on Shardio, also when they were changed in the console; it does not apply node.yaml's models again. `shardio models set` changes them, and `shardio models set --from-config` applies node.yaml's.

After installing a newer release, run `up` without stopping the old node: it downloads and verifies the new image while the old node keeps serving, then stops and swaps. A failed download or verification leaves the old node serving. Once the replacement serves, old node images are pruned, keeping this release and the previous one for rollback.

The first start takes a while. Once the machine is approved, `up` downloads Shardio's node image, which is large: once per release, and a download that fails is tried again by the next `up`. Then model weights download and load onto the GPU. `up` says how much is left of the weights to download and how long it should take, and waits as long as that download makes progress; a download cut short is kept, and the next `up` resumes it. Shardio then runs health checks and calibrates the node before sending it requests; `shardio status` shows the progress. While `up` downloads the image, the console reads the node as Starting; while `up` asks for the models, as Ready.

Releases using checked engine packs download and check engine code separately from model weights. Native launches use the private machine cache; they do not download the container image.

Without --detach the node runs in this terminal: Ctrl-C stops it, but closing the terminal is not a reliable way to stop it. With `shardio up --detach` it downloads the node image and starts in the background, after the terminal closes too, until `shardio down`. `shardio logs` shows the download; `shardio status` shows progress and failures. If your first model choice still needs this terminal, it downloads first and says so. Foreground `up` shows Shardio's status after the models load; models loaded here are not yet a node that serves.

#### Options

| Option | Value | Description |
|---|---|---|
| `-d, --detach` |  | Start in the background, including the node image download; `shardio down` stops it. |
| `--wait` | `SECONDS` | Give up if the models are not up after this long, however the download is going. By default `up` waits as long as model weights or engine code make download progress. |
| `--stall` | `SECONDS` | Give up once a model-weights or engine-code download makes no progress for this long. |
| `--yes` |  | If this machine is in another node now, move it out without asking. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio up  # set up if needed, serve in this terminal
shardio up --detach  # serve in the background
```

### `shardio down`

Stop serving and shut down the node on this machine.

```
shardio down [OPTIONS]
```

Tells Shardio to stop sending requests, lets the ones in progress finish, then stops the models on this machine. Works however the node was started, with or without --detach. Start it again with `shardio up`.

The machine stays in its node and in your account. To stop requests but keep the models loaded, use `shardio pause`; to take the machine off your account's nodes, use `shardio node remove`.

#### Options

| Option | Value | Description |
|---|---|---|
| `--grace` | `SECONDS` | How long to let requests in progress finish before stopping.  [default: 30] |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio down
```

### `shardio pause`

Stop receiving new requests; the models stay loaded.

```
shardio pause [OPTIONS]
```

Requests already running finish. Nothing new is sent to this node, health checks included, so a pause never counts against it. The models keep running on this machine and the node keeps its machines. Use it before a reboot or when you need the GPU for a while, then run `shardio resume`. To stop the models on this machine, use `shardio down`.

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio pause
```

### `shardio resume`

Receive requests again after `shardio pause`.

```
shardio resume [OPTIONS]
```

The models that were serving before the pause serve again straight away. A model Shardio stopped sending requests to in the meantime stays stopped. Like `shardio pause`, it changes only whether Shardio sends this node requests.

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio resume
```

### `shardio calibrate`

Calibrate this node again, or stop a calibration.

```
shardio calibrate [OPTIONS]
```

Calibration measures how this node performs with its models. A new node is calibrated automatically; ask for a new calibration after changing the GPU driver, the hardware, or how much of the machine you reserve for the node. It starts at the node's next quiet moment, and `shardio status` shows the progress.

The node takes no requests while it is calibrated. `--stop` ends a calibration that is running and the node serves again at once, keeping the figures it had; on a request that has not started yet, it withdraws it.

#### Options

| Option | Value | Description |
|---|---|---|
| `--stop` |  | Stop this node's calibration, or withdraw a request still waiting to start. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio calibrate
shardio calibrate --stop
```

### `shardio restart`

Restart one model on this node.

```
shardio restart [OPTIONS]
```

Stops the model and starts it again on this machine, for a model that stopped answering or became slow. The node's other models keep serving. The model takes no requests until it has loaded again, which can take a few minutes. A node serving one model restarts that one; with several, name one with --model or pick it when asked.

#### Options

| Option | Value | Description |
|---|---|---|
| `--model` | `MODEL_ID` | The model to restart, by the id `shardio status` shows beside its name. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio restart
shardio restart --model MODEL_ID
```

### `shardio schedule`

Show or set when this node serves.

```
shardio schedule [OPTIONS] [EXPR]
```

With no argument, shows the node's hours. With one, sets them: always, nights (22:00 to 07:00), weekdays (Monday to Friday), weekends (Saturday and Sunday), or a cron line of five fields (minute hour day month weekday) that is on during every minute it matches. Outside its hours the node takes no requests and earns nothing; requests already running finish. The hours change only whether Shardio sends the node requests: the models stay loaded on this machine outside them. The hours are read on this machine's time zone unless --tz names another; --tz alone moves the current hours to that zone.

#### Arguments

| Argument | Type | Required |
|---|---|---|
| `[EXPR]` | text | no |

#### Options

| Option | Value | Description |
|---|---|---|
| `--tz` | `ZONE` | Time zone the hours are read in, such as Europe/Lisbon. Default: this machine's. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio schedule
shardio schedule nights
shardio schedule "* 9-16 * * 1-5" --tz Europe/Lisbon
shardio schedule always
```

### `shardio status`

Show this machine's node as Shardio sees it, then this machine.

```
shardio status [OPTIONS]
```

First the node: its status (Ready, Starting, Calibrating, Serving, Paused, Needs attention or Offline) and why, each model by name with its id in parentheses and how far it has got, how many requests it served in the last 24 hours, and the command Shardio suggests next, which is shown and never run. Then, under its own heading, what this machine's processes are doing. When Shardio cannot be reached the node's status is unknown, however healthy this machine looks.

--details adds the ids, each model's requests and tokens in the last 24 hours, the node's machines, its latest events in this machine's time zone, the runtime and the processes behind each line. --json prints one snapshot for scripts: the node as Shardio sees it (null when it could not be read), this machine, the node's last 24 hours and recent events as Shardio sent them (null when they could not be read), and any errors. When only the last 24 hours could not be read, status says so and shows the rest. --watch reads again every 15 seconds and prints only what changed, until Ctrl-C; it leaves out the last 24 hours and the events, and never changes anything. `shardio requests` lists the requests one by one.

#### Options

| Option | Value | Description |
|---|---|---|
| `--details` |  | Add the ids, each model's last 24 hours, the node's machines, its recent events, the runtime and the processes behind each line. |
| `--json` |  | Print one snapshot as JSON, for scripts. |
| `--watch` |  | Read again every 15 seconds and print what changed, until Ctrl-C. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio status
shardio status --details
shardio status --json
shardio status --watch
```

### `shardio requests`

Show this node's requests, newest first.

```
shardio requests [OPTIONS]
```

Every request this node served, one line each: when it arrived, the model, its type when it is not a plain request (Health check or Calibration), how it ended (Completed, Failed with its reason, or Cancelled), tokens in and out, the time to the first token, how long it took and its speed. Health checks confirm the node is ready to serve a model. Routine quality checks from the mesh are included and look like any other request. These are figures only: no prompt or reply is ever kept. Earnings are in the Shardio console, per day, never per request.

The window is the last 30 days unless --since and --until, or --period, say otherwise; it spans at most 93 days, and times are in this machine's time zone. --run shows one calibration run's requests, as the console's Run started link does. --json prints Shardio's answer as it came, for scripts.

#### Options

| Option | Value | Description |
|---|---|---|
| `--model` | `ID` | Only this model's requests, by the id `shardio status` shows in parentheses. |
| `--status` | `[completed\|failed\|cancelled]` | Only the requests that ended this way. One of `completed`, `failed`, `cancelled`. |
| `--type` | `[request\|health-check\|calibration]` | Only requests of this type. One of `request`, `health-check`, `calibration`. |
| `--run` | `RUN_ID` | Only this calibration run's requests, by the id a Calibration row shows in parentheses. |
| `--since` | `WHEN` | Start of the window: a date (YYYY-MM-DD) or a time (YYYY-MM-DDTHH:MM), on this machine's time zone unless it carries an offset. Default: 30 days before --until. |
| `--until` | `WHEN` | End of the window, written as --since. Default: now. |
| `--period` | `YYYY-MM` | One calendar month instead of --since and --until. |
| `--limit` | `N` | How many of the newest to show.  [default: 50] |
| `--all` |  | Show every request in the window, not only the newest. |
| `--json` |  | Print Shardio's answer as JSON, for scripts; with --all, one answer per line. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio requests
shardio requests --status failed
shardio requests --model small-8b --limit 200
shardio requests --period 2026-10 --all
shardio requests --json
```

### `shardio update`

Update Shardio on this machine to the newest release.

```
shardio update [OPTIONS]
```

Downloads that release's own installer and runs it: the same steps as the first install, with the same signature checks. It replaces the `shardio` command and the release this machine starts next. A node that is running keeps running the release it started on; afterwards `shardio up --detach` moves it to the new one. The node keeps serving while the new release downloads, then reloads its models, which takes it out of serving for a while.

#### Options

| Option | Value | Description |
|---|---|---|
| `--version` | `VERSION` | Install this release instead of the newest one, for example 0.4.27. |
| `--check` |  | Only say whether a newer release exists. Nothing on this machine changes. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio update
shardio update --check
shardio update --version 0.4.27
```

### `shardio logs`

Show this machine's log.

```
shardio logs [OPTIONS]
```

Prints the node's log, whether it was started with `shardio up` or `shardio up --detach`. The models' own engine output stays in memory on the machine and is never written to disk.

#### Options

| Option | Value | Description |
|---|---|---|
| `-f, --follow` |  | Keep printing new lines as they are written. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio logs
shardio logs --follow
```

### `shardio node`

Remove this machine's node, or one machine from it.

```
shardio node [OPTIONS] COMMAND [ARGS]...
```

A node is one or more machines that serve together. Most nodes are a single machine. `shardio status --details` lists the node's machines.

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Commands

`shardio node remove`

### `shardio node remove`

Remove this machine's node, or one machine from it.

```
shardio node remove [OPTIONS] [NODE]
```

Without --machine, removes the whole node and every machine in it. With --machine, removes that one machine: removing the node's first machine retires the node, and its other machines stay in your account and join a node again on their next `shardio up`; removing any other machine frees its place in the node for a similar machine. Shardio stops sending the removed machines requests at once.

A removed machine stops its models on its own; `shardio down` on it then stops Shardio there too. To serve from it again, enrol it with `shardio auth login` and run `shardio up`.

NODE is a node id; leave it out to mean this machine's node. Asks before removing anything unless you pass --yes.

#### Arguments

| Argument | Type | Required |
|---|---|---|
| `[NODE]` | text | no |

#### Options

| Option | Value | Description |
|---|---|---|
| `--machine` | `NAME` | Remove only this machine, by name or id. |
| `--reason` | `TEXT` | A note kept with the removal, for your records. |
| `--yes` |  | Do not ask for confirmation. |
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio node remove
shardio node remove --machine gpu-box-2
```

### `shardio config`

Show or change this machine's saved settings.

```
shardio config [OPTIONS] COMMAND [ARGS]...
```

They are kept in two files: config.toml, the machine's credential and the Shardio address, and node.yaml, what this machine is and the models first chosen for it. `shardio config path` prints where both are.

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio config get
shardio config path
```

#### Commands

`shardio config path`, `shardio config get`, `shardio config set`

### `shardio config path`

Print where this machine's two settings files are.

```
shardio config path [OPTIONS]
```

The credentials file holds the machine's own credential, written by `shardio auth login` and `shardio up`. The node settings file, node.yaml, holds the node, the machine's name and the models first chosen for it; `shardio models` shows the models the node has now. The paths shown follow --home and --config.

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio config path
```

### `shardio config get`

Show the saved settings, with the machine's token masked.

```
shardio config get [OPTIONS]
```

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio config get
```

### `shardio config set`

Change a saved setting.

```
shardio config set [OPTIONS] {api_url} VALUE
```

Only api_url can be changed here, and only when Shardio support asks you to. To change this machine's credentials, run `shardio auth login`.

#### Arguments

| Argument | Type | Required |
|---|---|---|
| `{api_url}` | choice | yes |
| `VALUE` | text | yes |

#### Options

| Option | Value | Description |
|---|---|---|
| `-h, --help` |  | Show this message and exit. |

#### Examples

```
shardio config set api_url https://api.shardio.ai
```
