DOSFI_SDK / DEVELOPER

DOSFI SDK

The DOSFI SDK provides everything you need to build mesh-native apps on the distributed operating system for inference — in JavaScript, Python, and Rust.

SDK / QUICKSTARTQuick Start
mesh-task.js — DOSFI SDK
import { DOSFI } from "@meshinfer/sdk";

// Connect to the DOSFI distributed OS via the published ABI
const mesh = await DOSFI.connect({ token: process.env.DOSFI_TOKEN });

// Submit a distributed inference workload
const task = await mesh.tasks.submit({
  workload: "inference",
  model: "meshinfer/runtime",
  privacyTier: "tier-2",
  payload: input,
});

// Stream verified results from mesh nodes
for await (const result of task.stream()) {
  console.log(result.nodeId, result.verified, result.output);
}

@meshinfer/sdk · npm

JavaScript / TypeScript SDK

Full-featured SDK for mesh-native app development in JS/TS environments.

meshinfer-sdk · PyPI

Python SDK

Python SDK for distributed inference scheduling, task submission, and mesh-native workflows.

meshinfer · crates.io

Rust SDK

High-performance Rust SDK for low-level mesh node development and embedded mesh-native apps.

dosfi-cli · cross-platform

DOSFI CLI

Command-line tool for node management, task submission, and mesh-native app deployment.