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

> Source: <https://dev.to/vitaliibalint/building-a-self-hosted-ai-chatbot-on-an-8-vps-with-n8n-ollama-and-tox-26pk>
> Published: 2026-12-05 04:31:03+00:00

**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 the playbook "Running AI in production": <https://wpnews.pro/playbooks/production-ops>

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.
