getting-started

// install → identity → register → run → host → store privately → scrape

[1] install the cli stack

$ curl -fsSL https://c0mpute.com/install.sh | sh

Installs three binaries into ~/.c0mpute/bin: c0mpute, coinpay, infernet. No sudo. The worker self-upgrades every 60 seconds.

[2] sign in everywhere

$ c0mpute login

Signs in to coinpay (payments + your payable DID) and infernet (ties this node to your infernetprotocol.com account), one at a time. c0mpute worker register then sets up the DID automatically (uses your existing one or creates it).

[3] run a worker

$ c0mpute worker register
$ c0mpute worker start --gpu

[4] submit a job

$ c0mpute transcode submit input.mov --preset hls --max-price 1.25
$ c0mpute infernet chat --model huihui_ai/qwen3.5-abliterated:4b "hello"
$ c0mpute crawl fetch https://example.com/ --max-price 0.01
$ c0mpute job status <job-id>

Scraping many pages at once? See step 10.

[5] interactive tui

$ c0mpute tui

Live worker / job dashboard, terminal-native (react-blessed).

[6] upgrade & uninstall

$ c0mpute update              # check for + apply new release
$ c0mpute upgrade --check     # alias; just check, don't apply
$ c0mpute uninstall           # remove c0mpute
$ c0mpute uninstall --all     # remove c0mpute, coinpay, infernet
$ c0mpute uninstall --purge   # also remove ~/.config/c0mpute

[7] check the stack

$ c0mpute doctor

Also lists every c0mpute worker, unit and identity on the machine. Run one worker per identity: starting a second one replaces the first, and c0mpute doctor --fix removes a leftover second unit (a system unit next to your user unit is the usual one). Copying ~/.config/c0mpute to another machine copies the node's identity too; delete identity.key in the copy first. troubleshooting

[8] host a site on c0mpute and point a Moshpit name at it

Publish a directory of static files once. Hosting nodes keep three copies, replace any copy whose node disappears, and every c0mpute gateway serves it. Live example: alt.2600 is site 76eaa600f9373b7dd35b, also at gateway.c0mpute.com/s/76eaa600f9373b7dd35b/ and, for browsers without Moshpit DNS, alt.2600.pit.world.

publish (after step 1):

$ c0mpute storage key init --backup-to ~/c0mpute-identity.backup   # once, on your first machine
$ c0mpute hosting publish ./public --name mysite
c0mpute identity password (signs your sites):
site:    76eaa600f9373b7dd35b
owner:   your account key (3f2a9c41d0e7…)
version: 1794403490504
copies:  3/3
url:     https://gateway.c0mpute.com/s/76eaa600f9373b7dd35b/

$ c0mpute hosting ls --mine   # your sites, with live copy counts

The site belongs to you, not to the machine you published from: it is signed with your account key, derived on your machine from your c0mpute identity (the same one c0mpute dm and private storage use). c0mpute.com and node operators never hold that key, so nobody but you can publish to or change your site. Any gateway serves it at /s/<site_id>/, for example https://gateway.c0mpute.com/s/<site_id>/, with byte ranges so video seeks. Limits: 64 GiB per free site, 4 TiB with --disks auto. Sites over 1 GiB are striped over the network in 64 MiB groups; run the same command again to resume an interrupted publish.

re-deploy (update the same site, same URL):

$ c0mpute hosting publish ./public --name mysite   # same --name = new version of the same site

That is the whole re-deploy: the site id, its /s/<site_id>/ URL, its Moshpit name and its domains all stay put, and gateways serve the new version within a minute (they cache for 60 s). Unchanged files are not uploaded again. The folder remembers which site it is in .c0mpute/site.json (hidden, never published); commit it with your site so every checkout re-deploys to the same place. Scripts and CI unlock the identity with C0MPUTE_DM_PASSWORD.

publish from another machine:

# copy your identity once (or restore the backup you saved)
$ scp ~/.config/c0mpute/chat.key laptop:.config/c0mpute/chat.key
laptop$ c0mpute hosting publish ./public --name mysite   # same site, same URL

Same identity, same --name, same site, from any machine. Without the identity a machine cannot sign for your site, and publish stops rather than quietly making a second site with a new URL: it names the site the folder belongs to, and if the name is already live under another key it asks first (--new-site to really make a separate one).

sites published before 0.3.73 (owned by one machine):

