Agentic hosting is here. Connect to our MCP now
CloudLinux.ro
Applications

How to install Pocket ID on a Cloud VPS

Updated 11/29/2026

Pocket ID is a simple, passwordless OpenID Connect provider: you and your team sign in with passkeys (fingerprint, Face ID or a security key) to the applications that support OIDC, such as Immich, Nextcloud or Grafana.

Running the tool on your own server means unlimited use without sending data to external services.

One-click install on cloudlinux.ro

The fastest way: Pocket ID installs automatically at the first boot of a new server.

  1. Create a Cloud VPS from the control panel.
  2. In the configuration step, pick Pocket ID from the app catalog.
  3. Start the server. The install runs in the background for a few minutes and its status shows on the server page.
  4. Access details and generated passwords are saved on the server in /root/app-credentials.txt.

Manual install on any Ubuntu server

If you prefer doing it yourself, below is the exact script our automatic install runs. Execute it as root on a fresh Ubuntu server (24.04 recommended). It stops at the first error, and when it finishes you will find the access details in /root/app-credentials.txt.

export DEBIAN_FRONTEND=noninteractive
cl_firewall
curl -fsSL https://get.docker.com | sh
apt-get install -y jq
mkdir -p /opt/pocket-id
cd /opt/pocket-id
cat > .env <<ENV
APP_URL=https://${CL_HOSTNAME}
ENCRYPTION_KEY=$(openssl rand -base64 32)
TRUST_PROXY=true
ANALYTICS_DISABLED=true
ENV
chmod 600 .env
# v2 is pinned (v3 is in development); the port stays on loopback, so trusting the proxy is safe.
cat > docker-compose.yml <<'YML'
services:
  pocket-id:
    image: pocketid/pocket-id:v2
    restart: unless-stopped
    env_file: .env
    ports:
      - "127.0.0.1:1411:1411"
    volumes:
      - pocket-id-data:/app/data
    healthcheck:
      test: ["CMD", "/app/pocket-id", "healthcheck"]
      interval: 1m30s
      timeout: 5s
      retries: 2
      start_period: 10s
volumes:
  pocket-id-data:
YML
docker compose pull
docker compose up -d
for i in $(seq 1 60); do curl -fs -o /dev/null http://127.0.0.1:1411/healthz && break; sleep 5; done
curl -fs -o /dev/null http://127.0.0.1:1411/healthz
# The setup page makes its first visitor admin: claim it here, before the site is public.
jq -n --arg email "admin@${CL_HOSTNAME}" '{username: "admin", email: $email, firstName: "Admin", lastName: "Cloudlinux"}' \
  | curl -fs -o /dev/null -X POST http://127.0.0.1:1411/api/signup/setup -H 'Content-Type: application/json' -d @-
LINK=$(docker compose exec -T pocket-id /app/pocket-id one-time-access-token admin | grep -o 'https://[^ ]*' | head -1)
{
  printf 'Pocket ID: utilizator admin. Autentificarea se face cu passkey, nu cu parola.\n'
  printf 'Link de prima autentificare (valabil o ora de la instalare): %s\n' "$LINK"
  printf 'Dupa deschiderea lui inregistrezi passkey-ul (amprenta, Face ID sau cheie de securitate).\n'
  printf 'Link nou oricand: cd /opt/pocket-id && docker compose exec pocket-id /app/pocket-id one-time-access-token admin\n'
  printf 'Actualizare: cd /opt/pocket-id && docker compose pull && docker compose up -d\n'
} > /root/app-credentials.txt
cl_expose 'Pocket ID' 1411

You can also save this script as a recipe in your account and reuse it on any new server.

Put this guide into practice on your own VPS

EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.

See pricing

Related tutorials