AI Features

web3market-kit has two kinds of AI features with different requirements:

  1. CLI AI features (w3m chat, w3m fix, AI customize) — use your own AI provider (Anthropic Claude or OpenAI GPT). Configured via w3m ai setup. You pay your AI provider directly; no Pro plan needed.
  2. API AI features (w3m audit --ai) — use the Web3 Market API for contract review. Requires a Pro plan.

CLI AI Features (Your Own Provider)

These features run against your own Claude or GPT API key. Configure once with:

w3m ai setup

This prompts you to select a provider (Anthropic or OpenAI) and enter your API key. The config is stored locally in your project.

CLI AI features are free to use — you only pay your AI provider for token usage at their standard rates.

FeatureCLI CommandRequires API KeyRequires AI Provider
AI Chatw3m chatYesYes
Auto-fixw3m fixNoYes
AI CustomizeWorkspace menu > “AI customize”NoYes

AI Chat

Interactive multi-turn conversation for modifying your project. Run via w3m chat or select AI Chat from the workspace menu. Changes are applied to disk, contracts are automatically rebuilt, and every change is bookmarked with a git snapshot so you can revert at any time. See the w3m chat documentation for details.

Auto-fix

AI-powered build error fixing. Run via w3m fix or select Auto-fix from the workspace menu. Captures forge build errors, sends them to the AI with your contract source, and applies targeted fixes. Retries automatically if the first fix doesn’t resolve all errors. See the w3m fix documentation for details.

API AI Features (Pro Plan)

These features call the Web3 Market API and require a Pro-tier API key.

FeatureCLI CommandAPI Endpoint
Contract Revieww3m audit --aiPOST /api/ai/review

Contract Review

AI-powered security review of Solidity source code. Run via w3m audit --ai. Returns issues with three severity levels:

SeverityDescription
CriticalSerious security vulnerabilities that should be fixed before deployment
WarningPotential issues that should be investigated
InfoSuggestions for improvement
⚠️

AI contract review returns an HTTP 403 error if your account does not have a Pro plan. Upgrade at web3.market/pricing.