ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

clawcontract

AI-powered smart contract generator, analyzer, and deployer for BNB Chain (BSC/opBNB). Use when you need to generate Solidity from natural language, run security analysis, compile and deploy contracts, verify source on BscScan/opBNBScan, interact with deployed contracts, or run the full generate→analyze→deploy→verify pipeline. Supports bsc-mainnet, bsc-testnet, opbnb-mainnet, opbnb-testnet.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/sufnoobzac/clawcontract
Or

ClawContract

Generate, analyze, deploy, and verify smart contracts on BNB Chain via CLI.

Source & install: https://github.com/cvpfus/clawcontract — clone the repo, run pnpm install && pnpm build && npm link.

Quick Start

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

Setup

Generate .env non-interactively:

clawcontract setup --openrouter-key <key>

Flags: --private-key, --openrouter-key, --openrouter-model, --bscscan-key.

References

  • Full command reference (all flags, examples, notes): See {baseDir}/references/commands.md

Supported Chains

KeyChainTestnet
bsc-mainnetBNB Smart ChainNo
bsc-testnetBNB Smart Chain TestnetYes
opbnb-mainnetopBNBNo
opbnb-testnetopBNB TestnetYes

Default: bsc-testnet.

Env Vars

VariableRequiredPurpose
OPENROUTER_API_KEYYesAI contract generation
PRIVATE_KEYFor deployWallet for deployment — must be supplied by user
BSCSCAN_API_KEYFor verifyContract verification on BscScan/opBNBScan
OPENROUTER_MODELNoModel override (default: anthropic/claude-sonnet-4-20250514)

Artifacts

The CLI writes the following files to disk during normal operation:

PathWhenContents
contracts/*.solgenerate, fullGenerated Solidity source
.envsetupEnvironment variable file (user-initiated only)
.deployments/*.jsondeploy, fullDeployment metadata (address, chain, tx hash)

Safety

  • No auto-generated keys. PRIVATE_KEY must be explicitly provided by the user via setup --private-key or by setting the env var directly. The CLI will not generate or persist a private key on its own.
  • Deployment to mainnet chains shows an extra confirmation warning.
  • The CLI is fully non-interactive — all commands run without user prompts.
  • High-severity analysis issues trigger automatic fix attempts (up to 3) before deploy.
  • Use --skip-deploy with the full command to review generated contracts and analysis results before deploying.
  • Use --skip-fix to disable automatic fix attempts on high-severity issues.
  • Prefer testnet chains and throwaway keys for initial trials.

Metadata

Stars982
Views0
Updated2026-02-14
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-sufnoobzac-clawcontract": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.