START

The two packages

The CLI lives in the Foundry project. The SDK lives in the frontend. Mixing them is the first mistake.

Two packages, two folders. Putting the SDK in the Foundry project does nothing. Putting the CLI in the frontend does nothing.

terminal
# Foundry project
npm i -D @interludelayer-sdk/cli@^0.2.3

# frontend
npm i @interludelayer-sdk/sdk@^0.2.3 viem

Install @interludelayer-sdk/cli and @interludelayer-sdk/sdk 0.2.3, the release on npm (0.2.x is needed). The 0.1.x releases are older: cli 0.1.6 silently ignores --owner and --out (so the contract it ships stays Interlude’s) and has no abi or status. A ^0.1 range never resolves to 0.2.

Then First hour. viem is a peer: the SDK uses the copy you already have for Monad.

Pointing wagmi at the node URL and calling writeContract prompts on every call. That is the problem the session exists to remove.