Skip to content

triauth for KarakeepOIDC

Let your household or team open Karakeep with one approval on their own device, and no Karakeep passwords.

  • Bookmarks
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Every Karakeep installation
Set up in
Environment variables

About Karakeep

Karakeep is a self-hosted "bookmark everything" app. It saves links, notes, and images, archives page content, tags it with AI, and makes it searchable. People add items from the web app, the browser extensions, and the phone apps.

Connect Karakeep to triauth

Karakeep signs people in through the triauth OpenID Connect bridge. Once connected, the sign-in page shows Sign in with and your domain's name. People click it, type their username, and approve on their own device. Nobody keeps a Karakeep password, and when someone leaves, removing their identity records at your domain ends their access to Karakeep as well.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Karakeep's redirect address, https://karakeep.example.com/api/auth/callback/custom with your own Karakeep address in place of karakeep.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Add the settings below to the environment of the web container and restart it. Replace example.com with your domain, karakeep.example.com with your Karakeep address, and the two placeholders with the client ID and the client secret from the bridge.

    ini
    NEXTAUTH_URL=https://karakeep.example.com
    OAUTH_WELLKNOWN_URL=https://oidc.triauth.org/example.com/.well-known/openid-configuration
    OAUTH_CLIENT_ID=<client ID from the bridge>
    OAUTH_CLIENT_SECRET=<client secret from the bridge>
    OAUTH_PROVIDER_NAME=example.com
  3. Open Karakeep's sign-in page and click Sign in with example.com.

Checkpoint

Karakeep's sign-in page shows Sign in with example.com. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.

Good to know

  • Everyone with an identity at your domain gets a Karakeep account the first time they sign in, unless DISABLE_SIGNUPS=true. To let only one group in, limit the app to a group when you connect it.
  • Someone who already has a password account is joined to it when OAUTH_ALLOW_DANGEROUS_EMAIL_ACCOUNT_LINKING=true, which is safe here because the bridge confirms the email address.
  • The phone apps and the browser extension sign in with an API key from Settings › API Keys, not through the bridge.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-karakeep>/api/auth/callback/custom, built from NEXTAUTH_URL, which must be the public address
Where in Karakeepenvironment variables of the web container
Well-known URLthe bridge's discovery document in full
Scopesopenid email profile, the default
Password sign-inDISABLE_PASSWORD_AUTH=true hides the local form, and OAUTH_AUTO_REDIRECT=true then skips the sign-in page altogether

Karakeep keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. It also works without a secret, if you tick the box instead. Karakeep's configuration reference lists every variable.

Next steps

All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.