Skip to content

wetware/ww

Repository files navigation

Wetware

CI

The peer-to-peer agentic OS.

Why?

Agentic frameworks give you a platform for running agents. Wetware gives your agents an operating system. It provides primitives (processes, networking, storage, identity) and gets out of the way. Processes are network-addressable, capability-secured, and peer-to-peer by default.

Where agentic frameworks rely on ambient authority — any code can call any API, read any secret, spend any resource — Wetware replaces this with capabilities. A process can only do what it's been handed a capability to do.

Quick start

Read github.com/wetware/ww/.agents/prompt.md, check if we're in a wetware environment, and help me get started.

How it works

ww run boots an agent:

  1. Starts a libp2p swarm on the configured port
  2. Loads bin/main.wasm from the merged image
  3. Spawns the agent with a Membrane — the capability hub that grants access to host, network, IPFS, and identity services via Cap'n Proto RPC

Agents call membrane.graft() to receive epoch-scoped capabilities. When the on-chain epoch advances (new code deployed, configuration changed), all capabilities are revoked and the agent must re-graft, picking up the new state automatically.

The shell

Glia is a Clojure-inspired language where capabilities are first-class values. The design blends three traditions:

  • E-lang: capabilities as values you can pass, compose, and attenuate
  • Clojure: s-expression syntax, immutable data, functional composition
  • Unix: processes, PATH lookup, stdin/stdout, init.d scripts

Building & testing

rustup target add wasm32-wasip2   # one-time
make                              # build everything (host + std + examples)
cargo test                        # run tests

Requires Rust with wasm32-wasip2 target. Optional: Kubo for IPFS resolution.

Container

make container-build                          # build with podman (default)
CONTAINER_ENGINE=docker make container-build  # or with docker
podman run --rm wetware:latest                # boots kernel + shell

Learn more

About

Decentralized Agentic OS — sandboxed WASM agents with capability-based security over Cap'n Proto RPC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages