Anti Rug
/install anti-rug
Web3 Token Security Scanner (Anti-Rug)
Maintainer: Antalpha AI Team
A professional-grade token contract security analyzer featuring scenario-based classification and cross-validation engine.
Overview
This tool performs comprehensive security analysis of token contracts with:
- Scenario Classification: Automatically categorizes tokens (A: Pegged Assets, B: Eco Tokens, C: Meme Coins)
- Cross-Validation Engine: Analyzes relationships between indicators (neutralized/amplified/contextual)
- Dynamic Risk Scoring: Weighted scoring system adapted to token type
- Fatal Finding Detection: One-strike rules for critical vulnerabilities
Supported Chains
- Ethereum (chain_id: 1)
- BNB Smart Chain (chain_id: 56)
- Polygon (chain_id: 137)
- Arbitrum One (chain_id: 42161)
- Base (chain_id: 8453)
- Optimism (chain_id: 10)
- Avalanche C-Chain (chain_id: 43114)
- Solana (chain_id: solana)
Installation
git clone https://github.com/ZorroShao/anti-rug.git
cd anti-rug
pip install -r requirements.txt
Usage
python scripts/check_token.py --chain_id 56 --contract_address 0x...
Scenario Classification
Scenario A: Pegged/Stable Assets
Examples: USDT, USDC, WETH, WBNB
- Mintable: ✅ Expected for peg maintenance
- Owner: ✅ Institution custody is normal
- Blacklist: ✅ Compliance requirement
Scenario B: Ecosystem Tokens
Examples: UNI, AAVE, established DeFi
- Proxy: ✅ Acceptable for upgradeability
- Treasury: ✅ Protocol-owned liquidity expected
Scenario C: Meme/Unknown Tokens
- All permissions: ⚠️ Treated as potential rug tools
- Strictest evaluation applied
Risk Severity Levels
| Score | Level | Action |
|---|---|---|
| 0-24 | Low | ✅ Base security passed |
| 25-49 | Low-Medium | 🟡 Minor concerns |
| 50-74 | Medium | 🟡 Caution required |
| 75-100 | High | 🔴 Dangerous |
| Fatal | Critical | 🛑 Do not buy |
Architecture
config.py # Centralized configuration
exceptions.py # Custom exception classes
validators/ # Cross-validation rules (modular)
cv_mint_ownership.py
cv_concentration.py
cv_proxy.py
cv_tax_scenario.py
tests/ # Unit tests
scripts/
check_token.py # Main entry point
License
MIT License - See LICENSE file
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install anti-rug - 安装完成后,直接呼叫该 Skill 的名称或使用
/anti-rug触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Anti Rug 是什么?
Web3 token security scanner with expert cross-validation engine. Detects honeypots, rug pulls, and contract risks across Ethereum, BSC, Polygon, and other EV... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 102 次。
如何安装 Anti Rug?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install anti-rug」即可一键安装,无需额外配置。
Anti Rug 是免费的吗?
是的,Anti Rug 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Anti Rug 支持哪些平台?
Anti Rug 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Anti Rug?
由 deanpeng-dotcom(@deanpeng-dotcom)开发并维护,当前版本 v3.1.0。