---
title: "Register the models agents may use"
description: "Register a model with its maker, its family and the vendor's data terms, change it, retire it and read the registry, with af model."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.forge.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Register the models agents may use

The registry names each model an agent may be started on. A model has an id, a maker (its **vendor**), a **family**, who serves it (its **deployment**), and the data terms the organization has attested to for that deployment: how long the vendor keeps what it is sent, whether it trains on it, and the agreement in force. An [agent kind](https://docs.forge.workreef.dev/af/kinds/) lists the models its agents may call by id, and a model that is not in the registry cannot be listed.

The forge states what the organization says. It does not check a model's terms with the vendor, and it does not see a model's calls. Terms are an attestation of the organization's: shown as they were approved, and in the compliance reports.

## Register a model

A new model needs its vendor, its family and who serves it. Everything else is stated or left out, and what is left out is shown as not stated:

```console server
$ af-server --dev
...
```

```console check
$ source ~/af-dev/dev/env
$ af model request claude-sonnet-5-5 --vendor anthropic --family sonnet --deployment api --region us --retention-days 30 --trains no --agreement dpa-2026 --alias Sonnet-5.5
done: it took effect at once, on your word as an administrator
$ af model list
claude-sonnet-5-5  v1   active   anthropic/sonnet, api
```

A request is a whole new version, and takes effect at once on an administrator's word unless the forge requires a second one, as [the kinds page](https://docs.forge.workreef.dev/af/kinds/) shows for a kind.

## Read a model

`af model show` takes the model's id or any of its aliases, in any case. A reported model is a string, and a starter may spell it as it likes; the aliases are the spellings the registry accepts for it:

```console check
$ af model show sonnet-5.5
claude-sonnet-5-5 version 1 (current)
id           1dff2e17514978e8a6a259169ffd170079df20436fa7c3fd199e1d612d661c26
state        active
vendor       anthropic
family       sonnet
aliases      Sonnet-5.5
served by    api
region       us
retention    30 days
trains       no
agreement    dpa-2026
classes      none
```

## Change a model

What a request leaves out is kept. A model's id, vendor and family never change, because a name belongs to one model for good, and its aliases are only added to: `--alias` adds, and nothing removes one. A term is stated again, or cleared with `none`:

```console check
$ af model request claude-sonnet-5-5 --retention-days 7 --alias sonnet5
done: it took effect at once, on your word as an administrator
$ af model show claude-sonnet-5-5
claude-sonnet-5-5 version 2 (current)
id           512e43cd71054738aaa09ba99ebcd4bfc896e14962f8f8a0cd8fecda85a8d911
state        active
vendor       anthropic
family       sonnet
aliases      Sonnet-5.5, sonnet5
served by    api
region       us
retention    7 days
trains       no
agreement    dpa-2026
classes      none
```

A model that lists data classes must state all its terms. A family belongs to one vendor, so a request that gives a family a second vendor is refused:

```console check
$ af model request other-model --vendor someone-else --family sonnet --deployment api
Error: PermissionDenied: the family "sonnet" belongs to the vendor "anthropic": a family has one vendor
[1]
```

## Retire a model

A retired model keeps its names and refuses new agents that name it. Agents already started on it are not touched. A kind that names it can still be read, and the access review lists the kind as an exception until the kind is changed.

```console check
$ af model retire claude-sonnet-5-5 --reason "replaced"
done: it took effect at once, on your word as an administrator
$ af model list
claude-sonnet-5-5  v3   retired  anthropic/sonnet, api
```

An agent reads the registry with the `model_list` tool.

Source: https://docs.forge.workreef.dev/af/models/index.mdx
