Install and connect a worker
A worker runs Pidgen work on a machine you control. Install it on the machine that will execute
the work; you can use the CLI from other machines without installing a worker on each one.
The worker is the separate pidgen-worker program, with its own licence and credential.
Before you start
Section titled “Before you start”You need:
- The Pidgen CLI.
- Linux on x86_64 or aarch64, or macOS on Intel or Apple silicon.
uvon yourPATHfor the wheel runtime. Follow the uv installation instructions.- At least one coding-agent harness required by the worker release, available on
PATH.pidgen doctorlists the release's requirements and any missing commands. - Permission to enroll a worker: an Account Owner or Administrator, or an eligible Personal API
Token with
workers:enroll. - Network access to Pidgen and the package and verification services used to install the worker.
The wheel runtime installs the worker into its own Python 3.12 environment using uv. You do
not need to install pidgen-worker yourself first.
1. Run guided setup
Section titled “1. Run guided setup”In a terminal on the worker machine, run:
pidgen setupSetup checks the machine, signs you in if needed, lets you choose an Account when you belong to several, and asks about the runtime. It then installs and verifies the worker, enrolls the machine, starts the worker in the background, checks its connection, and runs worker diagnostics. Review the worker licence notice during installation; installing accepts that licence.
Guided setup currently supports the wheel runtime. Container installation and management commands are available, but container enrollment through the CLI and guided container setup are planned. Follow the wheel path for a complete CLI setup today.
You can answer the runtime question and name the worker in advance:
pidgen setup --runtime wheel --label development-workerFor another Pidgen server, add --url https://pidgen.example.com, replacing the placeholder with
your server address. Setup prints each command it runs. If a step fails, read error.details.fix,
resolve the issue, and run setup again; completed steps are detected and skipped.
2. Confirm the worker is ready
Section titled “2. Confirm the worker is ready”pidgen worker statuspidgen worker doctorIn the status result, check the following; with --format json they are these fields:
data.runningistrue: the recorded worker process is running locally.data.server.enrolledistrue: the Account recognizes this machine's worker.data.server.worker.connectedistrue: Pidgen reports a connection.data.server.worker.revoked_atisnulland itsprotocol_stateiscurrentoroutdated: the credential has not been revoked and its protocol is still accepted. Update an outdated worker.
Status can succeed while reporting a stopped worker or a server warning. Read those fields and its
warnings (data.warnings), not just whether the command succeeded. The server view requires a CLI credential for an Account Owner
or Administrator; a Personal API Token cannot read it. Ask an Owner or Administrator to confirm
the connection when your credential cannot, and use worker diagnostics to check the local setup.
The worker's diagnostics should pass. For a project's work to execute, its coding agent and
repository access must also be ready; inspect diagnostic fixes and the server's
git_credentials report for missing repository credentials.
A connected worker alone does not prove that a ticket has run or delivered a change.
What runs on the machine is documented by the worker itself: set its capacity and pool sizes in Configure the worker, and prepare coding agents and their subscriptions in Coding agents.
Use separate commands for automation
Section titled “Use separate commands for automation”pidgen setup requires a terminal even when you supply its flags. Coding agents and scripts
should use the individual commands. After authenticating, run these steps
in order, checking each result before proceeding:
pidgen doctorpidgen worker install --runtime wheelpidgen worker verifyuv tool update-shellOpen a new shell after updating PATH, and check command -v pidgen-worker. Alternatively, set
PIDGEN_WORKER_BIN to the installed executable path returned as data.location by the install
command. Then:
pidgen worker enroll --no-install --label development-workerpidgen worker start --detachpidgen worker statuspidgen worker doctorEnrollment creates the worker enrollment immediately and does not start it. Background startup checks that the process stays alive for two seconds; it does not wait for the server connection. Check status again until the server reports it connected. See Worker reference for enrollment failures, lifecycle behavior, and automation details.
Operate your worker
Section titled “Operate your worker”| Task | Command |
|---|---|
| Inspect status and update availability | pidgen worker status |
| Check the worker's own configuration | pidgen worker doctor |
| Stop the background worker | pidgen worker stop |
| Start it again | pidgen worker start --detach |
| Install an update and restart | pidgen worker update --restart |
Updates happen when you request them. A detached worker runs in the background; automatic startup after a machine reboot is not configured by these commands. Start it again after rebooting, or run the worker under a service manager as described in Run as a service.
The worker's own documentation covers the rest of operating it on this machine: Configure the worker for capacity and pool sizes, Coding agents for harnesses and subscriptions, and Worker troubleshooting codes for problems the worker reports.
For installation or connection problems with the CLI commands, use Worker troubleshooting. Next: Install agent skills, including the worker setup skill, or create your first ticket.