Choose Your Platform
AFFiNE is available across multiple platforms to fit your workflow. Choose the option that works best for you:Web App
Use AFFiNE directly in your browser
Desktop
Install native apps for Windows, macOS, and Linux
Self-Hosted
Deploy your own instance with Docker
Web App
The fastest way to start using AFFiNE is through the web application. No installation required.Access the Web App
Navigate to app.affine.pro in your browser
Sign Up or Continue
Create an account for cloud sync, or click Continue without account to use locally
Browser Requirements: AFFiNE works best on modern browsers (Chrome 90+, Firefox 88+, Safari 14+, Edge 90+)
Web App Features
- No installation — Start immediately in your browser
- Auto-updates — Always running the latest version
- Cross-device — Access from any device with a browser
- Cloud sync — Automatic backup and sync (requires account)
Desktop Apps
For the best performance and offline capabilities, install the native desktop application.Windows
Download the Installer
Visit affine.pro/download and download the Windows installer (
.exe)- Windows 10/11
- Alternative: Portable
The Windows installer is compatible with Windows 10 (version 1809+) and Windows 11.System Requirements:
- Windows 10 (build 1809+) or Windows 11
- 4 GB RAM minimum (8 GB recommended)
- 500 MB free disk space
macOS
Download the DMG
Visit affine.pro/download and download the macOS installer (
.dmg)Apple Silicon & Intel: AFFiNE provides universal binaries that work on both Apple Silicon (M1/M2/M3) and Intel Macs.
- macOS 11+
- First Launch Security
AFFiNE supports macOS 11 (Big Sur) and later versions.System Requirements:
- macOS 11 or later
- 4 GB RAM minimum (8 GB recommended)
- 500 MB free disk space
Linux
Linux System Requirements: Ubuntu 18.04+, Debian 10+, Fedora 32+, or equivalent. X11 or Wayland display server.
Desktop Features
- Offline-first — Full functionality without internet
- Better performance — Native app optimization
- System integration — File associations and system tray
- Local storage — Your data stays on your machine by default
- Auto-updates — Automatic updates to the latest version
Self-Hosted Docker
Deploy your own AFFiNE instance with full control over your data and infrastructure.Quick Start with Docker Compose
Install Prerequisites
Ensure Docker and Docker Compose are installed:
Minimum versions: Docker 20.10+ and Docker Compose 2.0+
Configure Environment Variables
Edit the Key variables to configure:
.env file with your preferred settings:Start AFFiNE
Launch all services with Docker Compose:This will start:
- AFFiNE server
- PostgreSQL database (with pgvector)
- Redis for caching
- Migration job
Docker Compose Configuration
The completecompose.yml configuration from the AFFiNE repository:
Environment Variables Reference
- Version & Port
- External Access
- Database
- Storage
| Variable | Description | Default |
|---|---|---|
AFFINE_REVISION | Version to deploy (stable, beta, canary) | stable |
PORT | Port to expose the server | 3010 |
System Requirements
Minimum (< 10 users):- 2 CPU cores
- 4 GB RAM
- 20 GB disk space
- Docker 20.10+
- 4 CPU cores
- 8 GB RAM
- 100 GB disk space
- Docker 20.10+
- 8+ CPU cores
- 16+ GB RAM
- 500+ GB disk space (SSD recommended)
- Docker 20.10+
- Reverse proxy (nginx/Caddy) for SSL
Advanced Deployment
Using Custom Domain with SSL
Using Custom Domain with SSL
To expose AFFiNE on a custom domain with HTTPS:
-
Update
.envfile: -
Set up reverse proxy (nginx example):
-
Restart AFFiNE:
Updating Your Self-Hosted Instance
Updating Your Self-Hosted Instance
To update to the latest version:
Your data persists in the volumes defined in
.env, so updates are safe.Backup and Restore
Backup and Restore
Backup:Restore:
Deploy to Cloud Platforms
Deploy on Sealos
One-click deployment on Sealos cloud platform
Deploy on ClawCloud
Quick deployment template for ClawCloud
Troubleshooting
Desktop app won't start
Desktop app won't start
Windows:
- Run as administrator
- Check Windows Defender/antivirus isn’t blocking it
- Ensure .NET Framework 4.7.2+ is installed
- Check Security & Privacy settings
- Try removing quarantine attribute:
xattr -cr /Applications/AFFiNE.app
- Check file permissions:
chmod +x AFFiNE.AppImage - Install FUSE for AppImage:
sudo apt install libfuse2
Docker containers not starting
Docker containers not starting
- Check Docker is running:
docker ps - View logs:
docker-compose logs affine - Ensure ports are available:
sudo netstat -tlnp | grep 3010 - Verify environment variables in
.env - Check disk space:
df -h
Cannot connect to self-hosted instance
Cannot connect to self-hosted instance
- Verify services are running:
docker-compose ps - Check firewall rules allow port 3010
- Test locally:
curl http://localhost:3010 - Verify
AFFINE_SERVER_HOSTmatches your domain - Check reverse proxy configuration if using one
Data not syncing between devices
Data not syncing between devices
- Ensure you’re signed in with the same account on all devices
- Check internet connection
- Verify sync is enabled in Settings > Sync
- For self-hosted: ensure
AFFINE_SERVER_EXTERNAL_URLis accessible from all devices
Next Steps
Quickstart Guide
Learn how to create your first workspace and document
Self-Hosting Guide
Detailed guide for production deployments
Configuration
Advanced configuration options
Join Discord
Get help from the community
Need more help? Check out the GitHub Issues or join our Discord community for support.