{"slug": "building-a-self-hosted-ai-chatbot-on-an-8-vps-with-n8n-ollama-and-tox", "title": "Building a Self-Hosted AI Chatbot on an $8 VPS with n8n, Ollama and Tox", "summary": "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.", "body_md": "I wanted to explore whether inexpensive VPS infrastructure could support a practical AI messaging system without relying on commercial AI APIs.\n\nTox Messenger → Messaging Bridge → n8n → Ollama → AI Response\n\nPostgreSQL 17 supports the automation environment, while Docker provides service isolation.\n\nI selected Qwen 3.5 4B for CPU-only inference.\n\nThe prototype successfully handled conversations in English and Ukrainian. Observed response times varied considerably, and these observations should not be treated as formal performance benchmarks.\n\nThe most interesting challenge was related to decentralized P2P networking.\n\nHosting provider concerns about network activity led me to stop the live messaging experiment while preserving the remaining infrastructure.\n\nThis highlighted the importance of understanding acceptable use policies, monitoring outbound traffic, and designing applications with hosting constraints in mind.\n\nThe public repository includes a sanitized implementation, workflow examples, documentation, and automated tests.\n\nThe published derivative has not yet undergone full live integration testing.\n\nI'm interested in feedback from developers working with local LLMs, n8n, infrastructure automation, and self-hosted applications.", "url": "https://wpnews.pro/news/building-a-self-hosted-ai-chatbot-on-an-8-vps-with-n8n-ollama-and-tox", "canonical_source": "https://dev.to/vitaliibalint/building-a-self-hosted-ai-chatbot-on-an-8-vps-with-n8n-ollama-and-tox-26pk", "published_at": "2026-12-05 04:31:03+00:00", "updated_at": "2026-12-05 04:44:10.829267+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "ai-infrastructure", "developer-tools", "ai-agents"], "entities": ["Tox", "n8n", "Ollama", "Qwen 3.5 4B", "PostgreSQL 17", "Docker"], "also_reported_by": [], "takeaway": "A CPU-only Qwen 3.5 4B stack on an $8 VPS can serve bilingual chat through n8n and Ollama, but P2P messaging traffic can trip hosting acceptable-use policies, so check outbound traffic rules before going live.", "recommendation": {"advice": "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.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/building-a-self-hosted-ai-chatbot-on-an-8-vps-with-n8n-ollama-and-tox", "markdown": "https://wpnews.pro/news/building-a-self-hosted-ai-chatbot-on-an-8-vps-with-n8n-ollama-and-tox.md", "text": "https://wpnews.pro/news/building-a-self-hosted-ai-chatbot-on-an-8-vps-with-n8n-ollama-and-tox.txt", "jsonld": "https://wpnews.pro/news/building-a-self-hosted-ai-chatbot-on-an-8-vps-with-n8n-ollama-and-tox.jsonld"}}