Install
Run bukmark in Docker on your own computer or server.
Requirements
Section titled “Requirements”- Docker with Compose v2 (
docker compose), running: Docker Desktop, OrbStack or Colima on macOS; Docker Engine with the Compose plugin on Linux. - git, for Docker Compose from source.
- Node.js >= 22 and pnpm 10, only to build the extension and for the triage CLI.
Install
Section titled “Install”Pick one way, then do First-run setup.
Install script
Section titled “Install script”curl -fsSL https://bukmark.it/install.sh | shThis puts the bukmark command in ~/.local/bin and
runs bukmark setup. It installs into your home folder and never uses sudo.
- Another port:
curl -fsSL https://bukmark.it/install.sh | sh -s -- --port 3001 - Another folder for the command: set
BUKMARK_BIN_DIR. - To read them first: the script, the command.
Homebrew
Section titled “Homebrew”brew install xooxoxxo/tap/bukmarkbukmark setupHomebrew installs the bukmark command, not Docker.
Docker Compose from source
Section titled “Docker Compose from source”git clone https://github.com/xooxoxxo/bukmark.git bukmark && cd bukmarkcp .env.example .env # optional — defaults work as-isdocker compose up -dcurl localhost:3000/healthz # {"ok":true}bukmark now runs on http://localhost:3000. Ports 3000 or 5432 taken? Set
PORT / POSTGRES_PORT in .env.
To update: git pull && docker compose up -d --build.
First-run setup
Section titled “First-run setup”- Open
http://localhost:3000(or your port or address). - Enter a password of 12–1024 characters twice and click Create password.
- Add the browser extension and log in to the same address.
The bukmark command
Section titled “The bukmark command”The install script and Homebrew both install bukmark. bukmark help lists its
commands:
| Command | What it does |
|---|---|
bukmark setup |
Writes settings, downloads the images, starts bukmark. --port N sets the port; --lan opens it to your network; --local (default) limits it to this machine. Safe to rerun. |
bukmark start |
Starts bukmark. |
bukmark stop |
Stops bukmark. Data is kept. |
bukmark restart |
Restarts bukmark, applying changes to .env. |
bukmark sessions ... |
Captures browser metadata locally, inspects archives, previews and applies imports, verifies stored tabs, and closes verified Android background tabs. Requires Node.js 22.13+; Android needs ADB. See session archives. |
bukmark status |
Exits 0 when bukmark is running, 3 when it is stopped or not set up, 1 when it runs but does not answer. |
bukmark logs |
Shows the server’s logs. -f keeps following them. |
bukmark update |
Backs up the database, downloads the newest image and restarts. Data is kept. --latest follows new releases again after a rollback. --local-version TAG upgrades to an exact image already on this host; add --dry-run to check it first. |
bukmark rollback |
Goes back to the version and database from before the last update. --yes skips the confirmation; --local uses the locally available previous image. |
bukmark open |
Opens bukmark in your browser. |
bukmark uninstall |
Removes the containers, keeping data. --delete-data deletes it too; --yes skips the confirmation. |
bukmark version |
Prints the command’s version. |
bukmark help |
Lists the commands. |
Where your data lives
Section titled “Where your data lives”Everything is in ~/.bukmark, except your bookmarks:
| What | What it is for |
|---|---|
.env |
Your settings. Keep it with the volume: it holds the database password. |
tools/ |
Versioned local session helpers, checked against the command’s checksum before running. |
compose.yml |
Rewritten on every run. Don’t edit it. |
compose.override.yml |
Optional, yours, for changes .env can’t make. See Behind a reverse proxy. |
Docker volume bukmark-cli_pgdata |
Your bookmarks. |
To use another folder, export BUKMARK_HOME in your shell profile.
Settings
Section titled “Settings”~/.bukmark/.env takes the environment variables
below, with these differences:
| Setting | With the bukmark command |
|---|---|
POSTGRES_PASSWORD |
Random, set by bukmark setup. Don’t change it, or the app is locked out of the database. |
PORT |
From bukmark setup --port or BUKMARK_PORT. Default 3000. On another port, enter the address when you log in to the extension. |
POSTGRES_PORT |
Not used. |
CORS_ORIGINS |
Not used. |
BUKMARK_VERSION |
Server version to run: latest (default) or a release such as 0.3.0. |
BUKMARK_LISTEN |
127.0.0.1 (default): this machine only. 0.0.0.0: your network. Switch with bukmark setup --lan or bukmark setup --local. Set your password first. |
Change settings in .env, not in your shell, then run bukmark restart.
Update
Section titled “Update”Settings → Updates in the web app says when a new release is out, with its notes and the command to run:
bukmark updateIt backs up the database to ~/.bukmark/backups first. To undo the last
update:
bukmark rollbackThis restores that backup and stays on the version you had. To follow new
releases again: bukmark update --latest.
To stay on one release, set BUKMARK_VERSION first. To update the command
itself: brew upgrade bukmark, or rerun the install script.
Uninstall
Section titled “Uninstall”bukmark uninstall # data and settings stay; bukmark start brings it backbukmark uninstall --delete-data # also deletes every bookmark and ~/.bukmarkThen remove the command: brew uninstall bukmark, or delete
~/.local/bin/bukmark.
Environment variables
Section titled “Environment variables”Set these in .env in the checkout (~/.bukmark/.env for the bukmark
command; see Settings). The defaults:
POSTGRES_PASSWORD=bukmarkPOSTGRES_PORT=5432PORT=3000CORS_ORIGINS=TRUST_PROXY=falseBUKMARK_EXTENSION_IDS=BUKMARK_CHECK_PAGES=trueBUKMARK_UPDATE_FEED=POSTGRES_PASSWORD: change it before you publish the database beyond127.0.0.1.POSTGRES_PORT,PORT: host ports for the database and the web app.CORS_ORIGINS: extra browser origins allowed to call the API, comma-separated, such ashttp://localhost:5173.TRUST_PROXY: see Behind a reverse proxy.BUKMARK_EXTENSION_IDS: see Unrecognised extension.BUKMARK_CHECK_PAGES:falsestops reading saved pages in the background.BUKMARK_UPDATE_FEED:offstops checking for new releases. Empty checks bukmark’s GitHub releases.
Access tokens
Section titled “Access tokens”Anything that calls the API from outside the web app needs an access token.
- Open Settings → Access tokens in the web app.
- Enter a name under New token and click Create token.
- Copy the token now. It is shown only once.
Revoke tokens on the same page.
The MCP server takes it as BUKMARK_API_TOKEN; scripts send
Authorization: Bearer <token> (API). The
browser extension creates its own at login, listed as “bukmark capture”.
Forgotten password
Section titled “Forgotten password”-
Reset the owner password:
# The bukmark commandcd ~/.bukmark && docker compose exec app node_modules/.bin/tsx apps/server/src/auth/resetOwner.ts# Docker Compose from source, in the checkoutdocker compose exec app node_modules/.bin/tsx apps/server/src/auth/resetOwner.ts# Local developmentpnpm --filter @bukmark/server auth:reset-owner -
Open the web app and set a new password right away.
Access tokens keep working. To delete them too, add --revoke-tokens to the
command.
Plain http:// works on a LAN or tailnet address. You need HTTPS, from a
reverse proxy, for:
- Installing the web app, and so Android’s Share sheet. Browsers install it
only from an
https://address orlocalhost; over plain HTTP it cannot be installed. See Capture from your phone. - A
Securesession cookie. The server marks itSecureonly when the request arrived over HTTPS. - Access tokens sent over a network, such as an iOS Shortcut’s.
Behind a reverse proxy
Section titled “Behind a reverse proxy”To serve bukmark over HTTPS through nginx, Caddy or Traefik:
-
Forward the original
Hostheader. Without it, every sign-in fails with “Cross-site request refused”. -
Set
TRUST_PROXY=truein.env, then rundocker compose up -dagain (with thebukmarkcommand:~/.bukmark/.env, thenbukmark restart). -
Make the proxy the only way in. If the proxy runs on the same machine, in
docker-compose.ymlchange the app’sportsto"127.0.0.1:${PORT:-3000}:3000". With thebukmarkcommand, create~/.bukmark/compose.override.ymlinstead, then runbukmark restart:services:app:ports: !override ["127.0.0.1:${PORT:-3000}:3000"]The proxy must set
X-Forwarded-Forto the client’s address, not append to it. -
Keep
/authorize/done?code=…&state=…out of the access log. Its one-time code can be traded for an access token.
- nginx: add
proxy_set_header Host $host;($http_hostif your public URL has a port), and turn the access log off for/authorize/done, as below. - Caddy: passes
Hostthrough. If you turned access logs on, addlog_skip /authorize/done(skip_logbefore Caddy 2.8). - Traefik: passes
Hostthrough. If you turned access logs on, give that path its own router withobservability.accessLogs: false(Traefik 3.3+).
location / { proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $remote_addr;}
location = /authorize/done { access_log off; proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $remote_addr;}Upgrading from a version without auth
Section titled “Upgrading from a version without auth”For Docker Compose from source only.
-
Pull and rebuild:
git pull && docker compose up -d --build -
Open the web app and set a password.
-
Rebuild the extension, load it again and log in:
pnpm install && pnpm --filter @bukmark/extension build -
Give the MCP server (
BUKMARK_API_TOKEN) and your scripts an access token.
Postgres is now published on 127.0.0.1 only.
Made by XO Vision, a Jovian division