AI

Deploying Clawdbot with Qwen Model on Ubuntu

Experience deploying Clawdbot AI assistant on Ubuntu servers using Qwen model with Telegram integration, including deployment tips and systemd service setup.

February 23, 2026
6 min read
By ClawList Team

Deploying Clawdbot with Qwen on Ubuntu: Your 24/7 AI Assistant on a Budget

The AI assistant hype is real, and right now Clawdbot is making serious waves across X (formerly Twitter). Developers are sharing setups, use cases, and deployment war stories — and for good reason. Clawdbot, paired with the Qwen model and integrated with Telegram, gives you a fully autonomous, always-on AI assistant without the steep API bill. Better yet, you don't need a Mac Mini to run it. Any decent Ubuntu server will do.

This post breaks down the deployment experience, covers a common systemd pitfall on Ubuntu, and explores why this stack — Clawdbot + Qwen + Telegram — is worth your weekend.


Why Clawdbot + Qwen? The Free, High-Capacity Alternative

Before jumping into setup, it's worth understanding why this combination is generating buzz.

Qwen (developed by Alibaba Cloud) is a family of large language models that punch well above their weight class for free-tier usage. Compared to burning through OpenAI credits, Qwen offers:

  • Generous free-tier quotas — high volume, low friction
  • Strong multilingual capability — particularly useful for non-English workflows
  • Multiple model sizes — from lightweight variants suitable for constrained servers to larger, more capable versions

Clawdbot acts as the orchestration layer — essentially a self-hosted AI agent framework that connects your chosen LLM backend to interfaces like Telegram, giving you a conversational AI assistant that runs continuously.

The result: a 7×24 AI assistant that lives in your Telegram, answers questions, helps manage tasks, and can be extended with custom skills — all hosted on infrastructure you control.

Practical Use Cases

Even basic deployments unlock genuinely useful workflows:

  • Expense tracking assistant — Log purchases via Telegram messages; the bot categorizes and summarizes spending
  • Daily briefings — Scheduled summaries of tasks, reminders, or fetched data
  • Code review helper — Paste snippets directly into Telegram for quick feedback
  • Personal knowledge base — Query notes or documents through natural language
  • Automation trigger — Use the bot as a front-end to kick off server-side scripts

The expense tracker use case alone is surprisingly polished out of the box. Send a message like "spent $12 on lunch," and the bot logs, categorizes, and can produce weekly summaries on request.


Server Deployment: Skip the Mac Mini

There's been a lot of chatter about running Clawdbot on a Mac Mini, and while that's a perfectly valid option for local home server setups, it's far from necessary — and the demand spike has noticeably pushed Mac Mini prices up.

Any Linux VPS or dedicated server running Ubuntu 20.04+ handles this stack cleanly. A modest configuration works well for personal or small-team use:

  • 2–4 vCPUs
  • 4–8 GB RAM (more if you plan to run larger Qwen model variants locally)
  • 20+ GB SSD storage

If you're connecting to Qwen's hosted API rather than running the model weights locally, you can run this on an even lighter instance — the server just needs to handle the Clawdbot process and Telegram webhook traffic.

Basic Deployment Steps

# Update system packages
sudo apt update && sudo apt upgrade -y

# Install required dependencies
sudo apt install -y python3 python3-pip git curl

# Clone Clawdbot repository
git clone https://github.com/clawdbot/clawdbot.git
cd clawdbot

# Install Python dependencies
pip3 install -r requirements.txt

# Configure your environment
cp .env.example .env
nano .env

Inside your .env, set your Qwen API credentials and Telegram bot token (obtained via @BotFather):

LLM_PROVIDER=qwen
QWEN_API_KEY=your_qwen_api_key_here
TELEGRAM_BOT_TOKEN=your_telegram_token_here

Run it manually first to confirm everything connects:

python3 main.py

Send your Telegram bot a message. If it responds, you're good to move on to making it persistent.


The Ubuntu Systemd Pitfall (And How to Fix It)

Here's the part most deployment guides skip over — the systemd user services issue on Ubuntu that catches people off guard when setting up autostart.

When you try to run Clawdbot as a systemd user service (using systemctl --user), you may hit this error on reboot or after logging out:

Failed to connect to bus: No such file or directory

or

Systemd user services are not available without a running D-Bus session

Why this happens: Systemd user service instances only start when a user session is active. On a headless server where you SSH in and out, the user session (and its associated D-Bus) may not persist after you disconnect — even if you used loginctl enable-linger.

The reliable fix: use a system-level service instead.

Create a system service file:

sudo nano /etc/systemd/system/clawdbot.service
[Unit]
Description=Clawdbot AI Assistant
After=network.target

[Service]
Type=simple
User=your_username
WorkingDirectory=/home/your_username/clawdbot
ExecStart=/usr/bin/python3 /home/your_username/clawdbot/main.py
Restart=on-failure
RestartSec=5
EnvironmentFile=/home/your_username/clawdbot/.env

[Install]
WantedBy=multi-user.target

Enable and start it:

sudo systemctl daemon-reload
sudo systemctl enable clawdbot
sudo systemctl start clawdbot

# Verify it's running
sudo systemctl status clawdbot

Check logs if something goes wrong:

journalctl -u clawdbot -f

This approach is more robust than user-level services for always-on server deployments. The bot survives reboots, SSH disconnects, and user session changes without any intervention.

Optional: if you prefer the user service approach and want to make it work, you need to enable lingering for your user and ensure the XDG_RUNTIME_DIR environment variable is correctly exported:

loginctl enable-linger your_username
export XDG_RUNTIME_DIR=/run/user/$(id -u)
systemctl --user enable clawdbot

But honestly, the system service approach is simpler and more reliable for a server context.


Conclusion: A Surprisingly Capable Stack for the Price

The Clawdbot + Qwen + Telegram combination delivers a genuinely useful self-hosted AI assistant with minimal ongoing cost. Qwen's free tier is generous enough for personal and light team use, Telegram provides a polished interface you already have on your phone, and Ubuntu server hosting is cheap and widely available.

The Mac Mini angle is a red herring for most developers — any cloud VPS gets the job done. The one real friction point is the Ubuntu systemd configuration, but once you know to reach for a system-level service rather than a user-level one, the deployment becomes straightforward.

From there, the ceiling is high. Basic use cases like expense tracking and reminders work out of the box, and the architecture is extensible enough to build considerably more sophisticated automation workflows on top.

If you've been looking for a weekend project that produces something genuinely useful on Monday, this is a solid candidate.


Credit: Original deployment notes and experience shared by @akokoi1 on X.

Tags

#clawdbot#qwen#telegram#ubuntu#deployment#ai-assistant

Related Articles