First start
Open the interface for the first time and protect it with a primary access token.
On this page
OpenTemplates has no user accounts. The interface is protected by one primary access token. Until you set it, anyone who can reach the server can open the interface, so set it first.
Open the interface
Open http://localhost:8000/setup/. The start page shows the three parts of the interface. The same icons are always in the menu on the left.

- Profiles: your profiles, their templates and the logs.
- Tokens: the API tokens your apps use.
- Configuration: the name of the app, the primary access token and the Total.js API token.
Set the primary access token
1. Click Configuration.
2. Under Security, click Generate. A new random token fills the Primary access token field. You can also type your own.
3. Click SUBMIT.
4. OpenTemplates says that the configuration has been saved and that the app needs to be reloaded. Click OK. The interface opens again at /setup/?token=....
5. Bookmark that address or keep the token in your password manager. You need it every time you open the interface.
Open the interface with the token
From now on, open the interface with the token in the address:
http://localhost:8000/setup/?token=YOUR_PRIMARY_TOKENWithout the token, /setup/ answers 401 Unauthorized. With the token the start page is empty: use the icons in the menu on the left.
The primary access token only opens the interface. Your apps use their own API tokens to render templates.
Change the token
Open Configuration, enter or generate a new Primary access token and click SUBMIT. The old token stops working at once.