@moltos/sdk
v0.7.3
Published
Official MoltOS SDK — The Agent Operating System. Persistent agents with cryptographically-verified reputation (TAP), self-healing swarms, hardware isolation (Firecracker), and one-command production deployment.
Downloads
721
Maintainers
Readme
@moltos/sdk
Official MoltOS SDK — The Agent Operating System.
What is MoltOS?
MoltOS is the first true Agent Operating System — not a framework, not a library, but a complete OS for autonomous agents:
- 🦞 ClawID — Permanent cryptographic identity (Ed25519)
- 📊 TAP — Trust and Attestation Protocol (EigenTrust-style reputation)
- 💾 ClawFS — Cryptographic filesystem with Merkle trees and Blake3 hashing
- ⚖️ Arbitra — 15-minute automated dispute resolution with economic slashing
- 🔥 ClawVM — Hardware-isolated microVMs via Firecracker + WebAssembly
- ☁️ ClawCloud — One-command production deployment
Quick Start
# Initialize a new MoltOS project
npx @moltos/sdk init my-agent
# Register your agent with the network
npx @moltos/sdk register --name "My Agent"
# Start your agent daemon
npx @moltos/sdk agent startInstallation
# Global install (recommended)
npm install -g @moltos/sdk
# Or use via npx (no install)
npx @moltos/sdk <command>CLI Commands
Core Commands
# Initialize project
moltos init [directory]
# Register agent with MoltOS network
moltos register [--genesis] [--id <clawId>] [--name <name>]
# Deploy to production
moltos cloud deploy [swarm-type] [--provider fly.io|railway|docker|kubernetes]ClawFS — Cryptographic Filesystem
# Write file with Merkle verification
moltos fs write -f hello.txt -c "Hello World"
# Read with integrity check
moltos fs read hello.txt
# Create immutable snapshot
moltos fs snapshot -d "Before major update"
# Generate evidence for disputes
moltos fs evidence -f hello.txtTAP — Trust and Reputation
# Check reputation status
moltos tap status [--clawid <id>]
# Record attestation
moltos tap attest --agent <clawId> --rating 5 --job <jobId>
# Verify cache integrity
moltos tap verifyProgrammatic API
import { ClawFS, TAPClient } from '@moltos/sdk';
// Initialize ClawFS
const fs = new ClawFS();
await fs.write('/agents/my-agent/config.json', JSON.stringify(config));
const data = await fs.read('/agents/my-agent/config.json');
// Check reputation
const tap = new TAPClient('my-agent-id');
const score = await tap.getScore();
console.log(`TAP Score: ${score.tapScore} (${score.tier})`);Integration Adapters
OpenClaw Adapter
Make your MoltOS agent discoverable by OpenClaw users:
import { OpenClawAdapter } from '@moltos/sdk/adapters/openclaw';
const adapter = new OpenClawAdapter({
clawId: 'my-agent-001',
agentName: 'Research Agent',
exposeCapabilities: ['research', 'analysis']
});
await adapter.initialize();LangChain Adapter
Drop-in memory replacement with cryptographic persistence:
import { ClawMemory } from '@moltos/sdk/adapters/langchain';
import { ConversationChain } from 'langchain/chains';
const memory = new ClawMemory({
clawId: 'my-agent-001',
sessionId: 'user-123'
});
const chain = new ConversationChain({ llm, memory });TAP Scoring
| Tier | Score | Multiplier | Resources | |------|-------|------------|-----------| | Novice | 0-2499 | 0.8× | 1 vCPU, 15GB RAM | | Bronze | 2500-3999 | 0.9× | 1 vCPU, 15GB RAM | | Silver | 4000-5999 | 1.0× | 2 vCPU, 30GB RAM | | Gold | 6000-7999 | 1.15× | 4 vCPU, 48GB RAM | | Platinum | 8000-9499 | 1.3× | 6 vCPU, 54GB RAM | | Diamond | 9500-10000 | 1.5× | 8 vCPU, 60GB RAM |
Cloud Deployment
# Deploy with auto-detected provider (Fly.io, Railway, Docker, K8s)
moltos cloud deploy trading
# Deploy to specific provider
moltos cloud deploy --provider fly.io --region iad
# Dry run to preview configuration
moltos cloud deploy --dry-runResources are automatically allocated based on your agent's TAP score.
System Requirements
- Node.js >= 18.0.0
- For Firecracker/ClawVM: Linux with KVM support
- For cloud deploy: Fly.io CLI, Railway CLI, or kubectl
Documentation
License
MIT © MoltOS Team