old-machine$ c0mpute hosting publish ./public --name mysite --move
moved:   ea0e1f5afde44477e71d (this machine's key) is empty now; mysite lives at <new_site_id>
repoint: moshcode name c0mpute <your.name> <new_site_id>   and any TXT _c0mpute-hosting.<domain> "site=<new_site_id>"

Older sites were signed with the publishing machine's key and keep working as they are: publishing them again from that machine still updates them in place. Run --move once on that machine to hand the site to your account key. The site id changes that one time, so repoint its Moshpit name and domains; after that it re-deploys from anywhere.

take it down:

$ c0mpute hosting rm --name mysite   # finds the key that owns the live site
$ moshcode name c0mpute alt.2600 off  # and stop pointing the name at it

point a Moshpit name at it (free to register):

$ moshcode name c0mpute alt.2600 76eaa600f9373b7dd35b
$ moshcode dns resolve alt.2600
alt.2600 → edge.c0mpute.com

$ moshcode name c0mpute alt.2600 off  # stop serving it from c0mpute

The registry now answers the name with the c0mpute edge (edge.c0mpute.com). The edge holds a Moshpit CA certificate for the name and fetches /s/<site_id>/ from whichever gateway is healthy, so https://alt.2600 works for anyone on Moshpit DNS (moshcode dns enable installs the root) and http://alt.2600 works without the root. Pointing the name at a server again takes it off c0mpute.

or a domain you own:

$ c0mpute hosting publish ./public --name mysite --domain blog.example.org
# DNS:
#   TXT  _c0mpute-hosting.blog.example.org  "site=<site_id>"
#   A/AAAA  blog.example.org  ->  one or more gateways (TLS in front of :7777)

A gateway serves the domain only when both agree: the signed site record lists it and its TXT names the site.

pay hosting nodes to keep it (d1sks marketplace):

$ c0mpute hosting disks --country DE,FI     # what --disks auto would pick
$ c0mpute hosting publish ./public --name mysite --disks auto
$ c0mpute hosting publish ./public --name mysite --disks auto --max-price 0.01 --copies 3

Picks preferred hosts from d1sks, cheapest first. Keep a node running on the publishing machine: it challenges the holders and settles, as a dry run until [payments] is enabled. Free copies stay free.

run your own public gateway:

# ~/.config/c0mpute/config.toml  (gateway and hosting are default roles)
[gateway]
bind = "0.0.0.0:7777"
announce = "https://gw.example.org"   # TLS in front of :7777

An announced gateway is listed as gateway on /api/nodes, where the Moshpit edge and other clients find gateways to fetch sites from. More in docs/hosting.md.

[9] private storage

Anything you store that is not deliberately public is encrypted on your machine first, with keys only you hold. Node operators store, replicate and serve ciphertext and never get a key. Public sites (step 8) stay plaintext; everything else is private by default.

$ c0mpute storage key init --backup-to /media/usb/c0mpute-identity.json
$ c0mpute storage put taxes-2026.pdf          # encrypted here, 3 network copies
c0p1:3f0c9a1e5b7d2c4a8e6f
$ c0mpute storage get c0p1:3f0c9a1e5b7d2c4a8e6f -o taxes-2026.pdf

$ c0mpute storage key show                    # your c0ps1... identity, safe to share
$ c0mpute storage share c0p1:3f0c... --with c0ps1.Zb3...
$ c0mpute storage revoke c0p1:3f0c... --from c0ps1.Zb3...
$ c0mpute storage link c0p1:3f0c...           # https://gateway.c0mpute.com/p/<id>/#k=...

$ c0mpute hosting publish ./photos --name family --private
$ c0mpute storage mount ~/Private             # encrypted FUSE volume (Linux)
$ c0mpute storage put press-kit.zip --public  # plaintext, on purpose

Lost keys mean lost data. First use makes you save an encrypted backup of your identity; nobody can recover it for you. A link's key sits after #, which browsers never send to the gateway: the page decrypts in your browser.

What an operator can see: ciphertext, its size rounded up to a coarse bucket (at most about 12% over), and when it is written and read. What it cannot see: the content, file names, the exact size, or who it is shared with, and the object alone does not say who owns it. Full threat model in docs/private-storage.md.

[10] run a distributed scraper

Every worker fetches public pages for buyers by default (crawl.fetch): a static GET from the worker's own connection, robots.txt honoured, public addresses only, 1 MiB and 30 s per page. Send one job per URL and each gets its own auction, so a list spreads over the network's workers and their IPs.

start a local buyer bridge once:

$ export C0MPUTE_JOBS_TOKEN=$(openssl rand -hex 24)
$ c0mpute jobs serve --listen 127.0.0.1:8788 --max-price 0.01

one request per URL:

$ curl -s http://127.0.0.1:8788/v1/jobs \
    -H "Authorization: Bearer $C0MPUTE_JOBS_TOKEN" \
    -d '{"workload": "crawl.fetch",
         "spec": {"v": 1, "url": "https://example.com/", "timeout_ms": 20000},
         "max_price": 0.005}'
{"job_id":"…","worker":"12D3KooW…","price":0.0,"output_hash":"…",
 "result":{"v":1,"ok":true,"duration_ms":412,
           "output":{"url":"https://example.com/","status":200,"headers":{…},"body":"<!doctype html>…"}}}

fan a list out, 8 in flight:

$ grep -v '^#' urls.txt | xargs -P 8 -I{} curl -s http://127.0.0.1:8788/v1/jobs \
    -H "Authorization: Bearer $C0MPUTE_JOBS_TOKEN" \
    -d '{"workload":"crawl.fetch","spec":{"v":1,"url":"{}"}}' \
  | jq -c '{url: .result.output.url, worker, status: .result.output.status}'
{"url":"https://example.com/","worker":"12D3KooWA…","status":200}
{"url":"https://example.org/","worker":"12D3KooWQ…","status":200}

A refused or failed fetch still returns 200 with "ok": false and an error; 503 no_bids means no worker bid under your price. The worker sees the URL and headers you send, so keep secrets out of them or pin trusted workers with allow_peers. A runnable scraper (Node, no dependencies) is in examples/distributed-scraper; full reference at /docs#crawl.