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 -3bge-reranker-v2-m3-gguf
deepseek-r1-8b
deepseek-v4-flash-shardedUsage
opod catalog ls
opod catalog export DIRThe 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-command | Reads | Writes | Needs a leader |
|---|---|---|---|
ls | the embedded catalog | stdout | no |
export DIR | the embedded catalog | one file per entry in DIR | no |
opod catalog ls
Prints one catalog id per line, sorted by file name (each file is named after its id).
opod catalog lsbge-reranker-v2-m3-gguf
deepseek-r1-8b
deepseek-v4-flash-sharded
gemma4-12b
…
qwen3.6-27b
step-3.7-flash-shardedThe 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 entriesCore 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 -3bge-reranker-v2-m3-gguf.yaml
deepseek-r1-8b.yaml
deepseek-v4-flash-sharded.yamlIt 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:
- Creates
DIR(and its parents) with mode0755if it does not exist. - Writes each entry with mode
0644. A file of the same name is overwritten without a prompt. - Leaves every other file in
DIRalone. 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,sourceandhardware, then install it withopod model add --file FILE.yaml(--fromup 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:
- the embedded catalog (least authoritative);
/usr/local/share/opod/catalog;/usr/share/opod/catalog;$OPOD_CATALOG_DIR;~/.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 entrySignatures 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
| Situation | Output | Exit |
|---|---|---|
| No sub-command | The help text, on stderr. | 2 |
export with no DIR | The help text, on stderr. | 2 |
| Unknown sub-command | opod: 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 written | error: <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