Deploy Affine with AI Copilot
One-click template for AFFiNE with optional AI (NVIDIA NIM/Google Gemini)
affine
postgres
Just deployed
/var/lib/postgresql/data
affine
Just deployed
/root/.affine
Just deployed
Deploy and Host Affine with AI Copilot on Railway
AFFiNE is an open-source alternative to Notion and Miro that combines documents, whiteboards, and databases in one workspace. This template deploys AFFiNE with optional AI Copilot powered by NVIDIA NIM or Google Gemini for chat, writing assistance, summarization, and code generation.
About Hosting Affine with AI Copilot
AI Copilot is enabled by simply providing an NVIDIA NIM or Google Gemini API key — the template auto-generates AFFiNE's config.json at startup to route all AI tasks through your chosen provider. No AI key is required for basic functionality.
Common Use Cases
- Self-hosted knowledge base and wiki with AI-powered writing, summarization, and search
- Collaborative workspace with real-time editing, whiteboards, and databases — fully under your control
- Private AI-assisted document creation using NVIDIA NIM or Google Gemini instead of cloud-hosted alternatives
Dependencies for Affine with AI Copilot Hosting
- PostgreSQL 16 with pgvector extension (included in template)
- Redis (included in template)
Deployment Dependencies
- AFFiNE Self-Hosting Documentation
- NVIDIA NIM API Keys (optional — for AI Copilot)
- Google Gemini API Keys (optional — for AI Copilot)
- AFFiNE GitHub Repository
Why Deploy Affine with AI Copilot 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 Affine with AI Copilot 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