Skip to content

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.

How users are managed depends on your authentication configuration in instance.json:

AdapterUser managementDescription
devNone neededNo authentication. A default identity is used for all requests.
localVia nb__manage_users toolUsers are stored locally with API keys and bcrypt-hashed credentials.
oidcExternal providerUsers are managed in your OIDC provider (e.g., WorkOS). NimbleBrain creates local records on first login.

With the local auth adapter, ask the agent to create users:

Create a user for sarah@example.com with the name Sarah

The agent uses nb__manage_users with action: "create". The new user receives an API key they can use to authenticate.

Delete the user sarah@example.com

User management is controlled by the userManagement feature flag, which defaults to true. To disable:

nimblebrain.json
{
"features": {
"userManagement": false
}
}

When disabled, the nb__manage_users tool is not registered and returns an error if called via the API.