Your law practice, in order.

Kosmos is open-source practice management for law firms: matters, billing, and trust accounting alongside a case builder and an AI that has actually read the file. Self-hosted, on your own terms.

AGPL-3.0·Self-hosted·Django + PostgreSQL·Claude & Gemini
kosmos.yourfirm.law
Alvarez v. Meridian Logistics
Matter 2026-014 · Civil litigation · Open
Link Drive folder
OverviewDocumentsFactsNotesTimeAI
MAR 3, 2025 · from Bill of Lading #4471
Shipment signed over to Meridian's subcontractor at the Newark yard.
MAR 7, 2025 · from Deposition, R. Okafor, p. 42
Driver testifies the manifest was amended after departure. "we changed it on the road"
MAR 9, 2025 · from Email thread, Ex. 12
Meridian dispatch acknowledges the temperature log gap.
AI · matter chat
4 documents2 case law1 Drive note
Does the amended manifest hurt their chain-of-custody argument?
Yes: Okafor's deposition (p. 42) conflicts with the original bill of lading, and Riegel v. Coastal Freight treats post-departure amendments as…
THE WHOLE FIRM

Everything a firm runs on, without the per-seat toll.

The matter — its people, deadlines, money, and record — sits at the center. Everything else attaches to it.

Run the practice

Contacts: Clients, opposing counsel, and courts; mirrored to your Google Contacts.

Calendar & deadlines: Two-way Google Calendar integration; nothing filed a day late.

Time & expenses: Entries per time-keeper, captured as work happens.

Invoicing: From unbilled time to a PDF on letterhead, payable online by card or ACH.

Trust accounting: Client funds tracked separately, the way the bar expects.

Intakes: A front door for new clients that feeds matters, not inboxes.

Build the case

Full-text search: One search across documents, highlights, and facts.

Case law research: CourtListener lookups, saved into the matter as citable authority.

Documents & OCR: Scanned PDFs come out searchable; Tesseract runs on your box.

Across the firm

Multi-user: Attorneys, paralegals, and staff with role-appropriate access.

Reports: Productivity, realization, and aging, straight from the data.

CASE BUILDING

From a box of PDFs to a case you can argue.

Every document is OCR'd and searchable. Highlight a passage and it becomes a citation; cite it as the source of a dated fact and the chronology takes shape as you read.

  • Highlights & citations: passages carry their source, page, and pin cite wherever they're used.

  • Chronological fact timelines: the story of the case, assembled from evidence, not memory.

  • Case law via CourtListener: research lands in the matter, categorized and citable.

Deposition · R. Okafor · p. 42OCR ✓
Q. And when was the manifest revised?
A. After we left the yard. We changed it on the road, that was normal for those runs.
Q. Was the shipper notified of the change?
A. Not that I know of.
→ Fact · Mar 7, 2025Cite · (Okafor Dep. at 42.)Label · Chain of custody
Witness: R. Okafor, driver, Meridian
Context for this question8,140 / 1M tokens
Bill of Lading #4471Okafor Dep. (excerpts)Riegel v. Coastal FreightDrive note · strategy.md14 skipped as irrelevant
Draft the argument that the amended manifest breaks chain of custody.
Three points, each anchored to the record: (1) the original bill of lading fixes the manifest at departure [Doc 4471]; (2) Okafor concedes post-departure amendment [Okafor Dep. at 42]; (3) Riegel holds such amendments void the presumption of integrity…
Claude · switchable to Gemini
AI INTEGRATION

An assistant that reads the record first.

Every matter has its own AI chat, and an automated selector decides which documents, case law, Drive notes, and prior conversations belong in the conversation, staying inside the model's context budget, so answers cite the file instead of guessing at it.

  • Claude and Gemini: bring the model you trust; switch per conversation.

  • Your keys, your calls: the app, database, and search live on your server; the only outbound traffic is direct model-API calls under your own keys.

  • Citations checked, not trusted: every case an answer cites is verified against CourtListener, with optional vetting of whether the opinion actually supports the claim.

OPEN SOURCE

Client files belong on your server.

Kosmos is AGPL-3.0: free to run, read, and modify, forever. It's a boring, sturdy stack a firm's IT (or one determined associate) can operate: Django, PostgreSQL, and a background worker. No vendor between you and privileged material.

  • Self-hosted: your hardware or your cloud; full-text search and OCR run locally.

  • No per-seat pricing: add every paralegal, clerk, and time-keeper in the building.

  • AGPL-3.0: improvements to hosted copies come back to the commons.

terminalbash
$ curl -fsSL https://kosmos.law/install.sh | bash
→ your practice, at localhost:8000
Python
Django 4.2 LTS · 3.10+
Postgres
one database, yours
AGPL-3.0
free, as in freedom