developers · build · shipped
playbook-serve-local
The shape of it
One command installs an inference backend chosen for the hardware it finds, starts it, and leaves an OpenAI-compatible API on loopback. Nothing leaves the machine, no key is required, and the same endpoint serves every agent, editor and script that speaks the OpenAI shape.
pip install -U awdk
adk quickstart-local
The command runs five steps and prints each one: detect the accelerator and its VRAM, pick a backend, install it, verify it, launch. The plan-only form changes nothing:
adk quickstart-local --dry-run
Which backend, and why
| Backend | Pick it when | Notes |
|---|---|---|
| llama.cpp | default on CPU, Apple silicon, and any NVIDIA box without Docker | pure stdlib, no runtime dependencies |
| vLLM | NVIDIA CUDA with Docker and you want throughput | batching and a real serving loop |
| Bonsai | very little RAM or VRAM, or an existing Bonsai install is on the box | 1-bit weights; if a native server was installed it is started rather than Docker |
Force one with --backend (or leave auto), and move the port with --port:
adk quickstart-local --backend llamacpp --port 8209
The endpoint it prints follows the port: http://127.0.0.1:8209/v1.
Prove it is serving, not merely alive
A process that answers a health route has not necessarily loaded a model. Read the model list, then make the model answer:
adk backend list
adk backend status
curl http://127.0.0.1:8209/v1/models
adk backend list shows what is detected and configured; adk backend status shows what
is configured now and whether it answers. Then send a real turn, using the id /v1/models
returned:
curl http://127.0.0.1:8209/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"<id from /v1/models>","messages":[{"role":"user","content":"hello"}]}'
An empty model list is the failure worth catching here: the server is up, the port is open, and every request will fail for a reason no health check names.
Wire it into your account and your agents
Advertising a local endpoint is what makes the model appear to the rest of the stack.
auto probes the usual ports; pass the URL when yours is not one of them:
adk enroll --inference-url http://127.0.0.1:8209
adk status
A persistent, fleet-connected agent on top of that endpoint is one command:
adk up --identity aither --yes
Two processes, one supervisor
adk stack is the consumer pair -- AitherRoom plus the llama.cpp server -- run as
foreground processes with health checks, crash restarts and a clean Ctrl+C. Use it when you
want the room and the model together; use quickstart-local when you only want the model
server.
adk stack
Troubleshooting the two failures that look like "down"
- Port taken. Everything reports unreachable while another process holds the port. Move
the server with
--portand re-check/v1/modelsbefore changing anything else. - A stale model id. The endpoint answers, the request 404s or errors on the model name.
The id is whatever
/v1/modelsprints now -- not what an earlier install used.
Licences
llama.cpp is MIT and vLLM is Apache-2.0, so both are free to run and redistribute under their terms. Downloaded weights carry their own licence -- read the model card before commercial use. awdk and AitherOS are BUSL-1.1: self-hostable, not open source.