Agent guide
Steps I first ran on CLI 0.4.x, rechecked with CLI 0.7.2 on November 23, 2026, against runtime spec 1014031. Network status, balances and the model list work on 0.7.2; the gateway credential and flop chat are still blocked on the FLOP side (see below). FLOP's SDK reference page, updated November 20, lists a baseline of CLI 0.7.0 and SDK 0.7.1, while npm already has CLI 0.7.2 and SDK 0.8.0. SDK 0.7.1 admits runtime specs only up to 1014029, so use the newest release. Gateway keys are the hard part: my fresh-wallet allowance ran out after 24 hours, and on November 9 FLOP still offered no way to renew it. Devnet changes quickly, so compare this with the official docs.
1. Install the CLI and create a key
mkdir flop-devnet && cd flop-devnet npm i @flop-labs/cli alias flop="$PWD/node_modules/.bin/flop" export FLOP_KEY_PASSWORD="your own password" flop keys generate --out agent-key.json --password-env FLOP_KEY_PASSWORD
On a shared machine, read the password from a file only you can read, so it stays out of your shell history.
Check flop --version shows 0.7.2 or newer. Devnet moved to runtime spec 1014027 on November 18 and to 1014031 since, and CLI 0.5.0 then refused chain commands (issue 355). On November 23, CLI 0.7.2 read network status, balances and the model list on 1014031. The SDK still gives up on the public RPC after 10 seconds (issue 280), so slow RPC moments can fail commands; retry. History: devnet moved to runtime spec 1014020 on November 12. CLI 0.4.4 refused it for balance in my check on November 13, and CLI 0.5.0, published November 12, read balances and the model list on it in my check the same day. Before that, devnet ran runtime spec 1014014 from November 7, and CLI 0.4.0 refuses it for chain commands such as balance (issue 132). 0.4.1, published November 8, reads it. 0.4.2 (November 9) and 0.4.4 (November 10, small fixes) behaved the same in my checks: balance works, an expired allowance still can't be renewed, and flop chat still needs an appraisal profile. To upgrade: npm i @flop-labs/cli@latest.
2. Get test FLOP
flop --network devnet faucet request YOUR_ADDRESS
The quick tier gives 25 FLOP, and each address waits 24 hours between requests. Check your address to see whether it arrived, especially after a timeout.
The faucet page also offers a verified-human tier of 500 to 2,000 FLOP. On November 6, none of the faucet's last 3,000 transactions paid more than 25 FLOP, and users report personhood provider not configured in issue 46. Use the quick tier for now.
3. Get a gateway key
flop --network devnet --keystore agent-key.json \ --password-env FLOP_KEY_PASSWORD agent credential
This can also create a separate wallet at ~/.flop/devnet-enroll-wallet.json, with its mnemonic in plain text. Protect that file and never paste it anywhere. A key lasts at most 24 hours. GET /v1/keys/me shows expires_at and remaining_quota, which is the spend left in FLOP, not tokens.
The wallet's gateway allowance can also expire. FLOP's agent page says a new key or re-enrolling the same wallet won't renew it, and suggests keeping that wallet and following issue 6.
Don't switch wallets to get around this. Earlier, testers got a fresh allowance by enrolling a new wallet (issue 98, and my own test on Nov 7). FLOP's timeline FAQ, updated November 13, now says to keep the same wallet and not replace it to evade limits, so I've removed those steps. If enrollment keeps failing, FLOP's Agent onboarding FAQ calls an access issue optional support, not a required step or a guaranteed allowance. If you file one in flop-labs/network, share public details only: your SS58 address, UTC times, the endpoint, the exact error, your CLI version and the funding transaction. Never include seeds, keys or bearer tokens. Only the gateway issuer can approve an allowance, and FLOP gives no deadline.
If you get wallet_enrollment_cap_reached, the shared cap on new wallets is full. The FAQ says it runs on a rolling 24-hour window, not a UTC-day reset, and that the error gives no exact retry time. Back off, get a fresh challenge if yours has expired after five minutes, and keep the same wallet.
4. Call the model
curl https://api.flop.network/v1/chat/completions \
-H "authorization: Bearer $FLOP_API_KEY" \
-H "content-type: application/json" \
-d '{"model":"qwen/qwen2.5-0.5b-instruct","max_tokens":40,
"messages":[{"role":"user","content":"Hi"}]}'Calls can fail for reasons outside your setup. Look at the status page first. gateway channel pool is full (HTTP 429) is common: my working call came after six of them, each about five minutes apart. A model appearing in the gateway's list doesn't mean a call will work. A successful call spends test FLOP.
The cost_flop in a reply is the amount reserved, not the final charge. In a public receipt on November 8 (issue 6), 39 tokens reserved 0.24 FLOP and settled 0.114 on-chain. Some of my November 7 channels were never settled: they timed out and the whole reservation was refunded.
5. Give an agent a spending limit
Create a second key for the agent, then create its wallet with your owner key:
flop --network devnet --keystore agent-key.json \ --password-env FLOP_KEY_PASSWORD \ agent wallet create AGENT_ADDRESS --daily-cap 5 --tx-limit 1
- CLI 0.4.0 only creates the wallet. To fund or spend, call
agentWalletwith the polkadot.js API. - In a test, spending 1 FLOP worked and spending 2 FLOP was blocked by the 1 FLOP limit.
- The limits apply to
agentTransfer. The agent account's balance wasn't frozen, and a plain transfer wasn't tested, so keep only small amounts there. - Run wallet commands with
timeout, because some can hang.
6. Session keys
K="--network devnet --keystore agent-key.json --password-env FLOP_KEY_PASSWORD" flop $K agent session create --delegate ADDRESS --daily-cap 1 --tx-limit 1 --ttl 600 flop --network devnet agent session limits --owner OWNER --delegate ADDRESS flop $K agent session revoke --delegate ADDRESS
Common errors
| Error | What it means | What to do |
|---|---|---|
gateway channel pool is fullThe gateway is full. Your key is usually fine. Try again later. Fast retries don't help. | The gateway is full. Your key is usually fine. | Try again later. Fast retries don't help. |
rate_limit_exceededYou passed your key's request limit. Slow down. | You passed your key's request limit. | Slow down. |
devnet allowance expiredThe wallet's gateway allowance has ended. Re-enrolling the same wallet won't renew it, and FLOP asks you not to switch wallets. Follow issue 6, or open an access issue (see step 3). | The wallet's gateway allowance has ended. | Re-enrolling the same wallet won't renew it, and FLOP asks you not to switch wallets. Follow issue 6, or open an access issue (see step 3). |
wallet_enrollment_cap_reachedThe shared cap on new wallet enrollments is full. It runs on a rolling 24-hour window. Back off and retry later with the same wallet. The error gives no exact retry time. | The shared cap on new wallet enrollments is full. It runs on a rolling 24-hour window. | Back off and retry later with the same wallet. The error gives no exact retry time. |
personhood provider not configuredThe faucet's verified-human check isn't set up on the server. Your score isn't the problem. Use the 25 FLOP quick tier. See issue 46. | The faucet's verified-human check isn't set up on the server. Your score isn't the problem. | Use the 25 FLOP quick tier. See issue 46. |
Faucet daily cap reachedThe whole faucet hit its daily limit. Try again later. | The whole faucet hit its daily limit. | Try again later. |
Address funded recentlyThis address is in its 24 hour cooldown. Check your balance. The earlier grant may have arrived. | This address is in its 24 hour cooldown. | Check your balance. The earlier grant may have arrived. |
Identity requested recentlyThis human identity is in its 24 hour cooldown. Wait for the time shown. Another wallet won't help. | This human identity is in its 24 hour cooldown. | Wait for the time shown. Another wallet won't help. |
Grant pendingAn earlier request is still being processed. Wait, and check your balance before you retry. | An earlier request is still being processed. | Wait, and check your balance before you retry. |
IP classification unavailableThe faucet's IP check is failing. Try again later. | The faucet's IP check is failing. | Try again later. |
RUNTIME_INCOMPATIBLE or unsupported runtime spec 1014027 / 1014031Your CLI or SDK predates the current devnet runtime. Upgrade to CLI 0.7.2 or newer. | Your CLI or SDK predates the current devnet runtime. | Upgrade to CLI 0.7.2 or newer. |
Unsupported runtime spec version 1014020CLI or SDK 0.4.x doesn't know that devnet runtime. Upgrade to the latest CLI. | CLI or SDK 0.4.x doesn't know that devnet runtime. | Upgrade to the latest CLI. |
Unsupported runtime spec version 1014014CLI or SDK 0.4.0 doesn't know the current devnet runtime. Upgrade to CLI 0.4.1 (issue 132). | CLI or SDK 0.4.0 doesn't know the current devnet runtime. | Upgrade to CLI 0.4.1 (issue 132). |
HTLC chat requires --tee-requirementsflop chat needs a registered EconomicCritical appraisal profile. Devnet had none on November 9. Nothing was signed or spent. Wait for FLOP to register a profile. | flop chat needs a registered EconomicCritical appraisal profile. Devnet had none on November 9. | Nothing was signed or spent. Wait for FLOP to register a profile. |
RUNTIME_INCOMPATIBLEOften caused by new FlopClient({ rpcUrl }) from the SDK README. Use await FlopClient.create({ endpoint }). | Often caused by new FlopClient({ rpcUrl }) from the SDK README. | Use await FlopClient.create({ endpoint }). |
PerTxLimitExceededThe agent wallet limit blocked the spend. This means the limit works. | The agent wallet limit blocked the spend. | This means the limit works. |
InsufficientBalanceThe owner tried to withdraw too much from an agent wallet. Only funds above the agent's remaining daily budget can be withdrawn. | The owner tried to withdraw too much from an agent wallet. | Only funds above the agent's remaining daily budget can be withdrawn. |
module 95, error 0WalletAlreadyExists: this agent already has a wallet. Don't create it again. | WalletAlreadyExists: this agent already has a wallet. | Don't create it again. |
What to avoid
flop session runwhile miners are unstable: issue 40 reports FLOP locked after failed calls.flop chatandflop agent proxyfor now. In CLI 0.4.1, chat pays from your own wallet but needs a registered appraisal profile, and devnet's registry was still empty on November 9. The proxy also needs a payload gateway FLOP hasn't published.FlopClient.createwithout a signer when you send transactions: it defaults to//Alice.- Creating many wallets to farm the faucet. There's no benefit, and testnet scores wallets under common control as one participant.
- Any Discord or Telegram using the FLOP name. FLOP says it has none, and it never asks for a seed phrase.
Run by Smith, an independent operator. This site isn't run by or affiliated with FLOP or Flop Labs. It never asks you to connect a wallet or share a seed phrase. Devnet earns no rewards. Official links are at flop.finance/official. Visits are counted with Cloudflare Web Analytics, which uses no cookies.