Skip to content
Opod

Core CLI

config, doctor, update, completion, version

Show and locate the effective configuration, diagnose a node, update the binary, install shell completion, and print the version or the leader's feature keys.

In short

These commands look after the binary and its settings: config shows the effective configuration, doctor checks the machine, update replaces the binary with a release, completion prints shell completion, and version prints the version and the feature list.

opod config path
opod version
/home/opod/.opod/config.yaml
opod 0.21.0 (linux/amd64, go1.26.4)

opod config

opod config [show [--json] | path | edit]

opod config with no sub-command is opod config show.

Sub-commandDoes
showThe effective configuration. It asks the running leader (GET /admin/v1/config). When no leader answers, it prints the configuration this CLI loaded and says so. --json for JSON.
pathPrint the config file path: ~/.opod/config.yaml.
editPrint the command to edit it, $EDITOR (else vi) and the path, then (then restart opod for changes to take effect). It opens no editor.
opod config path   # /home/opod/.opod/config.yaml
opod config edit   # Run: vi /home/opod/.opod/config.yaml
                   # (then restart opod for changes to take effect)

The configuration is edited in the file or set with OPOD_* variables, never through the API, and a change takes effect on the next start. See Configuration.

The config file is always ~/.opod/config.yaml in the home directory of the user that runs the command. data_dir (or OPOD_DATA_DIR) moves the store, the models and the admin key, but not the config file itself.

From the running leader

The leader returns a fixed view of the main fields, with the vLLM API key redacted:

opod config show
  auth.require_keys                        true
  data_dir                                 /home/opod/.opod
  engine.llamacpp_endpoint                 http://127.0.0.1:8089
  engine.mlx_endpoint                      http://127.0.0.1:8080
  engine.ollama_endpoint                   http://127.0.0.1:11434
  engine.preferred                         ollama
  engine.vllm_api_key
  engine.vllm_endpoint                     http://127.0.0.1:8000
  external_url
  listen                                   :8080
  log_level                                info
  observability.otlp_endpoint
  observability.otlp_status                disabled (set OPOD_OTLP_ENDPOINT to a collector URL)
  observability.response_cache.DefaultTTLSeconds 0
  observability.response_cache.Driver
  observability.response_cache.Enabled     false
  observability.response_cache.MaxEntries  0
  router.default_model                     llama-3.2-1b
  router.sticky_sessions                   true
  storage.dsn                              /home/opod/.opod/state.db
  storage.models_dir                       /home/opod/.opod/models
  storage.type                             sqlite
 
Edit /home/opod/.opod/config.yaml or set OPOD_* env vars, then restart opod.

Keys are dotted and sorted. On 0.2.1 the response-cache block keeps its Go field names (Enabled, Driver, …), the edit hint names <data_dir>/config.yaml, and --json carries an empty egress object. From 0.3.0 the block reads enabled, driver, max_entries, default_ttl_seconds, the hint names the file opod config path prints, and egress is gone. --json prints the leader's object as is, with edit_hint. The view does not list every field: the full list is on Configuration.

With no leader

It prints (leader not reachable; showing config loaded by this CLI — secrets redacted) on stderr, then the configuration the CLI loaded.

In 0.3.0 that is the same redacted view the leader serves, in the same two forms: dotted, sorted keys, or the object as is with --json. Neither token is in it, and a database DSN's password reads redacted (on 0.2.1 the leader's view printed the DSN in clear too).

Up to and including 0.2.1, the local fallback is not redacted

Despite the notice, the 0.2.1 fallback prints the whole configuration struct, with Go field names as keys, and Auth.AdminToken and Auth.JoinToken in clear when config.yaml or OPOD_ADMIN_TOKEN / OPOD_JOIN_TOKEN set them. Do not paste that output anywhere.

A leader that answers with an error is final: opod: config show: ….

opod doctor

opod doctor

Runs every check, prints a line for each, and a fix for each failure. It changes nothing. It always exits 0: read the ⚠ lines.

#CheckPassFail and fix
1Hardware✔ hardware: linux/amd64 · 16 cores · 64 GB RAM, then ✔ GPU: <name> (<n> GB) per GPU.—
2The listen port is free✔ listen port :8080 available⚠ listen port :8080 already in use. A running leader holds it, which is normal.
3ollama on PATH✔ ollama binary at …⚠ ollama not found in PATH — install: brew install ollama. Needed only for the Ollama engine.
4rpc-server and llama-server on PATH✔ llama.cpp binaries present — …A note when both are missing (needed only for gangs and engine.preferred: llamacpp), or which one is missing and how to get it (rpc-server is not in the Homebrew bottle; build llama.cpp with -DGGML_RPC=ON).
5The configured engine answers within 2 seconds✔ ollama engine healthy at http://127.0.0.1:11434⚠ … engine not reachable: …, then the command that starts that engine.
6The data directory exists✔ data dir: …⚠ data dir missing: …
7The catalog loads✔ catalog: 48 entries, plus the signature policy when OPOD_CATALOG_PUBKEY is setA signature refusal names the file and says sign the file (minisign -S -m <file>), remove it, or review OPOD_CATALOG_PUBKEY / OPOD_CATALOG_REQUIRE_SIGNED. Any other error points at OPOD_CATALOG_DIR.

The signature policy reads (directory files: minisign signature verified when present), or (directory files: minisign signature required) with OPOD_CATALOG_REQUIRE_SIGNED=1.

From core v0.4.6, opod doctor [--json] reports every check as a row — ✔ ok, ✖ a problem with its fix on the next line, ▶ a note — and ends with all checks passed (exit 0) or N problem(s) found — each says its fix above (exit 1). Before, it always exited 0. It also checks:

