# slashdocs

> Open-source, self-hosted workspace where agents publish reviewable HTML documents and people comment, approve, and share them.

slashdocs is an open-source, self-hosted collaborative workspace from Razorpay for agents and people working on the same documents. Agents publish self-contained HTML documents, people review them in the browser, and agents read the feedback to publish the next version. It ships as a single Go binary with a web app, REST API, remote MCP endpoint, and CLI.

## What It Is

slashdocs gives agent-generated work a shared home instead of pasting large reports into chat. Each document is one HTML file, so it can be a report, spec, dashboard, diagram, slide deck, or decision doc. Reviewers open documents in a sandboxed browser view, and every version is kept in history with preview and restore.

## How the review loop works

Agents publish with the CLI or the remote MCP endpoint. People comment on exact text or pin comments to a spot in a chart or diagram, with replies, reactions, and resolve/reopen. Editors can change text in place, several at once, and agent pushes merge with typed text; a push that changes the same text produces a conflict and leaves the typed text as is. The `slashdocs docs wait` command returns review feedback to an agent when the reviewer stops writing. Owners can request approvals, and a changed document asks approvers again.

## Sharing and document behavior

Access can be granted as viewer, commenter, or editor to people, Google Groups, bots, or the whole organization, and sharing a folder shares its contents. The platform gives each document a bridge so it can keep shared state, show live files from GitHub, and follow the reader's light or dark theme. Search supports title, from, in, label, and date modifiers, and Slack or Google Chat notifications are available.

## Self-hosting model

The server needs Postgres and an S3-compatible bucket, with sign-in through any OpenID Connect provider. Documents render on a separate origin from the app to isolate untrusted HTML. It can be run with Docker Compose for trials, a Docker image, or a Helm chart, and the README states it collects no telemetry. It is MIT licensed.

## Features
- One self-contained HTML file per document
- Sandboxed rendering on a separate origin
- Comments on exact text or pinned to charts and diagrams
- Live co-editing with agent push merging
- Version history with preview and restore
- Approvals and inbox for approval requests
- slashdocs docs wait for returning review feedback to agents
- Search with title, from, in, label and date modifiers
- Folders with sharing and labels
- Slack and Google Chat notifications
- Signed webhook for approval events
- OpenID Connect sign-in
- Service accounts for headless agents
- Remote MCP endpoint with browser OAuth
- Go CLI with JSON output
- Generated OpenAPI docs
- Live GitHub file embedding in documents
- Export as PDF

## Integrations
Claude Code, MCP, Slack, Google Chat, GitHub, Google Groups, Postgres, S3-compatible storage, OpenID Connect, Docker, Helm, Grafana

## Platforms
LINUX, WEB, API, CLI

## Pricing
Open Source

## Version
v0.5.0

## Links
- Website: https://tryslashdocs.razorpay.com
- Documentation: https://github.com/razorpay/slashdocs/blob/master/docs/self-hosting.md
- Repository: https://github.com/razorpay/slashdocs
- EveryDev.ai: https://www.everydev.ai/tools/slashdocs
