Skip to content
Opod

Core CLI

opod catalog

List the model catalog embedded in the binary and export it as files you can read, copy or override.

In short

The model catalog ships inside the opod binary. opod catalog ls prints its ids; opod catalog export DIR writes every entry out as a YAML file you can copy and edit. Both read the embedded set only and need no leader.

opod catalog ls | head -3
bge-reranker-v2-m3-gguf
deepseek-r1-8b
deepseek-v4-flash-sharded

Usage

opod catalog ls
opod catalog export DIR

The model catalog is a set of YAML entries, one per model. It ships inside the opod binary: it comes from core's own pkg/catalog package and is compiled in at build time, so it is always present and is never looked up on disk.

These two commands read the embedded set only. They do not read ~/.opod/catalog/, $OPOD_CATALOG_DIR or any other override directory, and they open no config file and no store. To see the catalog a leader actually uses, merged with your own entries, run opod model search.

Sub-commandReadsWritesNeeds a leader
lsthe embedded catalogstdoutno
export DIRthe embedded catalogone file per entry in DIRno

opod catalog ls

Prints one catalog id per line, sorted by file name (each file is named after its id).

opod catalog ls
bge-reranker-v2-m3-gguf
deepseek-r1-8b
deepseek-v4-flash-sharded
gemma4-12b
…
qwen3.6-27b
step-3.7-flash-sharded

The list is plain text with no header, so it pipes well:

opod catalog ls | wc -l                 # how many entries this binary carries
opod catalog ls | grep -- -sharded      # the entries that must be split across workers
opod catalog ls | grep gguf             # GGUF-only entries

Core v0.4.0 carries 48 entries. The number changes from release to release; opod catalog ls | wc -l is the answer for the binary you have.

Use opod model info ID for one entry's details and opod model search to filter by name, capability or tag.

opod catalog export

Writes every embedded entry to DIR, one file per entry, named <id>.yaml. The bytes are exactly the embedded file, comments included.

opod catalog export ./catalog
ls ./catalog | head -3
bge-reranker-v2-m3-gguf.yaml
deepseek-r1-8b.yaml
deepseek-v4-flash-sharded.yaml

It prints nothing on success. From core v0.4.6 it prints ✔ wrote 48 catalog entries to ./catalog — overrides go beside them (OPOD_CATALOG_DIR=./catalog); with no DIR it says catalog export needs a directory (exit 2), and opod catalog ls --json prints the ids as a JSON list.

What it does, step by step:

  1. Creates DIR (and its parents) with mode 0755 if it does not exist.
  2. Writes each entry with mode 0644. A file of the same name is overwritten without a prompt.
  3. Leaves every other file in DIR alone. It never deletes.

It prints nothing on success and exits 0.

Why export

  • Read the entries. The YAML carries comments that explain each model's source, engine and limits.
  • Start your own entry. Copy one as a template, change id, source and hardware, then install it with opod model add --file FILE.yaml (--from up to core v0.4.5) or drop it into an override directory.
  • Give a container a file copy. A worker image exports the catalog to /usr/share/opod/catalog, one of the directories the merge reads.

Override an entry

Put a file with the same id in a directory that is read after the embedded set. The later source replaces the earlier entry whole, keyed by id:

  1. the embedded catalog (least authoritative);
  2. /usr/local/share/opod/catalog;
  3. /usr/share/opod/catalog;
  4. $OPOD_CATALOG_DIR;
  5. ~/.opod/catalog/ (most authoritative).

Only *.yaml and *.yml files directly inside a directory are read, never a subdirectory. When catalog_dir is set in config.yaml, that directory is read alone: no embedded catalog and no merge. See Catalog format for the schema.

opod catalog export /tmp/cat
cp /tmp/cat/llama-3.2-3b.yaml ~/.opod/catalog/llama-3.2-3b.yaml
$EDITOR ~/.opod/catalog/llama-3.2-3b.yaml     # change context_window, say
opod model info llama-3.2-3b                  # now shows your entry

Signatures and exported files

With OPOD_CATALOG_PUBKEY set, a file in an override directory that has FILE.minisig beside it must verify, and with OPOD_CATALOG_REQUIRE_SIGNED=1 an unsigned file is refused too. A file that is byte for byte an embedded entry, under the same file name, counts as the embedded catalog: it needs no signature, even with OPOD_CATALOG_REQUIRE_SIGNED=1. Once you edit it, or rename it, the signature policy applies to it like any other file.

Errors and exit codes

SituationOutputExit
No sub-commandThe help text, on stderr.2
export with no DIRThe help text, on stderr.2
Unknown sub-commandopod: unknown subcommand: catalog <name>, a "Did you mean" hint when one is close, and Run opod catalog --help for usage.1
DIR cannot be created or writtenerror: <reason>1
An embedded entry fails to parse or has no id (a broken build)error: bundled catalog <file>: …1

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