bots-garden/razorbillpublic Fork
⑂ v0.2.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/razorbill.git
git clone ssh://git@rickub.com/bots-garden/razorbill.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
README.md · 38 lines · 2.4 KBmarkdown
Blame HistoryOpen raw

razorbill documentation

razorbill is a model server for the Mac. Its command, rzb serve, runs MLX models on the Apple Silicon GPU and exposes them through an OpenAI-compatible HTTP API: chat completions (streaming, structured output, function calling, reasoning), legacy text completions and embeddings. Existing OpenAI clients and frameworks use it by changing their base URL.

This documentation follows Diátaxis: pick the section that matches what you need right now.

Learn — tutorials

Do — how-to guides

Look up — reference

Understand — explanation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# razorbill documentation

razorbill is a model server for the Mac. Its command, `rzb serve`, runs MLX models on the Apple Silicon GPU and exposes them through an OpenAI-compatible HTTP API: chat completions (streaming, structured output, function calling, reasoning), legacy text completions and embeddings. Existing OpenAI clients and frameworks use it by changing their base URL.

This documentation follows [Diátaxis](https://diataxis.fr): pick the section that matches what you need right now.

## Learn — tutorials

- [Your first requests to a local model](tutorials/getting-started.md): download a model, start the server, call it with `curl` and with the `openai` library.

## Do — how-to guides

- [Build rzb on the Mac](how-to/build-on-the-mac.md)
- [Package a release](how-to/package-a-release.md): the `.tar.gz` archive and its checksum.
- [Manage models](how-to/manage-models.md)
- [Configure the server](how-to/configure-the-server.md): model names, defaults, locks, limits, network access.
- [Use razorbill from an OpenAI client](how-to/use-openai-clients.md): Python, JavaScript, LangChain, chat UIs.
- [Get structured output](how-to/get-structured-output.md)
- [Use function calling](how-to/use-function-calling.md)
- [Compute embeddings](how-to/compute-embeddings.md)
- [Control reasoning](how-to/configure-thinking.md)
- [Run the tests](how-to/run-the-tests.md), the OpenAI compatibility suite included.
- [Develop from a Linux sandbox](how-to/develop-from-a-sandbox.md)

## Look up — reference

- [HTTP API](reference/http-api.md): endpoints, fields supported, refused and ignored, responses, streaming.
- [Server configuration file](reference/configuration.md): every key, its type, default and errors.
- [Command line](reference/cli.md): `rzb serve`, `rzb models`, `rzb config validate`, exit codes.
- [API errors](reference/errors.md): statuses, types and codes.

## Understand — explanation

- [Architecture](explanation/architecture.md): the modules, the path of a request, why the Mac build uses `xcodebuild`.
- [Model lifecycle and concurrency](explanation/model-lifecycle.md): loading, queues, memory, unloading, cancellation.
- [Constrained decoding](explanation/constrained-decoding.md): how JSON and tool calls are guaranteed, and the limits.
- [Reasoning models](explanation/thinking.md): how reasoning is separated, sent or hidden, and limited.
- [OpenAI compatibility](explanation/openai-compatibility.md): what "compatible" means here and how it is checked.