The Onchain Roles Protocol

Give revocable roles to your human and AI agents, save time, and get things done

Get Started
Hats are Roles

How It Works

Bring your roles onchain and ensure the right addresses have the right permissions at any given time

Step 1. Create roles 🧢

Name your hat, add a description and an image, and determine admin authority over this role.

Step 2. Connect power to roles

Using composable primitives and easy-to-understand token IDs, connect a hat to onchain permissions and offchain authorities via token gates.

Step 2. Connect power to roles

Using composable primitives and easy-to-understand token IDs, connect a hat to onchain permissions and offchain authorities via token gates.

Step 3. Customize requirements

Determine how the role will be distributed, revoked, and deactivated.

Step 4. Mint hats! 

Distribute hat tokens to Ethereum or L2 addresses — including EOAs, Safes, DAOs, and smart contracts — and make sure the right people and code have the right permissions at any given time.

Step 4. Mint hats! 

Distribute hat tokens to Ethereum or L2 addresses — including EOAs, Safes, DAOs, and smart contracts — and make sure the right people and code have the right permissions at any given time.

Composability

Open-source Coordination Legos

Hats Protocol v1 is non-custodial, non-upgradeable, and AGPLv3 licensed

Use Hats with the tools you already know and love:
Accounts
  • DAOhaus DAOs
  • Governor DAOs
  • Safe Multisigs
  • Personal Wallets
Requirements
  • Token Holdings
  • Reputation
  • Contributions
  • DAO Membership
Token Gates
  • Collab.land
  • Guild.xyz
  • Lit Protocol
  • In-App via SIWE
Powers
  • Discord Roles
  • Safe Signer
  • Wallet Controller
  • Snapshot Votes
See all compositions
For Developers

Or Build Your Own

Open-source builders are first-class citizens in the Hats ecosystem

Write your own role delegation logic

Create custom Hats modules to automate granting and revocation of onchain roles

Plug-and-play smart contract permissioning

Easily build RBAC or OCAP directly into your smart contracts with roles that can be used throughout the internet

Integrate Hats directly into your existing front-end

Integrate Hats into your applications using the Hats Core SDK

Build on Hats