---
title: "oz0-node service"
description: "Usage and flags for oz0-node service."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0-node/service"
---
# oz0-node service

> Usage and flags for oz0-node service.

For: Operators and developers looking up a command.

Install the node as a service, so that it starts at boot and comes back after a crash: a systemd unit on Linux, a launchd job on macOS, a Windows service. As root or Administrator it is a service of the machine, which runs as its own account and keeps its data in /var/lib/orchestrator-zero-node (Linux), /Library/Application Support/orchestrator-zero-node (macOS) or C:\ProgramData\orchestrator-zero-node (Windows); otherwise a service of your user.

The node updates itself and purges itself under the service as it does in the foreground. The install scripts the edge serves run `service install` after `join`.

## Usage

```bash
oz0-node service [command]
```

## Subcommands

- [`install`](https://docs.oz0.ai/reference/cli/oz0-node/service/install)
- [`status`](https://docs.oz0.ai/reference/cli/oz0-node/service/status)
- [`uninstall`](https://docs.oz0.ai/reference/cli/oz0-node/service/uninstall)

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --data-dir
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        ~/.local/share/orchestrator-zero-node
      </code>
    </td>
    
    <td>
      where the node keeps its identity, uv, Python, runtimes and state
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0-node` commands](https://docs.oz0.ai/reference/cli/oz0-node) and the [global flags](https://docs.oz0.ai/reference/cli/oz0-node#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
