Run a FLOP miner on a GPU host
First select your network and release using the operator guide. For FLOP Testnet, read Mine on Testnet below for its endpoints, sponsorship and admission rules; the rest of this guide describes devnet. Nothing here configures mainnet.
Already running a miner? Follow the upgrade manual for release compatibility, draining existing work, state preservation and rollback.
To test your own host or choose a known provider, see Send a request to a specific miner. The installer pack (not yet published) includes session-test.sh, which runs the CLI image against 127.0.0.1:8645, verifies a turn and settles with the named miner. The direct SDK and local MCP use channel-bound signatures; the shared bearer remains available for broker sessions. The miner must be calibrated and serve the exact registered model identity before it acknowledges a direct request.
Availability (29 September 2026): devnet development only. A current miner is a CPU miner-worker paired with a GPU miner-vllm-toploc backend. The backend runs the model; the worker signs chain operations, handles compute-channel sessions, publishes TOPLOC evidence, and renews host-wide calibration. SOFT is the default tier and needs no confidential-computing hardware. Its full settlement/dispute path remains open (tracked as FLOP issue #650); HARD is specified but its bridge is not deployable. This guide does not promise mainnet participation or earnings.
The runnable path is both services on one Docker-capable NVIDIA VM or owned Linux host (see Choose a host below). Owning or renting the GPU and running the miner are one role: whoever operates the host owns the miner account, funds its stake and completes registration and calibration. Renting out GPU capacity alone does not make anyone a miner. New to crypto? Start with Put your GPU to work on FLOP, a plain-language overview. The old chain-node image examples in docs/guides/miner-docker.md are not the inference miner.
The FLOP source repository is private, so the issue numbers on this page are references, not links you can open. Where this page names a repository file (the Compose files, the env template), it ships in the public release pack (Set up with your agent). Decode policies are not sent: each registered model's allowlisted policies are published in <https://flop.network/releases.json> under models.<MODEL_HASH>.decode_policies, keyed by policy hash, and the pack's decode-policy.sh fills them in (see Pin the checkpoint and decode policy).
Automatic loading of Qwen3.8
The existing public Qwen/Qwen3.8-27B model needs a one-time host-controller and profile upgrade. Existing miners use this section rather than creating another account or repeating model registration in the new-miner steps below. Operators apply the upgrade with their own host access; no SSH credentials are shared.
The qualified controller image is ghcr.io/flop-labs/flop-core/miner-worker-hybrid:v0.1.211@sha256:d36097ec38b21b17374e60995b61d0ba0a9bf9fcb759066e4190637005cc4a40; the qualified backend is ghcr.io/flop-labs/flop-core/miner-vllm-toploc@sha256:b83cb974ed233046c6d33c9ce8d265619502b4868098a24bbf1af3570b2cf10e. Use these exact pins rather than floating latest or stable tags. Anonymous GHCR access to the hybrid worker is not currently established; obtain authorized registry access or the reviewed runtime-only bundle from the devnet operator. Keep registry credentials local. The default Alpine worker is not a replacement.
- Drain and retain state. Have the gateway operator pause new matching and new resident holds for this miner. Keep its owning worker running until existing reservations expire and signed/funded child work drains and reconciles. Preserve the miner account, signer, session/Ghost/audit keys, worker-data volume, lease and claim journals, private evidence and DA configuration. Do not run
down -v, regenerate keys or start a second Ghost publisher for the account. Keep other hosts serving while upgrading this one. - Install the reviewed controller package. The source installer now stages the host worker and its compatible containerized proof/DA wrappers from one approved version/digest, preserving existing keys and persistent paths. The package has not been published or accepted on a fresh GPU host. Obtain the reviewed runtime bundle and its new approved image pin/revision from the devnet operator; the historical 0.1.211 image above does not contain this installer. With the existing private host environment and loading profile configured:
sudo node controller.mjs install --config /opt/flop/controller-install.json \
--image 'ghcr.io/flop-labs/flop-core/miner-worker-hybrid:vX.Y.Z@sha256:DIGEST' \
--revision FULL_40_HEX_COMMIT
This is the same command for upgrades. Placeholders must be replaced by an actually published and access-verified release. It checks before stopping the managed owner, refuses retained work/holds or incompatible journals, and leaves admission drained until the operator checks doctor and explicitly resumes. The devnet operator supplies the configuration and rollback runbook with the access bundle. Keep host Node 24, local Docker/NVIDIA support and the existing authenticated HTTPS proxy. A legacy owner must be explicitly drained and stopped first; do not leave its old supervisor running.
- Prepare the approved checkpoint. Manual preparation remains supported. Stage
Qwen/Qwen3.8-27Bat revision1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0(about 55.6 GB, BF16). Require root0x9fe1ce953cd69531eb321e7da9cf40501d5feb54a2f12afc6918e455408d0426and policy0x33fd6e2dc14a56e75f051df90919ffc24cf99d87bacd5106c5ad83d48057f434with its JSON preimage. The normal finalized gates remeasure the checkpoint before loading. The source package integrates checkpoint preparation (#3180). Set the model profile's optional pinneddownloadsource for Hugging Face or approved validator storage exposing the same API; keep any source token in the private host environment. Afterresume, with gateway matching paused, an approved release advertisingcheckpoint-preparationaccepts:
sudo node /opt/flop/controller/current/controller.mjs prepare --config /opt/flop/controller-install.json --model qwen/qwen3.8-27b
Use doctor to inspect controller.preparations[] until phase: prepared. Existing manual bytes are verified without downloading; a failed job can be retried, and a draining controller or leased/held model refuses preparation. It refuses a controller without that capability. Combined CPU tests cover this source integration; no release containing it is published yet. Downloaded weights and controller health alone do not admit inference or grant spending authority. Configuration and rollback for the published controller package are in its README.
- Qualify and enable matching. The gateway operator configures the authenticated
onDemand: trueentry with current deployment evidence and existing budget limits. Use a gateway containing the conformance-renewal and idle-child fixes (qualified baseline 0.1.215). Require actual H200 capture/replay, accepted bonded calibration, live DA/retention and a positive finalized paid cold-load session through the bounded qualification route before external activation. A healthy backend or a registered model alone is insufficient.
For optional six-hour residency, merge this field into the matching existing models[] object in MODEL_LOAD_CONFIG_FILE:
{ "max_resident_reservation_ms": 21600000 }
The gateway operator merges these fields into its matching existing peer:
{ "onDemand": true, "residentReservationMs": 21600000 }
These are fragments, not complete replacement configurations. Both operators must opt in; the miner accepts the idle hold without an additional idle charge. The parent credential must cover the six hours from acceptance. Credential, spending and one-hour request/SLA bounds remain unchanged. Calls and channel rollover do not refresh the fixed expiry. Idle children still retire normally; the separate model reservation retains the process through zero-child gaps. Before downgrading, let holds expire and all child obligations reconcile: older workers cannot read an active v2 hold journal. Never clear or flatten that state.
Ordinary session requests then load the approved local checkpoint automatically; operators do not manually preload it for each request. The complete native Hermes Desktop tool/result loop has passed on an H100 with positive finalized payments. The completed H100 six-hour trial used the historical host wiring. Fresh-host acceptance of this new package and H200 fleet qualification remain separate gates.
Set up with your agent
Public pack (checked 10 November 2026). The manual release pack is published at <https://flop.network/releases/cli/miner-pack-devnet-ts-20261110/README.md>:
B=https://flop.network/releases/cli/miner-pack-devnet-ts-20261110
curl -fLO "$B/flop-miner-pack-devnet-ts-20261110.tar.gz" && curl -fLO "$B/README.md"
echo "72546fc4f020ec665d7b8c54aa0cddd336e95d2c93b650ca77e82e35607e8f0d flop-miner-pack-devnet-ts-20261110.tar.gz" | sha256sum -c -
Follow its README.md: create the miner account, ./sponsor.sh, ./decode-policy.sh, then start the Compose files. Its images (cli, miner-worker, miner-vllm-toploc) pull anonymously from ghcr.io/flop-labs/flop-core. No invitation is needed (see Join the devnet). The one-command installer pack below (install.sh) is not published yet; until it is, an agent follows the release pack's README instead.
A coding agent can follow the public flop-miner-devnet skill with the devnet operator's pinned public installer pack. The operator supplies the approved image digests, registered checkpoint identity and decode policy; the pack includes the TLS sidecar and public endpoint settings. On an Ubuntu 24.04 NVIDIA GPU VM, extract it into a fresh private directory and run:
tar xzf flop-miner-pack-public.tar.gz
cd flop-miner-pack
sudo ./install.sh miner-01 --public-host miner.example.com
Use your own machine and DNS names. The DNS name must resolve to this host and inbound ports 80 and 443 must reach it. --install-deps consents to dependency installation; otherwise the installer asks first. Rerun the same pack and command after an interruption, preserving its account, session/Ghost keys, tokens and Docker volumes. Sponsorship is automatic on devnet (see Join the devnet); a 429 saying automatic sponsorship is full means retry once a pending miner calibrates. An approved operator instead passes its grant: sudo GRANT_FILE=/root/grant.json ./install.sh ….
The public installer has CPU fixture qualification; live GPU capture/replay, finalized calibration, public DA, admission and positive paid-settlement receipts remain separate. Use --session-test <max-flop> only in a separately authorized live acceptance window. The existing release pack from just miner-pack OUT keeps its manual README, including the operator-owned tunnel recipe. Existing private packs retain their original private-network workflow.
Give the agent shell access to the GPU host, the downloaded pack, and how much it may spend or sign. Then ask:
> Use flop-miner-devnet and the public FLOP release pack to set up my GPU > host as a FLOP devnet SOFT miner. Use a registered model from the pack's releases.json, > gather missing non-secret inputs together, keep secrets on the host, and report > inference, registration, calibration and accepted-work evidence separately.
Keep the miner seed, keystore password and SESSION_AUTH_TOKEN in files on the host; do not paste or send them to anyone. The worker publishes its session endpoint and public session key in a signed endpoint ad. Outside-miner gateway admission does not require a token handoff; it remains unavailable until the public admission and paid-session gates below are qualified.
Choose a host
The validated serving drill used an NVIDIA A40 with Qwen2.5-0.5B-Instruct, BF16, and the worker and backend on the same host. Other NVIDIA cards may work if they fit the model, but each needs its own throughput and TOPLOC check. Calibration measures delivered work across the whole host: every attached GPU is counted once, in aggregate. Faster throughput means a larger capacity-stake requirement, so size that stake from live chain constants before renting.
The stock backend and gpu-inventory services expose all host GPUs (count: all). TENSOR_PARALLEL_SIZE selects serving ranks separately and defaults to 1; eight visible GPUs do not imply eight serving ranks. Use a separate miner account and persistent state for each host, and a model/GPU topology supported by your network release. Validate capture and calibration on that topology before admission; device inventory and a successful model load do not replace those checks.
Check an offered machine before paying for a long lease:
| Check | Why it matters |
|---|---|
| Full VM or owned host with Docker, Compose, NVIDIA driver and Container Toolkit | The backend Compose service reserves an NVIDIA GPU and mounts a local checkpoint. A provider's container-only product may forbid nested Docker. |
GPU visible to nvidia-smi on the host and in a Docker GPU test | Proves the rental actually exposes the card to the container runtime. |
| Enough disk for the exact checkpoint; persistent env, seed and worker volume | Model root and calibration state must survive restarts. |
| A public DNS name with ports 80 and 443 open to the host, or your own tunnel | The worker needs outbound access to the public RPC and mailbox; the gateway needs an HTTPS session path (step 1). |
| Provider deletion path and billing readback | Stopping Compose does not stop VM billing. |
GPU.ai VM is the documented rental for same-host Compose; its container instances cannot run Docker. GPU.ai documents no public inbound port, so a GPU.ai VM serves sessions through your own tunnel. Whether a given GPU.ai VM offering ships with Docker and the NVIDIA runtime preinstalled has not been verified; check before committing spend. An owned Docker GPU server follows the same path.
RunPod GPU Pod as the backend. A RunPod Pod is a container, so it cannot run the Compose pair. Instead it runs the backend image by itself, and the worker runs on a separate Docker host (it needs no GPU). The backend downloads the pinned checkpoint onto the pod's disk and remeasures it against MODEL_HASH before it serves. This was validated on 30 October 2026 on an A40 with Qwen2.5-0.5B-Instruct: the pod reported the measured registered root and passed TOPLOC capture validation. A full paid session through a pod has not been run yet. RunPod serverless endpoints remain unsupported (/session/open answers 503).
In the RunPod console, deploy a GPU Pod with:
| Setting | Value |
|---|---|
| Container image | The version-and-digest image that https://flop.network/releases.json lists for miner-vllm-toploc, at version 0.1.237 or later; earlier versions cannot download the checkpoint |
| GPU | One that fits the model; the A40 is the validated card |
| Container disk | Room for the checkpoint plus headroom: 60 GB for Qwen2.5-0.5B |
| Expose HTTP ports | 8000 |
| Environment variables | Below |
MODEL_NAME=Qwen/Qwen2.5-0.5B-Instruct
MODEL_HASH=0xREPLACE_WITH_REGISTERED_MODEL_HASH
MODEL_REVISION=REPLACE_WITH_THE_40_HEX_HUGGING_FACE_COMMIT
MODEL_DIR=/opt/flop-model
TOPLOC_PRECISION=bf16
DECODE_POLICY=REPLACE_WITH_COMPACT_JSON
DECODE_POLICY_HASH=0xREPLACE
INFERENCE_API_KEY=REPLACE_WITH_PRIVATE_RANDOM_VALUE
The model values are the ones the operator gives you (step 1). Copy DECODE_POLICY and DECODE_POLICY_HASH from the worker's env file once decode-policy.sh has filled it (see Pin the checkpoint and decode policy), so the pod serves the policy the chain allowlists. Generate INFERENCE_API_KEY with openssl rand -hex 32 and use the same value in the worker's env file. If onboarding served the checkpoint under another name, add MODEL_SOURCE=<owner>/<repo> for the Hugging Face repository. The pod answers at https://<pod id>-8000.proxy.runpod.net. That URL is public, but the backend refuses every request without the bearer. Before you start the worker, confirm that the backend reports model_identity: "measured" and your MODEL_HASH:
read -r -s -p 'Inference key: ' INFERENCE_API_KEY && echo
printf 'header = "Authorization: Bearer %s"\n' "$INFERENCE_API_KEY" |
curl --fail --silent --config - https://REPLACE_WITH_POD_ID-8000.proxy.runpod.net/health |
jq '{model_identity, model_hash, decode_policy_hash}'
unset INFERENCE_API_KEY
The download runs again after the container restarts, because the container disk does not survive a restart. The first start takes longer than on a VM.
On the worker host, follow the steps below without docker-compose.backend.yml: leave it out of the compose function in step 3. In the env file, set OPENAI_BASE_URL=https://<pod id>-8000.proxy.runpod.net/v1 and the same INFERENCE_API_KEY, and skip MODEL_CHECKPOINT_DIR. The worker host's model gate downloads and measures the checkpoint at every start. Without the backend file, the gpu-inventory probe does not run, so the explorer's GPU line (display only) needs flop miner declare-gpu. A pod bills from creation until you terminate it; stopping the worker does not stop it.
Several hosts. Each host runs its own miner: its own account and signer, env file, session seed and public DNS name, calibrated on its own. Bring the first host all the way to accepted work before adding more.
Join the devnet
From 30 October 2026 miners join the devnet over public endpoints. From 2 November 2026 no invitation is needed: the sponsor approves a new devnet miner automatically while at most 100 automatically sponsored miners are still uncalibrated, the new one included. Past that it answers 429; retry once one of them calibrates.
Running several miners? Request operator approval once instead, with an access request giving your operator key's address and planned miner count. FLOP then lists your operator key with a quota of miners, and you approve each new miner yourself: sponsor-grant.sh (in the release pack) signs a grant for the miner's address with your operator key, and the miner host sends it with GRANT_FILE=<grant.json> when it asks for sponsorship. A grant lasts 30 days by default, and a later top-up needs an unexpired one. Keep the operator key off the miner hosts.
| Setting | Value |
|---|---|
FLOP_RPC | wss://rpc.devnet.flop.network |
GHOST_MAILBOX_URL | https://mailbox.devnet.flop.network |
| Stake sponsor | https://faucet.flop.network (POST /sponsor/miner) |
Your host serves sessions on its own public HTTPS name, through the supplied Caddy sidecar or your own tunnel (step 1).
What works today: sponsorship, registration and calibration through the public mailbox. Paid sessions are not open yet. Session evidence must reach the assigned DA providers, whose public endpoints are still being opened, and gateway admission of public miners is being finished. This page will say when both are live.
Devnet limits
| Limit | Value |
|---|---|
| New sponsored miners | at most 100 per rolling 24 hours |
| Sponsored stake | at most 200 million FLOP per rolling 24 hours, new stake and top-ups together. A new miner starts at about 1 million FLOP; top-ups raise it to at most 2 million |
| Sponsorships per account | one |
| Sponsorships per approved operator | its quota per role, counting every miner it ever granted (429 when used up) |
| Public sponsor route | 6 requests per minute per address (an IPv6 /64 counts as one) |
Requests past a daily limit get 429 and nothing is registered.
Check before you ask, and back off when refused. GET https://faucet.flop.network/limits shows the live budgets, refreshed about once a minute: sponsor.miner.status reads open when a new request should work. automatic_full means the uncalibrated cap is full, and daily_limit_reached means a daily limit is. Every refusal carries reason, action and, when a wait applies, retryAfterSeconds. Never retry in a loop: on retry_later wait at least retryAfterSeconds, on fix_request change the request, and on report_to_operator stop and give a human the error and reason.
Sponsor refusal codes
The sponsor onboards many miners and validators at once. These are the refusals a working setup meets most; each error also says whether anything was reserved or sent. "Retry" always means: the same request with the same account, once, after at least retryAfterSeconds; never in parallel, and never with a new account.
reason | What happened | Your fault? | What to do |
|---|---|---|---|
account_busy | A request for this same account is already running; this one did nothing | No | Wait a minute and retry once; do not send requests for one account in parallel |
signers_busy | Every sponsor account was busy with other onboardings; nothing was reserved | No | Wait a minute and retry once |
sponsorship_pending | A call for this account was signed and may already be on chain | No | Retry with the same account; it settles the call before sending anything new |
sponsor_unavailable | A chain, indexer or ledger read failed; nothing new was sent | No | Wait and retry once |
auto_miner_cap_full | The automatic miners that may be uncalibrated at once are all taken | No | Wait until sponsor.miner.automatic on /limits shows room, or use an operator's grant |
auto_miner_stake_full | Uncalibrated or unbonding automatic miners already hold all the sponsored stake the faucet allows at once | No | Use an operator's grant, or wait until sponsor.miner.automatic.open on /limits |
sponsorship_reclaimed | This account never calibrated in time, so its automatic stake was unbonded | No | Stop using this account: calibrate a worker, then get an operator's grant for a fresh account or bond your own stake |
daily_new_sponsorships, daily_stake_budget | A rolling 24-hour limit is reached | No | Wait until retryAfterSeconds |
sponsor_signer_low, sponsor_capacity_full, sponsor_runtime_gap, sponsor_allowlist_broken | The faucet itself needs its operator: a refill, more sponsor accounts, or a configuration fix | No | Stop and report error and reason |
invalid_signature, invalid_request | The request was malformed or signed too long ago | Yes | Fix it as error says and sign again |
Mine on Testnet
FLOP Testnet opened on 24 November 2026. Test FLOP has no value, and this section does not promise gateway traffic or earnings. The steps are the devnet ones below with the Testnet profile of the miner pack; everything that differs is here.
| Setting | Testnet value |
|---|---|
FLOP_NETWORK | testnet (the pack sets it; sponsor.sh then signs for the pinned genesis and self-check.sh compares it) |
FLOP_RPC | wss://testnet.flop.network |
| Genesis (block zero) | 0x918abd58fb16306b30ef3886514cfaebffecb4de43e82b6f8ec4795c43cfd800 |
GHOST_MAILBOX_URL and SESSION_OFFER_INDEXER_URL | https://mailbox.testnet.flop.network (calibration jobs, endpoint ads and standing offers) |
| Stake sponsor | https://faucet.flop.network (POST /sponsor/miner; live budgets at /limits) |
| Gateway | https://gateway.testnet.flop.network |
| Explorer | <https://testnet.flopscan.io/> |
DA_URL | none: session DA goes to the providers the chain assigns |
| Model | Any model Verified on Testnet. The release pack defaults to Qwen/Qwen3-8B at revision b968826d9c46dd6066d109eabc6255188de91218, MODEL_HASH=0x2dc476dabd39fb86d216e04f3c50313a22fa9e5bfa65f8e236557c30ddfaba55; an installer pack takes MODEL_HASH from its operator |
GPU memory. The installer's 16 GB floor is the devnet Qwen2.5 one. Testnet Qwen3-8B needs one GPU with at least 23,774 MiB as nvidia-smi reports it. That is 15.27 GiB of weights (as vLLM reported it in the devnet pilot) plus 5,760 MiB of KV cache for one full 40,960-token serving context (2 × 36 layers × 8 KV heads × 128 dims × 2 bytes per token), divided by the default GPU_MEMORY_UTILIZATION of 0.9. A Testnet installer pack carries its model's floor (MIN_GPU_MEMORY_MIB) and refuses a smaller GPU at preflight, before any sponsorship. It refuses to build for a model without a recorded floor. --session-test opens a devnet-only test wallet, so a Testnet pack refuses it before any step.
Images. miner-worker 0.1.488 or later; the Testnet pack refuses an older worker. Use the stable miner-vllm-toploc and cli: the pack checks each against the floors published in releases.json, and no separate Testnet backend floor is published. The Testnet Qwen3-8B policy binds a serving profile, so the backend must support serving profiles (#4274); the stable backend does. Testnet does not accept hybrid receipts, so Qwen3.8 cannot serve there. ./decode-policy.sh miner.env fills the Qwen3-8B decode policy and its serving limits (MAX_MODEL_LEN, MAX_NEW_TOKENS) from releases.json after checking that the chain allowlists it.
Choosing a model. flop --network testnet model list --json lists the models registered on Testnet by hash and name; it does not show verification status. Pick one that is Verified on Testnet, with an allowlisted decode policy that releases.json publishes. ./decode-policy.sh refuses the model otherwise. Both packs refuse the devnet Qwen2.5 pin (0x1a52c1ab…3306), so a devnet operator env carried over by mistake fails the build.
The pack. A repository checkout builds both packs with the Testnet profile: just miner-pack <OUT> --network testnet (the manual release pack) or just miner-pack --profile public --network testnet --env-file <pins.env> (the one-command installer, sudo ./install.sh <machine-name> --public-host <DNS name>). The Testnet profile writes the endpoints above and fails closed: it refuses devnet endpoints, a DA_URL, a missing or devnet-only model pin and a worker below 0.1.488.
Published Testnet pack (26 November 2026). The release pack built from that profile is published at <https://flop.network/releases/cli/miner-pack-testnet-20261126/README.md>. It is not signed; its SHA-256 is the only integrity check:
B=https://flop.network/releases/cli/miner-pack-testnet-20261126
curl -fLO "$B/flop-miner-pack-testnet-20261126.tar.gz" && curl -fLO "$B/README.md"
echo "2d9a2046286fe84ad75f33cb1a9586c8c1977efec7c50e3a9a31aa7167e41b8b flop-miner-pack-testnet-20261126.tar.gz" | sha256sum -c -
Follow its README.md. The installer pack is not published for Testnet.
Testnet sponsorship
The Testnet sponsor approves a miner without a grant automatically while only a few automatically sponsored miners are still calibrating, within daily limits. When that cap is full (sponsor.miner.status reads automatic_full at https://faucet.flop.network/limits), a request without a grant gets 429 until one of them calibrates: wait and retry later, never in a loop. An automatically sponsored miner that does not calibrate within the sponsor's grace can have its stake reclaimed, so sponsor only when the host can start right away. An allowlist entry or an approved operator's grant passes the automatic cap: send an access request with role miner, the address, your public DNS name and GPU model. Approval is a review, not a guarantee.
An operator approved for Testnet grants its own miners offline, without asking again: FLOP_NETWORK=testnet OPERATOR_SIGNER_FILE=<operator signer> ./sponsor-grant.sh <miner address> > grant.json. On the miner host, pass the grant by absolute path: sudo GRANT_FILE=/opt/flop-miner/grant.json ./install.sh <machine-name> --public-host <DNS name>, or sudo GRANT_FILE=/opt/flop-miner/grant.json ./sponsor.sh with the release pack. Read https://faucet.flop.network/limits before each attempt and follow the refusal rules under Sponsor refusal codes.
The sponsorship registers the miner with minerStaking.sponsorRegisterMiner, which needs at least the chain's minimum self-stake (10,000 test FLOP today). The sponsor posts the stake the target capacity needs, sized from live chain state (about 35,000 test FLOP for its 1M G_n/s cap ceiling at the current stake rate), as a locked, sponsor-owned position, and sends a separate 250 FLOP fee grant. Do not call minerStaking.registerMiner yourself (the sponsor then answers 409). After calibration raises the capacity bond, the same command with an unexpired grant tops the stake up.
Calibration on Testnet
The Testnet calibration oracle enrols the worker from the signed ghost key it publishes to the mailbox, then sends an initial pack of 64 jobs. The worker answers them by itself. After at least 600 blocks it calls hwCalibration.acceptBenchmarkBurst, and the accepted cap appears under hwCalibration.benchmarkBurstCaps(<miner>). Keep the worker running throughout: unanswered jobs are penalized. There is nothing to send.
Gateway admission
The Testnet gateway admits miners automatically. Its admission writer lists a miner while, at the finalized head, the miner is registered and active, bonded for its calibrated capacity and holds an accepted calibration, and its public HTTPS endpoint answers a signed /session/info-proof challenge with a ready proof. The worker republishes its signed endpoint ad to the mailbox every 5 minutes, and an admission lapses an hour after the last ad. The model must also be Verified on chain with an allowlisted decode policy. sudo ./self-check.sh checks these in the writer's order, starting with the Testnet genesis.
- A stable public HTTPS name.
SESSION_PUBLIC_HOSTis signed into every ad, so it must not change. Use the pack's Caddy sidecar on a DNS name that points at the host (inbound TCP 80 and 443), your own TLS origin with a publicly trusted certificate, or a named tunnel with a fixed hostname. A quick tunnel (for example acloudflaredtrycloudflare name) gets a new hostname on every restart, so the gateway loses the miner each time; do not use one. - Ready.
/session/infomust reportis_ready: true, which needs the audit evidence store below. - Standing offers. The Testnet profile sets
SESSION_OFFER_INDEXER_URLand offers long sessions withSESSION_OFFER_MAX_TURNS=1024andSESSION_OFFER_MAX_DURATION_SECONDS=1200. The built-in offer allows one turn, and the gateway admits a request only when its work fits the channel's capacity (the smaller of cap and per-channel rate) times the offer's turns, so a one-turn offer bounds every session to a single turn's worth. Each pickup reserves this miner's capacity for up to 1200 s, and the worker publishes nothing when 1200 s exceeds its remaining calibration lease. - Sessions per channel. The worker sets its per-channel capacity rate to the calibrated cap divided by
MINER_MAX_CONCURRENT_SESSIONS(default 4). With a cap of 193, four sessions give each channel 48. A lower value gives each session more capacity, so longer or larger requests fit, but fewer sessions run at once; a higher value runs more sessions at a smaller size each.0leaves the rate on chain unchanged. Set it inminer.env(installer packs take it as a pack pin) and restart the worker.
Audit evidence store
Every install path enables the worker's encrypted audit evidence store, because paid TOPLOC readiness needs it: without it /session/info stays is_ready: false. The store keeps encrypted session turns, retirement bundles and settlement-repair records in the worker-data volume under /data/audit-evidence. It also enables audit handoff (audit_handoff_enabled: true). Nothing deletes these files: they stay until you remove them, so size the disk for them. Removing them discards the evidence for any session not yet settled or audited.
The key is 32 random bytes in hex at /opt/flop-miner/audit-keys/evidence.key, root-owned mode 0600 in a root-owned mode 0700 directory. The installer creates it once and refuses to replace a missing one. Back it up with the session seed, and never rotate it: a new key cannot read what the old one encrypted.
Upgrading an existing miner. The current Compose files require the key. Before using them on a host set up by hand or from a release pack, installed earlier, create it only if it does not exist yet, then add its path to miner.env once:
sudo install -d -o root -g root -m 700 /opt/flop-miner/audit-keys
[ -e /opt/flop-miner/audit-keys/evidence.key ] ||
sudo sh -c 'umask 077; set -C; openssl rand -hex 32 > /opt/flop-miner/audit-keys/evidence.key'
grep -q '^SESSION_AUDIT_EVIDENCE_KEY_FILE=' miner.env ||
echo 'SESSION_AUDIT_EVIDENCE_KEY_FILE=/opt/flop-miner/audit-keys/evidence.key' | sudo tee -a miner.env
A host that already layers docker-compose.audit.yml keeps its existing key path; the file now repeats the base settings and changes nothing. An installer-pack host keeps its original pack, whose Compose files it was installed with; a new installer pack creates the key on a fresh host.
1. Prepare identity, funds, model, and network
- Download and check the public release pack (Set up with your agent). It supplies:
- the public endpoints in Join the devnet (
FLOP_RPC,GHOST_MAILBOX_URLand the stake sponsor); - a legacy
DA_URLvalue, which the worker ignores (Compose no longer requires one); - the worker, backend and CLI images (
FLOP_WORKER_IMAGE,FLOP_BACKEND_IMAGE,FLOP_CLI) with the Compose files (includingdocker-compose.tls.ymlfor public HTTPS) and the env template they match; - the registered models in its
releases.json, from which you pickMODEL_HASHand the exact 40-character checkpoint revision.
Sponsored stake follows once the sponsor approves the account (step 3). You send nothing to FLOP: the sponsor request carries the miner address, and your public DNS name (step 5) goes out in the worker's signed endpoint ad.
The worker publishes the rest itself, signed by the miner account: its ghost-answerer key, from which the issuer enrols the account for calibration once it is registered and bonded, and its session endpoint and session public key, for gateway admission.
- Create a dedicated sr25519 miner account, separate from every validator account. Until FLOP issues #1552 and #1554 are fixed, a validator that submits verified work can become the entire finality committee. Keep its one-line seed in a root-owned mode-0600 file on the host and back it up privately. The worker refuses a signer file owned by someone else.
- Get the stake sponsored. From the miner host, sign
flop-sponsor/v1|miner|<genesis hash>|<miner address>|<issuedAt ms>with the miner key and POST{address, issuedAt, signature}tohttps://faucet.flop.network/sponsor/miner. The operator'ssponsor.shdoes this:sudo env SPONSOR_URL=https://faucet.flop.network FLOP_RPC=wss://rpc.devnet.flop.network ./sponsor.sh. Do not register the account yourself first: the sponsorship registers it, at a 10% commission you can change later. The sponsor admits a devnet miner automatically within the cap in Join the devnet and gives one sponsorship per account. A429means automatic sponsorship is full (retry once a pending miner calibrates) or a daily limit was reached (see Devnet limits, retry the next day). It posts about 1 million FLOP, or the live runtime requirement plus headroom when that is larger, up to a fixed ceiling. The stake is locked and stays the sponsor's: the miner account can use it only as stake, never transfer it or pay transaction fees or inference charges with it. The separate fee grant is spendable funding, not stake; it does not guarantee ongoing fee coverage. If the worker cannot calibrate because its stake is short, repeat the same request once its calibration jobs verify: the sponsor tops up to the cap that work proves. A503means retry later; until the devnet runtime carries the sponsorship calls it answers503, and the private operator funds the account for the 10,000 FLOP base self-stake, capacity stake and fees instead. Repeating automatic sponsorship is not a guaranteed fee top-up. - Use the devnet operator's pre-registered
Qwen/Qwen2.5-0.5B-Instructmodel and obtain itsMODEL_HASH(modelpack verity root) and exact checkpoint commit. This pack's serving configuration is for that model; validate TOPLOC capture on the actual GPU before admission. A new SOFT model can useflop model onboard --softwith no TEE claim, but must pass measured backend capture validation on its actual GPU before admission. Do not claimNvidiaCcfor this non-attested backend. - Give the host a public HTTPS name for its session endpoint. Point a DNS name at the host and open ports 80 and 443 to it: the Caddy sidecar in
docker-compose.tls.ymlobtains a Let's Encrypt certificate for that name and forwards to the worker's session port on127.0.0.1:8645(step 3). Behind NAT or CGNAT, point your own tunnel at127.0.0.1:8645instead and leave out the sidecar. Either way the name goes inSESSION_PUBLIC_HOST(step 2), and the host needs outbound access to the public endpoints in Join the devnet. Do not expose the backend's port or the worker's raw session port publicly.
Public endpoint requirements
Set SESSION_PUBLIC_HOST to the canonical lowercase DNS hostname, optionally with a non-default port, without a scheme, path or explicit :443. Every resolved address must be public, and the trusted HTTPS certificate must match that hostname. Admission refuses private/CGNAT addresses and redirects. Keep the worker origin on loopback. For a loopback/private proxy, replace or append X-Forwarded-For with the observed client address; the worker uses its last valid entry for rate limits. The installer's --public-host accepts a DNS name without a port and rejects *.ts.net.
The env template in the pack (miner.env.example) is the complete field-by-field Compose template. The steps below fill in its model and policy values.
Chain, host, and account preflight
Run the flop CLI from its public container image, pinned by digest; the host needs only Docker. The image is linux/amd64. The image starts in /app, so mount the miner directory at /work and give every keystore path under /work; a relative path would be lost with the container. This shell function runs the flop commands below unchanged:
FLOP_CLI=ghcr.io/flop-labs/flop-core/cli:stable
flop() { docker run --rm --network host -e FLOP_KEY_PASSWORD -v /opt/flop-miner:/work "$FLOP_CLI" "$@"; }
flop --version
With Node.js 22+ you can instead run the npm release: npx --yes --package @flop-labs/cli@0.8.2 flop …, with ordinary host paths for keystores. Do not install it globally next to the Hermes launcher; both provide a flop command.
Check the genesis identity before any signed transaction:
flop --network devnet --rpc wss://rpc.devnet.flop.network network status --json
nvidia-smi
docker info
Require a reachable RPC, the expected devnet genesis hash (matches_expected: true when the release profile pins one), and the expected runtime version. Stop on mismatch. On the GPU host also confirm Docker Compose and NVIDIA GPU container access; use an approved CUDA diagnostic image with docker run --rm --gpus all <approved-cuda-image> nvidia-smi before renting for a long period.
Generate a dedicated sr25519 mnemonic offline with the approved node CLI (zkv-relay key generate --output-type json) or an equivalent trusted key tool. Never use //Alice or a validator key. Write only the mnemonic/secret URI as one line to a private file, back it up offline, then install it on the host with sudo install -o root -g root -m 600 seed.txt /opt/flop-miner/signer. The Compose worker runs as root and rejects a signer file with the wrong owner or group/other permissions. For signed CLI operations, import the same secret into an encrypted Polkadot JSON keystore. The secret and the keystore password reach the container by name through -e, never as values on the command line:
read -r -s -p 'Keystore password: ' FLOP_KEY_PASSWORD && export FLOP_KEY_PASSWORD && echo
MINER_SECRET="$(sudo cat /opt/flop-miner/signer)" docker run --rm --network host \
-e MINER_SECRET -e FLOP_KEY_PASSWORD -v /opt/flop-miner:/work "$FLOP_CLI" \
keys import --type sr25519 --secret-env MINER_SECRET --out /work/miner.json \
--password-env FLOP_KEY_PASSWORD
It prints the account address and writes /opt/flop-miner/miner.json with mode 0600. To keep the keystore on a separate administration machine instead, run the same command there with the secret from your offline backup and that machine's directory mounted at /work. Never put the mnemonic on a command line or in a committed file.
A sponsored miner is already registered by the sponsorship (step 3): skip miner register, which would fail on a registered account, and confirm with miner status. Its own self-stake reads 0 and the sponsored stake backs it. After the private operator funds an unsponsored account instead, register with the encrypted keystore:
flop --network devnet --rpc wss://rpc.devnet.flop.network --keystore /work/miner.json \
--password-env FLOP_KEY_PASSWORD miner register
flop --network devnet --rpc wss://rpc.devnet.flop.network --keystore /work/miner.json \
--password-env FLOP_KEY_PASSWORD miner status --json
unset FLOP_KEY_PASSWORD
The CLI miner register locks runtime-defined self-stake and rejects duplicate registration. Confirm registered: true, the expected address and stake. Capacity stake is a later measured-cap top-up by the worker, not a fixed amount to guess here.
Pin the checkpoint and decode policy
Fetch the checkpoint with the flop CLI. model fetch reads the model's registered mirrors (its Hugging Face repo, then its DA copy) and the measured root from the chain, downloads the files, and writes them only if they reproduce that root. Pass the MODEL_HASH the operator gave you, and use a fresh dedicated directory under /work, the miner directory mounted into the CLI container:
MODEL_HASH='0xREPLACE_WITH_REGISTERED_MODEL_HASH'
flop --network devnet --rpc wss://rpc.devnet.flop.network model fetch "$MODEL_HASH" \
--precision BF16 --output-dir /work/models/qwen2.5-0.5b-instruct --json
MODEL_CHECKPOINT_DIR=/opt/flop-miner/models/qwen2.5-0.5b-instruct
It prints the verified_root, the mirror it used and the files written. A refusal means no mirror currently serves the registered bytes; for example, the Hugging Face repo's main has moved since onboarding. Stop and report it as a node bug. Do not substitute a manual download. The backend remeasures the same directory at startup and refuses to serve if its root differs from MODEL_HASH.
For the pre-registered model, use its on-chain hash for MODEL_HASH. If the fetch reports no measured BF16 root for that hash, stop and report the mismatch as a node bug. A new SOFT checkpoint is a model publisher's job (the onboarding command below); its candidate MODEL_HASH is the checkpoint's modelpack root.
Nobody sends you the decode policy. The chain stores only its hash (modelRegistry.allowedDecodePolicies), and <https://flop.network/releases.json> publishes each allowlisted policy's JSON under models.<MODEL_HASH>.decode_policies, keyed by that hash. Leave DECODE_POLICY and DECODE_POLICY_HASH empty in the env file (step 2), then, before the first start, run the pack's resolver:
sudo ./decode-policy.sh miner-01.env
It runs in the flop CLI image, takes the published policy for your MODEL_HASH, hashes it the way the chain does, and writes both lines only if the finalized chain allowlists that hash for the model; otherwise it exits non-zero and changes nothing. Because the hash binds the JSON, the manifest host needs no trust. When a model allowlists more than one published policy, set DECODE_POLICY_HASH to the one you want first. A hash listed under missing_decode_policies has no published preimage and cannot be served. If you set DECODE_POLICY yourself, the resolver keeps it and only checks it. The backend checks again at startup that the JSON hashes to DECODE_POLICY_HASH and refuses a mismatch.
2. Configure the two services
Make a private miner-01.env copy of the pack's env template and set mode
- Use one copy per miner.
This is a non-secret shape example, not a ready-to-run file; the .invalid hostnames and REPLACE values must be filled from the approved release and operator:
COMPOSE_PROJECT_NAME=flop-miner-01
WORKER_NAME=devnet-ts-miner-01
FLOP_WORKER_IMAGE=ghcr.io/flop-labs/flop-core/miner-worker:vX.Y.Z@sha256:REPLACE
FLOP_BACKEND_IMAGE=ghcr.io/flop-labs/flop-core/miner-vllm-toploc:vX.Y.Z@sha256:REPLACE
FLOP_RPC=wss://rpc.devnet.flop.network
MINER_SIGNER_FILE=/opt/flop-miner/signer
MINER_ENCLAVE_KEY_FILE=/opt/flop-miner/session-keys/enclave.seed
MODEL_NAME=Qwen/Qwen2.5-0.5B-Instruct
OPENROUTER_MODEL_SLUG=qwen/qwen2.5-0.5b-instruct
MODEL_HASH=0xREPLACE
MODEL_CHECKPOINT_DIR=/opt/flop-miner/models/qwen2.5-0.5b-instruct
MODEL_PRECISION=BF16
TOPLOC_PRECISION=bf16
DECODE_POLICY=
DECODE_POLICY_HASH=
OPENAI_BASE_URL=http://backend:8000/v1
INFERENCE_API_KEY=REPLACE_WITH_PRIVATE_RANDOM_VALUE
SESSION_BIND_IP=127.0.0.1
SESSION_HOST_PORT=8645
SESSION_PUBLIC_HOST=REPLACE_WITH_PUBLIC_DNS_NAME
SESSION_AUTH_TOKEN=REPLACE_WITH_PRIVATE_RANDOM_VALUE
SESSION_AUDIT_EVIDENCE_KEY_FILE=/opt/flop-miner/audit-keys/evidence.key
DA_URL=http://da.flop.invalid:7001
GHOST_MAILBOX_URL=https://mailbox.devnet.flop.network
GHOST_KEY_FILE=/data/ghost-x25519.json
| Field | Required value |
|---|---|
FLOP_WORKER_IMAGE, FLOP_BACKEND_IMAGE | Approved ghcr.io/flop-labs/flop-core/...:vX.Y.Z@sha256:<digest> refs, copied from the release bundle's images.minerWorker.ref and images.toplocBackend.ref. The version is what you report when asking for help; the worker prints it at startup (Image: version … revision …) and serves it on /session/info. Tags alone, including sha-<commit> and latest, are mutable, and a digest without the version names no build; both fail operator_release.py verify --miner-env. |
FLOP_RPC | wss://rpc.devnet.flop.network, the public devnet RPC. Replace the template's default. |
MINER_SIGNER_FILE | Absolute path of the root-owned 0600 one-line miner seed. |
MINER_ENCLAVE_KEY_FILE | Host path of the session-signing seed. Create it once before the first start: sudo install -d -o root -g root -m 700 /opt/flop-miner/session-keys, then sudo sh -c 'umask 077; set -C; openssl rand -hex 32 > /opt/flop-miner/session-keys/enclave.seed'. Compose mounts it read-only and refuses to start without it. Keep it and back it up: a new seed means a new session key. |
OPENROUTER_MODEL_SLUG | The lowercase owner/model slug the gateway catalog requires; the mixed-case MODEL_NAME fails gateway admission. |
MODEL_NAME, MODEL_HASH, MODEL_CHECKPOINT_DIR | Model name, modelpack root, and exact checkpoint files. For a new SOFT model, use the candidate root until registration; a hash of the name is not sufficient. |
MODEL_PRECISION, TOPLOC_PRECISION | Keep the validated BF16 and bf16 pair for this drill. |
DECODE_POLICY, DECODE_POLICY_HASH | Leave empty; sudo ./decode-policy.sh miner-01.env fills both from <https://flop.network/releases.json> (Pin the checkpoint and decode policy). Set DECODE_POLICY_HASH first only to choose among several allowlisted policies. |
OPENAI_BASE_URL | http://backend:8000/v1 for this same-host Compose topology. |
INFERENCE_API_KEY | Fresh openssl rand -hex 32 value. The worker and backend both require it. |
SESSION_BIND_IP, SESSION_HOST_PORT | 127.0.0.1 and normally 8645. The session port stays on loopback; the tls sidecar or your tunnel publishes it over HTTPS (step 3), and the gateway refuses a plain-HTTP endpoint. |
SESSION_PUBLIC_HOST | The public DNS name from step 1, lowercase, without https://. The tls sidecar obtains its certificate for this name, and the worker publishes https://<name> as its session endpoint, signed by the miner account, to the mailbox at start and every 5 minutes. |
SESSION_AUTH_TOKEN | Fresh openssl rand -hex 32 value. It guards the worker's session routes; keep it on the host and do not send it to anyone. |
DA_URL | Optional and ignored: session evidence goes to the DA providers the chain assigns. Leave the bundle's value or empty it. |
SESSION_AUDIT_EVIDENCE_KEY_FILE | Host path of the audit evidence key, /opt/flop-miner/audit-keys/evidence.key. Create it once (Audit evidence store); Compose refuses to start without it, and readiness needs the store. Back it up and never replace it. |
GHOST_MAILBOX_URL, GHOST_KEY_FILE | https://mailbox.devnet.flop.network, replacing the template's default, and where the worker keeps its ghost-answerer key (inside the persistent worker-data volume). Without the mailbox the miner never calibrates. The worker signs every answer with the miner account. |
The worker Compose file sets MINER_BACKEND=openai, turns on TOPLOC, and mounts the signer read-only. The backend Compose file mounts the measured model read-only, reserves NVIDIA GPUs, and publishes no port. Keep exactly one inference backend configured. The backend requires both the model root and decode-policy hash to match their measured contents.
3. Start and inspect
The miner images are public on GHCR, so no registry login is needed. Run from the directory holding the Compose files. This shell function names them once; with your own tunnel instead of the sidecar, leave out -f docker-compose.tls.yml:
compose() { docker compose --env-file miner-01.env -f docker-compose.miner.yml \
-f docker-compose.backend.yml -f docker-compose.tls.yml "$@"; }
sudo ./decode-policy.sh miner-01.env && compose config --quiet && compose pull &&
compose up -d backend
compose ps
compose logs --tail=100 backend
The backend's private /health response reports actual model identity, precision, and policy hash. Query it from inside the backend container, where Python is already installed. It requires the backend's INFERENCE_API_KEY bearer, which the container already holds:
compose exec -T backend python -c 'import os, urllib.request as u; print(u.urlopen(u.Request("http://127.0.0.1:8000/health", headers={"Authorization": "Bearer " + os.environ["INFERENCE_API_KEY"]})).read().decode())'
Confirm model_identity: "measured", the expected model hash, precision and decode-policy hash. For a new SOFT checkpoint, arrange a private capture endpoint reachable by the publisher CLI, set BASE to that endpoint, and run onboarding now. The Compose backend has no published port; do not expose its API publicly. If no private endpoint is available, stop and file an access request. Use the same model name as MODEL_NAME in the env file and the policy hash derived above. Onboarding reads the repository's modelpack and capture tools, so run it from a FLOP repository checkout with node sdk/cli/dist/cli.js in place of flop, not from the image:
MODEL_NAME='REPLACE_WITH_NEW_MODEL_NAME'
BASE='REPLACE_WITH_PRIVATE_CAPTURE_ENDPOINT'
flop --network devnet --rpc wss://rpc.devnet.flop.network --keystore publisher.json \
--password-env FLOP_KEY_PASSWORD model onboard \
--source "$MODEL_CHECKPOINT_DIR" --precision BF16 \
--capture-endpoint "$BASE" --decode-policy-hash "$DECODE_POLICY_HASH" \
--registry-model "$MODEL_NAME" --backend-model-name "$MODEL_NAME" --soft
The publisher keystore must have devnet model authority. This records an empty TEE platform list. Model discovery can return it after model approval, but SOFT miner availability still uses off-chain routing because modelRegistry.registerMiner requires a TEE enum. Skip this command for the pre-registered model.
Start the worker only after the backend health check and, for a new model, successful onboarding. Start the tls sidecar with it; with your own tunnel, start worker alone. On its first start the worker creates its ghost-answerer key and publishes it (published ghost key in its log), then publishes its session endpoint (Endpoint ad (https://<name>): published to the mailbox):
compose up -d worker tls
compose logs --tail=100 worker backend tls
Starting the worker first runs the one-shot gpu-inventory service, which reads the host's GPUs with nvidia-smi in the backend image. The worker then signs a self-reported GPU declaration from the miner account ([gpu] declared … in its log), and only when the GPUs differ from its last declaration ([gpu] inventory unchanged otherwise). It declares every GPU the stack exposes (count: all), not only those the backend uses. Explorers display it; nothing on chain reads it. A failed probe is logged and skipped and never stops the worker. Only a host without the backend file needs the manual flop miner declare-gpu step.
The gateway accepts only an HTTPS session endpoint. On its first start the tls sidecar obtains the certificate for SESSION_PUBLIC_HOST (certificate obtained successfully in its log) and keeps it renewed in its tls-data volume. From a machine outside your network, a request without the token answers 401, which proves the path: curl -s -o /dev/null -w '%{http_code}\n' https://<SESSION_PUBLIC_HOST>/session/info.
Every worker session route, including GET /session/info, requires the bearer token. On the miner host, read the token silently into a temporary shell variable, then send the header through curl's standard-input config so it is absent from shell history and curl's argv:
FLOP_SESSION_URL='https://REPLACE_WITH_SESSION_PUBLIC_HOST'
read -r -s -p 'Session token: ' FLOP_SESSION_PROBE_TOKEN
printf '\n'
printf 'header = "Authorization: Bearer %s"\n' "$FLOP_SESSION_PROBE_TOKEN" |
curl --fail --silent --show-error --config - \
"${FLOP_SESSION_URL}/session/info" |
jq '{minerAddress, modelHash, calibration, is_ready}'
unset FLOP_SESSION_PROBE_TOKEN
The response reports calibration and is_ready. After calibration, repeat flop --network devnet --rpc wss://rpc.devnet.flop.network --keystore /work/miner.json --password-env FLOP_KEY_PASSWORD miner status --json with the keystore password set again, and confirm its on-chain calibration record agrees with the worker's active cap and miner address. This CLI reads hwCalibration.benchmarkBurstCaps as well as miner registration. An uncalibrated host is not ready: /session/open returns 503.
The ghost-task issuer enrols the miner from its published key within a few cycles of it being registered and bonded, then sends calibration jobs. From then on keep the worker running: a job left unanswered past its 600-block deadline expires and slashes the miner. The worker reads live calibration constants, measures host-wide throughput, tops up capacity stake, and signs acceptance. Source runtime requirements are 64 verified jobs over at least 600 finalized blocks; a deployed devnet may still require 512 jobs over 21,600 blocks. The cap is renewed after eight fresh jobs plus required work and expires after seven days. Changed GPU inventory or fingerprint requires the initial flow again. Gateway admission needs no request from you: once calibration is accepted and the endpoint answers the gateway's probe, the miner is listed from its signed endpoint ad. That last step is not open yet (see Join the devnet). The session key comes from MINER_ENCLAVE_KEY_FILE and survives restarts.
4. Operate and troubleshoot
Keep the env, signer, checkpoint, and Compose worker-data volume persistent. Before each upgrade, record the image tags, checkpoint revision, policy hash, cap and host inventory. Change both approved image pins deliberately, pull, recreate, then check backend /health, worker /session/info, finalized chain progress, and gateway access. Stop with the same compose function and down; avoid --volumes unless retiring the miner and deliberately deleting calibration state. To retire a rental, stop Compose, delete the provider instance, and confirm in the provider console that it is gone and billing stopped. When any host retires, file an access request to remove its enrollment.
For a public-pack miner, start with the pack's self-check:
sudo ./self-check.sh (add --json for an agent, --no-tls with your own tunnel) checks a running public-pack or release-pack miner from its pack directory. It is read-only: it never restarts, signs or rotates anything and prints no credential. It follows the gateway admission writer's order: Compose services, authenticated loopback readiness, finalized registration and accepted calibration (read through the pinned CLI image), DNS, the anonymous 401, one fresh /session/info-proof challenge, and the worker's last endpoint-ad line. It exits non-zero on any FAIL. Fix the first one; the worker republishes its ad every 5 minutes, so no reinstall is needed. It does not verify the proof signature or capacity bond and cannot see the gateway listing, and probing your own name from the host can differ from an outside probe (hairpin NAT). Passing does not establish gateway listing or paid work.
| Symptom | Check first |
|---|---|
| GPU missing | Host nvidia-smi, NVIDIA Container Toolkit, Docker GPU visibility; use a VM that permits Docker. |
| Backend exits | Mounted checkpoint root, matching model hash, decode-policy hash and JSON, GPU memory, pinned image tag. |
| Calibration missing or expired | Funding/stake, ghost-issuer enrollment, finalized block progress, live job/window constants, worker logs. |
| Sponsorship refused | 429: automatic sponsorship is full or a daily limit was reached (see Join the devnet and Devnet limits). 403: the address is listed for the other role, or the grant is expired or not from an approved operator. 503: retry later. |
| Gateway cannot open | Paid sessions are not open yet (see Join the devnet). Then: the tls log shows a certificate for SESSION_PUBLIC_HOST, the no-token probe from outside answers 401, the worker logs Endpoint ad (…): published to the mailbox, is_ready. |
| TOPLOC omitted | Same-pass backend capture, BF16 precision, model/policy binding, DA publication logs. Missing evidence is a closed gate. |
The full protocol rules for stake, caps, renewal and slashing are in FLOP's private repository (docs/onboarding/miner.md) and are not yet published.
The generic pack's compatibility labels are ghcr.io/flop-labs/flop-core/cli:stable (minimum 0.1.172), ghcr.io/flop-labs/flop-core/miner-worker:stable (minimum 0.1.172), and ghcr.io/flop-labs/flop-core/miner-vllm-toploc:stable (minimum 0.1.172). These labels describe compatibility floors. For deployment, use the version-and-digest-qualified references from the operator's reviewed release bundle; do not use floating stable or latest tags. The Qwen hybrid/controller pins above are distinct from the default fixed-model worker. The repository's just miner-pack /tmp/flop-miner-pack prepares the default two-service pack for a miner off the private network; it does not supply a complete Qwen host-loader/proof-wrapper profile.
Fees and a low spendable balance
Locked sponsored stake cannot pay transaction fees. Check the account's spendable balance separately from its stake and estimate fees against the current runtime before signing. Sponsorship follows the selected network's policy; a stake grant does not guarantee ongoing fee funding.
If funds run short, pause new work through the supported operator procedure and reconcile existing obligations before shutdown. Preserve the account, keys, worker state and settlement evidence; follow the upgrade manual for draining and state preservation. Obtain fee funding through the network's authorized route; do not create another account or repeat sponsorship to bypass its limits.