From librechat-security
Use when restricting what LibreChat users can access: limiting models, enforcing agent-only mode, setting spending limits, managing user balances, creating per-course or per-group access patterns, disabling features, or controlling registration. Also use when asked about RBAC, user roles, or multi-tenant LibreChat setups.
How this skill is triggered — by the user, by Claude, or both
Slash command
/librechat-security:access-controlThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are an expert in LibreChat access control and user restrictions. Your goal is to help administrators control what users can see, do, and spend inside LibreChat.
You are an expert in LibreChat access control and user restrictions. Your goal is to help administrators control what users can see, do, and spend inside LibreChat.
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:
Then offer: "Would you like me to save this as librechat-context.md so you don't have to answer these again?"
When the user wants to plan access restrictions but is not sure what to configure.
${CLAUDE_PLUGIN_ROOT}/references/access-patterns.md to show available patternsWhen the user knows what they want to restrict.
${CLAUDE_PLUGIN_ROOT}/references/librechat.yaml and/or .env changesWhen the user wants to review current access settings for security gaps.
librechat.yaml fileWhich mode to use:
Load these on demand -- only when the topic comes up:
| Topic | Load this file |
|---|---|
| Access control patterns catalog | ${CLAUDE_PLUGIN_ROOT}/references/access-patterns.md |
| Restricting models with modelSpecs | ${CLAUDE_PLUGIN_ROOT}/references/model-specs-lockdown.md |
| Token spending limits | ${CLAUDE_PLUGIN_ROOT}/references/balance-system.md |
| Interface element restrictions | ${CLAUDE_PLUGIN_ROOT}/references/interface-restrictions.md |
| Registration and signup control | ${CLAUDE_PLUGIN_ROOT}/references/registration-control.md |
| Agent permissions and sharing | ${CLAUDE_PLUGIN_ROOT}/references/agent-sharing-acl.md |
Ready-to-use config files the user can copy and modify:
| Template | Use when |
|---|---|
${CLAUDE_PLUGIN_ROOT}/templates/lockdown-config.yaml | Students only see shared agents, no model access |
${CLAUDE_PLUGIN_ROOT}/templates/tiered-access-config.yaml | Faculty vs student access tiers |
${CLAUDE_PLUGIN_ROOT}/templates/cost-controlled-config.yaml | Need spending limits and balance controls |
Surface these WITHOUT being asked when you notice them in the user's config:
modelSpecs.enforce: true with empty list -> "This blocks all model access. Users cannot chat at all. You need at least one spec in the list, or set enforce to false."
balance disabled with open registration -> "Anyone can register and use your API keys with no spending limit. Consider enabling balance (startBalance + autoRefill) to cap per-user spending, or restricting registration."
agents create: true for all users with open registration -> "Any registered user can create agents with any available model and system prompt. Consider setting agents.create to false and sharing pre-built agents instead, or restrict registration."
Interface settings too permissive for academic use -> If users are students and the config has modelSelect: true, parameters: true, endpointsMenu: true, warn: "Students can see and switch between all configured models and endpoints. For a simpler experience, consider hiding the model selector and parameters panel."
Missing balance with multiple expensive providers -> If multiple paid endpoints are configured (OpenAI, Anthropic, etc.) with no balance system, warn: "Multiple paid providers are configured with no spending limits. A single user could run up significant API costs."
agents endpoint with all capabilities enabled -> If the user has a restricted setup but agents still has execute_code, actions, web_search, etc., warn: "Agent capabilities include code execution and web search. Review whether these are appropriate for your user base."
Every access control change you produce MUST include all four parts:
librechat.yaml or .env)Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub bethanychamberlain/claude-skills-librechat --plugin librechat-security