postiz auth:login uses the hosted auth server at cli-auth.postiz.com by
default. That works fine against a self-hosted Postiz too, since the server
only mediates the device flow. Run your own if you would rather no third party
sat in the login path.
The auth server mediates the OAuth2 device flow so CLI users can authenticate without needing client credentials of their own.
Prerequisites
- Node.js >= 18
- PostgreSQL
How It Works
1. Clone the Repository
The auth server lives in the postiz-agent repository:2. Create an OAuth App in Postiz
Go to Postiz Settings > Developer > OAuth Apps and create a new app. Set the callback URL to:3. Set Up Postgres
Create a database. The server auto-creates thedevice_requests table on startup.

