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

# frontend
npm i @interludelayer-sdk/sdk viem

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.