# admin (https://docs.neuralisapp.com/admin)

<Callout title="Maturity: stable (85 %)">
**Admin.** One dashboard for owners and administrators to manage projects, members, roles, credentials, platform config, usage, audit and health, every action gated server-side.

- Admin adds no agent tools or slash commands; agents reach administration through its skills and the routes they wrap.
- Stored credential values are write-only; no screen or route reads a secret back.
- Credential-use limits apply platform-wide per credential; model provider keys are governed by spend limits instead.
- A vector reset is platform-wide and also deletes all brain:// content and its version history.

[How maturity is measured](https://docs.neuralisapp.com/getting-started/maturity.md)
</Callout>

`@neuralis/admin` is the management layer of the platform. The owner and the
admins use it to govern a workforce of humans *and* agents: who is in which
project, what each role may do, what the work costs, which secrets exist at
which scope, and what happened. Operating Neuralis day to day is closer to
managing a department than babysitting a server.

It is a builtin native package that runs in-process. It ships the
[Admin widget](https://docs.neuralisapp.com/admin/app-surfaces.md), six [management skills](https://docs.neuralisapp.com/admin/skills.md),
one [workflow template](https://docs.neuralisapp.com/admin/workflows.md) and a set of feature-gated
[routes](https://docs.neuralisapp.com/admin/routes.md). It ships **no tools and no commands**: an agent
operates the platform through a skill whose calls hit the same routes the
widget uses.

## What it covers [#what-it-covers]

- **System overview**: health checks (vector store, disk, memory, configured
  LLM providers), package and stream status, and dashboard KPIs.
- **Usage**: time-bucketed token and cost series grouped by model, agent,
  user or project, aggregated on the server.
- **Users and projects**: membership, invitations, account lifecycle and
  per-project spend limits.
- **Roles**: feature grants and role priority, edited per project.
- **Platform configuration**: runtime settings, model endpoints, the release
  check and the vector store.
- **Credentials**: the scope-aware encrypted credential store (platform,
  project, user, agent). See [Credentials](https://docs.neuralisapp.com/package-system/credentials.md).
- **Packages**: the project's packages and the host's package requests.
- **Audit and logs**: the append-only audit log and per-source logs.
- **Organization canvas**: a graph of users, agents and their ownership.
- **The Neuralis home source**: one declared source on the whole Neuralis
  data folder, user-scoped and read-only; its platform state, logs and
  projects are readable and every secret stays closed. Seeing and attaching it
  needs `sources.privileged`, which no role below admin holds.

## Two feature tiers [#two-feature-tiers]

Every admin capability is a feature. A `project.*` feature acts **inside**
the caller's current project; a `platform.*` feature **crosses the project
boundary**. Every role holds `project.dashboard`, so every member sees the
system overview. The `admin` role holds the project-tier features, and the
`owner` role holds every feature. **No `platform.*` feature is granted to any
role by default**, so a project admin is confined to their own projects until
an owner grants more. The complete list of the 18 features is on
[Features](https://docs.neuralisapp.com/admin/features.md).

## Users and projects [#users-and-projects]

There is no self-registration: accounts exist because setup or an admin
created them. Membership actions (add, remove, change a role) act on one
project and follow its role rules, and each is audited. A caller can never
assign a role stronger than their own (see [Roles](https://docs.neuralisapp.com/enterprise/roles.md)).

Actions on the **account itself** (disable, re-enable, reset the password,
rename, delete) are allowed only to an admin who governs the user in **every**
project the user belongs to, with a role at least as strong as theirs in each.
Deleting also needs `platform.users`, and so does any action on a user who
belongs to no project. Nobody can act on their own account this way.

Disabling an account or resetting its password signs the user out on every
device. A disable is refused if it would leave a project without an active
owner. Deleting a user is an offboarding: the admin first sees which projects
would refuse it and which personal credentials go with the account; the
account is then kept as a deleted record, so history stays attributed and the
address can be invited again. If no one can act in the app any more, an
operator on the host runs `npx neuralis user list`, `enable <email>` or
`reset-password <email>`; each change is confirmed and audited.

## Usage and spend [#usage-and-spend]

The dashboard combines KPIs, health checks and a usage chart over 24 hours,
7 days, 30 days or all time. A cross-project series needs `platform.projects`
and per-user spend needs `platform.users`, because per-user spend is user
data. A viewer with only the default grant sees their project's aggregate,
never colleagues' line items. Every money figure is an estimate priced from
the model catalog's list rates, so it can overstate a charge, never understate
it. Spend limits per project, role, member or agent are described in
[Multi-tenancy](https://docs.neuralisapp.com/enterprise/multi-tenancy.md#per-project-limits).

## Audit and logs [#audit-and-logs]

Security-relevant events land in an append-only audit log in the platform
zone. No record is ever deleted: past the size limit the file rotates and every
older generation stays readable from the Logs tab. Recorded actions include
logins and failures, user, project, agent and package lifecycle, credential
reads and writes, config writes, connect flows, every successful shell call and
every refused tool call, every skill-originated API call, and each custom role
an update's permission merge widened or narrowed (`role.features_merged`).

Reading the audit log, the route log and the native packages' own logs needs
`platform.audit`, because their entries carry no project id and span every
tenant. The project-scoped logs (a project-installed package's log and the
per-agent run logs) need `project.audit`. On disk, the package's own `audit`
and `logs` folders deny reading by default; only an owner- or admin-strength
role re-opens read, and no role can write them. That path rule is a second
line of defence; the cross-project gate is the `platform.audit` feature.

## Maintenance [#maintenance]

- **Cache clear and rescan** (`packages.manage`) pick up packages dropped into
  a project while the host runs.
- **Vector status** (`platform.vector`) probes the vector store. The
  destructive reset has its own feature, `platform.vector`, and requires
  the literal confirmation `RESET` in the request body.
- **Release check**: the admin package checks the published release line and
  notifies holders of `platform.config`. It installs nothing. Its settings are
  on [Config settings](https://docs.neuralisapp.com/admin/config-settings.md).

For infrastructure probes use `GET /api/health` (see
[Deployment](https://docs.neuralisapp.com/enterprise/deployment.md)). The security rules behind all of this
are on the one [Security](https://docs.neuralisapp.com/enterprise/security.md) page.

## Folder map [#folder-map]

| Package folder | Doc page |
| --- | --- |
| `src/routes/` | [Routes](https://docs.neuralisapp.com/admin/routes.md) · [Features](https://docs.neuralisapp.com/admin/features.md) |
| `app/admin/` | [App surfaces](https://docs.neuralisapp.com/admin/app-surfaces.md) |
| `skills/` (6 bundles) | [Skills](https://docs.neuralisapp.com/admin/skills.md) |
| `workflows/` | [Workflows](https://docs.neuralisapp.com/admin/workflows.md) |
| `package.json#neuralis.configSettings` | [Config settings](https://docs.neuralisapp.com/admin/config-settings.md) |