Skip to content

feat: add user_management plugin with session management & API key support#1

Open
kgobakis wants to merge 1 commit into
mainfrom
feat/user-management-plugin
Open

feat: add user_management plugin with session management & API key support#1
kgobakis wants to merge 1 commit into
mainfrom
feat/user-management-plugin

Conversation

@kgobakis
Copy link
Copy Markdown

@kgobakis kgobakis commented May 9, 2026

Plugin: User Management

Multi-user authentication, chat isolation, and token usage tracking with PostgreSQL.

Features

  • PostgreSQL Database — Store users, sessions, and token usage
  • Multi-user Auth — Replace single login with per-user accounts
  • Chat Isolation — Tag each context with user_id, filter in UI
  • Token Tracker — Hook into LLM calls, log input/output tokens per user
  • Admin Panel — WebUI modal to view usage stats + export
  • Session Manager — Track active sessions per user with expiry
  • API Key Store — Generate & store per-user API keys in PostgreSQL for automation
  • API Auth Middleware — Validate incoming API key, resolve to user_id
  • POST /api/chat Endpoint — Accept external messages via API key for automations
  • Rate Limiter — Throttle API requests per key to prevent abuse

Files

All plugin files under plugins/user_management/

…support

- Multi-user authentication with PostgreSQL
- Chat isolation per user_id
- Token usage tracking per user
- Session manager with expiry
- Per-user API key store for automation
- API auth middleware
- POST /api/chat endpoint for external automation
- Rate limiter per API key
- Admin panel for usage stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant