A local-first task planner for you and your AI agents.
Locket is a desktop app for planning work in projects and tickets. Everything is stored in a SQLite database on your machine. It also runs a built-in MCP server, so any MCP-capable agent can read and update the same tickets you see in the app.
- Projects and tickets. Each project has a short slug that prefixes its ticket ids, like
web-12. Tickets have a status, priority, labels, an optional due date and a markdown description. - Comments. A flat, chronological thread under every ticket.
- Images. Paste, drop or pick screenshots in a ticket description, a comment or a new ticket, and show them inline with
. Agents can attach images too, for example before and after shots of a UI change. - Project icons. Give each project a colour and any Material Symbols icon. The icon font ships with the app, so nothing is fetched.
- MCP server. Start it from Settings and point an agent at
http://127.0.0.1:7821/mcp(Streamable HTTP). Changes made by agents show up in the app immediately. - Menu bar. Start and stop the MCP server from the menu bar icon, even with the window closed. Closing the window keeps Locket running in the background, so agents can keep working.
- Local only. No account, no sync, no network calls. Your data lives in one SQLite file.
Start the server in Settings, then add Locket to your MCP client. For Claude Code:
claude mcp add --transport http locket http://127.0.0.1:7821/mcpTools exposed: list_projects, create_project, update_project, delete_project, list_tickets, get_ticket, create_ticket, update_ticket, delete_ticket, add_comment, attach_images, get_attachment, delete_attachment.
create_ticket and add_comment also take images, each a local file path or base64 data. Every image gets a name that is unique within its ticket. Write  in a description or comment to show it inline. Images that aren't referenced appear as thumbnails. get_attachment returns an image so the agent can look at it.
Resources: locket://projects (JSON) and locket://tickets/{id} (markdown).
Requires Node 22 (see .nvmrc).
npm install # also rebuilds better-sqlite3 against Electron
npm run dev # Vite + tsc watch + Electron
npm test # Vitest, run through Electron's node so SQLite loads
npm run lintUseful scripts:
| Script | What it does |
|---|---|
npm run dev |
Renderer on Vite with HMR, main process recompiled on change |
npm test / npm run test:watch |
Unit tests for the renderer (jsdom) and the main process (real SQLite in memory) |
npm run test:coverage |
Same, with a coverage report in coverage/ |
npm run build |
Compile main process and renderer into dist-electron/ and dist/ |
npm run dist |
Package installers with electron-builder (dist:mac, dist:win, dist:linux for one platform) |
Set LOCKET_MCP_AUTOSTART=1 to start the MCP server on launch, handy for scripted testing.
electron/
db/ SQLite via TypeORM: entities, per-table repositories, transactions
services/ business logic shared by the MCP server and the renderer IPC
ipc/ IPC handlers exposed to the renderer through the preload bridge
mcp/ MCP server: tools, resources, Streamable HTTP host
src/
features/ projects, tickets, comments, settings
state/ app state store backed by the Electron bridge or localStorage
data/ types and defaults
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/locket/locket.db |
| Windows | %APPDATA%\locket\locket.db |
| Linux | ~/.config/locket/locket.db |
settings.json sits next to it. Unpackaged runs (npm run dev, npm start) use temp/.config/ in the project instead, so development never touches your real data. Point it elsewhere with LOCKET_USER_DATA_DIR=/some/dir npm run dev. Packaged builds ignore this variable, so a globally set one can't move the installed app's data. Reset workspace in Settings wipes the database and recreates the Welcome project.
Releases are built by GitHub Actions from version tags. Bump the version in package.json through a normal PR, then tag the merge commit on main:
git checkout main && git pull
git tag v0.1.2
git push origin v0.1.2The workflow runs the tests, packages the macOS app for Apple silicon and Intel, signs it with a Developer ID certificate, notarizes it with Apple, and publishes a GitHub Release named after the tag with the .dmg and .zip files attached. The tag must match the version in package.json or the build fails. Signing needs the CSC_LINK, CSC_KEY_PASSWORD, APPLE_API_KEY_P8, APPLE_API_KEY_ID and APPLE_API_ISSUER repository secrets; the workflow stops before publishing if any is missing or the signature doesn't verify.
macOS builds are signed and notarized from v0.2.1 on, so they open without a Gatekeeper warning and need no extra steps. Only older versions (v0.2.0 and earlier) are unsigned and need a workaround on first launch: open System Settings → Privacy & Security and click Open Anyway (on macOS 14 and earlier, right-click the app and choose Open), or run xattr -cr /Applications/Locket.app.
Contributions are welcome. Fork the repo, make your change on a branch and open a pull request into main. See CONTRIBUTING.md for the workflow and the checks CI runs. Questions and ideas go in Discussions, and security problems should be reported privately.
This project follows the Contributor Covenant Code of Conduct.