# Self-host Karakeep

> A self-hosted bookmark manager, formerly Hoarder, that saves links, notes, images and PDFs, fetches page content with a headless browser, and offers full-text search and optional AI tagging. Run your own Karakeep on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.

_Updated November 23, 2026_

Running your own Karakeep usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make Karakeep behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.

## Just ask your agent

Open a Plus workspace (Karakeep runs in Docker, which Plus and Pro include), tap **Launch** to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:

```text
Set up Karakeep on this workspace and give me the link. Follow https://envhaven.com/self-host/karakeep.md
```

Then open the link it sends and create your Karakeep account straight away, before anyone else finds the address. That is the whole request: the address in it is this page's Markdown copy, and the agent follows the instructions for it further down, with every setting Karakeep's docs require.

## Or keep it private with Tailscale

The preview URL puts Karakeep on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives Karakeep an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace's **Vars** pane as `TS_AUTHKEY`, and ask the agent:

```text
Set up Karakeep on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/karakeep.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
```

- A Tailscale container runs beside Karakeep, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
- Anything other services have to reach, such as a webhook, still needs a public address. [Keep self-hosted apps private with Tailscale](https://envhaven.com/guides/self-host-privately-with-tailscale) covers both, and what Tailscale's free plan includes.

| At a glance |  |
| --- | --- |
| What it is | Bookmarks, feeds and reading |
| License | AGPL-3.0 |
| Runs as | Docker (`ghcr.io/karakeep-app/karakeep`) |
| Memory | Not documented |
| Plan that fits | Plus or larger |
| Web port | 3000 |
| Documentation | [docs.karakeep.com/installation/docker/](https://docs.karakeep.com/installation/docker/) |

## What your agent takes care of

- **Installing it.** Karakeep runs from the official image, `ghcr.io/karakeep-app/karakeep`, with its data in folders under `~/apps/karakeep`.
- **Putting it on an HTTPS address.** The workspace's preview URL serves it, and your own domain can too.
- **Locking it down first.** What Karakeep's docs say to set before it faces the internet, below.
- **Telling you what to back up**: DATA_DIR (/data in the container, the data volume): the database and, by default, crawled assets, the Meilisearch volume (/meili_data) if search is enabled and S3-compatible bucket if ASSET_STORE_S3_ENDPOINT is set ([docs](https://docs.karakeep.com/configuration/environment-variables)).

### The settings it needs behind a proxy

- `NEXTAUTH_URL` (required): Public address of the server (e.g. https://karakeep.example.com); builds email links and the OAuth callback URL; an https value makes auth cookies secure-only. ([docs](https://docs.karakeep.com/configuration/environment-variables))
- `NEXTAUTH_URL` guidance in the Docker guide: Change it from localhost to the server address. ([docs](https://docs.karakeep.com/installation/docker/))
- `AUTH_TRUSTED_ORIGINS` (default *): Extra origins allowed to sign in, on top of NEXTAUTH_URL; * accepts whatever address the request used; set it to an empty string to allow only NEXTAUTH_URL. ([docs](https://docs.karakeep.com/configuration/environment-variables))
- `TRUSTED_PROXIES` (default none) with `RATE_LIMITING_ENABLED`: Proxy addresses whose X-Forwarded-For entries are skipped when finding the client IP for rate limits; only X-Forwarded-For is read; the docs name Cloudflare Tunnel in front of nginx as a chained case. ([docs](https://docs.karakeep.com/configuration/environment-variables))
- OAuth provider redirect URL: Register <NEXTAUTH_URL>/api/auth/callback/custom at the provider. ([docs](https://docs.karakeep.com/configuration/environment-variables))
- `NEXTAUTH_SECRET` (required): Random string securing auth cookies and tokens. ([docs](https://docs.karakeep.com/configuration/environment-variables))

### Before it faces the internet

- Replace NEXTAUTH_SECRET and MEILI_MASTER_KEY with random strings. ([docs](https://docs.karakeep.com/installation/docker/))
- In the minimal install the placeholder secret must be replaced with a real random value. ([docs](https://docs.karakeep.com/installation/minimal-install))
- Sign-ups are open by default; disable them after creating your account on a public instance. ([docs](https://docs.karakeep.com/configuration/environment-variables))
- Give access only to trusted users because of the crawler. ([docs](https://docs.karakeep.com/administration/security-considerations))
- Account linking by email trusts the OAuth provider completely. ([docs](https://docs.karakeep.com/configuration/environment-variables))

## Things to ask next

Everything after the install is one more sentence to the agent. Some that come up:

- "Import the bookmarks file I dropped into the workspace."
- "Add these ten feeds and sort them into folders by topic."
- "Move Karakeep to app.example.com." Add the domain on the dashboard's Domains page with a CNAME to `domains.envhaven.app`, and the agent changes Karakeep's address settings to match.
- "Update Karakeep to the latest release." It pulls the new image and recreates the container, data kept.

## Instructions for the agent

The agent reads these from the page's Markdown copy. They also work pasted on their own, if you would rather give them in your own words.

```text
Set up Karakeep on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, ghcr.io/karakeep-app/karakeep, starting from the docs' compose file: https://github.com/karakeep-app/karakeep/blob/v0.35.0/docker/docker-compose.yml. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- The docs' setup includes: chrome (ghcr.io/karakeep-app/karakeep-chrome:release, headless browser for crawling and screenshots); meilisearch (getmeili/meilisearch:v1.55.0, full-text search).
- Keep the compose file in ~/apps/karakeep and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to Karakeep's port 3000.
- The preview URL terminates HTTPS in front of Karakeep: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/karakeep.md for the preview URL, as Karakeep's docs describe for running behind a proxy; skip any that apply only when Karakeep serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/karakeep.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set Karakeep up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.
```

## What to know

- In Docker, Karakeep's containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
- Per-file upload cap defaults to 50 MB, under Cloudflare's 100 MB limit. ([docs](https://docs.karakeep.com/configuration/environment-variables))
- Without a headless browser the crawler falls back to plain HTTP: no screenshots and no JavaScript-rendered pages. ([docs](https://docs.karakeep.com/installation/minimal-install))
- Without Meilisearch search is switched off entirely. ([docs](https://docs.karakeep.com/installation/minimal-install))
- AI tagging needs an OpenAI key or an Ollama endpoint; without either it is skipped. No GPU is needed with an OpenAI key; Ollama needs its own hardware. ([docs](https://docs.karakeep.com/configuration/environment-variables))
- The AI step is optional in the Docker guide. ([docs](https://docs.karakeep.com/installation/docker/))
- Email is optional: only required if you turn on email verification. ([docs](https://docs.karakeep.com/configuration/environment-variables))
- The crawler fetches pages from your server's network, so untrusted users can expose your origin IP even behind Cloudflare and probe internal endpoints. ([docs](https://docs.karakeep.com/administration/security-considerations))
- Changing asset storage after data exists needs manual migration. ([docs](https://docs.karakeep.com/configuration/environment-variables))
- A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.

## Without a workspace

The manual route, on a server you run:

1. Rent a Linux VPS, secure SSH, and create a user for the app.
2. Install Docker and write a compose file from the official image.
3. Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
4. Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
5. Keep the firewall closed except for the proxy, and schedule backups and updates.

Karakeep's own [documentation](https://docs.karakeep.com/installation/docker/) covers each step for its install methods.

## Sources

Facts about Karakeep come from its own documentation, checked on 2026-11-23:

- [docs.karakeep.com/installation/docker](https://docs.karakeep.com/installation/docker/)
- [docs.karakeep.com/configuration/environment-variables](https://docs.karakeep.com/configuration/environment-variables)
- [docs.karakeep.com/installation/minimal-install](https://docs.karakeep.com/installation/minimal-install)
- [docs.karakeep.com/administration/security-considerations](https://docs.karakeep.com/administration/security-considerations)

## Keep reading

- [Self-host any app with your agent](https://envhaven.com/self-host)
- [Self-host Linkwarden](https://envhaven.com/self-host/linkwarden)
- [Self-host FreshRSS](https://envhaven.com/self-host/freshrss)
- [Self-host Miniflux](https://envhaven.com/self-host/miniflux)
- [Self-host wallabag](https://envhaven.com/self-host/wallabag)
- [AI agent hosting](https://envhaven.com/guides/ai-agent-hosting)

Source: https://envhaven.com/self-host/karakeep
