cd /news/ai-tools/building-a-self-hosted-ai-chatbot-on… · home › topics › ai-tools › article
[ARTICLE · art-182262] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Building a Self-Hosted AI Chatbot on an $8 VPS with n8n, Ollama and Tox

A developer built a self-hosted AI chatbot prototype running on an $8 VPS, chaining the Tox P2P messenger through a messaging bridge and n8n automation to Ollama for CPU-only inference with Qwen 3.5 4B, backed by PostgreSQL 17 and Docker isolation. The prototype handled conversations in English and Ukrainian, but the developer halted the live messaging experiment after the hosting provider raised concerns about network activity, keeping the remaining infrastructure in place. A sanitized implementation, workflow examples, documentation and automated tests are published in a public repository, though the derivative has not yet undergone full live integration testing.

recommendation

Before deploying a self-hosted chatbot that uses P2P or outbound messaging, confirm the hosting provider's acceptable-use policy and monitor outbound traffic to avoid shutdowns.

more in playbook: Running AI in production
by read1 min views1 publishedDec 5, 2026

I wanted to explore whether inexpensive VPS infrastructure could support a practical AI messaging system without relying on commercial AI APIs.

Tox Messenger → Messaging Bridge → n8n → Ollama → AI Response

PostgreSQL 17 supports the automation environment, while Docker provides service isolation.

I selected Qwen 3.5 4B for CPU-only inference.

The prototype successfully handled conversations in English and Ukrainian. Observed response times varied considerably, and these observations should not be treated as formal performance benchmarks.

The most interesting challenge was related to decentralized P2P networking.

Hosting provider concerns about network activity led me to stop the live messaging experiment while preserving the remaining infrastructure.

This highlighted the importance of understanding acceptable use policies, monitoring outbound traffic, and designing applications with hosting constraints in mind.

The public repository includes a sanitized implementation, workflow examples, documentation, and automated tests.

The published derivative has not yet undergone full live integration testing.

I'm interested in feedback from developers working with local LLMs, n8n, infrastructure automation, and self-hosted applications.

── more in #ai-tools 4 stories · sorted by recency
── more on @tox 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/building-a-self-host…] indexed:0 read:1min 2026-12-05 · —