stashbase is a free, open source documentation & knowledge base project written in TypeScript and released under Apache-2.0. It has 1,242 GitHub stars, 37 forks and 6 open issues, and was last pushed 5 hours ago. On this registry it ranks #72 of 100 tracked projects in Documentation & Knowledge Base, with 5 head-to-head comparisons available. It gained 384 stars over the last 30 tracked days.

What is stashbase?

StashBase is an open-source, local-first writing workspace where writers draft with Claude Code and Codex while drawing on their own sources and past work, built for people who want the editing loop of an IDE applied to prose instead of code.

What it is

StashBase is a TypeScript desktop application that turns a local folder of files into a writing project. It is distributed as Electron builds for macOS, Windows, and Linux, published under the Apache-2.0 licence, and developed in the open with 703 stars and 28 forks on GitHub. The project presents itself in one line as "Like an IDE, but for writing," and the comparison is deliberate: documents live in ordinary local project folders, browsing, editing, previews, and keyword search all work without an account, and removing a project from the application does not delete its files.

The concrete problem it solves is the mismatch between how version control presents changes and how writers read them. A code diff shows old and new lines side by side, which is the wrong shape for prose, so the project builds its own document diff: edits appear in the flow of the document rather than as a jump between removed and added lines. The second problem is context. Rather than pasting reference material into a chat window, StashBase indexes a writer's own sources with text extraction and semantic search so an agent can find relevant passages across a corpus. In that role it replaces the combination of a code editor, a manual paste buffer, and a cloud document service with a single local workspace.

Key capabilities

  • Agent selection between Claude Code, Codex, and a built-in Default Agent that acts as a fallback and connects through StashBase's hosted model gateway.
  • Semantic search over your own sources, enabled through Settings → Advanced → Search by Meaning with your own OpenAI or OpenRouter key.
  • Local PDF text extraction and OCR, with required components downloaded on first use.
  • Document diff that renders suggested revisions inline in the document rather than as old-and-new line pairs.
  • Two working modes, Chat and Documents, switchable to suit the task.
  • A Gallery of ready-made projects and prompts, such as How to Start a Startup, which combines Stanford CS183B lecture transcripts with a founder playbook.
  • MCP server support, exposing the workspace to agents through the Model Context Protocol.

Who uses it and how

  • Writers building long-form articles who want to be interviewed by an agent before drafting; the README suggests the prompt "I want to write a blog post about Humanizer. Interview me to understand what I think about it before drafting."
  • Researchers and knowledge workers who assemble a project from primary sources, as in the How to Start a Startup gallery entry pairing lecture transcripts with a playbook.
  • Writers concerned with voice, who use past writing and edits to guide new drafts.
  • Teams on macOS 12+ with Apple Silicon or Intel, or Windows 10+ x64, as the primary supported platforms.
  • Linux users on x86_64 Debian 12+ or Ubuntu 22.04+, where the platform is community-supported rather than primary.

Getting started

On macOS, install with brew install --cask liliu-z/stashbase/stashbase, or download the latest release for your platform: StashBase-*-mac-arm64.dmg, StashBase-*-mac-x64.dmg, StashBase-*-win-x64.exe, or StashBase-*-linux-amd64.deb and .AppImage. Then open or create a local folder, choose Claude Code, Codex, or the Default Agent, and sign in to StashBase if you want to use its free credits.

How it compares

This registry provides no list of paid products that StashBase replaces, and the topics it declares name no comparable writing applications. On the facts available, the project stands alone in this registry.

When to use it — and when not to

A user must supply a provider account for Claude Code or Codex, or fall back on the Default Agent and its hosted gateway, and semantic search additionally requires an OpenAI or OpenRouter key, since Default Agent credits do not cover that service. There is no server, database, or SMTP setup to operate, but the trade-off is a desktop-only, per-machine workspace, and on Intel Macs local search and PDF and image text extraction require macOS 15 or newer, with older supported systems limited to opening projects and editing files. Inline document revisions are described as coming soon in the product preview, so the headline diff experience is not yet fully shipped. Official builds also share basic usage statistics by default, excluding document and conversation content, and this must be turned off in Settings → General → Privacy by anyone who does not want that.

project readme (upstream, from github) — read inline

StashBase

Like an IDE, but for writing.

Website Release License: Apache 2.0 Discord

