Docs · Run it yourself

Run it yourself

Docket is open source. Instead of Docket Cloud, you can keep a docket as files in a repository of your own: install the CLI, record a fact, search it, and connect an agent over MCP. No account, no database, no network.

This is the technical path, for developers. To serve a docket to a team from your own servers, read this page first, then Self-hosting Docket.

Install

From the root of the repository you want to remember things, with Node 22 or later:

shell
npx @chrisjowen/docket setup

It installs the Claude Code plugin and offers to set up the repository (docket init) and to install the docket CLI globally: say yes to both. Then restart Claude Code to load the plugin.

Record a fact

In Claude Code, in that repository, ask it to remember something:

claude code
Remember that the orders service is owned by the platform team.

The plugin's remember skill writes an exhibit, a Markdown file under .docket/, citing where it learned the fact. Check what it wrote against the ontology:

shell
docket validate
shell
docket sync                   # project the files into the local index
docket search who owns orders # each hit names the file it came from

docket open browses the same record in a web UI. Claude Code asks the docket itself, through the plugin, before it greps the code.

Connect an agent over MCP

Any agent that speaks MCP can search the docket. On your own machine, serve it and add the server:

shell
docket open --no-open --port 4380   # keep it running: the UI, its API and the MCP server
shell
claude mcp add --transport http docket-local http://127.0.0.1:4380/mcp

To share it with a team, either serve it yourself (Self-hosting Docket) or push it to a Docket Cloud docket (the docket cloud CLI).

Next steps