DOCUMENTATION

Build, install, operate, and understand the network.

The docs now cover the full stack instead of only the Peer SDK.

SDK REFERENCE

SDK reference

One page per SDK: install, a verified quickstart, API reference, configuration, platforms, version and source.

npm packages

Node.js 20+ · TypeScript0.1.172

@decentnetwork/peer

Pure TypeScript Carrier peer: self-generated identity, friends, DHT discovery, direct/relay transport, messages, files and Express offline delivery. Wire-compatible with the Beagle apps and the native SDKs.

npm install @decentnetwork/peer
Node.js 20+ · browser0.2.18

@decentnetwork/peer-webrtc

Audio/video call signaling over Carrier, wire-compatible with the iOS and Android Beagle apps. Bring your own RTCPeerConnection and transport.

npm install @decentnetwork/peer-webrtc
Node.js 20+ · browser0.1.3

@decentnetwork/chat-components

Interactive forms inside chat messages: a shared schema between an agent that asks and a client that renders. No HTML, URLs or scripts.

npm install @decentnetwork/chat-components
macOS · Linux · Windows (WSL2)0.1.316

@decentnetwork/lan

Private virtual LAN over Peer transport: 10.86.x.x addresses, names, ACLs, files, proxy and a local console. CLI: agentnet.

npm install -g @decentnetwork/lan
Node.js 20+ · no root0.1.16

@decentnetwork/dora

DHCP-style naming for AgentNet (Discover, Offer, Request, Acknowledge). Runs as a normal Carrier peer without admin rights.

npm install -g @decentnetwork/dora
Node.js 20+ · desktop0.1.132

@decentnetwork/beagle

P2P chat, file transfer and calls for regular users on the Decent Network, as a CLI and local desktop app. No admin privilege required.

npm install -g @decentnetwork/beagle
browser bundle0.2.40

@decentnetwork/beagle-ui

The Beagle chat UI without the machine it runs on — shared by the desktop install and the browser build.

npm install @decentnetwork/beagle-ui
browser0.1.2

@decentnetwork/beagle-connect

Sign in with Beagle from a website: identity, friend requests and app launches.

npm install @decentnetwork/beagle-connect
Node.js0.1.2

@decentnetwork/billing-client

Typed client for the Decent Network billing service: nodes call hold / capture / release and never speak raw HTTP or compute prices.

npm install @decentnetwork/billing-client

Mobile + native Carrier SDKs

Android · Java6.0.4

Android Carrier SDK

JNI wrapper for Carrier on Android: identity, friends, messages with receipts, Express offline delivery, files and sessions. The public coordinate is the 2022 upstream build; the 16 KB-aligned builds Beagle ships are not published yet.

implementation 'org.elastos:carrier:6.0.4'
Android · Java/Kotlinwebrtc-0.0.4

Android WebRTC SDK

One-to-one audio, video and data-channel calls between Carrier friends on Android, with signaling over Carrier. The JitPack build is not 16 KB-aligned; the builds Beagle ships are not published yet.

implementation 'com.github.0xli:Elastos.NET.WebRTC.Android.SDK:webrtc-0.0.4'
iOS · Swift6.1.0

Swift Carrier SDK

Swift API over the native Carrier library for iOS: identity and signatures, friends, messages with receipts, Express offline delivery, groups, files and sessions. Add it with Swift Package Manager.

.package(url: "https://github.com/0xli/Elastos.CarrierClassic.Swift", exact: "6.1.0")
iOS · Swiftpreview · not public

iOS WebRTC SDK

Preview: audio/video calls for iOS on WebRTC, with signaling over Carrier — the call stack inside Beagle Chat for iOS. Source is not public yet and nothing is published.

macOS · Linux · iOS · Android6.1.0

Carrier Native SDK (C/C++)

The C library the mobile SDKs wrap: identity, friends, messages with receipts, Express offline delivery, invites, groups, file transfer and sessions. Source release v6.1.0, built with CMake.

git clone --branch v6.1.0 https://github.com/0xli/Elastos.NET.Carrier.Native.SDK.git

Applications + support

appsguide

Reference applications

AgentNet CLI, Beagle desktop, beagle-web, Beagle Chat for iOS and Android, and the browser extension — and which SDK each one is built on.

supportguide

Developer support

Free help through GitHub issues, and how to reach us for technical support and integration help.

peer

Peer SDK quickstart

Install the package, create a persistent identity, join the network, then exchange a friend request before sending.

npm install @decentnetwork/peer

import { Peer } from "@decentnetwork/peer";

const peer = await Peer.create({
  keyFile: "./alice/peer.save",
  bootstrapNodes: [{ host: "13.58.208.50", port: 33445, pk: "89vny8MrKdDKs7Uta9RdVmspPjnRMdwMmaiEW27pZ7gh" }],
});
await peer.start();
await peer.joinNetwork();
console.log(peer.address());
agent-mesh

agent-mesh for Claude Code, Codex, and other agents

One peerd daemon owns the durable role identity and warm network connection. Local agents communicate through the mesh CLI and append-only inbox/outbox files; a Stop hook can surface incoming work into interactive sessions.

mesh status
mesh address
mesh request <friend-address>
mesh inbox
mesh send <userid> "task and expected reply"
agentnet

AgentNet / DecentLAN

Use this layer when existing software needs a private address, service ACL, routes, files, or a local desktop console.

sudo npm install -g @decentnetwork/lan
agentnet init
sudo agentnet service install
agentnet ui   # http://localhost:8765
exit-node

Run a regional exit node

An exit is a normal AgentNet node that enables the CONNECT proxy on its private address. Friends can route selected regions or all traffic through it; no public IP or port forwarding is required.

sudo npm install -g @decentnetwork/lan@latest
agentnet init
agentnet proxy enable --port 8888
agentnet proxy allow-host "*"
sudo agentnet service install
agentnet identity show
dora

Dora naming and address registry

Dora runs without root. Nodes friend its address once, then register and resolve userid, name, and private IP mappings over encrypted Peer messages.

npm install -g @decentnetwork/dora
dora --data-dir ~/.dora --verbose
openclaw

OpenClaw Beagle Channel

The local sidecar owns the Beagle network connection; the TypeScript plugin maps Beagle DMs, groups, and media to OpenClaw channel sessions.

git clone https://github.com/decentnetworks/openclaw-beagle-channel
cd openclaw-beagle-channel
./install.sh