BladeVault logo # BladeVault **A sharp, local-first knife collection manager.** Catalog your knives, watch their prices across stores, ask AI about your collection, showcase them in Studio, and keep your collection data under your control.

Latest release Total downloads Test status MIT License Platforms: macOS, Windows, Linux

Next.js 16 React 19 TypeScript SQLite Electron Docker Helm Model Context Protocol: 21 tools 12 theme styles

Download latest release · Documentation · Watch the demo

--- [Install](#choose-a-setup) · [Styles](#styles) · [Price Drops](#price-drops-and-wishlist) · [Chat](#chat) · [Studio](#studio) · [Screenshots](#screenshots) · [MCP](#model-context-protocol-mcp) · [Backups](#local-backup-and-restore) · [Development](#run-from-source) ## What it does - **Catalog:** Keep specifications, pricing, provenance, links, and local photos for every knife. Paste a retailer link to [import product details](#import-from-a-product-url), import several links at once, or enter a knife manually. - **Get past bot checks:** When a retailer blocks automated imports, open the page in a real browser to finish verification, use the desktop app's built-in **BladeVault browser**, or import a product page you saved from your own browser. - **Capture source pages:** Save a full-page screenshot with URL imports, view or download it later, retry failed captures, and backfill screenshots for older records. Captures are included in local and cloud backups. - **Take notes:** Add dated personal notes to any knife with Markdown formatting, including lists, links, and tables, and attach up to 12 photos that also join the knife's gallery. Notes appear under the photos, grouped by date, and in the knife's History. - **Organize:** Search, filter, pin, and bulk-edit records. Add custom text, number, and date fields, and choose which details appear on collection cards and pinned items. Switch between card and table views; in Modern-layout styles, choose, reorder, and resize table columns. - **Browse:** Save filters as Smart Collections that update with your records, or browse variants together in Model families. Global search supports model names and `/model A4301` for model numbers. - **Watch prices:** **Price Drops** checks each knife's product link and other stores, such as brand sites, Blade HQ, SMKW, DLT Trading, KnifeJoy, Northwest Knives, White Mountain Knives, and Amazon, and records every price and stock change with one chart line per store. See [Price Drops and Wishlist](#price-drops-and-wishlist). - **Plan purchases:** The **Wishlist** is a deal board for knives you want next, with the three best deals on top, price against regular price, cheapest stores, and a price chart in every row. - **Get alerts:** The **Inbox** collects price drops, restocks, care reminders, achievements, and system messages such as finished Google Drive backups. New messages pop up at the top right, and each kind can be turned off in **Settings → Notifications**. - **Ask AI:** Open **Chat** to ask about your vault in plain language and get answers with knife cards and price tables, using your own OpenAI-compatible model. See [Chat](#chat). - **Showcase:** Open **Studio** for a photo-first wall of your collection, filtered by folding, fixed, pinned, or any Smart Collection, with search, focus mode, a Knife of the day, and a self-playing split-flap showcase. Select any knife for a quick look with its full photo gallery. - **Compare:** Create named shortlists, add a knife to several lists, show only differences, and print or export comparisons as PDF. - **Maintain:** Log cleaning, lubrication, sharpening, stropping, and disassembly with dated notes and sharpening details. Care reminders tell you when a knife is due, with a **Coming up** list of the next deadlines and per-knife intervals. Each knife's History tab links maintenance, notes, and record changes to their log entries. - **Understand:** Explore makers, materials, dimensions, completeness, and activity through collection insights, including a calendar activity map and a History timeline with a year in review. Modern-layout styles add monthly additions for the last 12 months and blade, overall-length, weight, and thickness distributions. Open chart details to inspect matching knives or print the Overview as a report. - **Earn achievements:** Unlock 100 badges in four tiers as the collection grows, see them in the **Trophy case** on Insights, and climb collector ranks from **Rookie** to **Jedi Collector**. - **Personalize:** Pick one of [twelve styles](#styles), light or dark color mode, metric, imperial, or both measurement units, time format, pinned ordering, and the page BladeVault opens on: **Insights**, **Studio**, **Collection**, **Wishlist**, or **Price Drops**. - **Connect:** Use [MCP](#model-context-protocol-mcp) from Claude Code, Claude Desktop, Codex, Cursor, or LM Studio to search your collection and read price history, and, with write access on, add knives and photos, update records, and log maintenance. - **Keep control:** Store your vault locally in SQLite, create portable ZIP backups, and optionally back up to your own Google Drive. Crash and error reporting is opt-in. ## Styles BladeVault ships twelve styles. Switch them in **Settings → Appearance**, or pick one from the theme button in the footer, which shows every style. The light/dark button next to it switches color mode in styles that have both. | Style | Layout | Color mode | Character | | ------------ | ------- | ------------- | -------------------------------------------------------------------------------------------- | | **Classic** | Classic | Light or dark | The original layout with cards and a table | | **Modern** | Modern | Light or dark | Compact workspace with a docked inspector | | **Alloy** | Alloy | Light or dark | A black and gold shell with its own controls | | **Forge** | Modern | Light or dark | Graphite and ember | | **Titanium** | Modern | Light or dark | Anodized violet, teal, and bronze | | **Field** | Modern | Light or dark | Tactical stone and acid lime | | **Lumen** | Modern | Light only | Pure white and greys with orange accents | | **Espresso** | Modern | Light only | Cream paper and a dark roast sidebar | | **Phosphor** | Modern | Dark only | An amber phosphor terminal | | **Atrium** | Atrium | Light only | A photo gallery with a floating dock and a slide-over knife sheet | | **Shelf** | Shelf | Light or dark | A collector's catalogue with shelves, a full-screen focus view, and a ⌘K command palette | | **Ledger** | Ledger | Light or dark | An account book: header tabs, a grouped list beside a knife document, and keyboard shortcuts | [Download the latest release](https://github.com/dedkola/bladevault/releases/latest) or browse the [full release history](https://github.com/dedkola/bladevault/releases). ## Import from a product URL Open **Add knife**, paste the retailer's URL, and choose **Scrape**. BladeVault imports the product details and automatically clears recognizable newsletter and cookie overlays before creating the page preview and screenshot. - **Hide popups** removes remaining dialogs from the preview. **Restore original** returns to the imported preview. Neither changes your form edits. - **Interact with page** opens the retailer's page in a real browser so you can close stubborn popups or complete site verification. Return to BladeVault and click **Continue** to refresh the import; manually edited fields and image selections are preserved. - **Open in BladeVault browser** (desktop app) opens the page in a sandboxed BladeVault window for retailers with Cloudflare-style checks. Complete the check, wait for the product page, then click **Continue**. - **Import saved page** reads a product page you saved from your own browser, for retailers that block every automated visit. - **Enter manually** opens the empty form when there is no product page. The interactive browser opens on the computer running BladeVault. In Docker, Podman, or Kubernetes, it runs inside the container and is not streamed to your screen. See the [URL import guide](docs/guides/add-knife-to-collection.md) for more details. ## Price Drops and Wishlist Price monitoring runs on the BladeVault server, so it works in the desktop app, Docker, Helm, and a source checkout, but not in the static web app. - **What is checked:** A knife with a product link can be monitored with or without a regular price. Its link becomes its first store, and you can add up to 10 stores per knife. **Settings → Price monitoring → What to monitor** chooses which knives scheduled checks cover: Wishlist only (the default), everything with the Wishlist first, or selected knives. **Everything, Wishlist first** alerts on the rest of the collection only for super sales, such as 50% below regular price. - **Schedule:** Every monitored link is checked every 6, 12, or 24 hours, spread evenly over the day. Each store works through its own queue at its own pace, in parallel with the others, so a slow store never holds up the rest; failed checks are retried on their own. Out-of-stock pages are still checked, so restocks show up. - **Other stores:** With AI connected, BladeVault searches other stores for each knife, trusts listings that show the exact model number, and keeps other variants of the model as related listings. The first two variants per store are monitored too, shown as dotted chart lines, without affecting the knife's best price or alerts. - **AI supervisor:** An optional supervisor, in observe or act mode, schedules checks, retries pages, and writes a daily summary. - **Price Drops page:** A monitoring timeline, sale and 90-day-low badges, and a 30-day chart for each row. Each knife's **Market** tab shows best price, lowest and highest seen, and history per store, with CSV export. - **Wishlist:** Group knives as **Next**, **Saving**, or **Someday**, filter by brand, and see the top 3 deals, each knife's cheapest stores, and a stock-style price chart with the regular price as a reference. - **Alerts:** Drops and restocks arrive in the Inbox and as desktop notifications. Set a minimum change, a target price per knife, or **Only below regular price**, mute a knife, or select **Stop out-of-stock alerts** on any out-of-stock message. Connect AI in **Settings → AI / MCP** with any OpenAI-compatible endpoint, such as OpenAI, a gateway, or a local Ollama or LM Studio server. See the [Price Drops guide](docs/guides/price-drops.md) for the full details. ## Chat Open **Chat** to ask questions such as "show me all price drops from the last week" or "which knives are missing a steel?". Answers stream in with the knife cards and price tables they are based on. Chats are saved, searchable, and can be renamed, archived, or deleted, and each chat has its own model and reasoning level (**Off**, **Low**, **Medium**, or **High**). Chat uses the AI connection from **Settings → AI / MCP** and the same read-only tools as MCP, so it cannot change your vault. The knife records it looks up are sent to your AI provider, but knife notes never are; use a local model to keep everything on your computer. Like price monitoring, Chat needs the BladeVault server. See the [Chat guide](docs/guides/chat.md). ## Studio Open **Studio** from the sidebar for a photo-first index of your vault. BladeVault arranges the collection into a randomized featured wall; use the toolbar to filter folding, fixed, or pinned knives or any Smart Collection, search by name or specification, and switch between regular and large tiles. Select a knife to open a **quick look** with its complete photo gallery, key specifications, and actions to view, edit, pin, or compare it. Use the arrow buttons or the left and right arrow keys to move through photos. **Focus mode** hides the rest of the interface for distraction-free browsing. Press the **Play** button next to it to start a showcase: every few seconds, a visible tile turns over like an airport split-flap board to reveal another knife from the current view. Tiles you point at or focus stay put, and the showcase pauses while a quick look is open. ## Choose a setup | Option | Best for | Start here | | ---------------- | -------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | Desktop app | A native macOS, Windows, or Linux experience | [Download the latest release](https://github.com/dedkola/bladevault/releases/latest) · [Linux install](#linux) | | Docker or Podman | A self-hosted local instance | [Run a container](#run-in-a-container) | | Kubernetes | k3s or another Kubernetes cluster | [Install with Helm](#install-with-helm) | | Source | Development and customization | [Run from source](#run-from-source) | ## Screenshots
BladeVault collection in the Lumen style with knife cards, Smart Collections, pinned knives, and the knife inspector

Collection in Lumen — knife cards, Smart Collections, pinned knives, and the inspector

More screenshots: Studio, insights, knife details, comparisons, Add knife, and more styles
BladeVault Studio in the Phosphor style showing a photo-first wall with Smart Collection filters

Studio in Phosphor — a photo-first wall filtered by type, pinned knives, or Smart Collection

BladeVault collection table in the Forge style with custom columns and the knife inspector

Collection table in Forge — custom columns, metric and imperial units, and a docked inspector

BladeVault Insights in the Titanium style with collection totals and the calendar activity map

Insights in Titanium — collection totals and the calendar activity map

Knife detail page in the Espresso style with model variants, photo gallery, and specifications

Knife detail in Espresso — model variants, photo gallery, details, and maintenance

Saved knife comparison in the Field style with specifications side by side and PDF export

Compare in Field — saved shortlists and specifications side by side

Add knife page in the Alloy style with a product link field, batch scrape, saved-page import, and manual entry

Add knife in Alloy — paste a link, batch scrape, import a saved page, or enter details manually

BladeVault collection in the Classic style with knife cards and the sidebar

Collection in Classic — the original layout

## Run in a container The prebuilt image stores the database and local images in `/app/data`. Mount a host folder to keep that data when the container is replaced. The examples use `:latest`, which follows successful builds of `main` and can include changes newer than the published release. For a specific release, use its version tag, such as `ghcr.io/dedkola/bladevault:v2.0.3`. ### Docker on macOS or Linux ```bash mkdir -p "$HOME/BladeVault/data" docker run -d \ --name bladevault \ --restart unless-stopped \ -p 5500:3000 \ -v "$HOME/BladeVault/data:/app/data" \ ghcr.io/dedkola/bladevault:latest ``` Open [http://localhost:5500](http://localhost:5500). ### Podman on macOS or Linux ```bash mkdir -p "$HOME/BladeVault/data" podman run -d \ --name bladevault \ --restart unless-stopped \ -p 5500:3000 \ -v "$HOME/BladeVault/data:/app/data" \ ghcr.io/dedkola/bladevault:latest ``` ### Docker on Windows ```powershell docker run -d ` --name bladevault ` --restart unless-stopped ` -p 5500:3000 ` -v "${env:USERPROFILE}\BladeVault\data:/app/data" ` ghcr.io/dedkola/bladevault:latest ``` ### Docker Compose The included Compose file builds the source and uses named Docker volumes for the vault data and the bounded optimized-image cache. From a new checkout: ```bash git clone https://github.com/dedkola/bladevault.git cd bladevault docker compose up -d --build ``` If you already have a checkout, run the Compose command from its root directory. Open [http://localhost:5500](http://localhost:5500). To stop it without deleting the persistent volume, run `docker compose down`. ### Build the image yourself ```bash git clone https://github.com/dedkola/bladevault.git cd bladevault docker build -t bladevault . docker run -d \ --name bladevault \ --restart unless-stopped \ -p 5500:3000 \ -v "$HOME/BladeVault/data:/app/data" \ bladevault ``` ## Install with Helm The default chart is designed for k3s with MetalLB. It creates a dedicated `LoadBalancer` address and a persistent 5 GiB volume for the SQLite database and downloaded images. ### Install ```bash helm repo add bladevault https://dedkola.github.io/bladevault helm install bladevault bladevault/bladevault \ --namespace bladevault \ --create-namespace ``` Get the address, then open `http://`: ```bash kubectl get service bladevault --namespace bladevault ``` If the repository was already added, run `helm repo update bladevault` before installing. ### Update BladeVault Each BladeVault release publishes a matching Helm chart and immutable container image. After the GitHub **Build & Push Docker Image** and **Publish Helm Repository** workflows complete, refresh the repository and upgrade the release: ```bash helm repo update bladevault helm upgrade bladevault bladevault/bladevault --namespace bladevault --wait ``` The chart version, displayed app version, and default image tag match the BladeVault release. For example, chart `2.0.3` installs image `v2.0.3`. If you explicitly override `image.tag=latest`, recreate the pod after a new image is published because the mutable tag does not change the Deployment: ```bash kubectl rollout restart deployment/bladevault --namespace bladevault kubectl rollout status deployment/bladevault --namespace bladevault ``` ### Remove BladeVault ```bash helm uninstall bladevault --namespace bladevault ``` The chart keeps the `bladevault-data` PVC so uninstalling does not remove your collection. To permanently delete the stored database and images too: ```bash kubectl delete pvc bladevault-data --namespace bladevault kubectl delete namespace bladevault ``` See the [chart README](charts/bladevault/README.md) for NGINX ingress with a hostname, immutable image tags, existing PVCs, and other configuration. ## Desktop app The footer has an update button that checks for desktop updates and shows a dot when one is ready. The steps below use **Settings → About**, which offers the same update flow. ### macOS BladeVault requires macOS 13 Ventura or newer. Download [BladeVault.dmg](https://github.com/dedkola/bladevault/releases/latest/download/BladeVault.dmg), open it, then drag `BladeVault.app` to **Applications**. Releases are unsigned. If macOS blocks the first launch, right-click the app, choose **Open**, and confirm. If needed, run: ```bash xattr -d com.apple.quarantine "/Applications/BladeVault.app" open "/Applications/BladeVault.app" ``` Updates use a user-assisted flow: select **Download update** in **Settings → About**, open the downloaded DMG, quit BladeVault, and replace the app in Applications. ### Windows Download [BladeVault-Setup.exe](https://github.com/dedkola/bladevault/releases/latest/download/BladeVault-Setup.exe), run the installer, and open BladeVault from the Start menu or desktop shortcut. Windows SmartScreen may show a warning for an unsigned build. Choose **More info** → **Run anyway** only if you trust the release source. Check for updates in **Settings → About**. Download an available update, then select **Restart to update** to install it. ### Linux Two x86-64 builds are available. Both need glibc 2.35 or newer (Ubuntu 22.04 or equivalent) and share the `~/BladeVault/data` folder, so updates never touch your vault. The [desktop install guide](https://bladevault.pro/docs/installation/desktop#linux) covers troubleshooting. #### AppImage Runs on any distribution without root. Download [BladeVault.AppImage](https://github.com/dedkola/bladevault/releases/latest/download/BladeVault.AppImage), keep it in a permanent folder, and run it: ```bash mkdir -p ~/Applications mv ~/Downloads/BladeVault.AppImage ~/Applications/ chmod +x ~/Applications/BladeVault.AppImage ~/Applications/BladeVault.AppImage ``` On Ubuntu, install FUSE 2 first if the AppImage reports `libfuse.so.2`: `sudo apt install libfuse2` on 22.04, or `sudo apt install libfuse2t64` on 24.04 and newer. On Ubuntu 23.10 and newer, a sandbox helper error means you should start it with `--no-sandbox`. **Update:** in **Settings → About**, select **Check for updates**, **Download update**, then **Restart to update**. The AppImage replaces itself in place. #### Debian package Adds BladeVault to your applications menu on Debian, Ubuntu, and derivatives. Download [BladeVault.deb](https://github.com/dedkola/bladevault/releases/latest/download/BladeVault.deb) and install it: ```bash sudo apt install ~/Downloads/BladeVault.deb ``` **Update:** in **Settings → About**, select **Check for updates**, then **Download update**. BladeVault downloads and verifies the new `.deb` and opens it in your package installer. Install it and reopen BladeVault. From a terminal, quit BladeVault and run `sudo apt install ~/Downloads/BladeVault.deb` with the newer file. Remove it with `sudo apt remove bladevault`; your data stays in `~/BladeVault/data`. ## Run from source **Prerequisites:** Node.js 26 LTS. The repository pins Node.js 26.13.0 in [`.nvmrc`](.nvmrc) for local development and CI. Install Chromium as well if you want to use URL import and webpage capture. ```bash git clone https://github.com/dedkola/bladevault.git cd bladevault npm ci npx playwright install chromium npm run dev ``` Open [http://localhost:3000](http://localhost:3000). ### Production server Build the app, copy its public files and static assets into the standalone output, then start the generated server: ```bash npm run build node -e "const fs = require('node:fs'); for (const dir of ['public', '.next/static']) fs.cpSync(dir, '.next/standalone/' + dir, { recursive: true });" node .next/standalone/server.js ``` Open [http://localhost:3000](http://localhost:3000). This project uses Next.js standalone output; use the generated server for production. ### Useful commands | Command | Purpose | | ----------------------- | ------------------------------------------------------ | | `npm run dev` | Start the Next.js development server. | | `npm run build` | Create a production build. | | `npm run lint` | Run ESLint. | | `npm run format:check` | Check formatting with Prettier. | | `npm run test` | Run the unit and integration suite once. | | `npm run test:watch` | Run unit and integration tests in watch mode. | | `npm run test:e2e` | Build the web app and run Chromium smoke tests. | | `npm run test:e2e:ui` | Open Playwright's interactive test runner. | | `npm run mcp:build` | Build the MCP stdio entry point. | | `npm run mcp` | Build and start the MCP stdio server. | | `npm run desktop:dev` | Run the Electron desktop shell in development. | | `npm run desktop:smoke` | Build and smoke-test the desktop runtime. | | `npm run dist:desktop` | Package desktop installers without publishing them. | | `npm run dev:static` | Run the static browser preview locally. | | `npm run build:static` | Export the static browser preview to `static-app/out`. | The static browser preview starts with an empty collection and keeps changes only in the browser tab's session. SQLite, URL import, price monitoring, Chat, backups, App lock, and MCP need the desktop or self-hosted runtime. See [`static-app/README.md`](static-app/README.md). ## Model Context Protocol (MCP) BladeVault exposes its existing local collection to MCP clients such as Claude Code, Claude Desktop, Codex, Cursor, and LM Studio. No separate database or cloud account is required. | Tool | Ability | Access | | ----------------------- | -------------------------------------------------------------------- | ---------- | | `search_knives` | Search text and exact BladeVault fields | Read-only | | `get_knife` | Retrieve one complete knife record | Read-only | | `get_collection_stats` | Summarize completeness, categories, measurements, and recent records | Read-only | | `get_achievements` | Report rank, score, unlocked badges, and progress on the rest | Read-only | | `find_missing_fields` | Find knives with missing built-in or custom fields | Read-only | | `find_duplicates` | Score possible duplicate records without merging or deleting | Read-only | | `propose_changes` | Validate suggested values without modifying the collection | Read-only | | `add_knife` | Preview and add one new knife, with a duplicate check | Write mode | | `add_knife_images` | Preview and add photos to one knife from image URLs | Write mode | | `refill_knife_images` | Preview and replace one knife's photos from its source page | Write mode | | `update_knife` | Apply a timestamp-checked metadata update to one knife | Write mode | | `bulk_update_knives` | Preview and atomically apply explicit multi-knife updates | Write mode | | `get_knife_maintenance` | Retrieve maintenance history for one knife | Read-only | | `add_maintenance_event` | Log a maintenance event for one knife | Write mode | | `list_price_watches` | List monitored knives with best price, state, and last change | Read-only | | `list_price_changes` | List price drops, increases, restocks, and out-of-stock items | Read-only | | `get_price_history` | Retrieve one knife's price history per store and its change events | Read-only | | `get_price_watch` | Retrieve one knife's monitoring mode, eligibility, and store sources | Read-only | | `get_price_attention` | Summarize blocked, failed, and unavailable price checks | Read-only | | `update_price_watch` | Preview and apply mode and store URL changes for one knife | Write mode | | `request_price_check` | Queue **Check now** for one knife at each store's normal pace | Write mode | Open **Settings → AI / MCP** to review activity, copy the local client configuration, enable or disable HTTP access, and allow or deny write access. Write mode is off by default. Metadata updates require the expected record timestamp to prevent overwriting newer edits and are recorded in the change log. Maintenance writes append dated events to a knife's history. `add_knife` and the photo tools preview first and save only when the same request is repeated with `apply: true` and the returned `preview_hash`; `add_knife` also checks for possible duplicates. Photo tools download only public `https` images and are recorded in the change log. Price monitoring writes change only a knife's monitoring mode and store sources. MCP cannot replace knife IDs, record timestamps, or entire records, and it never returns the AI provider key or saved store cookies. See the [MCP reference](docs/reference/mcp.md) for every tool's options. ### Connect Claude Code **Settings → AI / MCP** shows a ready **Claude Code** command with your server address and token. Copy it and run it in a terminal: ```bash claude mcp add --transport http --scope user bladevault http://:5500/mcp --header "Authorization: Bearer " ``` `--scope user` makes BladeVault available in every project. Check it with `claude mcp list`. ### Connect Claude Desktop Claude Desktop only starts local MCP servers. In the desktop app, open **Settings → AI / MCP** and select **Connect** under **Claude Desktop**: BladeVault backs up `claude_desktop_config.json`, adds a `bladevault` entry that runs a small bridge with the Electron runtime it already ships, and leaves your other servers unchanged. Quit Claude Desktop completely and reopen it. Keep BladeVault running while you use the connection. With Docker, a LAN server, or a source checkout, the same tab shows a copy-ready Claude Desktop config that runs `mcp-remote` through `npx`, so Node.js must be installed on the computer running Claude Desktop. See the [MCP reference](docs/reference/mcp.md#connect-claude-desktop) for details. ### Connect an MCP client Client configuration formats differ. Open **Settings → AI / MCP** through the address you want to use and select **Copy config**, or copy the displayed URL and token into your client's settings. For clients that accept an `mcpServers` JSON configuration: ```json { "mcpServers": { "bladevault": { "url": "http://localhost:5500/mcp", "headers": { "Authorization": "Bearer " } } } } ``` | BladeVault runtime | MCP URL | | ------------------------------------- | ----------------------------- | | Docker or Podman on the same computer | `http://localhost:5500/mcp` | | Unraid or another LAN server | `http://:5500/mcp` | | Desktop app (macOS, Windows, Linux) | `http://127.0.0.1:5501/mcp` | | Source checkout | `http://localhost:3000/mcp` | Replace the example URL when needed and replace the token placeholder with the value shown in BladeVault Settings. The copy buttons work on plain HTTP LAN addresses as well as secure origins. #### Codex To connect Codex, add BladeVault to `~/.codex/config.toml`: ```toml [mcp_servers.bladevault] enabled = true url = "http://:5500/mcp" http_headers = { Authorization = "Bearer " } ``` Use `http://localhost:5500/mcp` for Docker or Podman on the same computer, or use the active desktop URL shown in **Settings → AI / MCP**. Restart Codex after changing its configuration. Codex also supports `bearer_token_env_var`, but its value must be the name of an environment variable containing the raw token, not `Bearer` followed by the token itself. The `http_headers` example above matches BladeVault's copied client configuration directly. For container setup, see [Run in a container](#run-in-a-container). For Unraid, map host port `5500` to container port `3000`. Keep the desktop app running while its MCP connection is in use. If desktop port `5501` is busy, BladeVault uses a free local port and **Copy config** includes the active URL. BladeVault generates one permanent MCP access token and stores it with the persisted vault data. The token stays the same across restarts and updates. `MCP_AUTH_TOKEN`, `MCP_ALLOWED_HOSTS`, and `MCP_ALLOWED_ORIGINS` remain available as deployment overrides. When `MCP_AUTH_TOKEN` is set, its value is used instead of the app-generated token and is required for local and remote HTTP connections. `MCP_ENABLED` and `MCP_WRITE_ENABLED` remain available for administrators who explicitly add deployment overrides. Setting either variable locks its corresponding app control. ### Connect over stdio from source For clients that launch a local MCP process, build the stdio entry point from your source checkout: ```bash npm run mcp:build ``` Configure your client to run the built entry point directly: ```json { "mcpServers": { "bladevault": { "command": "node", "args": ["/absolute/path/to/bladevault/dist/mcp/bladevault.mjs", "mcp"], "env": { "BLADEVAULT_DATA_DIR": "/absolute/path/to/BladeVault/data" } } } } ``` Replace both paths with your checkout and existing vault data folder. Use an absolute path to your Node.js 26 executable if your client cannot find `node`. The client starts the process, so the web or desktop app does not need to be running. Stdio uses the same local database and write-access settings and does not require an HTTP token. To start the stdio server manually, run `npm run mcp`. ## Your data BladeVault is local-first: it works without an account or API key. | Runtime | Default data location | | ------------------------------- | --------------------------------------------------------------------------- | | Source or installed desktop app | `~/BladeVault/data` (`%USERPROFILE%\BladeVault\data` on Windows) | | Docker or Podman | `/app/data` inside the container; mount it to a host folder for persistence | | Desktop development | `~/.bladevault-desktop-dev/data` | The data directory contains `bladevault.sqlite` and local images. **Settings → Local storage** shows the active folder. Set `BLADEVAULT_DATA_DIR` to choose a different directory for a source or container runtime. Without an explicit folder setting, BladeVault checks the default folder and legacy locations, including repo-local `data/bladevault.sqlite` and older macOS app folders, and uses the existing database with the most knives. The desktop app can also move its local data folder from Settings when the location is not managed by `BLADEVAULT_DATA_DIR`. ### Optional App lock Open **Settings → App lock** to set a password for the local vault. App lock is off by default and works offline in the desktop app and Docker. Once enabled, new browser sessions and desktop launches show a password screen. Reloading stays unlocked for the current session; restarting the server requires the password again. Use **Lock now**, **Change password**, or **Disable lock** in the same panel. This is a simple access lock. The password is stored as plain text in SQLite, and the collection is not encrypted. Full-vault backups include the lock setting; restoring one uses its password and clears existing unlock sessions. HTTP MCP clients need the existing MCP bearer token while App lock is enabled, including localhost clients. Local stdio MCP continues to use direct database access. If you forget the password, stop BladeVault or its container and open `bladevault.sqlite` in the active data folder using a SQLite editor. Run this statement, then restart and set a new password: ```sql DELETE FROM settings WHERE key = 'app_lock_password'; ``` You can also change that setting's value directly to choose a replacement password. ### Local backup and restore Open **Settings → Backup & Restore** and select **Download full backup** to save a portable full-vault backup without a cloud account. The archive includes the database, collection settings, Smart Collections, saved comparisons, history, and local images. Use **Restore from local ZIP** in the same panel to validate an archive and review its contents before replacing the current vault. BladeVault creates a safety copy of the current data before restoring. The panel also offers **Print Report** to open the Overview for printing or saving as a PDF. Saved comparisons are included in full-vault backups, but changing a comparison list does not trigger an automatic backup. When upgrading from before v1.2.0, the old comparison selection becomes **My comparison**. For a manual filesystem backup, stop BladeVault and copy the whole data folder so the database and images stay together. ## Optional cloud backup Cloud backup is opt-in and leaves local storage as the source of truth. Connect your own Google Drive from **Settings → Backup & Restore** to upload or restore a complete archive, including images. BladeVault keeps one `bladevault-data.tar.gz` file in a `BladeVault` folder and can only see the files it creates. The backup travels directly between your BladeVault server and Google Drive; `https://auth.bladevault.pro` only completes the Google sign-in. Manual and automatic backups run quietly on the local server. You can switch pages or reload the browser while an upload continues; check its status in **Settings → Backup & Restore**. Keep the desktop app or self-hosted server running until it finishes. Automatic backups wait at least 30 seconds after edits settle and use a browser idle slot to start. During an open app session, changes made during a backup are grouped into a later backup. Completion does not show a popup; turn on the optional Inbox message in **Settings → Notifications** to get a note when a backup or restore finishes. Restore also runs on the local server and continues when you switch pages or reload. You can browse the existing collection while the backup downloads and is validated; editing and automatic backups pause until it finishes. BladeVault waits for active saves, keeps a safety copy, briefly pauses access to install the restored vault, and refreshes open views and images afterward. Local MCP processes participate in the same access protection. Restoring a password-protected vault requires unlocking again with the backed-up password. Safety copies and interrupted-restore recovery files are kept in private `._bladevault-*` folders inside the data directory and are excluded from app backup archives. The earlier BladeVault cloud account backup has been retired. Deployments can point Google sign-in at their own service with `NEXT_PUBLIC_BLADEVAULT_AUTH_URL`. You can use the local vault and ZIP backups without connecting Google Drive. See the [cloud backup reference](docs/reference/cloud-backup.md) for details. ## License BladeVault is released under the [MIT License](LICENSE).
Built with precision for knife enthusiasts.