Sign in for the first time¶
- Open Hangar's public URL, such as http://localhost:8080.
- Sign in as
hangar-adminwith the password Hangar generated on first start, or the one you set inHANGAR_SECURITY_BOOTSTRAP_ADMIN_PASSWORD. Hangar saves a generated password asbootstrap_admin_passwordinsecrets.yamlinserver.data_dir; with Docker, read it withdocker cp hangar:/var/lib/hangar/secrets.yaml - | tar -xO | grep bootstrap_admin_password. - Choose your own password: open Settings, Profile, enter the generated password as the current password, then your new password twice, and select Change password. The new password needs at least 10 characters and cannot be a common password. Your other sessions are signed out; this one stays signed in. On the same page you can set your display name and email.
Create a Token¶
Clients send a Token as a bearer token (Hub API and native API) or as the git password. Only git and git-lfs accept a Token as a password.
- Open Settings, Tokens, and select Create Token.
- Choose a scope:
readto download,writeto also upload and start Pulls, oradminfor every other kind of administration. Permissions lists what each scope allows. You can limit a Token to some Namespaces or Repos, and give it an expiry. - Copy the secret, which starts with
hgr_. It is shown once.
Or let the CLI create one with a device-code sign-in:
hangar login --url http://localhost:8080
Add people¶
Self-registration is off by default (security.registration: closed). As an admin, open Admin, Users to create invite links, or connect an OIDC provider so people sign in with accounts they already have; see OIDC.
Next: Pull your first model.