AI Features
web3market-kit has two kinds of AI features with different requirements:
- CLI AI features (
w3m chat,w3m fix, AI customize) — use your own AI provider (Anthropic Claude or OpenAI GPT). Configured viaw3m ai setup. You pay your AI provider directly; no Pro plan needed. - 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 setupThis 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.
| Feature | CLI Command | Requires API Key | Requires AI Provider |
|---|---|---|---|
| AI Chat | w3m chat | Yes | Yes |
| Auto-fix | w3m fix | No | Yes |
| AI Customize | Workspace menu > “AI customize” | No | Yes |
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.
| Feature | CLI Command | API Endpoint |
|---|---|---|
| Contract Review | w3m audit --ai | POST /api/ai/review |
Contract Review
AI-powered security review of Solidity source code. Run via w3m audit --ai. Returns issues with three severity levels:
| Severity | Description |
|---|---|
| Critical | Serious security vulnerabilities that should be fixed before deployment |
| Warning | Potential issues that should be investigated |
| Info | Suggestions for improvement |
AI contract review returns an HTTP 403 error if your account does not have a Pro plan. Upgrade at web3.market/pricing.