π‘οΈ Open-source, self-hosted, AI-driven crypto AML compliance platform.
Regulations in, compliance out β five-step automated pipeline powered by AI.
Documents β Policies β Rules β Screening β Monitoring
- Why AMLClaw?
- What It Does
- Screenshots
- Quick Start
- Features
- Supported AI Providers
- Built-in Rulesets & Scenarios
- Configuration
- Project Structure
- Development
- Docker Deployment
- Translation / i18n
- Roadmap
- Contributing
- License
Crypto AML compliance is broken. A new regulation drops β lawyers spend 2 weeks interpreting it, compliance experts spend a week writing rules, engineers spend another week shipping. Screening a single address? Half a day of manual work. Repeat next month.
AMLClaw replaces that entire cycle with AI.
| Traditional | AMLClaw | |
|---|---|---|
| Understand regulations | Lawyers + experts, 1β2 weeks | AI reads & generates policy in minutes |
| Write detection rules | Manual, days of work | AI auto-generates, visual editor to fine-tune |
| Screen an address | Manual, half a day | One click, report in < 5 min |
| Continuous monitoring | Manual spot-checks | 7Γ24 automated scheduling |
| Audit trail | Dig through emails | Full audit log, one-click export |
The end game of compliance isn't more people β it's a better system.
Documents Policies Rules Screening Monitoring
βββββββββββ βββββββββββ βββββββββββ βββββββββββ βββββββββββ
β 40+ intl β β AI reads β β AI convertsβ β On-chain β β Cron β
β regulationsβ β β & generatesβ β β to JSON β β β tracing + β β β scheduler β
β + uploads β β policies β β rules β β risk matchβ β 7Γ24 auto β
βββββββββββ βββββββββββ βββββββββββ βββββββββββ βββββββββββ
β β‘ β’ β£ β€
- Documents β Curated library of 40+ international AML regulations (FATF, MAS, SFC, VARA) plus custom uploads
- Policies β AI reads regulatory docs and generates structured compliance policies (streaming)
- Rules β AI converts policies into machine-readable detection rules (JSON) with visual editor
- Screening β On-chain address screening via TrustIn KYA API, cross-referenced against your rules
- Monitoring β Scheduled recurring screening with cron-based task scheduler & webhook alerts
Every step can run fully automated or with human-in-the-loop. Every action is audit-logged.
git clone https://github.com/amlclaw/amlclaw.com.git
cd amlclaw.com
npm install
npm run devOpen http://localhost:3000 and go to Settings to configure your API keys.
| Key | What For | Where to Get |
|---|---|---|
| AI Provider (Claude / DeepSeek / Gemini) | Policy & rule generation | Anthropic / DeepSeek / Google AI |
| TrustIn API Key | Blockchain address screening | trustin.info (free tier: 100 req/day) |
All keys are configured through the in-app Settings page β no .env file editing required.
- π€ Multi-AI β Claude, DeepSeek, Gemini β switch anytime, no vendor lock-in
- π 40+ regulations built-in (FATF, MAS, SFC, VARA) across 3 jurisdictions
- π On-chain screening via TrustIn KYA API with evidence graph (1β5 hops, up to 1000 nodes)
- π Continuous monitoring with cron scheduler & webhook alerts (Slack, Teams, PagerDuty)
- π Bilingual (English / δΈζ) with dark/light theme
- π³ Docker ready β one command to deploy
- π No database β file-based storage, backup-friendly, deploy anywhere
- API authentication β Bearer token protection on all endpoints
- Audit logging β Append-only JSONL, tamper-resistant, full operation trail
- Webhook integration β Real-time alerts for high-risk events
- Batch screening β Up to 100 addresses per submission
- Report export β Markdown & PDF with custom branding
- Self-hosted β Data never leaves your server
| Provider | SDK | Models |
|---|---|---|
| Claude (Anthropic) | @anthropic-ai/sdk |
claude-sonnet-4-6, claude-opus-4-6, claude-haiku-4-5 |
| DeepSeek | OpenAI-compatible | deepseek-chat, deepseek-reasoner |
| Gemini (Google) | @google/genai |
gemini-2.0-flash, gemini-2.5-pro, gemini-2.5-flash |
Switch providers anytime from Settings. All AI features work with any provider.
3 jurisdictions (Singapore MAS, Hong Kong SFC, Dubai VARA) Γ 5 screening scenarios (deposit, withdrawal, CDD, monitoring, full scan). See docs/user-guide/rules.md and docs/user-guide/screening.md for details.
All settings are managed through the in-app Settings page (/settings) β no .env file editing required. See docs/user-guide/settings.md for details.
For Docker/headless deployments, copy .env.example to .env.local and set environment variables.
app/(app)/ # Product pages (dashboard, documents, policies, rules, screening, ...)
app/api/ # API routes
components/ # React components by domain (documents/, policies/, rules/, ...)
lib/ # Core logic (ai.ts, storage.ts, settings.ts, scheduler.ts, ...)
data/ # Runtime data + built-in rulesets (file-based, no database)
references/ # 40+ regulatory source documents
prompts/ # AI prompt templates
docs/ # Full documentation
tests/ # Unit (vitest) + integration tests
See docs/development/architecture.md for the full architecture guide.
npm run dev # Dev server on port 3000
npm run build # Production build
npm run lint # ESLint
npm run test:unit # Unit tests (vitest)
npm test # Integration tests (requires dev server running)docker compose up -dOpen http://localhost:3000 and configure API keys in Settings.
docker compose up -d --buildYou can pass environment variables instead of using the Settings UI:
environment:
- TRUSTIN_API_KEY=your_key_hereData is persisted in the ./data directory via volume mount.
- Mount
./datato a persistent volume for data durability - Use a reverse proxy (nginx/Caddy) for HTTPS
- Set
security.apiTokenin Settings for API authentication
AMLClaw supports English and Chinese out of the box. Translation files live in locales/:
locales/en.json # English (default)
locales/zh.json # δΈζ
Want to add a new language? See locales/README.md for the full guide.
- π More chains β Solana, Polygon, BSC, Arbitrum support
- πͺπΊ MiCA compliance β EU Markets in Crypto-Assets regulation rulesets
- πΊπΈ US FinCEN β BSA/AML rules for US-based entities
- π SaaS version β Managed cloud offering with team collaboration
- π Analytics dashboard β Trend analysis, risk heatmaps, compliance KPIs
- π Plugin system β Custom data sources and screening providers
- π€ Case management β SAR filing workflow and investigation tools
Full documentation is available in the docs/ directory:
- Getting Started β Clone, install, configure, and run
- User Guide: Documents Β· Policies Β· Rules Β· Screening Β· Monitoring Β· Audit Log Β· Settings
- API: Overview Β· Endpoints
- Deployment: Docker Β· Manual Β· Configuration
- Development: Architecture Β· Writing Rules
See SECURITY.md for vulnerability reporting. AMLClaw is self-hosted by design β your data never leaves your server.
See CONTRIBUTING.md for development setup, code standards, and PR process.







