piap on servers

Developers

Add your servers, cloud machines or Kubernetes cluster to the piap network with the official computer image. No desktop and no manual sign-in: one token, one container and you are done.

Updated:

What it is

The official image registry.piap.io/piap/node is the piap computer without an interface: the same program that runs inside the desktop app, packaged for Linux servers, clouds and Kubernetes clusters. Every container or pod you start shows up in your Account as one more computer, labeled Server.

Your server handles requests from the network with the piap model engine, which ships inside the image. Models download on their own to the data volume, based on what the server can run and what you allow.

  • Server tokens: you create them in your Account, with scopes and an expiry, and they replace signing in.
  • piap registry (registry.piap.io): where you pull the official image and the Helm chart, with the same token.
  • Official image for linux/amd64 and linux/arm64, in a cpu and a cuda (NVIDIA GPU) variant.
  • Official Helm chart oci://registry.piap.io/piap/charts/node for Kubernetes.

How you earn

Your server earns credits for the tokens it actually generates for other people's requests, under the same rules as any computer on the network: request pricing, the network fee, reputation and payouts work just like in the app. There is no fee for being connected: you earn for work done.

If the server shuts down or restarts while handling a request, the graceful shutdown hands it back to the network so another computer can take it, with no penalty to your reputation.

Your own requests, without credits

With PIAP_OWN_USE=on (the default), your own requests can go to your servers without spending credits, just like using your own computer with the app. It is a direct way to put your hardware to work for you and your team, and lend it to the network when you are not using it.

Quick start

With a server token that has the pull and computers scopes and Docker installed, this is all it takes to have a computer sharing within minutes:

bash
read -rs PIAP_TOKEN && export PIAP_TOKEN
echo "$PIAP_TOKEN" | docker login registry.piap.io -u token --password-stdin
docker run -d --name piap-node --restart unless-stopped --stop-timeout 90 \
  -e PIAP_TOKEN -v piap-data:/data --read-only --tmpfs /tmp \
  registry.piap.io/piap/node:cpu
docker exec piap-node piap-node status

Then follow the guides: requirements, the token, Docker, Kubernetes and the rest of the configuration.

Guides