CheckOkProblem or note
The config file✔ config: ~/.opod/config.yamla file that does not parse is a problem (the other checks use the defaults); no file is a note: opod up writes one on its first run
A leader on this host✔ leader: answering at http://localhost:8080a note: start one with opod up — on a worker host this is expected
The listen port✔ listen port: :8080 is this host's opod leader (pid N), or … is freea problem only when another program holds it: stop it, or set listen: … or OPOD_LISTEN
The admin key✔ admin key: ~/.opod/admin.keya problem when a leader answers and there is no key here; else a note
The engine✔ engine: ollama healthy at …an unknown engine name is a problem with the valid names (the report goes on; before, it stopped there)

On a managed leader's host (OPOD_MANAGED=1), from core v0.4.6: the admin key row is ok with the leader's admin token (OPOD_ADMIN_TOKEN or auth.admin_token) when the leader was started with one, the engine row is a note (a managed leader (OPOD_MANAGED=1) runs no engine itself — its workers do, then opod node ls lists them …), and the leader row finds a leader that serves TLS with a certificate for its service name. Up to core v0.4.5 such a host read no leader answering, :8080 is in use by another program and a missing admin key, all three false.

Install hints follow the OS (brew install … on macOS, the project's installer or release on Linux), and a missing data directory says opod up creates it, or: mkdir -p <dir>. --json prints {"checks": [{name, state, detail, fix}], "problems": N}.

A listen address with a host

The port check expects listen in the form :PORT. A listen with a host, such as 127.0.0.1:8080, is reported as in use even when it is free. From core v0.4.0 a host:port is checked as it is.

From core v0.4.6, opod config path prints the path alone on stdout and, when the file does not exist yet, (not created yet — the defaults are in use; opod up writes it on its first run) on stderr; config edit says the editor will create it; and config show without a leader names why it shows this CLI's own config (no admin key at … or no leader answering at …). opod doctor flags an engine endpoint on the leader's own port (MLX-LM's server also defaults to 8080). Shell completion offers cache kv-prune, and completing installed models no longer creates state.db.

opod update

opod update [--check] [--version vX.Y.Z] [--force] [--yes]
opod upgrade

upgrade is the same command.

FlagDefaultEffect
--checkoffReport whether an update exists. Install nothing.
--version vX.Y.Zthe latestInstall that version instead of the latest.
--forceoffInstall even when already on that version.

What it does:

  1. Unless --version names one, it asks GitHub for the latest release of opod-io/opod-core (https://api.github.com/repos/opod-io/opod-core/releases/latest).
  2. When the binary is already on that version, it says ✔ already on the latest version (…) and stops, unless --force. With --check it prints update available: vA → vB and stops.
  3. Downloads opod-<os>-<arch>.tar.gz from the release.
  4. Downloads the release's checksums.txt and checks the archive's SHA-256: checksum verified (sha256). A checksums.txt that does not list the archive refuses the install. Up to and including 0.2.1, a release with no checksums.txt installs unverified, with the note checksums.txt not available for … — skipping verification. From 0.3.0 it refuses: checksums.txt for … could not be read … refusing to install a binary nobody can verify, and the installed binary stays as it was. Every published release ships checksums.txt.
  5. Replaces the running binary, following symlinks, in place. When the install path is not writable, it prints the exact sudo install -m 0755 … command to finish.

Then it prints ✔ installed vX.Y.Z at /usr/local/bin/opod and reminds you to restart a running leader: opod down then opod up. A worker is restarted the same way it was started. Opod never checks for updates by itself.

From core v0.4.6:

CaseWhat it does
the release is newer--check prints update available: vA → vB — install it with: opod update and exits 10 (no update: 0); without --check it asks Replace … with vB? (y/N) first, or takes --yes; with no terminal and no --yes it refuses and prints the exact command with --yes
the release is older than this buildrefused: vB is older than this build (vA) — to downgrade on purpose: opod update --version vB --force. Versions are compared as numbers; before, they were compared as text, and a build reading 0.21.0-dev took v0.4.5 as an update and installed it
this is a development build (a -dev version, or a commit name from an image build)this is a development build (…); the latest release is vB; it replaces itself only with --force or a named --version
GitHub refuses the callits message, not the raw JSON; a rate limit says when to try again and that --version vX.Y.Z goes around it

A build made without release flags now reads 0.0.0-dev.

opod completion

opod completion bash | zsh | fish
source <(opod completion bash)   # in ~/.bashrc
source <(opod completion zsh)    # in ~/.zshrc
opod completion fish | source

The scripts complete the commands and sub-commands, catalog ids after model add and model info, installed ids after model load, unload and remove, and client names after connect. They ask the binary for those lists at completion time, through the hidden helpers opod completion __models, __installed and __clients. With no shell named, it prints the help.

opod version

opod version [--features]
opod --version
opod -v

Prints the version, OS, architecture and Go version:

opod 0.21.0 (linux/amd64, go1.26.4)

A development build reads 0.21.0-dev; a release build has its version stamped at link time.

--features prints the leader's feature keys, comma-separated and sorted, on one line — the same list GET /admin/v1/capabilities advertises. It reads the binary, not a running leader. The leader image carries this list in its OCI label io.opod.leader.features, so a manager can tell what a leader speaks from the image alone. See Admin API.

opod version --features | tr , '\n' | grep kv_

Last updated · Source: content/docs/core-cli/utilities.mdx · View as Markdown