Skip to content

Lit Protocol

Lit Protocol runs JavaScript inside an attested TEE that holds signing and encryption keys. Rules for which code may use a key live in smart contracts on Base.

Overview

Lit Protocol is a programmable key-management and compute runtime. Developers write small JavaScript programs called Lit Actions. These run inside a trusted execution environment that can read data from APIs or chains, encrypt and decrypt secrets, and sign transactions with wallets the network manages. The current version, called Chipotle, has a hosted dashboard and REST API, so there is no node or backend to run.

Typical uses are automated wallets for trading bots and agents, cross-chain actions, custom oracles, conditional signing (sign only if a price, KYC or dispute condition holds), and storing encrypted credentials that only approved code can decrypt. Lit also publishes Agent Keychain, an open-source app that lets AI agents use stored API keys through MCP without exposing them.

Keys, secrets and the memory of running actions are private. Permission rules on Base are public by design.

Key features

  • Lit Actions — immutable JavaScript identified by its IPFS content hash, executed in a sandbox inside the TEE.
  • PKPs (programmable key pairs) — wallets whose private keys are derived inside the enclave and used only when the onchain rules allow it.
  • Encrypted secrets — encrypt data to a PKP or to one specific action, so only authorized code can decrypt it.
  • Derived Actions — stamp a config into one audited template to mint a new immutable action with its own key per user or tenant.
  • Remote attestation — clients can check that the API endpoint terminates in a genuine TEE running the published code.

How the privacy works

Chipotle has three layers. A TEE enclave (on Phala’s dstack) holds the root key and does all sensitive work: key derivation, permission checks and sandboxed execution. Smart contracts on Base hold all authorization state: the account owner, API keys and their scopes, PKPs, and groups that bind PKPs to the content hashes of allowed actions. Actions are content-addressed code.

For every request the enclave hashes the submitted code, reads the contracts on Base, and only then runs the action or derives a key. Changing even one character changes the hash, so modified code cannot use a key. Lit calls this “Chain Secured”: the chain is the authority and the attested TEE enforces it by reading it.

Trade-offs and things to know

  • Secrecy rests on TEE hardware and the attested code. Lit’s earlier node software repository (lit-peer) is archived on GitHub, and the current design is a TEE runtime rather than a threshold network.
  • In API mode, a Lit-managed credential owns the account and relays changes. Only ChainSecured mode, where your own EOA or Safe owns the account, is fully self-custodied.
  • The permission graph on Base is public, so observers can see which actions and keys are linked.
  • The audits linked below (NCC Group, Kudelski Security, Trail of Bits) cover earlier Lit network versions and its cryptography. No third-party audit report for Chipotle was found at the time of review.

Getting started

Follow the Quick Start in the developer docs: create an account in the Dashboard or through the REST API, fund it, and run a first Lit Action. Read the “Chain Secured” and “What Is Attestation?” pages before you move real funds, and switch the account to ChainSecured mode for production.

Sources and audits

Primary sources: official website, documentation and source code. Checked against these on . How we review listings.

Mechanism notes

TEE

Hides: Code and data inside a hardware enclave, checked by remote attestation.

You trust: The chip vendor and the enclave design; side-channel attacks have broken TEEs before.

Read the guide

Impersonators are common. Check links against the official website before connecting a wallet.

Alternatives to Lit Protocol

All 10 in confidential compute