Installation
Install the official Foundry installer:foundryup to your shell, then install the latest stable Foundry release:
Configure Monad execution
Set the execution network in your project’sfoundry.toml:
foundry.toml
Hardfork selection
Local Monad execution defaults to the latest supported Monad hardfork, currentlyMonadTen. To reproduce an earlier hardfork, set it explicitly:
foundry.toml
Monad execution features
For the complete list of protocol differences, see Differences between Monad and Ethereum.
Anvil
Use--network monad to start a local Anvil node with the Monad execution environment:
MonadTen for new local chains. You can also fork Monad Testnet or Mainnet:
Cast and Chisel
Cast and Chisel use the Monad execution environment whennetwork = "monad" is set in foundry.toml. You can also pass --network monad directly to supported commands.
All standard Cast and Chisel workflows remain available. Monad-specific precompile calls are decoded in traces with human-readable names and parameters.
CI integration
Use the official Foundry toolchain action and install v1.8.0 or later:Migrating from Monad Foundry
To migrate:- Install Foundry v1.8 or later with the official installer and run
foundryup. - Add
network = "monad"to yourfoundry.toml, or pass--network monadto individual commands. - Replace
anvil --monadwithanvil --network monad. - Replace
category-labs/foundry-toolchain@v1withfoundry-rs/foundry-toolchain@v1in CI. - Remove scripts that install Foundry from
foundry.category.xyzor runfoundryup --network monad.

