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
- Your first requests to a local model: download a model, start the server, call it with
curland with theopenailibrary. - Chat with a local model from the terminal: the server and
rzb tuiside by side, a conversation, the Dashboard.
Do — how-to guides
- Build rzb on the Mac
- Package and publish a release: the local CI, Developer ID signing and notarization, publication on Rickub.
- Manage models
- Configure the server: model names, defaults, locks, limits, network access.
- Watch and steer a running server: status, freeing a model, reloading the configuration.
- Manage models from rzb tui: download, remove, check the size.
- Change the server's configuration from rzb tui: edit, check and reload; the TUI's own preferences.
- Use razorbill from an OpenAI client: Python, JavaScript, LangChain, chat UIs.
- Get structured output
- Use function calling
- Compute embeddings
- Control reasoning
- Run the tests, the OpenAI compatibility suite included.
- Develop from a Linux sandbox
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.yamlpreferences file. - API errors: statuses, types and codes.
Understand — explanation
- Architecture: the modules, the path of a request, why the Mac build uses
xcodebuild. - Model lifecycle and concurrency: loading, queues, memory, unloading, cancellation.
- Constrained decoding: how JSON and tool calls are guaranteed, and the limits.
- Reasoning models: how reasoning is separated, sent or hidden, and limited.
- OpenAI compatibility: what "compatible" means here and how it is checked.
- The terminal interface: why
rzb tuiis a separate process, how it reaches what it shows, what stays local.
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 |
|