clawcontractAI-powered smart contract generator, analyzer, and deployer for BNB Chain (BSC/opBNB). Use when you need to generate Solidity from natural language, run secu...
Install via ClawdBot CLI:
clawdbot install sufnoobzac/clawcontractGenerate, analyze, deploy, and verify smart contracts on BNB Chain via CLI.
Source & install: pnpm install && pnpm build && npm link.
Generate a contract:
clawcontract generate "escrow contract for peer to peer trades with dispute resolution and timeout auto release"
Full pipeline (generate β analyze β deploy β verify):
clawcontract full "escrow contract for peer to peer trades with dispute resolution and timeout auto release" --chain bsc-testnet
Deploy an existing contract:
clawcontract deploy ./contracts/VibeToken.sol --chain bsc-testnet
Interact with a deployed contract:
clawcontract interact 0xABC... name --chain bsc-testnet
List deployment records:
clawcontract list
clawcontract list --chain bsc-testnet
Delete a deployment record:
clawcontract delete 0xABC...def
{baseDir}/references/commands.md| Key | Chain | Testnet |
|-----|-------|---------|
| bsc-mainnet | BNB Smart Chain | No |
| bsc-testnet | BNB Smart Chain Testnet | Yes |
| opbnb-mainnet | opBNB | No |
| opbnb-testnet | opBNB Testnet | Yes |
Default: bsc-testnet.
Configure via docker-compose.yml or set directly in the environment.
| Variable | Required | Purpose |
|----------|----------|---------|
| CLAWCONTRACT_OPENROUTER_API_KEY | Yes | AI contract generation |
| CLAWCONTRACT_PRIVATE_KEY | For deploy | Wallet for deployment β must be supplied by user |
| CLAWCONTRACT_BSCSCAN_API_KEY | For verify | Contract verification on BscScan/opBNBScan |
| CLAWCONTRACT_OPENROUTER_MODEL | No | Model override (default: anthropic/claude-sonnet-4-20250514) |
The CLI writes the following files to disk during normal operation:
| Path | When | Contents |
|------|------|----------|
| contracts/*.sol | generate, full | Generated Solidity source |
| .deployments/*.json | deploy, full | Deployment metadata (address, chain, tx hash) |
CLAWCONTRACT_PRIVATE_KEY must be explicitly provided by the user via environment variable. The CLI will not generate or persist a private key on its own.--chain explicitly (default is bsc-testnet).delete confirmation prompt. delete is the sole interactive command β it shows deployment details and asks Remove this deployment? (y/N). Use --force to skip the prompt (agent-friendly). This is safe because delete only removes local metadata; it cannot affect on-chain state.full, if high-severity issues are found the AI attempts to fix and re-analyze (up to 3 rounds). This means the agent may modify generated source before deploy. Mitigations:--skip-fix to disable auto-fix entirely.--skip-deploy to review the final source and analysis before any on-chain action.contracts/; no other files are modified.CLAWCONTRACT_PRIVATE_KEY is mandatory for deploy and the default chain is bsc-testnet, accidental mainnet deploys require the user to both set a funded mainnet key and explicitly pass --chain bsc-mainnet or --chain opbnb-mainnet. Neither can happen silently.AI Usage Analysis
Analysis is being generated⦠refresh in a few seconds.
Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
ERC-8004 Trustless Agents - Register, discover, and build reputation for AI agents on Ethereum. Use when registering agents on-chain, querying agent registries, giving/receiving reputation feedback, or interacting with the AI agent trust layer.
Autonomous crypto trading on Base via Bankr. Use for trading tokens, monitoring launches, executing strategies, or managing a trading portfolio. Triggers on "trade", "buy", "sell", "launch", "snipe", "profit", "PnL", "portfolio balance", or any crypto trading task on Base.
Deploy ERC20 tokens on Base using Clanker SDK. Create tokens with built-in Uniswap V4 liquidity pools. Supports Base mainnet and Sepolia testnet. Requires PRIVATE_KEY in config.
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API. Use when the user wants to check wallet balances, DeFi positions, NFT holdings, token prices, or transaction history. Supports Base, Ethereum, Polygon, Arbitrum, Optimism, and more. Requires ZAPPER_API_KEY.
Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.