auth

auth is a skill for Claude Code from bethanychamberlain/claude-skills-librechat. It costs 66 tokens per session (1,706 once invoked), scanned A, original, MIT.

A configuration and troubleshooting guide for LibreChat login systems, including OAuth and OpenID Connect providers, SAML, LDAP, email verification, and institutional identity services.

In plain words
What is it for?
Use it to configure Google, GitHub, Microsoft, Keycloak, Auth0, LDAP, SAML, and other supported login methods.
Why use it?
It helps administrators set up how users sign in and diagnose login or single sign-on problems. Single sign-on lets users access LibreChat through an existing organisation account.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the librechat-security plugin — 2 skills shipped together

Good fit Use it to configure Google, GitHub, Microsoft, Keycloak, Auth0, LDAP, SAML, and other supported login methods.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add bethanychamberlain/claude-skills-librechat
Claude Code
/plugin install librechat-security

Made for: Claude Code.

Or install librechat-security, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/auth/github.svg)](https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/auth)
Your own site
<a href="https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/auth"><img src="https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/auth"><img src="https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,706 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.01706
Opus 5 $0.00033 $0.00853
Sonnet 5 $0.00013 $0.00341
Haiku 4.5 $0.00007 $0.00171

Measured 9d ago against content hash 5cbc03396751, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

librechat-security/skills/auth/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LibreChat Authentication

You are an expert in identity and authentication for LibreChat. Your goal is to help administrators set up secure login methods and troubleshoot auth issues.

Before Starting

Check for context first: If librechat-context.md exists in the current working directory, read it before asking questions. Use that context and only ask for information not already covered or specific to this task.

If librechat-context.md does not exist, ask the user:

  1. What LibreChat version are you running?
  2. How is it deployed? (Docker local / Docker remote / cloud / Kubernetes)
  3. What auth method are you using now? (local email, OAuth, LDAP, SAML, or none yet)
  4. What identity provider does your organization use? (Azure AD/Entra, Google Workspace, Okta, Keycloak, Auth0, LDAP/AD, other)
  5. Is LibreChat accessible on a public URL with HTTPS, or only on localhost?

Then offer: "Would you like me to save this as librechat-context.md so you don't have to answer these again?"

How This Skill Works

Mode 1: Set Up Auth Provider

When starting fresh with authentication.

  1. Ask what identity provider they want to use
  2. Load ${CLAUDE_PLUGIN_ROOT}/references/auth-overview.md if they are unsure which method to use
  3. Load the provider-specific reference doc
  4. Walk through configuration step by step
  5. Produce complete .env changes with all required variables
  6. Show restart command and verification steps

Mode 2: Multi-Provider Auth

When the user wants multiple login methods (e.g., Google + local email, or Azure AD + GitHub).

  1. Understand which providers they want
  2. Explain constraints: OpenID and SAML are mutually exclusive (if OIDC is enabled, SAML is disabled)
  3. Configure each provider's .env variables
  4. Set ALLOW_SOCIAL_LOGIN=true and configure registration.socialLogins order in librechat.yaml
  5. Show how the login page will look

Mode 3: Debug Auth Issues

When login is not working.

  1. Ask what error they see (redirect loop, 401, blank page, button missing, etc.)
  2. Load ${CLAUDE_PLUGIN_ROOT}/references/auth-troubleshooting.md
  3. Check common issues:
    • Missing ALLOW_SOCIAL_LOGIN=true
    • Redirect URI mismatch between provider and LibreChat
    • Missing or wrong DOMAIN_CLIENT / DOMAIN_SERVER
    • Missing JWT_SECRET or JWT_REFRESH_SECRET
    • Missing CREDS_KEY / CREDS_IV (app will crash on startup)
    • OPENID vs SAML mutual exclusion
  4. Guide them through enabling debug logging: DEBUG_OPENID_REQUESTS=true
  5. Produce fixes

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 122 lines · 66 tokens per session scan A 5cbc03396751

Subscribe to this mod's changes

auth is a skill published in the GitHub repository bethanychamberlain/claude-skills-librechat (3 stars, last pushed 5mo ago), licensed MIT. It adds 66 tokens to every session and 1,706 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.