bots-garden/razorbillpublic Fork
⑂ v0.3.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 · 44 lines · 3.2 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

  • HTTP API: endpoints, fields supported, refused and ignored, responses, streaming, local admin routes.
  • Server configuration file: every key, its type, default and errors.
  • Command line: rzb serve, rzb tui, rzb models, rzb config validate, exit codes.
  • rzb tui: screens, keys, chat commands, the tui.yaml preferences file.
  • API errors: statuses, types and codes.

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
39
40
41
42
43
44
# 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.
- [Chat with a local model from the terminal](tutorials/chat-from-the-terminal.md): the server and `rzb tui` side by side, a conversation, the Dashboard.

## 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.
- [Watch and steer a running server](how-to/watch-and-steer-a-running-server.md): status, freeing a model, reloading the configuration.
- [Manage models from rzb tui](how-to/manage-models-from-the-tui.md): download, remove, check the size.
- [Change the server's configuration from rzb tui](how-to/change-the-server-configuration-from-the-tui.md): edit, check and reload; the TUI's own preferences.
- [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, local admin routes.
- [Server configuration file](reference/configuration.md): every key, its type, default and errors.
- [Command line](reference/cli.md): `rzb serve`, `rzb tui`, `rzb models`, `rzb config validate`, exit codes.
- [rzb tui](reference/tui.md): screens, keys, chat commands, the `tui.yaml` preferences file.
- [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.
- [The terminal interface](explanation/terminal-interface.md): why `rzb tui` is a separate process, how it reaches what it shows, what stays local.