Skip to content

Multi-User

abTARS supports multiple users with role-based access control.

Configuration

Define users in ~/.abtars/config/users.json:

json
{
  "users": [
    {
      "userId": "master",
      "role": "master",
      "maxClass": 3,
      "tools": ["all"],
      "platforms": { "telegram": 123456789 }
    },
    {
      "userId": "friend",
      "role": "user",
      "maxClass": 1,
      "tools": ["memory_recall"],
      "platforms": { "telegram": 987654321 },
      "languages": ["en", "hu"]
    }
  ]
}

Roles

RolePermissions
masterFull access — all commands, all tools, all memory classes
userCan chat, limited commands (/new, /reset, /stop, /status, /help), configured tools only
guestCan chat only, no memory recording, no tools

Memory Classification

ClassLabelWho can access
0UNCLASSIFIEDEveryone
1RESTRICTEDuser + master
2CONFIDENTIALmaster only
3SECRETmaster only, encrypted at rest

Approving Users

From chat:

/users                    → list all users
/users approve <id>       → approve by platform ID (adds as guest)
/users revoke <userId>    → remove access

Platform ID Mapping

Each user maps to platform-specific IDs:

json
"platforms": {
  "telegram": 123456789,
  "discord": "987654321098765432"
}

A user can be on multiple platforms — same memory, same role, different platform IDs.