Operator hub

SDK and package references

devnet · next · development

Last updated 2026-11-20

SDK and package references

These are the FLOP packages anyone can install today without a token or a private registry. Each name links to its registry page, which carries the full reference README for the published version. This page gives the current documented package baseline for Upgrade and Agent Integration. The registries carry the current availability of each version; source manifests can prepare releases in advance.

Published packages and compatibility

Package baseline 2026-11-25-sdk-0.12.0-cli-0.9.0-py-0.4.0, recorded 2026-11-25 against public registry metadata. Independent archive integrity: pending. Installed-package smoke checks: pending.

ComponentVersioned registry entry
Gateway client@flop-labs/client 0.2.2
HTTP API contracts@flop-labs/contracts 0.1.2
TypeScript SDK@flop-labs/sdk 0.12.0
Pi provider@flop-labs/pi 0.3.5
Full CLI@flop-labs/cli 0.9.0
Python SDKflop-sdk 0.4.0

Install pinned packages

Choose the command for the package you need. Keep the resolved dependency lockfile for repeatable installs.

npm install @flop-labs/client@0.2.2
npm install @flop-labs/contracts@0.1.2
npm install @flop-labs/sdk@0.12.0
pi install npm:@flop-labs/pi@0.3.5
npx --yes --package @flop-labs/cli@0.9.0 flop --version
pip install flop-sdk==0.4.0

Applications that import Pi library subpaths use npm install @flop-labs/pi@0.3.5. Pi declares these peer requirements: Pi AI ~1.4.0, Pi Durable ~1.4.0 (for durable applications), and Pi Coding Agent >=1.4.0 (for the coding-agent host).

Runtime admission

TypeScript SDK 0.12.0 admits exactly these spec versions, as listed in the versioned dist/runtime-compatibility.js distribution file:

1013000, 1014000, 1014001, 1014002, 1014003, 1014004, 1014005, 1014007, 1014008, 1014009, 1014010, 1014011, 1014012, 1014013, 1014014, 1014015, 1014016, 1014017, 1014018, 1014019, 1014020, 1014021, 1014022, 1014023, 1014024, 1014025, 1014026, 1014027, 1014029, 1014031, 1014034, 1014035, 1014037, 1014038.

SUPPORTED_SPEC_VERSION_RANGE (1013000..1014038) is informational. Admission requires membership in SUPPORTED_SPEC_VERSIONS. Keep compatibility checks enabled.

Python SDK 0.4.0 admits exactly these spec versions (flop_sdk/client.py): 1013000, 1014000, 1014001, 1014002, 1014003, 1014004, 1014005, 1014007, 1014008, 1014009, 1014010, 1014011, 1014012, 1014013, 1014014, 1014015, 1014016, 1014017, 1014018, 1014019, 1014020, 1014021, 1014022, 1014023, 1014024, 1014025, 1014026, 1014027, 1014029, 1014031, 1014034, 1014035, 1014037, 1014038.

Package compatibility does not establish live runtime activation, enrollment, model availability or paid settlement. Compare the connected network and finalized runtime with the operator's approved release receipt.

FLOP has not published Rust crates, a Go module, or the agent SDK, gateway core, x402 types or Hermes plugin packages. A package with one of those names on a public registry is not FLOP's.

Which one do I need?

@flop-labs/client

A small ESM Fetch client for browsers and Node.js 22 or later. Its only runtime dependency is @flop-labs/contracts.

import { FlopClient } from "@flop-labs/client";

const client = new FlopClient({ apiKey: process.env.FLOP_API_KEY });
const models = await client.listModels();
const completion = await client.createChatCompletion({
  model: models.data[0].id,
  messages: [{ role: "user", content: "Hello" }],
});

The default base URL is https://api.flop.network/v1. Model discovery needs no key; chat completions do. Methods: listModels, getModel, createChatCompletion, and streaming chat completions. Errors surface as FlopHTTPError. The README also covers caller-owned replay identity, recovering an ambiguous request, and task correlation.

@flop-labs/contracts

Structural types, JSON Schema exports and assert* validators for the public HTTP API: model listing, model lookup, and JSON chat completion requests, responses and stream frames. Node.js 22 or later.

import { assertModelList } from "@flop-labs/contracts";

const value: unknown = await fetch("https://api.flop.network/v1/models").then((r) => r.json());
assertModelList(value);

@flop-labs/sdk

The TypeScript SDK for chain-level work.

HTLC creation requires a registered TEE appraisal profile; the README explains the tee_requirements value.

@flop-labs/pi

A Pi package that adds a flop provider, with one model per offer the gateway lists, and the flop/auto virtual model, which picks a FLOP model for each request. See the package baseline for the Pi peer requirements.

Set FLOP_GATEWAY_URL and FLOP_API_KEY. Use a bounded child credential with a spend cap and reserve owner keys for managing credentials.

@flop-labs/cli

The flop command. The full CLI needs Node.js 22 or later.

A container image, ghcr.io/flop-labs/flop-core/cli, needs only Docker. For a reproducible digest pin, use flop.network/releases.json. Container build versions, npm CLI versions and public Hermes launcher versions are separate sequences; a container version does not identify an npm package. Commands cover role onboarding, networks and the faucet, health, balances, GPU detection, staking, session keys, named-miner inference, models, gateway configuration, keys and air-gapped signing, and wallets. Add --network <name> to target a network.

flop-sdk (Python)

The Python SDK, for Python 3.10 or later.

from flop_sdk import FlopClient

async with FlopClient() as client:
    health = await client.health()

Other public surfaces

These packages target the development network today, subject to admission and live readiness. Devnet uses faucet-issued, non-tradable test FLOP with no value and no airdrop credit. There is no launched or tradable mainnet FLOP token, and no package here sells or claims one.

Public reports and release notes

Report SDK, CLI and documentation problems through the existing FLOP Network issue chooser. Include the exact package version, network, command or minimal example and redacted error output; never include seeds or bearer credentials. Follow the private security reporting policy for exploitable issues. The source repository is private.

Public release notes use component and version tags such as sdk/v<version> and pi/v<version>. Package publication and publication of those notes are separate steps; a missing public note does not prove an artifact is unpublished.