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.
Do — how-to guides
- Build rzb on the Mac
- Package a release: the
.tar.gzarchive and its checksum. - Manage models
- Configure the server: model names, defaults, locks, limits, network access.
- 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.
- Server configuration file: every key, its type, default and errors.
- Command line:
rzb serve,rzb models,rzb config validate, exit codes. - 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.
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 |
|