Overview
The permissions system controls:- Feature access (agents, prompts, bookmarks, etc.)
- Resource sharing and visibility
- Administrative capabilities
- API access levels
Permission Types
User Permissions
Control what features users can access
Resource Permissions
Manage access to agents, prompts, and files
Admin Permissions
Administrative and system-level access
API Permissions
API access and rate limiting
Environment Variables
Configure permissions using environment variables in your.env file:
User Registration & Login
Allow new users to register accounts
Allow users to log in without verifying their email
Enable social login (Google, GitHub, etc.)
Feature Permissions
Allow users to create and use agents
Allow users to create and save prompts
Enable conversation bookmarking
Sharing Permissions
Allow users to create shared conversation links
YAML Configuration
For more granular control, uselibrechat.yaml:
librechat.yaml
Resource Access Control
LibreChat uses an Access Control List (ACL) system for resources like agents and prompts.Permission Types
- Agents
- Prompts
- Conversations
Agent permissions:
use- Can use the agent in conversationsexecute- Can run agent actionsshare- Can share agent with othersupdate- Can modify agent configurationdelete- Can delete the agent
- Private (creator only)
- Specific users
- Specific groups
- Organization-wide
Migration Scripts
LibreChat provides migration scripts for updating permissions on existing resources.Agent Permissions Migration
Migrate existing agents to the new permission system:Prompt Permissions Migration
Migrate existing prompts to the new permission system:Admin Roles
LibreChat supports different admin roles with varying permission levels.Default Roles
Super Admin
Super Admin
Full system access:
- Manage all users
- Configure system settings
- Access all conversations and resources
- Manage permissions and roles
- View system logs and analytics
Admin
Admin
User and resource management:
- Create and manage users
- Ban/unban users
- View user statistics
- Manage shared resources
Moderator
Moderator
Content moderation:
- Review flagged content
- Ban abusive users
- Delete inappropriate content
User
User
Standard user permissions:
- Create conversations
- Use agents and prompts (if enabled)
- Manage own resources
API Access Control
Control API access with environment variables:Enable token balance checking for API requests
Limit concurrent API requests per user
Maximum concurrent messages per user
Rate Limiting
Configure rate limits inlibrechat.yaml:
librechat.yaml
Best Practices
Principle of Least Privilege
Grant users only the permissions they need. Start restrictive and expand as needed.
Regular Permission Audits
Periodically review user permissions and resource access to ensure they’re still appropriate.
Use Groups for Organization
Organize users into groups (departments, teams, etc.) for easier permission management.
Test Permission Changes
Always test permission changes in a development environment before applying to production.
Troubleshooting
Users cannot see shared resources
Users cannot see shared resources
Permission migration fails
Permission migration fails
- Run dry-run first to identify issues
- Use batch migration for large datasets
- Check MongoDB connection and permissions
- Review error logs for specific failures
Admin cannot access certain features
Admin cannot access certain features
- Verify admin role is properly configured
- Check environment variables for feature flags
- Ensure database has been migrated to latest schema
Related Documentation
- User Management - Creating and managing users
- Token Management - Managing user token balances
- Configuration - System configuration options