Get started
Venue Kit
Everything you need to ship a venue, as a thin layer over the Somnia CLI and MCP server: a front-end template, the venue commands and an agent skill that lets a coding agent do it with you.
Everything you need to ship a venue, as a thin layer over the Somnia CLI and MCP server: a front-end template, the venue commands and an agent skill that lets a coding agent do it with you.
What's in the kit
Venue template
An open-source trading front end with order books, charts, positions and wallet connection, ready for your brand.
Venue commands
The somnia venue commands create the venue, list markets, set fees and attach liquidity, from testnet to mainnet.
Agent skill
The same steps exposed as MCP tools, so Claude Code, Cursor or any agent can scaffold and configure a venue with you.
From the terminal
# Install the Somnia CLI and sign in
npm install -g @somnia-chain/cli
somnia login
# Scaffold a venue from the Venue Kit template
somnia venue init my-venue --template trading
cd my-venue
# Register it, choose markets and set your fee (on testnet first)
somnia venue create --network testnet
somnia venue markets add BTC/USDso ETH/USDso --type spot
somnia venue fee set --bps 5 --to 0xYourFeeAddress
# Attach shared liquidity and launch
somnia venue liquidity attach --vault default
somnia venue deploy --network mainnet
With a coding agent
# Give your coding agent the Somnia MCP tools
claude mcp add somnia -- npx @somnia-chain/cli mcp