Cached at:
06/22/26, 07:50 PM
# Qt Creator 20 and local AI
Source: [https://www.qt.io/blog/qt-creator-20-and-local-ai](https://www.qt.io/blog/qt-creator-20-and-local-ai)
Qt Creator 20 has become an Agent Client Protocol \(ACP\) Client extension\. The protocol is supported by many AI providers and handles the details of the communication between the AI coding agent and the IDE\.
At the[ACP Registry](https://agentclientprotocol.com/get-started/registry)we can see*Claude Agent*,*Codex CLI*,*Gemini CLI*, or*GitHub Copilot*ACP Agents\.
These ACP Agents will communicate with their respective cloud AI offerings, which requires a subscription\.
In this article I will present the case of local AI running on existing hardware\.
## The hardware
I am going to test on my work laptop, namely a 2023 14” MacBook Pro M3 with 36GB of RAM\. ebay\.de lists it starting from 1\.700€ and going up to 2\.300€\.
The 36GB of RAM was important, since 32GB would not have been sufficient to run at full context\. Below you have the laptop running Qt Creator with the pi ACP agent\. It’s at 88% memory usage\. This was without any Electron apps running like Microsoft Teams, or a Web Browser\.

## The local AI
In August 2025, OpenAI has launched the[gpt\-oss](https://openai.com/index/introducing-gpt-oss/)models:
> We’re releasing gpt\-oss\-120b and gpt\-oss\-20b—two state\-of\-the\-art open\-weight language models that deliver strong real\-world performance at low cost\. Available under the flexible Apache 2\.0 license, these models outperform similarly sized open models on reasoning tasks, demonstrate strong tool use capabilities, and are optimized for efficient deployment on consumer hardware
*gpt\-oss\-20b*with its 128K context would be the model that I would choose\. On this laptop for a “Hello World” prompt it would give me an answer with 40\-45 tokens/s\.
In April 2026, Google released[Gemma 4](https://deepmind.google/models/gemma/gemma-4/)models\. The license is also*Apache 2\.0*, and the context size is up to 256K, which is double what*gpt\-oss\-20b*offers\.
The model I had in mind would be[gemma\-4\-26B\-A4B\-it](https://huggingface.co/google/gemma-4-26B-A4B-it)\.
When compared to*gpt\-oss\-20b*, besides the double context size,*gemma\-4\-26B\-A4B\-it*is also a multimodal \- it supports text and image input\.
In the following months Google has released:
- May 2026[Accelerating Gemma 4: faster inference with multi\-token prediction drafters](https://blog.google/innovation-and-ai/technology/developers-tools/multi-token-prediction-gemma-4/)
- June 2026[Gemma 4 QAT models: Optimizing model compression for mobile and laptop efficiency](https://blog.google/innovation-and-ai/technology/developers-tools/quantization-aware-training-gemma-4/)
With these two optimizations,*gemma\-4\-26B\-A4B\-it\-qat*gives an answer at 55 tokens/s for a “Hello World” prompt\!
## The local AI software
I’ve installed[llama\.cpp](https://github.com/ggml-org/llama.cpp)from homebrew, and ran it with the[unsloth/gemma\-4/qat](https://unsloth.ai/docs/models/gemma-4/qat)model as:
```
#!/bin/sh
llama-server \
-hf unsloth/gemma-4-26B-A4B-it-qat-GGUF:UD-Q4_K_XL \
--spec-type draft-mtp --spec-draft-n-max 2 \
--reasoning off
```
## The task at hand
I have picked a task from[Qt Blog: Introducing Qt Agentic Development Skills](https://www.qt.io/blog/introducing-qt-agentic-development-skills?hsLang=en), namely the`qt\-cpp\-docs`skill with the[renderarea\.cpp](https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/painting/basicdrawing/renderarea.cpp?h=6.11)source code\.
## Opencode ACP agent
I first tried the[opencode\.ai](https://opencode.ai/)ACP agent\. I configured the[TheQtCompanyRnD/agent\-skills](https://github.com/TheQtCompanyRnD/agent-skills)as:
```
$ ln -s ~/Projects/qt.io/agent-skills/skills ~/.config/opencode/skills
```
My`opencode\.json`file looks like:
```
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"llama-cpp": {
"npm": "@ai-sdk/openai-compatible",
"name": "llama.cpp server",
"options": {
"baseURL": "http://127.0.0.1:8080/v1"
},
"models": {
"default": {
"name": "Default Model"
}
}
}
},
"model": "llama-cpp/default"
}
```
Below you have the recording of Qt Creator 20 with the*opencode*ACP agent:
## Pi ACP agent
Then I have tried[pi\.dev](https://pi.dev/)with an ACP adapter\. I have configured the[TheQtCompanyRnD/agent\-skills](https://github.com/TheQtCompanyRnD/agent-skills)in the same fashion:
```
$ ln -s ~/Projects/qt.io/agent-skills/skills ~/.pi/agent/skills
```
Below you have the recording of Qt Creator 20 with the*pi*ACP agent:
## Manual skill usage
Lastly I have manually tried using the web interface of*llama\.cpp*and I’ve given the same prompt with the skill and the source files\.
Below is the recording:
## Summary
I’ve packed the results of the runs above in a table:
ACP agentTime \(mm:ss\)Power \(Wh\)ConvenienceResultopencode2:001\.80✅[renderarea\.md](https://git.qt.io/-/project/5381/uploads/98d8349dc57ee40ea013a665f70ea75f/renderarea-opencode.md)pi1:020\.89✅[renderarea\.md](https://git.qt.io/-/project/5381/uploads/d9bc0b29dbc449d3dddfd743ee613242/renderarea-pi.md)none0:270\.66❌[renderarea\.md](https://git.qt.io/-/project/5381/uploads/e5f413cbad2df3256adbd0c9bcf4b870/renderarea-no-acp.md)The direct usage of the skill with the proper source files as context was the fastest and consumed the least energy on my laptop\. But, this was at the cost of convenience, as the Markdown file had to be created manually\. Similarly for the task of preparing the prompt with the skill and context source files\.
I don’t know why opencode ACP agent took twice the time as the pi ACP agent\. For those willing to find out, the first step would be to enable more logging from*llama\-server*\. This way one could trace all the communication to the local AI\.
With a local AI, you don’t pay for tokens, but you pay in energy and time\. However, with an Apple Silicon computer, the energy cost is smaller due to the efficiency of the platform\.
How fast is your ACP agent with the task at hand? Write in the comments\. Do you know how much energy and water your AI cloud provider is using when doing inference?
### Share with your friends
- [http://www.facebook.com/sharer/sharer.php?u=https://www.qt.io/blog/qt-creator-20-and-local-ai](http://www.facebook.com/sharer/sharer.php?u=https://www.qt.io/blog/qt-creator-20-and-local-ai)
- [http://x.com/share?url=https://www.qt.io/blog/qt-creator-20-and-local-ai](http://x.com/share?url=https://www.qt.io/blog/qt-creator-20-and-local-ai)
- [https://www.linkedin.com/shareArticle?mini=true&url=https://www.qt.io/blog/qt-creator-20-and-local-ai](https://www.linkedin.com/shareArticle?mini=true&url=https://www.qt.io/blog/qt-creator-20-and-local-ai)
- [mailto:?subject=Qt%20Creator%2020%20and%20local%20AI&body=https://www.qt.io/blog/qt-creator-20-and-local-ai](mailto:?subject=Qt%20Creator%2020%20and%20local%20AI&body=https://www.qt.io/blog/qt-creator-20-and-local-ai)