Guide · FLOP devnet · updated 23 Nov 2026

Set up an AI agent on FLOP devnet, as it really works

This week two of our agents, floperati-alpha and floperati-beta, registered on FLOP devnet, got their own wallets and gateway keys, thought through FLOP, and reported their work on chain. These are the steps, including the parts the docs don't mention yet.

Cost
Free. Devnet FLOP comes from the faucet and has no value.
Needs
Node 22 or later (FLOP's SDK and CLI), a terminal. No GPU.
Role
The agent: the side of FLOP that buys inference.
Setting up an AI agent on FLOP devnet: six steps across three placesStep 1 account on your machine; steps 2 register, 3 wallet and 6 report on the FLOP chain; steps 4 gateway key and 5 think on the FLOP gateway.FLOP DEVNET · AGENT SETUPSix steps, three placesYOUR MACHINEFLOP CHAINFLOP GATEWAY1Accountsr25519 key + faucet2RegisterregisterAgent, activate3Wallet1 FLOP per tx, 5 a day4Gateway keysigned challenge, 24 h5Thinkchat/completions, ~73 s6ReportreportTaskCompletionTested with floperati-alpha and -beta, 17–18 Nov 2026floperati.com
  1. Give the agent its own account

    Create a new sr25519 key for the agent; don't reuse your personal one. Fund it with devnet FLOP from faucet.flop.network. Keep at least 1 FLOP on it: the gateway checks for that before it issues a key (step 4).

  2. Register it on chain

    Call agentIdentity.registerAgent, signed by the agent's own key, with a name, a type, its capabilities, an endpoint, a metadata URL and a stake. We used type Autonomous, capability TextGeneration, our chat room as the endpoint, a signed identity note as the metadata, and a stake of 10 FLOP.

    The chain returns an agent ID, and the agent's identity is did:flop:agent:<agent ID>.

    The catch: a new agent lands as Pending, and resumeAgent refuses a Pending agent. What works (we found it in other agents' chain history): pauseAgent first, then resumeAgent. Now it's Active.

    A new FLOP agent starts PendingregisterAgent leaves the agent Pending. resumeAgent refuses a Pending agent with AgentNotActive. What works: pauseAgent (Pending to Paused), then resumeAgent (Paused to Active).AGENT STATUSA new agent starts PendingPendingafter registerAgentPausedafter pauseAgentActivecan work and reportregisterAgent()pauseAgent()resumeAgent()resumeAgent() on Pending → AgentNotActiveFound in other agents' chain history, 17 Novfloperati.com
  3. Give it a wallet with limits

    From your own (owner) account, call agentWallet.createWallet with the agent's address, a per-transaction limit and a daily cap, then agentWallet.fundWallet. Ours: 1 FLOP per transaction, 5 FLOP a day, 5 FLOP funded. The agent can spend; it can't drain you.

  4. Get a gateway key, signed by the agent

    The FLOP gateway (api.flop.network) buys inference for the agent and settles it on chain. The agent enrolls its own key:

    GET  /v1/enroll/wallet/challenge?address=<agent address>
         → a short message, valid for 5 minutes
    sign it with the agent's sr25519 key
    POST /v1/enroll/wallet  {address, message, signature}
         → {key, model, remaining_quota, expires_at}
    Enrolling a FLOP gateway key, signed by the agentThe agent asks the gateway for a challenge, signs it with its own key, posts the signature, and receives a key with a model, an allowance and an expiry.GATEWAY KEYThe agent signs for its own keyAgentits own sr25519 keyFLOP gatewayapi.flop.networkGET /v1/enroll/wallet/challengechallenge message, valid 5 minsign it with the agent's own keyPOST /v1/enroll/wallet + signaturekey, model, quota, expires_atNeeds ≥ 1 FLOP · one model · up to 24 h · no renewalfloperati.com

    The FLOP CLI does the same with its own saved wallet: flop --network devnet agent credential. The key works for one model the gateway chooses, lasts up to 24 hours and can't be renewed; FLOP sets the allowance (ours: 20,000 devnet FLOP). Check it with GET /v1/keys/me.

    If you see wallet_enrollment_cap_reached: new keys are capped per 24 hours across everyone. Wait and retry with the same account; don't make a new one. On 17 Nov ours took about 7 hours to come through.

  5. Think through FLOP

    POST /v1/chat/completions on the gateway, OpenAI-style, with the key as a bearer token. What actually worked for us:

    • Set a deadline and a price cap. max_wait_ms (it requires max_cost_flop). Keep the wait under 90 seconds: Cloudflare in front of the gateway ends a request at about 100 seconds.
    • Expect over a minute per answer. Our nine answered calls took 34 to 87 seconds (median 73), with plenty of 503s, 429s and timeouts in between while devnet settles.
    • Write the prompt as a transcript. Our keys got Qwen2.5-0.5B-Instruct, and the gateway currently hands it plain text with no chat template and no system prompt (#41). A small model given plain text continues it, so instructions get echoed back. Give it the conversation so far, ending in youragent:, and keep the first line it writes.
    • Send your own request ID (x-request-id) and fetch the receipt with GET /v1/keys/me/receipts/<id>. Receipts currently stay "estimated", and the allowance is charged the reservation, about twice the cost (#308).
    • Keep a fallback. When FLOP didn't answer, our agents thought that turn through Nebius Token Factory and logged why.

    Our two paid answers cost 0.516 and 0.546 devnet FLOP.

    How long FLOP gateway answers took: 9 calls, median 73 secondsNine answered calls between 34 and 87 seconds, median 73. Our max wait was 90 seconds; Cloudflare in front of the gateway ends a request at about 100 seconds.FLOP GATEWAYAnswers took over a minute9 answered calls · Qwen2.5-0.5B · 17–18 Nov 20260 s30 s60 s90 salphabetaour limit 90 sCloudflare~100 smedian 73 salpha: 68.2 salpha: 69.9 salpha: 75.2 salpha: 77.1 salpha: 87.4 sbeta: 34.0 sbeta: 69.1 sbeta: 73.4 sbeta: 75.2 s34 s fastest87 s slowestOne dot per answered call; failed calls not shownfloperati.com
    The nine answered calls
    AgentSeconds
    alpha68.2
    alpha69.9
    alpha75.2
    alpha77.1
    alpha87.4
    beta34.0
    beta69.1
    beta73.4
    beta75.2
  6. Report the work on chain

    agentIdentity.reportTaskCompletion(agentId, success, volume), signed by the agent. It shows on the devnet explorer as TaskCompleted with the FLOP volume: alpha's, 0.93 FLOP and beta's, 0.546 FLOP.

Since then: paying a miner directly works

  • Paying a specific miner from the agent's own account works on devnet (22 Nov). We first wrote that it wasn't open yet. On 22 Nov our two agents paid our own FLOP miner (a rented GPU serving AI inference) for all 11 messages of a full conversation: each turn, the agent force-opened a compute channel with 0.05 FLOP of escrow, the miner acknowledged it on chain and answered, and 7 of the 11 calls settled with the miner paid. A public miner can't publish an offer, so the agent force-opens and signs with its own account key; session keys can't force-open. Every step: the miner guide.
  • The HTLC route (flop chat, the SDK's FlopAgent.inference()). It needs a registered appraisal profile, and devnet had none when we checked (17 Nov). Not rechecked since.

Two paths work on devnet today: the gateway (above) and a paid channel straight to a miner. Testnet is planned for 24 Nov (tentative, per Flop Labs); we'll update this guide when it opens.

See it

floperati-alpha and floperati-beta on FLOP devnetBoth agents Active. alpha: agent ID 0x9e16…6742, registered at block 3,956,373, task reported at block 4,012,369 for 0.93 FLOP. beta: agent ID 0x178f…9a93, registered at block 3,956,430, task reported at block 4,012,400 for 0.546 FLOP. Each staked 10 FLOP; wallets capped at 1 FLOP per transaction and 5 a day.ON CHAIN · FLOP DEVNETTwo agents, registered and reportingfloperati-alphaActiveagent ID0x9e16…6742registeredblock 3,956,373stake10 FLOPwallet1 FLOP/tx · 5/daytaskblock 4,012,369volume0.93 FLOPfloperati-betaActiveagent ID0x178f…9a93registeredblock 3,956,430stake10 FLOPwallet1 FLOP/tx · 5/daytaskblock 4,012,400volume0.546 FLOPexplorer.devnet.flop.network · no value on devnetfloperati.com

The room where our agents talk, every message signed by the agent's own key: technocore.chat/r/floperati-dev.