# Catalogs

> Add a catalog of model profiles, change its profiles in the browser or over the API, try changes in drafts, and keep it up to date.

## What a catalog is

A catalog is a git repository of model profiles. Every model you deploy comes from one. A catalog either follows an upstream repository, at a branch, tag or commit you choose, or has no upstream: then its repository lives on the control plane and you change it there. You manage catalogs under **Configuration → Catalogs**; click a catalog's row to open its page.

When the control plane is installed, it adds the official catalog: `https://github.com/onprem-ai/deployment-catalog`, branch `main`, the whole repository (no subdirectory). A catalog is **Official** when its repository is under `https://github.com/onprem-ai/`, or on `onprem.ai` or one of its subdomains. Nothing else makes a catalog official, and an official catalog is managed and removed like any other.

Every time the control plane reads a catalog's repository, it keeps that commit's content as a revision. When a model is deployed, the control plane keeps a copy of its profile's files with the deployment. The model keeps running that copy, and replicas added later use it too, whatever the catalog does later: the catalog can be changed, moved to another repository or removed. A deployment shows when its profile changed in the catalog since; **Redeploy** on the **Deployments** page runs the new content. A model whose profile was edited at deploy ([Deploying models](/en/platform/docs/guides/models-and-deployments/deploying-models/index.md)) cannot be redeployed, because a redeploy would replace the edit; deploy the new content as a new service instead.

## The revisions of a profile

A profile's page has a **Revisions** tab. It lists every commit of the catalog that changed a file of the profile, newest first: the date, the kind of change, what changed, and the commit. For a catalog that follows a repository on github.com, the commit and its pull request open on github.com, and **Full history** opens the profile's history there.

- **Catalog's current** marks the revision a deploy runs when you name no other.
- **Deployed** shows which of your models runs which revision, with the number of replicas. The **Deployments** page shows the same revision under each model's profile.
- **Available** marks a change the repository has and the catalog has not imported yet. It cannot be deployed before the update: choose **Update catalog** on the tab.
- **Deploy** on a row opens the deploy page for that revision. The form there deploys a new service with the profile as that commit holds it. For each running service of the profile on another revision, **Move to this revision** replaces its replicas on the same servers and GPUs. A replica serves nothing while its new one loads.

Deploying an older revision does not change the catalog: other deploys still run the catalog's current revision. A model whose profile was edited at deploy cannot be moved to a revision, for the same reason it cannot be redeployed.

- **API and MCP**: `GET /api/v1/model-catalog/deploy-profiles/revisions/list` answers the revisions. Its `deployed_revisions` names each running model of the profile with the revision it runs and its number of replicas. `POST /api/v1/inference-services/deploy` and `.../redeploy` take a revision as `model_catalog_revision_id`.

## Add a catalog

A catalog's profiles decide what runs on your inference nodes, so only administrators add, update and remove catalogs. A control plane API key does it only when its scopes name `model-catalog:write`: the default scope leaves it out.

`/etc/onprem-ai/control-plane/config.env` holds two settings for catalogs. After you change them, run `sudo onprem-ai-ctl apply`:

| Setting | What it does |
|---|---|
| `CATALOG_GIT_TIMEOUT_SECONDS` | How long one fetch may take before it is stopped. The default is 300. |
| `CATALOG_UPDATE_CHECK_INTERVAL_SECONDS` | How often every catalog is checked for updates. The default is 3600 (every hour). |

A git server whose certificate comes from your own certificate authority is trusted once that authority's certificate is in the folder `/etc/onprem-ai/trusted-certificate-authorities/` on the control plane's machine (**Trusting your own certificate authority**); copy it there, then run `sudo onprem-ai-ctl restart`. Nothing else is set.

Then:

1. Open **Configuration → Catalogs** and choose **Add catalog**.
2. Enter the upstream repository's `https://` address and the branch, tag or commit to follow, for example `main`. Leave the address empty for a catalog without an upstream, whose profiles you write on the control plane.
3. To use only part of the repository, enter a **Subdirectory**, for example `nvidia-rtx-pro-6000-blackwell`. Only the profiles below it are imported, and each profile's id is its path below it (`nvidia-rtx-pro-6000-blackwell/gemma` lists as `gemma`). Leave it empty for the whole repository.
4. Choose **Check source** to read the repository without adding it: it shows the commit, how many profiles it holds, and the ones that cannot be read with their reasons.
5. Optionally enter a **Name**, for example `acme-models`: lowercase letters, digits and single hyphens, unique among the catalogs. The control plane gives every catalog an id of its own; the name is what the pages show instead of it.
6. Choose **Add catalog**. The control plane fetches the repository right away. The catalog's **Status** shows when it finished, or why it could not.

One repository can be added several times, each with its own branch, tag or commit and subdirectory: for example the `main` branch to try new profiles and a tag for the ones you deploy, or one catalog for each GPU directory.

The repository must be readable without signing in; repositories that need a user name, password or token are not supported yet. Never put a user name or password in the address: the control plane refuses it, because the address is stored and shown.

To change a catalog's name, its upstream, subdirectory, branch or tag, how many revisions it keeps, or whether it is enabled, open its page. A new upstream, subdirectory or branch imports the catalog again; models deployed from it keep running their own copy.

## Change the profiles of a catalog

