A personal workspace that feels like a desktop.
Get started · Features · Configuration · Development
FoxOS brings your notes, projects, memories, and everyday tools into a self-hosted workspace. Open apps in windows, arrange your desktop, add widgets, and pick up where you left off—from your computer or your phone.
- Write and remember. Markdown notes, a journal, an idea inbox, memories, collections, and letters to your future self.
- Plan your day. Projects, reminders, routines, and daily goals.
- Look after yourself. Medication schedules, appointments, workouts, and wellbeing check-ins.
- Organize your files. A personal filesystem with text editing, image previews, and import/export.
- Make it yours. Themes, wallpapers, resizable windows, workspaces, and desktop widgets.
- Keep useful tools close. A calculator, terminal, Git tools, API utilities, and optional AniList and homelab integrations.
- Manage your instance. Local accounts, app permissions, activity insights, and server health.
Install Docker with Compose v2 and Node.js 24 or newer, then run:
git clone https://github.com/fififorever/FoxOS.git
cd FoxOS
npm run setup
npm run deployOpen http://localhost:3000 and create your account. The first account becomes the instance owner. Additional registration is closed by default.
Setup creates a private .env with generated database passwords and an integration encryption key. Running setup again preserves your existing configuration. Deployment builds the application image, waits for the services to become healthy, and keeps your database in a persistent Docker volume. These two commands do not require installing Node dependencies on the host.
The default address is accessible from the host computer. To access FoxOS from other devices, configure a reverse proxy or change FOXOS_BIND_ADDRESS deliberately.
Run these from the checkout directory:
| Command | Purpose |
|---|---|
npm run deploy |
Build and start the deployment; also apply configuration or code changes |
npm run status |
Show service health and ports |
npm run logs |
Follow application and database logs |
npm run restart |
Restart the application |
npm run stop |
Stop the services while retaining their data |
npm run backup |
Save the database and deployment configuration |
Back up your instance before upgrading, then pull the latest code and deploy it:
npm run backup
git pull --ff-only
npm run deploynpm run backup creates a dated folder under backups/ containing database.sql, .env, compose.yaml, and a completion marker, backup.json. Choose another destination with:
npm run backup -- /path/to/private-backups/foxos-backupEach backup uses a new directory. A failed backup has no backup.json completion marker and may contain a .partial dump; use a completed backup for recovery.
Store backups privately and keep a copy on another device. They contain account data, connection credentials, and the key needed to decrypt saved integration tokens. Files and attachments are stored in the database and are included in the dump.
Restore a backup into a fresh installation
Use the same FoxOS version as the backup for the initial restore. Copy the saved .env and compose.yaml into the new checkout before starting the database. Keep the original instance separate while verifying recovery.
docker compose up -d db --wait
docker compose cp /path/to/backup/database.sql db:/tmp/foxos-restore.sql
docker compose exec -T db sh -c 'export MYSQL_PWD="$MARIADB_ROOT_PASSWORD"; exec mariadb --user=root "$MARIADB_DATABASE" < /tmp/foxos-restore.sql'
npm run deploySign in and check your files, records, and saved connections before switching over. The backed-up encryption key must accompany the database for encrypted tokens to remain readable.
Setup supplies the defaults. Edit .env and run npm run deploy to apply changes.
| Setting | Default / purpose |
|---|---|
FOXOS_PORT |
3000; the published application port |
FOXOS_BIND_ADDRESS |
127.0.0.1; use 0.0.0.0 for direct network access |
ALLOW_SIGNUP |
false; allow additional accounts to register |
COOKIE_SECURE |
false for local HTTP; set to true for HTTPS |
WIDGET_SECRET_KEY |
Generated by setup; preserve it with your backups |
GITEA_URL |
Optional Git service URL; users connect their own accounts |
DATABASE_URL |
MariaDB URL for running directly with Node; Compose configures its own database connection |
See .env.example for notification, widget, and AniList settings. Integrations require their own setup.
For a public HTTPS address, place a reverse proxy in front of FoxOS, preserve the original Host header, and enable COOKIE_SECURE. Set TRUST_PROXY for your trusted proxy configuration.
Create the configuration and install dependencies:
npm run setup
npm ciCreate a MariaDB database and user, then set DATABASE_URL in .env to their connection URL. FoxOS creates its tables when the API starts. Start development with:
npm run devOpen http://localhost:5173. The development command starts the API and Vite together and reloads them as you work.
| Command | Purpose |
|---|---|
npm run build |
Check types and build the production client |
npm start |
Serve the built client and API directly with Node, using PORT (3000 by default) |
npm run check |
Check formatting, TypeScript, and tests |
npm test |
Run regression tests |
npm run format |
Format source, configuration, and embedded HTML |
npm run keys:check |
Diagnose encrypted integration credentials without changing stored data |
Issues and pull requests are welcome. Include reproduction steps for bugs, and run npm run check and npm run build before submitting changes.