Lithe is an experimental smart contract language for the Ethereum Virtual Machine (EVM), designed and built by AI agents. According to Celestia Labs, its compiler aims to catch security mistakes that Solidity developers often rely on coding conventions to avoid. Developers can also check whether the deployed bytecode meets a written specification.
Lithe contracts have already run on Ethereum mainnet. In a migration of Modularium’s NFT contracts, the Lithe versions reportedly produced rendering outputs identical, byte for byte, to those of their Solidity counterparts while using 65–79% less gas for rendering. The project also used Lithe’s verification tool to check 40 specification files for those contracts.
What the compiler checks
A 2024 OWASP review attributed two-thirds of the $1.42 billion in losses it examined to access-control flaws. Lithe puts security rules in the compiler to help catch mistakes such as a missing check on who can call a function. It also requires external functions to list every error they can raise using the raises keyword. An omitted error stops compilation.
Lithe treats each entry point as a single state transition. Its defer keyword postpones an external call until the contract has finished updating its state. That ordering is designed to prevent reentrancy of the kind involved in the 2016 Ethereum DAO hack: an external call cannot interrupt the update and call back into a partially updated contract.
The lithe prove tool checks deployed bytecode against developer-written specifications across inputs and call orders. What it establishes depends on what the developer specified. For auditors, lithe abi-tree and lithe footprint expose function paths, state changes and declared errors.
How Lithe compared with Solidity compilers
The reported benchmarks compared Lithe with Solidity’s solc compiler and Paradigm’s Solar compiler. The largest gas savings were in deployment, not routine transactions.
| Measure | Reported result |
|---|---|
| Bytecode size | 40% smaller than optimized solc builds; 7% smaller than size-focused Solar builds |
| Deployment gas | 34% lower for OpenZeppelin’s ERC-20 contracts and 41% lower for its ERC-721 contracts, compared with solc |
| Transaction gas | About 2.5% lower than solc and on par with Solar |
| Compile time for 51 contracts | 0.6 seconds with Lithe, 0.7 seconds with Solar and 3.2 seconds with solc |
Development by AI agents
AI agents built Lithe in 12 days using Recur to coordinate planning, coding and review. They wrote approximately 140,000 lines of Rust and 20,000 lines of Lithe despite having no prior experience with the new language. The compiler is also designed for agents as users: it provides diagnostics that indicate how to address errors and returns contract analysis in JSON.
Celestia Labs sees potential uses in blockchain infrastructure and applications. Despite the mainnet deployment, the language remains experimental. A playground, documentation and a GitHub repository are available for developers to explore it.

