The private-gpt CLI covers the full service lifecycle: starting the HTTP server, launching background workers, and running connected apps like Claude Code.
Starts the uvicorn HTTP server.
Examples:
PID file behavior: if --pid-file is given and the file already exists with a live process, the command exits with code 1 and prints the existing PID. On SIGTERM the PID file is removed.
Starts the Celery worker stack. All behaviour is controlled through environment variables — no CLI flags.
The worker process manages up to three sub-processes depending on PGPT_WORKER_MODE:
Examples:
Launches a connected app as a managed child process, automatically injecting the server connection details.
See the Integrations section for app-specific setup guides.
Server auto-start: before launching the app, private-gpt run checks /health. If the server is not reachable it starts one automatically and waits up to 60 s. Pass --no-server to skip this — useful when the server is managed externally (systemd, Docker).
Show help for any command:
Unknown commands print a suggestion: