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.
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/amd64andlinux/arm64, in acpuand acuda(NVIDIA GPU) variant. - Official Helm chart
oci://registry.piap.io/piap/charts/nodefor 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:
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 statusThen follow the guides: requirements, the token, Docker, Kubernetes and the rest of the configuration.
Guides
Requirements
Hardware, system and network a server needs to share with the official image.
Server tokens
Create the token that connects your servers and pulls the image from the piap registry.
Docker and Docker Compose
Run the official image on a Linux server, with or without a GPU.
Kubernetes and Helm
Plain manifests or the official Helm chart, with or without a GPU.
Clouds and on-premises
Guides for AWS, Google Cloud, Azure, other GPU providers and your own servers.
Environment variables
Every container option and its exit codes.
Monitoring
My computers, health, status, metrics and logs.
Updates and signatures
How to update without losing requests and how to verify the image is the official one.
Security
What your server sees, how it is isolated and how to look after the token.
Troubleshooting
The most common errors and how to fix them.
Frequently asked questions
Short answers to the most common questions about servers on piap.