Agents and automation
Last updated
QwenPaw: a personal AI assistant on your own model and chat apps
Installation takes three commands; deciding how far the model address and the permissions reach takes longer.
QwenPaw is a personal assistant that runs on your own machine. AgentScope publishes it under Apache-2.0, and it talks to the built-in runtime1, Ollama or LM Studio. It also works as a chat-app bot, so decide the execution boundary before the first task.
Installation and first run
Python 3.11 or newer is required. Running the three commands in order writes the config and opens the console. init --defaults skips the prompts2, so changing settings later is quicker than answering them now.
Choose a model first once the console opens. The built-in runtime downloads and runs models itself; if you already run Ollama, enter its address instead. Either way no API3 key is needed.
python3 -m venv .venv && source .venv/bin/activate
pip install qwenpaw
qwenpaw init --defaults
qwenpaw app
Two ways to attach a local model
The built-in runtime is the simplest path: no extra server, models are downloaded and used in place, and it works straight on a laptop. It does take disk space for new downloads.
If you already run models on Ollama, point QwenPaw there. The model name from ollama list goes in as is, and other apps share the same copy on disk.
| Approach | Setup | Choose it when |
|---|---|---|
| Built-in runtime | Install only | First use, fewer moving parts |
| Ollama | Ollama already running | The same models are shared |
| LM Studio | Local server enabled | Model picked in a GUI |
Why localhost fails inside Docker
Inside a container, localhost means the container, not your machine. Calling the host's Ollama on 11434 or LM Studio on 1234 through localhost is refused.
Add --add-host=host.docker.internal:host-gateway and use http://host.docker.internal:11434. Binding the port as 127.0.0.1:8088:8088 keeps other machines on the network out.

Decide before wiring a chat bot
QwenPaw listens to channels such as Discord and Telegram from one instance. That also means anyone holding the bot account can ask it to run tools, so restrict it to a private chat first.
Point file and shell tools at a single working folder rather than the whole home directory. The sandbox4 restricts commands through Seatbelt on macOS, Bubblewrap and Landlock on Linux, and AppContainer on Windows.
Start the first task small
Start with a read-only task: ask it to count the files in a folder you name and check that real file names come back. Then widen to editing a single file in that folder.
When using a chat app, send the same request once more there. That is where you learn whether the console and the bot share a session, or whether only a notification arrives without execution.

Terminology notes
Runtime — The software environment that provides facilities needed while a program runs. In local AI, it can also refer to a model execution engine.
Back to the textPrompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.
Back to the textAPI — A defined interface that lets other code call a program’s functions.
Back to the textSandbox — An isolated environment that restricts a program’s access to files, networks, and host capabilities. Its protection depends on mount, network, and execution-permission settings.
Back to the text
Frequently asked questions
- What should you check first in this article?
- QwenPaw is a personal assistant that runs on your own machine. AgentScope publishes it under Apache-2.0, and it talks to the built-in runtime, Ollama or LM Studio. It also works as a chat-app bot, so decide the execution boundary before the first task.
- When is it better not to choose this?
- Choose a model first once the console opens. The built-in runtime downloads and runs models itself; if you already run Ollama, enter its address instead. Either way no API key is needed.
Read next
Executable programs and extensions
Install Hermes Agent and Connect a Local Model: From Your First Task to Permission Checks
read first
What Is a Local AI Agent? When It Makes Sense to Run One
Executable programs and extensions
Local AI Agent Security: Check Permissions, Network Paths, and Secrets
Agents and automation
Should you still use Qwen-Agent? A framework with eight quiet months
