Quick Start
Get your AI agent running on Starknet in under 5 minutes. The CLI auto-detects your environment and configures Starknet accordingly.
Prerequisites
- Node.js 18+ installed (download)
- A Starknet wallet (Ready or Braavos recommended)
One Command Setup
npx create-starknet-agent@latestThe CLI detects your environment and sets up Starknet:
| Environment | What Happens |
|---|---|
| OpenClaw / MoltBook | Configures MCP server + installs skills |
| Claude Code | Adds MCP config to .mcp.json |
| Cursor | Configures MCP in Cursor settings |
| None detected | Scaffolds a standalone agent project |
Platform-Specific Setup
OpenClaw / MoltBook Users
If you're using OpenClaw, the CLI configures everything automatically:
npx create-starknet-agent@latestOr let your agent self-configure:
# Agent runs this in non-interactive mode
npx create-starknet-agent@latest --non-interactive --jsonWhat gets configured:
- MCP server pointing to
@starknet-agentic/mcp-server - Skills:
starknet-wallet,starknet-defi - Environment template for credentials
After setup:
- Add your credentials:
npx create-starknet-agent credentials - Restart your agent
- Try: "What's my ETH balance on Starknet?"
Claude Code Users
npx create-starknet-agent@latestWhat gets configured:
- MCP server in
.mcp.json - CLAUDE.md updated with Starknet skill references
.env.examplewith required variables
After setup:
- Configure credentials:
npx create-starknet-agent credentials - Restart Claude Code
- Verify:
/mcpshould show the starknet server
Cursor Users
npx create-starknet-agent@latestWhat gets configured:
- MCP configuration in Cursor settings
- Environment template
Standalone Agent
For building a custom agent from scratch:
npx create-starknet-agent@latest my-agent
cd my-agent
cp .env.example .env
# Edit .env with your credentials
pnpm startYour agent will be available at http://localhost:3000.
Configure Credentials
After platform setup, configure your wallet credentials:
npx create-starknet-agent credentialsThe wizard guides you through:
- Network selection — Sepolia (testnet) or Mainnet
- Wallet export — Instructions for Ready or Braavos
- Secure storage — Credentials stored safely for your platform
Credential Storage
OpenClaw: Stored in ~/.openclaw/secrets/starknet/
Other platforms: Stored in .env file (automatically gitignored)
Getting Your Credentials
Ready Wallet:
- Install Ready Wallet
- Create/import wallet on Sepolia Testnet
- Settings → Account → Export Private Key
- Get testnet tokens from the Starknet Faucet
Braavos Wallet:
- Install Braavos
- Account Settings → Security → Export Private Key
- Copy account address from wallet header
RPC Endpoint:
Verify Setup
Confirm everything is working:
npx create-starknet-agent verifyThis checks:
- MCP server configuration exists
- Required credentials are set
- Skills are installed
- Can query Starknet (optional balance check)
Output:
✓ MCP configuration found ✓ Credentials configured ✓ Skills installed: starknet-wallet, starknet-defi ✓ Connected to Starknet Sepolia ✓ Account balance: 0.5 ETH
Test the Connection
Once verified, test with your AI assistant:
In Claude Code:
Check my STRK balance
Expected:
Using starknet_get_balance tool... Your STRK balance is 1,234.56 STRK
CLI Reference
# Auto-detect platform and configure
npx create-starknet-agent@latest
# Force specific platform
npx create-starknet-agent@latest --platform openclaw
npx create-starknet-agent@latest --platform claude-code
npx create-starknet-agent@latest --platform cursor
npx create-starknet-agent@latest --platform standalone
# Configure credentials
npx create-starknet-agent credentials
# Verify setup
npx create-starknet-agent verify
# Non-interactive (for agent self-setup)
npx create-starknet-agent@latest --non-interactive --json
# Show detected platforms
npx create-starknet-agent@latest --detect-only| Option | Description |
|---|---|
--platform <name> | Force platform: openclaw, claude-code, cursor, standalone |
--skills <list> | Comma-separated skills to install |
--network <name> | Network: mainnet, sepolia |
--non-interactive | Skip all prompts (for agent self-setup) |
--json | Output machine-readable JSON |
--detect-only | Show detected platform and exit |
--yes, -y | Accept defaults |
What's Next?
| Guide | Description |
|---|---|
| MCP Server Setup | Full MCP integration guide |
| Agent Onboarding | Deploy new agent accounts with gasfree |
| Wallet Management | Transfers, multi-call, session keys |
| DeFi Operations | Swaps, quotes, gasless transactions |
| Agent Identity | Register your agent on-chain |
Troubleshooting
Need more help? Open an issue on GitHub.