# kosa8 model

Pull and serve local models (OpenAI- and Anthropic-compatible)

kosa8 pulls GGUF models from Hugging Face and serves them on a fixed
local port, exposing both OpenAI (/v1/chat/completions) and Anthropic
(/v1/messages) compatible endpoints.

Serving uses llamay (https://www.llamay.com) when it is installed and
kosa8's own built-in engine otherwise, so a model that pulled can always
be served. Pick one explicitly with `model serve --backend llamay|engine`.

## Example

```
  kosa8 model pull Qwen/Qwen2.5-7B-Instruct-GGUF:Q4_K_M
  kosa8 model ls
  kosa8 model serve qwen2.5-7b
```

## Subcommands

- [`kosa8 model check`](https://docs.kosa8.com/reference/model-check.md): Measure a model and say whether the org policy lets it be served, and why
- [`kosa8 model ls`](https://docs.kosa8.com/reference/model-ls.md): List locally stored models
- [`kosa8 model pull`](https://docs.kosa8.com/reference/model-pull.md): Download a GGUF model from Hugging Face (org/repo[:quant])
- [`kosa8 model pull-oci`](https://docs.kosa8.com/reference/model-pull-oci.md): Install a model published to an OCI registry
- [`kosa8 model push`](https://docs.kosa8.com/reference/model-push.md): Publish a local model to an OCI registry as an artifact
- [`kosa8 model rm`](https://docs.kosa8.com/reference/model-rm.md): Delete a local model
- [`kosa8 model serve`](https://docs.kosa8.com/reference/model-serve.md): Serve a model on the local gateway until interrupted
- [`kosa8 model sign`](https://docs.kosa8.com/reference/model-sign.md): Sign a model's weights digest, for an approved model list that requires a signer

---
Source: https://docs.kosa8.com/reference/model/
