Agents and automation

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.

Requirements and key details
  • Three commands start it: pip install qwenpaw, qwenpaw init --defaults, qwenpaw app.
  • The built-in runtime, Ollama or LM Studio needs no API key.
  • Inside Docker, call the host's Ollama through host.docker.internal rather than localhost.

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.

Install and open the console
python3 -m venv .venv && source .venv/bin/activate
pip install qwenpaw
qwenpaw init --defaults
qwenpaw app
A virtual environment keeps the system Python untouched.
A person at a laptop is surrounded by connected document, spreadsheet, folder, image, settings, and robot panels
Three commands install it; the model address and permissions are decided separately.

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.

Comparing the model paths
ApproachSetupChoose it when
Built-in runtimeInstall onlyFirst use, fewer moving parts
OllamaOllama already runningThe same models are shared
LM StudioLocal server enabledModel 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.

An audio waveform displayed on a laptop beside a microphone
Pick the built-in runtime or Ollama and save disk.

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.

A waveform and a document on a monitor feed into a padlocked enclosure, while a dashed line toward the cloud is crossed out
Start with a read-only task, limited to a folder you name.

Terminology notes

  1. 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 text
  2. Prompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.

    Back to the text
  3. API — A defined interface that lets other code call a program’s functions.

    Back to the text
  4. Sandbox — 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.