Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

OpenZeppelin Contracts

Audited smart contract library for Solidity with secure reusable components.

Crypto and web3 npm MIT

Used in agent projects
166
1.3% of 12,697 public repos built with AI coding agents
Rank in crypto and web3
#16 of 89
by use in those projects
Downloads
954K
npm, last 7 days, @openzeppelin/contracts
GitHub stars
27.3K
last push Oct 9, 2026

How OpenZeppelin Contracts is used

OpenZeppelin Contracts is a dependency in 166 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.3%), #16 of 89 in crypto and web3. The most used alternative there is Solana Web3.js. Projects that use it most often also use Hardhat (81.3%), viem (66.9%), dotenv (56.0%).

Often used with OpenZeppelin Contracts

Hardhat81.3% of OpenZeppelin Contracts projects · 46.3× more than average
viem66.9% of OpenZeppelin Contracts projects · 5.4× more than average
dotenv56.0% of OpenZeppelin Contracts projects · 3.6× more than average
ethers.js47.6% of OpenZeppelin Contracts projects · 10.5× more than average
Hardhat Toolbox38.6% of OpenZeppelin Contracts projects · 53.8× more than average
Hardhat Toolbox Viem35.5% of OpenZeppelin Contracts projects · 43.0× more than average
ts-node29.5% of OpenZeppelin Contracts projects · 4.3× more than average
Hardhat ethers Plugin27.7% of OpenZeppelin Contracts projects · 60.7× more than average

By coding agent

Claude Code0.5% of projects set up for it
Cursor0.4% of projects set up for it

Share of public repos configured for each agent that list OpenZeppelin Contracts as a dependency.

Install

Packagenpm install @openzeppelin/contracts
Packages counted@openzeppelin/contracts, @openzeppelin/contracts-upgradeable, @openzeppelin/hardhat-upgrades, @openzeppelin/merkle-tree, @openzeppelin/subgraphs, @openzeppelin/gsn-helpers, @openzeppelin/upgrades, @openzeppelin/test-helpers
Main stacksTypeScript / JavaScript (116), Next.js (40), Rust (6), Python (4)
Example projectsblockscout/frontend, FairCrypto/XEN-crypto, zeta-chain/toolkit, tangle-network/dapp, code-423n4/2024-08-phi

Alternatives to OpenZeppelin Contracts

All crypto and web3

Tool Used in agent projectsDownloads / wk GitHub starsLicense
Solana Web3.js npm
Official JavaScript SDK for interacting with the Solana blockchain.
2,099 (16.5%) 2.6M 2,767 MIT
viem npm
TypeScript interface for Ethereum with type-safe interactions.
1,566 (12.3%) 6.5M 3,577 MIT
Solana SPL Token npm
JavaScript API for interacting with Solana's SPL Token program.
924 (7.3%) 1.2M 223 Apache-2.0
wagmi npm
React hooks library for Ethereum interactions and wallet connections.
650 (5.1%) 1M 6,759 MIT
ethers.js npm
Complete Ethereum library for building dapps, wallets and blockchain tools.
574 (4.5%) 3.6M 8,710 MIT
Solana Wallet Adapter npm
React hooks and UI for connecting Solana wallets to dapps with state management.
547 (4.3%) 1M 2,030 Apache-2.0
Anchor npm
Framework for developing Solana smart contracts with TypeScript and Rust.
438 (3.4%) 851K 5,142 (MIT OR Apache-2.0)
solders pypi
Python bindings for Solana Rust tools enabling efficient blockchain interaction.
423 (3.3%) 388K 449 —
Is OpenZeppelin Contracts right for your project? Ask AgentGid →