User Management
NimbleBrain supports multi-user environments where each person has their own identity, conversations, and workspace memberships. User management is available when using the local or oidc auth adapters.
Auth adapters
Section titled “Auth adapters”How users are managed depends on your authentication configuration in instance.json:
| Adapter | User management | Description |
|---|---|---|
| dev | None needed | No authentication. A default identity is used for all requests. |
| local | Via nb__manage_users tool | Users are stored locally with API keys and bcrypt-hashed credentials. |
| oidc | External provider | Users are managed in your OIDC provider (e.g., WorkOS). NimbleBrain creates local records on first login. |
Creating users (local adapter)
Section titled “Creating users (local adapter)”With the local auth adapter, ask the agent to create users:
Create a user for sarah@example.com with the name SarahThe agent uses nb__manage_users with action: "create". The new user receives an API key they can use to authenticate.
Deleting users
Section titled “Deleting users”Delete the user sarah@example.comFeature flag
Section titled “Feature flag”User management is controlled by the userManagement feature flag, which defaults to true. To disable:
{ "features": { "userManagement": false }}When disabled, the nb__manage_users tool is not registered and returns an error if called via the API.
What’s next
Section titled “What’s next”- Authentication — how auth adapters work
- Workspaces — assign users to workspaces with roles