A coding assistant that never sends a line of your code to the cloud usually means a desktop GPU or a well-specced laptop. Martin Woodward has done it on a Raspberry Pi 5 instead. In a write-up dated 29 October 2026, he runs the GitHub Copilot CLI natively on the Pi, with the model served locally by Raspberry Pi's AI HAT+ 2 accelerator board. There are no remote API calls. Hackaday picked up the tutorial on 28 November, calling the setup fully local and offline. It also flagged the obvious catch: the model is very small.

The project is worth a close look less for what the assistant can do and more for how it works. Woodward's stack is three pieces of off-the-shelf software chained over localhost. The same pattern should let other OpenAI-API clients talk to Hailo-served models, though Woodward only demonstrates it with Copilot.

The Hardware

Woodward's bill of materials lists the following:

  • Raspberry Pi 5 (8GB)
  • Raspberry Pi AI HAT+ 2
  • Official 27W power supply
  • Active cooler
  • Fast microSD card

The accelerator does the inference. Raspberry Pi's product page lists the AI HAT+ 2 with a Hailo-10H AI accelerator rated at 40 TOPS (INT4) and 8GB of on-board RAM intended for LLMs and VLMs. That RAM is the board's own memory, separate from the Pi's. Raspberry Pi says the board's computer-vision performance is comparable to the earlier AI HAT+ (26 TOPS). The new part is the dedicated memory for generative models. The board conforms to the Raspberry Pi HAT+ specification. It ships with an optional heatsink, a 16mm stacking header, and spacers and screws for fitting it to a Pi 5 that has the Active Cooler installed.

On power, Woodward notes that the official 27W supply tops out at 25.5W of output for the whole setup. He sets that against Apple's 65W listing for the Mac mini M4, though he concedes the comparison is not like-for-like. Take it as a rough sense of the power envelope, not an efficiency benchmark.

How the Stack Fits Together

The Copilot CLI runs natively on ARM Linux and supports bring-your-own-model. That makes the build possible: the CLI does not care where the model lives, provided something answers with an OpenAI-compatible API. Woodward's chain looks like this:

  1. hailo-ollama, built from Hailo's Model Zoo GenAI repository, gives an Ollama-compatible API on top of the accelerator and serves it on port 8000.
  2. LiteLLM runs as a proxy on port 4000 and exposes the OpenAI-compatible API.
  3. Copilot CLI is pointed at the proxy through environment variables: COPILOT_PROVIDER_BASE_URL=http://127.0.0.1:4000/v1, with COPILOT_PROVIDER_MAX_PROMPT_TOKENS=3072 and COPILOT_PROVIDER_MAX_OUTPUT_TOKENS=1024.

Both servers run as systemd user services, so they come back up with the board. Hackaday notes the Pi boots headless, and after that all one needs to do is SSH in and run copilot. Hackaday summarises it this way: the accelerator runtime serves the model, LiteLLM provides the API surface, and Copilot talks to that.

The token limits matter. A 3,072-token prompt budget and a 1,024-token output cap are far tighter than a cloud-hosted assistant typically allows. They put a practical ceiling on how much file context the assistant can consider in a single request.

The Model, and Its Limits

The model is qwen2.5-coder:1.5b, a 1.5-billion-parameter code model. Woodward is direct about the trade-off. He says it is not as good as the big models and needs more explicit prompts for trickier tasks. Hackaday's verdict is similar: a very small model, but an entirely private one.

Hackaday's commenters were less forgiving. They criticised the choice of the older Qwen 2.5 generation and the absence of performance numbers. The tutorial publishes no tokens-per-second figures, latency measurements or task-accuracy results. PinoutFeed has none to report either, so how responsive this setup is in daily use remains an open question.

Woodward also lists other models available through hailo-ollama on his Pi: deepseek_r1:1.5b, llama3.2:1b and qwen2.5:1.5b, plus a few more he does not name. The ones named are all in the 1B to 1.5B class.

What It Means for Makers

This is for people who want an AI coding assistant on code that cannot leave the building. That could include classrooms with strict data rules, air-gapped lab benches, firmware work under NDA, and anyone who simply prefers not to send source code to a third party. It is also a neat demonstration for educators: one board can show the full loop of local inference, an API shim and a client tool, and students can inspect every layer.

The setup does not replace a frontier cloud model, and its creator does not claim it does. Woodward says he uses it for quick jobs and switches to big cloud models when he needs proper thinking done. It is a self-contained, low-power coding helper you can carry around. More usefully, it is a template. The hailo-ollama plus LiteLLM pattern is a general OpenAI-compatible shim, so other tools that speak that API could plausibly use it, although the sources only demonstrate Copilot.

On cost and availability, the Raspberry Pi product page snapshot lists the AI HAT+ 2 as available now at $200. Raspberry Pi states it will remain in production until at least January 2036. The generative AI software lives in Hailo's GitHub repository. Woodward's build also needs a Pi 5 8GB, the 27W PSU, an active cooler and a fast microSD card. Prices for those were not given in the sources, so the full system costs more than the HAT alone. Before you buy, expect small models, tight context windows and no published performance data.

Sources