triauth for KarakeepOIDC
Let your household or team open Karakeep with one approval on their own device, and no Karakeep passwords.
- 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
Open oidc.triauth.org and enter your domain. Paste Karakeep's redirect address,
https://karakeep.example.com/api/auth/callback/customwith your own Karakeep address in place ofkarakeep.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to the environment of the web container and restart it. Replace
example.comwith your domain,karakeep.example.comwith your Karakeep address, and the two placeholders with the client ID and the client secret from the bridge.iniNEXTAUTH_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.comOpen 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
| Setting | Value |
|---|---|
| Redirect address | https://<your-karakeep>/api/auth/callback/custom, built from NEXTAUTH_URL, which must be the public address |
| Where in Karakeep | environment variables of the web container |
| Well-known URL | the bridge's discovery document in full |
| Scopes | openid email profile, the default |
| Password sign-in | DISABLE_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
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your household or organization an identifier at your domain.
- Read Groups to limit Karakeep to one group when you connect it.
- Read Karakeep's configuration reference for every setting Karakeep offers.
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.