Meshy

A decentralized mesh VPN for people and AI agents: access is an ENS name, revoke on-chain to cut it.

Meshy

Created At

ETHGlobal Mumbai

Project Description

TL;DR Meshy gives AI agents time-boxed, folder-scoped access to real machines, and every permission is an ENSv2 name. Unregister the name on-chain and the agent's live session dies in the same block.

THE PROBLEM Agents now need SSH and file access to servers, Raspberry Pis and GPU boxes. Today that means permanent SSH keys or all-or-nothing VPNs: no expiry, no folder scoping, no trustworthy audit trail, and no reliable kill switch.

HOW MESHY SOLVES IT

  • Access is a name: claude-1.db1.prod.acme.meshy.eth = one agent, one machine, one hour, /srv read-only.
  • Revoke is one transaction: the daemon re-checks every live session on every block and kills it about 150 ms after the block lands.
  • Sandboxed sessions: the agent sees only the granted folders and has no network.
  • Tamper-evident audit: every read, write and blocked attempt is encrypted to the org key and written to Arkiv.
  • Deny-by-default WireGuard mesh, rebuilt from ENS every 10 seconds.
  • Self-serve: create an org (you.meshy.eth) in one transaction and invite people by link, QR code, wallet or email.

IMPACT

  • Access expires by default, so a leaked credential stops working on its own.
  • The access list is public chain state: there is no vendor database to breach or quietly edit.
  • Anyone can run the network: providers stake ETH and are slashed if they admit a revoked agent.

USE CASES

  • Let Claude Code debug a production database for one hour, read-only.
  • Share a home lab, Raspberry Pi or camera with a teammate's agent, then revoke it.
  • Give contractors' agents scoped access with a complete audit trail.
  • Manage agent access across Macs and Linux boxes from one menu-bar app.

OPEN-SOURCE PROJECTS WE BUILT ON

  • NetBird: provider mesh. Open-source WireGuard control plane; meshy-sync turns ENS grants into NetBird groups and policies.
  • WireGuard: transport. Fast, audited encryption between every peer.
  • go-ethereum: daemon and CLI. ENS reads, per-block watching and transaction signing in Go.
  • gliderlabs/ssh: meshyd. Custom SSH server that authenticates agents from their ENS records.
  • bubblewrap + go-fuse: Linux sandbox. Our GateFS checks every file path against the grant policy.
  • Foundry: contracts. Fork tests against the real ENSv2 contracts on Sepolia.
  • viem, Next.js, shadcn/ui, Tailwind: dashboard. Wallet sign-in, ENS reads and the admin UI.
  • Traefik + Let's Encrypt: provider TLS with zero DNS setup.

How it's Made

ENSv2 (ENS) Why: ENSv2 gives every name its own registry, native expiry and role-based access control (EAC), so the name tree itself can be the access-control list. How: orgs, networks, devices, agents, people and grants are all ENSv2 names on Sepolia. Grants are minted with no roles, so an agent can't renew or transfer its own access; expiry is ENS expiry and revoke is unregister. EAC roles give network admins power only inside their network. Each agent has its own PermissionedResolver and can set only its SSH key. MeshyOrgFactory creates a full org in one transaction, and MeshyInvites lets admins sign EIP-712 invites that anyone can claim on-chain.

Arkiv Why: we needed an audit log that the org's own admin can't edit or delete, and that the dashboard can query without trusting our servers. How: meshyd writes session, blocked-attempt and audit-chunk entities with their own lifetimes. Payloads are gzipped and encrypted to the org key. Reads filter by $owner against the daemon address published in ENS, so spoofed entities are ignored. There's no Go SDK, so we hand-encode raw execute() transactions.

Ethereum + Sepolia + Foundry (Ethereum Foundation) Why: open, verifiable infrastructure with no trusted operator. How: ProviderRegistry lets anyone stake to run tunnels; each admission is an EIP-712 attestation, and anyone can slash a provider that admitted an expired grant, checked against ENSv2 on-chain (half the stake goes to the reporter). MeshySubscription sells seats in USDC. 31 Foundry tests run against a Sepolia fork, and the contracts are verified on Sourcify and Blockscout.

NetBird + WireGuard Why: a production-grade, open-source WireGuard mesh with an API, so we didn't have to build NAT traversal. How: meshy-sync runs beside NetBird on AWS EC2 and reconciles ENS state every 10 seconds: one group per device or agent, one policy per live grant, and NetBird's allow-all default deleted. The mesh client runs in userspace (no root) through NetBird's embed package, in its own Go module because of a pion/stun version clash with go-ethereum.

meshyd: go-ethereum + gliderlabs/ssh Why: one small Go binary that can watch the chain and terminate sessions directly. How: a custom SSH/SFTP server authenticates agents from ENS records and only forwards ports declared in ENS. A watcher re-checks every live grant on every block and fails closed if the chain head goes stale.

Sandboxing: bubblewrap + go-fuse, sandbox-exec Why: a grant should mean those folders and nothing else. How: on Linux, bubblewrap plus GateFS (a go-fuse filesystem) checks every path and blocks symlink and .. escapes. On macOS, a sandbox-exec profile, with blocked attempts turned into audit events.

Dashboard: Next.js + viem + shadcn/ui Why: a wallet-native admin console that reads straight from the chain. How: Sign-In with Ethereum, the org tree loaded from ENS (cut from 144 RPC calls to 13 with Multicall3), a live Arkiv activity feed, an access Gantt chart and kill-latency stats. Hosted on Vercel at meshy.live; invite emails go out through Resend.

Mac app (Swift/AppKit) and CLI Why: people and agents live in the menu bar and the terminal. How: a menu-bar app with wallet sign-in, auto-discovered orgs, Finder-mounted shared folders and access requests. A one-line installer (get.meshy.live) ships the meshy CLI, a terminal dashboard and a Claude Code plugin, so agents can join and request access themselves.

World ID How: the World ID Agent Pass flow (OIDC, token checks, signed attestation stored in ENS) is implemented; the demo org uses a dev-signed attestation.

background image mobile

Join the mailing list

Get the latest news and updates