Admin Documentation
Guides, route-group overviews, and live schema entry points for the Plexichat backend.
Admin documentation
This section contains documentation for administrators who manage Plexichat deployments. Use these guides to configure access control, monitor the system, and maintain compliance.
Before you begin
You need the following to use the admin panel:
- An admin account created during initial Plexichat setup.
- Access to the admin path, which defaults to
/admin. - Two-factor authentication (2FA) configured, if
admin_ui.require_otpis enabled. - Network access that satisfies
admin_ui.host_restriction, if that setting is enabled.
Admin guides
| Guide | Description |
|---|---|
| Get started | Set up your first admin account and configure core settings. |
| Role-based access control (RBAC) | Create roles, assign permissions, and enforce hierarchy. |
| Approval workflows | Require multi-admin approval for sensitive operations. |
| Audit logging | Query and export the audit trail for compliance. |
| Data export (DSAR) | Manage GDPR data subject access requests. |
| Security best practices | Harden authentication, sessions, and access control. |
| User management | Manage user lifecycles and account states. |
| Account-purge residue check | Prove that a purged account leaves no rows or stored objects behind. |
| Server management | Manage servers, members, and moderation. |
| Operations | Run day-to-day maintenance tasks. |
| Troubleshooting | Diagnose and resolve common issues. |
Related documentation
- Configuration overview — How Plexichat discovers and merges
config.yaml. - Deployment guide — Install and deploy Plexichat.
- Default configuration reference — Complete list of configuration defaults.
- Database configuration — PostgreSQL, pooling, and migrations.
About the admin panel
The admin panel is a server-rendered UI and a set of REST endpoints under /api/v1/admin. It provides:
- Role-based access control. Define granular permissions for each admin role. See RBAC.
- Audit logging. Write every admin action to file and database logs. See Audit logging.
- Approval workflows. Require multiple admins to approve sensitive actions before they execute. See Approval workflows.
- Security controls. Enforce 2FA, password policies, session limits, host restrictions, and rate limits.
- Monitoring. View live metrics, historical data, and recent activity from the dashboard.
How to access the panel
- Open
https://YOUR_DOMAIN/adminin your browser. ReplaceYOUR_DOMAINwith your deployment host. - Sign in with your admin credentials.
- Complete the OTP challenge if prompted.
The API prefix is /api/v1 by default. This is controlled by api.api_prefix in your configuration. Health and readiness endpoints for monitoring are:
GET /healthGET /api/v1/ready— readiness check defined inhealth.pyGET /api/v1/status— detailed statusGET /gateway— WebSocket gateway defined ingateway.py(gateway_endpoint)
Configuration overview
Admin features are configured under admin_ui in your configuration file. The server looks for configuration in this order:
./config/config.yaml~/.plexichat/config/config.yaml- Built-in defaults in
src/config_defaults.py
If no file is present, the server runs with built-in defaults and logs a warning. For details, see Configuration overview.
Common admin_ui settings include:
admin_ui:
enabled: true
path: "/admin"
require_otp: true
rbac:
enabled: true
default_role: "super_admin"
approval_workflows:
enabled: true
audit:
log_to_file: true
log_to_database: true
For the full list of defaults, see src/config_defaults.py.
Security recommendations
- Use strong, unique passwords and require 2FA for all admin accounts.
- Grant the minimum permissions each admin needs. Follow the principle of least privilege.
- Review
admin_audit_logregularly for suspicious activity. - Log out when you finish an admin session and limit concurrent sessions with
admin_ui.security.session.max_concurrent_sessions. - Keep Plexichat updated and review audit logs after configuration changes.
Next steps
- If this is your first time administering Plexichat, start with Get started.
- To restrict what each admin can do, see RBAC.
- To trace who did what and when, see Audit logging.