Community Edition
Ce contenu n’est pas encore disponible dans votre langue.
Pia Server is available as a free Community Edition for self-hosting. You get local authentication, AI proxy with bring-your-own API keys, cloud sync between desktop clients, and an admin dashboard — all running on your own infrastructure.
What’s Included
Section titled “What’s Included”| Feature | Community Edition |
|---|---|
| Local authentication | Yes |
| AI proxy (BYOK) | Yes |
| Cloud sync | Yes |
| Admin dashboard | Yes |
| OAuth (Google/Microsoft) | — |
| E2EE / device management | — |
| Max desktop users | 5 |
| Max admins | 1 |
Getting a License
Section titled “Getting a License”- Register for a free account at pia-ai.de
- Navigate to your account settings and select Community License
- Download your
license.jsonfile
The license is version-locked to the current major release. When a new major version ships, re-register for a new license (always free for Community Edition).
Docker Setup
Section titled “Docker Setup”The fastest way to get started. A single Docker image serves all editions — the license file determines which features are enabled.
Quick Start
Section titled “Quick Start”docker run -d \ --name pia-server \ -p 8080:8080 \ -v ./license.json:/app/license.json \ -v ./data:/app/data \ ghcr.io/pia-ai-dev/pia-server:latestYour server is now running at http://localhost:8080.
Docker Compose
Section titled “Docker Compose”For production use, create a docker-compose.yml:
services: pia-server: image: ghcr.io/pia-ai-dev/pia-server:latest ports: - "8080:8080" volumes: - ./license.json:/app/license.json - pia-data:/app/data environment: - JWT_SECRET_KEY=<generate-a-random-64-char-string> restart: unless-stopped
volumes: pia-data:docker compose up -dManual Setup
Section titled “Manual Setup”If you prefer running without Docker:
- Download the latest server binary from the releases page
- Place your
license.jsonin the same directory as the binary - Run the server:
./Pia.ServerFirst-Time Setup
Section titled “First-Time Setup”If the server starts without a license file, it enters setup mode:
- Open
http://localhost:8080in your browser - You’ll be redirected to the setup page
- Either upload your
license.jsonfile or paste the license content - The server activates immediately — no restart needed
Configuration
Section titled “Configuration”Configure the server using environment variables:
| Variable | Default | Description |
|---|---|---|
JWT_SECRET_KEY | — | Secret key for JWT token signing (required) |
LICENSE_PATH | ./license.json | Path to the license file |
DATABASE_PATH | ./data/pia.db | SQLite database file location |
URLS | http://+:8080 | Listen address and port |
Reverse Proxy
Section titled “Reverse Proxy”For HTTPS in production, put a reverse proxy in front of Pia Server.
pia.example.com { reverse_proxy localhost:8080}Caddy handles TLS certificates automatically via Let’s Encrypt.
server { listen 443 ssl; server_name pia.example.com;
ssl_certificate /etc/letsencrypt/live/pia.example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/pia.example.com/privkey.pem;
location / { proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }}Connecting Desktop Clients
Section titled “Connecting Desktop Clients”Once your server is running:
- Open Pia desktop client
- Go to Settings > Cloud Sync
- Enter your server URL (e.g.,
https://pia.example.com) - Create an account or sign in
Up to 5 desktop clients can sync through a Community Edition server.
License Management
Section titled “License Management”After activation, manage your license from the Admin Dashboard:
- View current license info (edition, features, limits)
- Replace your license for version upgrades
- See which features are enabled vs. locked
Upgrading to Enterprise
Section titled “Upgrading to Enterprise”Need OAuth, E2EE, or more users? Contact us about an Enterprise license at pia-ai.de. The upgrade is seamless — just replace the license file. Same server, same data, more features.