StashBase is an open-source, local-first writing workspace where you can write with Claude Code and Codex, drawing on your own sources and past work.

  • 🔎 From files to context. Give your agent fast, accurate search across your sources with text extraction and semantic search.
  • 📝 Doc diff ≠ Code diff. Read edits in the flow of your document, without jumping between old and new lines.
  • ✍️ Make it sound like you. Use your past writing and edits to guide new drafts and preserve your voice.

Product Preview

StashBase design prototype: reviewing suggested inline document revisions alongside Agent chat

Design prototype. Inline document revisions are coming soon.

Get Started

macOS 12+ (Apple Silicon and Intel) and Windows 10+ (x64) are the primary platforms. Linux x86_64 Debian 12+ / Ubuntu 22.04+ is community-supported. On Intel Macs, local search and PDF/image text extraction require macOS 15+; older supported systems can still open projects and edit files. Agent runtime requirements may vary. Intel installers are available starting with v2.9.5.

On macOS, install with Homebrew:

brew install --cask liliu-z/stashbase/stashbase

Or download the latest release:

Platform Download
macOS Apple Silicon StashBase-*-mac-arm64.dmg
macOS Intel StashBase-*-mac-x64.dmg
Windows x64 StashBase-*-win-x64.exe
Linux x86_64 StashBase-*-linux-amd64.deb or .AppImage

See Installation for platform steps, updates, and troubleshooting.

Start Writing

  1. Enter a project. Open or create a local folder.
  2. Choose an Agent. Select Claude Code or Codex and complete its setup with your provider account. If you can't use either, the built-in Default Agent is available as a fallback. Sign in to StashBase to use its free credits.
  3. Talk it through. Try: “I want to write a blog post about Humanizer. Interview me to understand what I think about it before drafting.”
  4. Draft and revise. Ask your Agent to draft the article, then review and refine it.

Choose between Chat and Documents modes to suit the task at hand.

See Using StashBase for everyday document and search workflows.

Explore the Gallery

Explore how people organize files and write with Agents. Copy a ready-made project or reuse its prompt to try a workflow with your own material.

For example, How to Start a Startup brings together Stanford CS183B lecture transcripts and a founder playbook.

Explore the Gallery →

Your Files and Your Data

Your documents stay in local project folders. Removing a project from StashBase doesn't delete its files. Browsing, editing, previews, and keyword search work without an account. PDF text extraction and OCR run locally, with required components downloaded on first use.

Agent conversations send your prompts and relevant context to model services. Claude Code and Codex use your provider accounts; the Default Agent connects through StashBase's hosted model gateway.

Search by meaning requires your own OpenAI or OpenRouter key in Settings → Advanced → Search by Meaning. It sends source text and search queries to your chosen embedding provider. Default Agent credits don't cover this service.

Official builds share basic usage statistics by default, excluding document and conversation content. You can turn this off in Settings → General → Privacy. See Usage statistics for details.

Connect External Agents

Agents in the built-in Chat connect to StashBase's tools automatically.

To use an external MCP client, keep StashBase running and copy the connection configuration from Settings → Advanced → External apps (MCP) into that client. It can read, search, and edit supported files in the project you select.

See MCP Configuration for client examples, transports, and access settings.

Build From Source

Install Node.js 24.11.0+, pnpm, and Python 3.13 with venv support. See Local Development for platform dependencies.

git clone https://github.com/liliu-z/stashbase
cd stashbase
pnpm install
pnpm setup:python

env -u ELECTRON_RUN_AS_NODE pnpm dev

The launch command above uses POSIX shell syntax to clear an inherited ELECTRON_RUN_AS_NODE. On Windows, clear that variable in your shell before running pnpm dev.

See Contributing for OCR setup, testing, and release guidance.

Contributing

StashBase is also an experiment in human-directed, AI-first development. Humans own product direction and trust decisions; AI helps connect design, implementation, review, and evidence. The Project Maintenance Model describes that working loop.

Small focused PRs are preferred. Open an issue before larger changes so scope and direction can be discussed first.

Feedback

Report an issue or join the Discord community for support and discussion.

About

StashBase is an independent open-source project built by Li Liu and Bing Wu.

Licensed under Apache 2.0.

Frequently asked questions

Is stashbase free to use?

stashbase is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does stashbase do?

An open-source, local-first writing workspace where you can write with Claude Code and Codex, drawing on your own sources and past work.

What is stashbase written in?

stashbase is primarily written in TypeScript. Its source is publicly available at https://github.com/liliu-z/stashbase, and it has 1,242 GitHub stars.