Skip to content

Try it yourself

The Local option brings the whole stack up on one Mac, without cloud spend, and removes it again. The repository is not public yet. These are the steps for a checkout of it.

What you need

  • An Apple-silicon Mac. It was run on a Mac Mini (Apple M4, 16 GB). Use a Mac that is doing nothing else.
  • OrbStack. make deploy builds the demo application's image with the Docker engine on the Mac, which OrbStack provides.
  • helm, python3 with PyYAML, and curl.

Nothing is installed system-wide. kubectl, K3s, gVisor, llama.cpp and the model file (2.5 GB) are downloaded into the git-ignored .out/ directory at pinned versions and checksums. A checksum that does not match stops the target.

The commands

make provision PROFILE=local   # create the OrbStack machine `ail-local`
make bootstrap PROFILE=local   # K3s and gVisor in it, CRDs, the model server on the Mac
make deploy    PROFILE=local   # the deploy steps of profiles/local/profile.yaml
make verify    PROFILE=local   # one line per layer; non-zero exit on any failure
make destroy   PROFILE=local   # stop the model server, delete the machine

Every target is idempotent: if one fails, run it again. Add TRACING=on to deploy and verify to get Jaeger and traces. It is off by default, to save memory.

How long it took the first time, on one Mac that was busy with other work, so these are not clean measurements: provision 96 s, bootstrap 111 s plus 139 s for the model file, deploy 459 s (383 s of it the monitoring chart), verify 10 to 11 s.

What you should see

make verify prints one line per check and exits non-zero if one fails:

Check Passes when
node, pods The node is Ready and every pod is running
gateways Both gateways are programmed
model through gateway A chat completion sent to Agentgateway is answered by llama-server on the Mac
mcp endpoint auth The tool endpoint /mcp answers 401 without a key
sandbox OpenSandbox creates a sandbox whose kernel is gVisor's
egress From the sandbox, the gateway answers 403 for an outside host, and a request around the proxy fails
simulated routing A request is answered through the llm-d endpoint picker, by a simulator
tracing With TRACING=on, Jaeger holds spans from the gateway. Otherwise SKIP
powercontext SKIP: it is not deployed

A check that cannot apply is reported as SKIP with the reason, never as PASS.

Then open the demo on the Mac itself:

make demo PROFILE=local

It checks the stack, forwards the gateway to localhost and prints two addresses: the big screen and the presenter's phone page. It reaches nothing beyond the Mac.

The image step

Without credentials the image step is a stub: it recolours the photo locally and puts the banner "STUB: no image model was called" on it. Nothing calls a paid API. To get a real edit, put the credentials of an image provider into .env.local (git-ignored; the settings are listed in profiles/local/env.example) and run make deploy PROFILE=local again. Every job then calls a paid API on your account.

Common problems

  • An image pull fails the first time, with a short read or "not found". Run make deploy PROFILE=local again.
  • The Mac is short of memory. Under heavy swapping, K3s restarted and a sandbox took 30 to over 60 seconds to start, instead of 3 to 5. Bring the stack up well before you need it, on a Mac that is doing nothing else. AIL_SKIP_STEPS leaves out steps you do not need.
  • Images or the model download slowly. AIL_REGISTRIES_YAML installs a K3s registries.yaml with your own mirrors, and AIL_MODEL_URL names another place for the model file. Its pinned checksum is verified either way.
  • SANDBOX_RUNTIME=kata is refused. Kata needs a Lima VM with nested virtualization, which is not automated.
  • There is no memory. PowerContext is skipped: it has no published image, and its build on arm64 has not been tried.

Next: how a request travels through the stack.