Sign in for the first time¶
- Open Hangar's public URL, such as http://localhost:8080.
- Sign in as
hangar-adminwith the password Hangar printed on first start (docker logs hangar), or the one you set inHANGAR_SECURITY_BOOTSTRAP_ADMIN_PASSWORD. - Choose your own password: open Settings, Profile, enter the printed 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:
readdownloads;writealso uploads and starts Pulls, and letshuggingface_hubdelete, rename and change the visibility or gating of Repos you are an admin of;adminalso does every other Repo administration, such as webhooks, collaborators and transfers, and manages the Members of Organisations you administer. 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.