Skip to main content

Create the first admin and inventory

Create the first admin​

The first admin you create is the root admin: MiniPAM's built-in administrator. Nobody can disable or demote it, and you can always reset its password from the command line.

If you followed Quick start with Docker or Install from source, you already set a bootstrap token while you created the configuration file. Go straight to Sign in with the bootstrap token.

Otherwise, set a bootstrap token first, or create the root admin from the command line.

Set a bootstrap token​

The bootstrap token is a one-time secret for creating the root admin from the browser. Generate one with openssl rand -hex 32, set it as bootstrap-token in the server configuration file, and restart the server.

Sign in with the bootstrap token​

  1. Open MiniPAM. Because no admin exists and a bootstrap token is set, the login page shows Create initial admin. Fill in Bootstrap token, Admin username, Admin password (at least 8 characters), and Confirm password, then choose Create Admin. You are signed in straight away.
  2. Set bootstrap-token: "" in the configuration file and restart the server.

The token is single-use. Once the root admin exists, MiniPAM rejects it and the form never comes back. Step 2 only removes it from the file so it does not linger.

From the command line​

This needs no bootstrap token. You are prompted for the password. Replace <your-admin-login> with the login name you want.

With Docker:

docker exec -it minipam python cli.py auth set-root --loginname <your-admin-login>

Without Docker:

cd app-server
../.venv/bin/python cli.py auth set-root --loginname <your-admin-login> --config config.local.yml

The same command also resets a forgotten password. It always acts on the root admin: if you pass a different login name later, it renames the root admin to that name. Without --loginname, the name is root.

Choose workspace features​

On first sign-in MiniPAM asks which parts of the product you want to see. Inventory is always on and covers basic use. Templates adds dynamic configuration and Discovery adds dynamic inventory; both start switched on. Ways to use MiniPAM describes each one.

Switch off what you don't need, then choose Save and continue. If you are unsure, switch both off; the rest of this page needs nothing else. You can change this at any time from your user menu under Workspace features. It only affects your navigation.

Record your first site​

A site is a location or boundary, such as Home, Workshop, or Amsterdam office. Every network, device, and agent belongs to one site, so two sites can safely reuse the same private ranges.

A fresh install has no site yet, so the overview and the inventory pages show Create your first site. Choose Go to Sites, or open Administration → Sites, and create one. Then pick it in the Active site selector at the top of the page; most pages show only the active site.

MiniPAM Sites page listing sites with their location and time zone
Sites scope everything else.

Add a network​

Open Inventory → Networks and create the network with its real CIDR, for example 192.168.1.0/24, and its gateway. Add a VLAN only if it means something in your setup.

Then add pools for ranges with a purpose, such as DHCP clients or Infrastructure, under Address pools.

MiniPAM Networks page showing two CIDRs, gateways, and address usage
Networks show their CIDR, gateway, VLAN, and how full they are.

Add devices​

Start with what everything else depends on: the router, a hypervisor, a NAS, or a switch. For each device:

  1. Create it under Inventory → Devices (or Servers for compute).
  2. Add an interface with its MAC address.
  3. Assign the device's IP address to that interface.

Devices and Servers are two views of the same inventory, so add each machine once. See Devices, servers, and interfaces.

Add a service​

If you run something people use, such as Home Assistant or Grafana:

  1. Add an application on its device: the port and protocol it listens on.
  2. Add a service with the name people know it by, and attach the application.

See Applications, services, and gateways.

Check your work​

Press Ctrl+K (⌘K on macOS) and search for a device name or an address. Open Inventory → IP addresses → Map and look at the network's address space. Fix anything ambiguous now; it is easier than later.

Next steps​