Hackaday reports a Raspberry Pi 5 setup that connects GitHub Copilot CLI to the local model qwen2.5-coder:1.5b through an accelerator runtime and LiteLLM. The arrangement keeps model serving on the Pi, while LiteLLM provides the API interface Copilot CLI uses. Hackaday describes this configuration as local and says it makes no remote API calls.

How the reported stack connects

Each part has a distinct job: the model produces coding responses, LiteLLM bridges the model to an OpenAI-compatible API, and Copilot CLI provides the command-line interface.

ComponentReported role
Raspberry Pi 5 with Raspberry Pi AI HAT+ 2Host computer and accelerator for the local model
qwen2.5-coder:1.5bCoding model served by the accelerator runtime
LiteLLMPresents an OpenAI-compatible API interface to the coding client
GitHub Copilot CLIConnects to that interface as the command-line coding tool

Hackaday also says the walkthrough uses headless boot: the operator connects to the Pi over SSH and runs copilot. That describes the reported workflow, rather than a full installation procedure.

An accelerator is another way to run a model, not a speed guarantee. The useful comparison is how the model and workload you care about perform.

Does the AI HAT+ 2 make local coding AI faster?

Jeff Geerling’s English-language review shows the AI HAT+ 2 mounted on a Raspberry Pi 5 and compares local LLM inference.

Not necessarily. In a review published January 15, 2026, Jeff Geerling reported that the Raspberry Pi 5’s CPU delivered almost twice the inference performance of the AI HAT+ 2’s NPU in the LLMs he tested. His comparison covered those tested models; it did not benchmark qwen2.5-coder:1.5b running through Copilot CLI.

Geerling also reported that small local models struggled with general-purpose programming tasks, and described software issues in his review, including failures in mixed mode and with some Hailo command-line tools. Those are observations from his tests, not results for the Copilot CLI configuration.