News | OpenZeppelin

Introducing OpenZeppelin Contracts CLI: Smart Contract Generation for Developers and AI Agents

Written by OpenZeppelin | April 21, 2026

Today, we're releasing @openzeppelin/contracts-cli, a new command-line interface for generating smart contracts from OpenZeppelin's industry-standard contract libraries.

Contracts CLI brings the same battle-tested generators that power our Contracts Wizard and MCP servers directly to your terminal with zero setup required. Run it instantly via npx with no pre-installation, and pipe the output wherever your workflow demands, including OpenZeppelin Skills, which uses the CLI as part of its contract generation workflow.

Built for How Developers and AI Agents Work Today

Contracts CLI is designed for two audiences: developers who want a fast, scriptable way to scaffold secure smart contracts, and AI coding agents working through the contract generation workflow built into OpenZeppelin Skills.

The Skills guide agents to generate a baseline contract, produce a variant with a feature enabled, and apply only the relevant changes to existing code. With the CLI, agents can write output directly to disk and diff files locally, keeping their working context lean and focused on what actually changed.

The Same Trusted Generators, a New Interface

Contracts CLI covers all contract types across every language and ecosystem OpenZeppelin's Wizard supports: Solidity, Cairo, Stellar, and more. Every generator, every option, and every ecosystem are available from the command line.

This is the same trusted foundation that secures more than $35 trillion in onchain value transferred, and that leading stablecoin issuers, tokenized fund providers, and crypto-native projects rely on today.

Get Started

OpenZeppelin Contracts CLI is available now on npm as @openzeppelin/contracts-cli. If you're already using OpenZeppelin Skills with an AI agent, you're benefiting from Contracts CLI automatically. Skills now uses the CLI in the background as part of contract generation. No additional setup required.

Explore the CLI source code on GitHub, or browse the npm package. If you're building with AI agents, visit OpenZeppelin Skills to learn more.