A catalog that follows an upstream changes where its upstream changes: commit there, then check the catalog for updates. It takes no changes on the control plane, because the next fetch would overwrite them. To change one of its profiles, duplicate the profile into a catalog without an upstream (**Duplicate** in the model page's menu).

A catalog without an upstream is changed on the control plane, three ways, all of them git commits by the person or key that made them:

- **In the browser**: open a model's page and edit its files. **Save** makes one commit and imports it at once; the check results follow. The menu adds a file, deletes the open file, duplicates the profile to a new directory, or deletes the whole profile.
- **Over the API or MCP**: `catalogs/files/list`, `catalogs/files/read` and `catalogs/files/commit` read and change any file of the catalog's repository, and `catalogs/files/duplicate-deploy-profile` copies a profile. A commit names the revision it was made against and is refused when someone committed in between.
- **With git**: the catalog's page shows the clone command; push with a control plane API key that may change catalogs (`model-catalog:write`) as the password.

## Try changes in a draft

A draft is a branch of a catalog without an upstream. Its profiles are imported, checked and deployable like the catalog's, while everyone else keeps using the catalog. Start one on the catalog's page under **Drafts**, change its profiles as above, deploy and test them, then **Publish** it into the catalog or **Discard** it. Publishing is refused when the catalog changed since the draft started; the message says how to carry your changes over. Models deployed from a draft keep running after it is published or discarded.

To see what a profile would run before deploying it, deploy it with `dry_run` set to `true` (`POST /api/v1/inference-services/deploy`, or the `deploy` operation over MCP). The control plane runs every check a deploy runs and answers the compose file and the other files it would send to the inference node, rendered onto the GPUs you named, with the deploy's warnings. Nothing is deployed, booked or downloaded.

## What the control plane checks in a profile

Every import, every dry run and every model page checks each deploy profile: the marker, the compose file and the files they name. Each finding says the file, the line and what to change:

- **Error**: a deploy of the profile as written cannot work. Example: an image without a `@sha256:` digest, which the inference node cannot pull.
- **Warning**: it deploys, and something will likely misbehave. Example: a vLLM chat model that leaves prefix caching to the engine's default.
- **Hint**: a suggestion. Example: a section of `ai-deploy.yaml` that does not start after a blank line, or no blank line after its `$schema` line.

A profile written for a newer version of the profile format than this control plane reads still deploys when only its minor version is newer: the fields this control plane does not know are left out, and a hint names them and suggests updating the control plane on the **Updates** page. A newer major version is an error: that profile cannot be deployed until the control plane is updated. A field the profile's version does not define, for example a misspelled one, is a warning: the control plane leaves it out, so it has no effect.

None of them blocks an import or a deploy: you decide. A profile that cannot be read at all (a marker or compose file that does not parse, two profile files in one directory, a profile file at the catalog root, or two directories with one profile id) is listed with its reason and cannot be deployed; the other profiles of the catalog stay usable.

Where you see them:

- **Models page**: a small warning triangle beside a model's name when its profile has errors or warnings; click it for the details. **Check results** in the model's menu always opens the full list, including every check that passed and the ones that could not run.
- **Deploy page**: the findings above the replicas, and **Check results**. Deploying goes ahead regardless.
- **API and MCP**: `POST /api/v1/model-catalog/deploy-profiles/check` answers the full report, for a profile you send or one already in a catalog.

## Check for updates and apply them

The control plane asks every catalog's repository for its newest commit once an hour, and you can ask at any time with **Check for updates** above the table under **Configuration → Catalogs**. The **Models** page also checks each time it opens, in the background, but it does not ask a catalog checked in the last two minutes again. A check changes nothing: it only finds out what is available. When the repository offers a newer commit, the catalog shows **Update available**. Choose **Update** in the catalog's actions menu to import it. On the **Models** page, a dot on the menu button shows that a catalog has an update, and **Update catalogs** in that menu imports every update that is available.

Checking and updating need the `model-catalog:write` permission.

The update is exactly the commit the check found, even if the branch moved again since.

If a check or an update fails, the catalog shows the reason, including the git server's own words, and keeps the content it had.

## Model downloads, the license key and signatures

Model weights come from a provider: OnPrem AI model storage or Hugging Face. **Configuration → Providers** lists them.

Public models download from OnPrem AI model storage without a license key. A license key, entered under **Configuration → General → License Key**, adds the models reserved for your organization and records your downloads under your name. When a key is stored, every download uses it. If the license server refuses the key, the download stops and says so: correct the key, or clear it to download public models without one. The platform never falls back to a download without the key.

Every model OnPrem AI stores is signed. Before a download is used, the inference node checks the signature against the OnPrem AI signing certificate that comes with the platform's software. No connection to a signing service is needed for the check. A download whose signature does not match fails with the reason, and its files are never used.

OnPrem AI model storage has a **Signing policy** (**Configuration → Providers → Signing policy**):

- **Signer identity**: the exact name the signing certificate must carry, `https://onprem.ai/signing/model-weights` for OnPrem AI's models. This is a name, not an address: nothing is downloaded from it.
- **Signer issuer** (optional): only for signatures made with an online sign-in (OIDC), such as a CI workflow. Leave it empty for OnPrem AI models: their certificates carry no issuer, and an issuer here makes every download fail.
- **Verify weight signatures**: with verification on and no signer identity, downloads wait until you set one. Turn verification off only for development.

Hugging Face publishes no signatures for its model weights; the inference node checks each file's SHA-256 against the repository instead.

## Remove a catalog

**Remove** on the catalog's page deletes the catalog, its drafts and their stored content. Models deployed from it keep running their own copy of their profile. To stop listing a catalog's profiles without removing it, disable it: a disabled catalog keeps its content and lists no profiles.
