Stop renting software.

← All tools · office suite

Open source alternatives to Microsoft Office

Microsoft Office Microsoft 365 Personal plan starts at $8.33/mo (billed annually), or $9.99/mo month-to-month (pricing, checked 2026-10-26). Here are 4 self-hostable options – free to run on your own server.

Microsoft Office alternatives compared

LibreOffice

★ 4.6kMPL-2.0
self-host: medium

LibreOffice/core

LibreOffice is MPL-2.0; some components are under LGPL-3.0+/GPL-3.0+ (COPYING, COPYING.LGPL in the repo). The GitHub repo is a read-only mirror, so its star count understates usage. License file

ONLYOFFICE Docs

★ 7.1kAGPL-3.0
self-host: medium

ONLYOFFICE/DocumentServer

Collabora Online

★ 3.4kMPL-2.0
self-host: medium

CollaboraOnline/online

Source is MPL-2.0 (COPYING). Collabora also sells supported enterprise builds. GitHub is used for issues and as a mirror; development happens on Gerrit, so the star count understates usage. License file

CryptPad

★ 8.0kAGPL-3.0
self-host: medium

cryptpad/cryptpad

FAQ

What is the best open source alternative to Microsoft Office?

CryptPad is the most-starred option we list (8.0k GitHub stars, license: AGPL-3.0). Also worth comparing: LibreOffice, ONLYOFFICE Docs, Collabora Online. The best pick depends on your team size and how much you want to maintain.

How hard is it to self-host a Microsoft Office alternative?

We rate it medium: on our scale that means a few services (app, database, maybe a worker) and some configuration.

How much does Microsoft Office cost compared to self-hosting?

Microsoft Office's Microsoft 365 Personal plan starts at $8.33/mo (billed annually); we checked the vendor's pricing page on 2026-10-26. The alternatives listed here charge no license fee to self-host; you pay for your own server and your time.

Can I build my own Microsoft Office with AI?

Not as a full suite: DOCX/XLSX/PPTX fidelity and real-time co-editing are decades of work. Realistic AI builds are narrow: a markdown/rich-text doc editor with Yjs, a spreadsheet-lite on an existing grid component, or glue that wires Nextcloud to Collabora/ONLYOFFICE.

All self-hosted office suites, PDF and remote desktop tools

Compare Microsoft Office alternatives with the rest of the category: Best self-hosted office suites, PDF and remote desktop tools – 9 open-source tools ranked by GitHub stars, covering Adobe Acrobat, TeamViewer.

Build it yourself with AI

Not as a full suite: DOCX/XLSX/PPTX fidelity and real-time co-editing are decades of work. Realistic AI builds are narrow: a markdown/rich-text doc editor with Yjs, a spreadsheet-lite on an existing grid component, or glue that wires Nextcloud to Collabora/ONLYOFFICE.

Paste this prompt into Cursor, Claude Code, Codex or any coding agent to build a minimal self-hosted Microsoft Office clone, deployable with Docker on a VPS.

You are a senior full-stack engineer. Build a minimal, self-hosted clone of Microsoft Office (office suite) that I can run on my own VPS. Keep it small, production-sane, and easy to maintain.

## Goal
Replace my paid Microsoft Office subscription for a single person or small team. MVP only — no billing, no enterprise features.

## Core features (build exactly these)
1. rich-text document editor with headings, lists, tables and images (TipTap)
2. realtime co-editing with presence (Yjs)
3. simple spreadsheet grid with formulas (existing grid lib)
4. export DOCX/PDF and import DOCX via a converter worker
5. folder tree with sharing per document

## Stack
- Next.js (App Router, TypeScript) + Tailwind + shadcn/ui
- PostgreSQL with Drizzle ORM (migrations checked in)
- Auth: Better Auth (email + password, optional GitHub OAuth); every query scoped to the signed-in user/workspace
- Background jobs (if needed): pg-boss on the same Postgres
- File storage (if needed): S3-compatible (MinIO container)

## Data model (start here, extend only if required)
User, Folder, Document, DocumentVersion, Share
Use UUID primary keys, createdAt/updatedAt on every table, and foreign keys with sensible ON DELETE behavior.

## Deliverables
1. Working app with the features above and a clean, minimal UI
2. docker-compose.yml with app, postgres and Caddy (automatic HTTPS) — `docker compose up -d` must be all I run
3. .env.example documenting every variable; no secrets in code
4. Seed script with demo data
5. README: local dev, deploy on a fresh Ubuntu VPS (install Docker, set DNS A record, compose up), backups (pg_dump cron), and updating

## Rules
- Build in small steps; after each feature, run typecheck and the app, and fix errors before moving on
- Validate all input with zod; rate-limit public endpoints
- Write a few Playwright smoke tests for the main flow
- Ask me before adding any dependency beyond the stack above

For reference (study the approach, don't copy code): https://github.com/LibreOffice/core, https://github.com/ONLYOFFICE/DocumentServer, https://github.com/CollaboraOnline/online, https://github.com/cryptpad/cryptpad

Recommended hosting

Need a server to run LibreOffice or another Microsoft Office alternative?

Disclosure: some links are affiliate links. If you sign up through them we may earn a commission at no extra cost to you. It never affects which tools we list. Details

One self-hosted swap per week

A new SaaS teardown and its open-source replacement, every week. No spam.

We only use your email to send the SelfHostThis newsletter (stored with our email provider Resend, EU). Every email has a one-click unsubscribe link, and you can ask us to delete your data anytime. We use double opt-in. Datenschutz · Privacy policy

More in this category: all self-hosted office suites, PDF and remote desktop tools, ranked by GitHub stars · all categories