# Mike (MikeOSS)

> Self-hostable legal AI platform for document review, drafting and case-law research

- Category: Retrieval & Knowledge (RAG) / RAG Frameworks & Platforms
- Language: TypeScript
- Licence: AGPL-3.0
- Repository: https://github.com/open-legal-products/mike
- Website: https://mikeoss.com
- Canonical page: https://ai-tldr.dev/tools/mike/
- Updated: 2026-04-29

## In short

Mike (MikeOSS) is Self-hostable legal AI platform for document review, drafting and case-law research. It is a full application rather than a library, built from a Next.js frontend, an Express backend, Supabase for auth and Postgres, and S3-compatible object storage. It sits in the RAG Frameworks & Platforms category of the Retrieval & Knowledge (RAG) tools and is open-source, written in TypeScript and licensed AGPL-3.0.

## Overview

Mike — also written MikeOSS — is an open-source platform for the document-heavy parts of legal work: reviewing documents, drafting, and researching case law. It is a full application rather than a library, built from a Next.js frontend, an Express backend, Supabase for auth and Postgres, and S3-compatible object storage.

The workflow is organised the way a matter is: projects, folders and a document library, with chat over the documents in an open matter. Review runs as a workflow — reusable assistant and tabular-review workflows that you apply to a set of documents — and suggested edits come back for a person to apply. Citations are checked rather than trusted: the CourtListener integration verifies them and backs US case-law research.

Where the work actually happens is covered too. A beta Word task-pane add-in puts the assistant inside the document a lawyer is drafting in, and exports are tamper-evident. Model access is bring-your-own — an Anthropic, Gemini or OpenAI key, or supported models run locally through Ollama, which is the option that matters when the documents cannot leave the building.

The system assistant and tabular-review workflows are maintained in a separate `mike-workflows` repository and packaged into the application, so the prompt logic can be reviewed and versioned on its own.

## What it does

- Chat with the documents in an open matter, over a project/folder/library structure
- Reusable assistant and tabular-review workflows for repeated document review
- Document review with suggested edits a person applies
- Citation verification and US case-law research through CourtListener
- Microsoft Word task-pane add-in (beta) for drafting in place
- Bring-your-own model keys (Anthropic, Gemini, OpenAI) or fully local inference through Ollama
- Self-hosted by design: Docker Compose stack with Supabase, RustFS object storage and local email capture

## Getting started

The bundled Compose stack runs the app plus Supabase, object storage and email capture with no managed infrastructure. These are the README's local-development steps — its credentials are for local use only.

1. Copy the environment templates

   Both the root and backend environments have examples.

```bash
cp .env.example .env
cp backend/.env.example backend/.env
```

2. Generate the two secrets

   In backend/.env, set DOWNLOAD_SIGNING_SECRET and USER_API_KEYS_ENCRYPTION_SECRET to separate generated values.

```bash
openssl rand -hex 32
```

3. Add a model key

   Put an Anthropic, Gemini or OpenAI key in backend/.env — unless you plan to run everything through Ollama.

4. Start the stack

   Then open the app and create an account.

```bash
docker compose up --build
# http://localhost:3000
```

## When to use it

- Give a small firm document review and drafting help without sending client files to a hosted vendor
- Run the same tabular review across a batch of contracts and get a comparable table back
- Check every citation in a draft against CourtListener before it goes out
- Keep an AI drafting assistant inside Word, where the document is already being written

## Version history

- 2026-04-29: Covered by AI/TLDR as a self-hostable alternative to Harvey and Legora: chat-with-documents, verbatim citations, multi-step workflows and contract drafting on your own Claude or Gemini API keys.
