Railway

Deploy Nanobot + Ollama

nanobot: The Ultra-Lightweight Clawdbot 🐈 + 🦙

Deploy Nanobot + Ollama

Just deployed

/root/.ollama

Just deployed

/app/backend/data

Just deployed

/root/.nanobot

Deploy and Host Nanobot + Ollama on Railway

nanobot is an ultra-lightweight personal AI assistant built in just ~4,000 lines of Python. It connects to LLM providers like Ollama, OpenRouter, Anthropic, OpenAI, or DeepSeek, and integrates with chat platforms including Telegram, WhatsApp, and Feishu. Despite its minimal footprint, it delivers full agent functionality with web search, scheduled tasks, persistent memory, and extensible skills.

About Hosting nanobot

This template deploys nanobot + Ollama + OpenWebUI on Railway, providing a self-hosted AI agent stack with:

  • A local or remote LLM runtime via Ollama
  • A web-based interface via OpenWebUI
  • A configurable nanobot agent that can run continuously and respond to chat platforms or scheduled tasks Railway handles infrastructure, networking, and scaling so you can focus on configuring your agent and prompts.

Common Use Cases

  • Run a personal AI assistant accessible via Telegram, WhatsApp, or Feishu that can search the web, manage schedules, and remember context across conversations.
  • Set up scheduled AI tasks using cron-style automation for daily briefings, reminders, or periodic data analysis.
  • Host a private, self-contained LLM-powered assistant using Ollama models without relying entirely on external APIs.
  • Experiment with agent workflows, tools, and skills in a lightweight and hackable codebase.

Dependencies for nanobot Hosting

  • Python 3.9+ – required to run nanobot.
  • Ollama – for running local LLMs (e.g. Llama, Qwen, Mistral).
  • LLM Provider API Keys (optional) – OpenAI, Anthropic, OpenRouter, DeepSeek, etc.
  • Railway Services – for container hosting, environment variables, and persistent volumes.

Deployment Dependencies

Implementation Details

You will need a Telegram bot and key

To Create a bot

  • Open Telegram, search @BotFather
  • Send /newbot, follow prompts
  • Copy the token
  • You can get your userId using @getidsbot

Why Deploy nanobot on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it. By deploying nanobot on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Telegram JavaScript Bot
A template for Telegram bot in JavaScript using grammY

Agampreet Singh
View Template
Cobalt Tools [Updated Feb ’26]
Cobalt Tools [Feb ’26] (Media Downloader, Converter & Automation) Self Host

shinyduo
View Template
DiscordJS bot
A basic Discord bot written in JavaScript

opqr
1.1K
Deploy