Skip to content

amlclaw/amlclaw.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

License: MIT Version Build Node Next.js TypeScript

AMLClaw Web

πŸ›‘οΈ 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


Table of Contents


Why AMLClaw?

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.


What It Does

  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 β”‚
 ───────────     ───────────     ───────────      ───────────      ───────────
     β‘                β‘‘               β‘’               β‘£               β‘€
  1. Documents β€” Curated library of 40+ international AML regulations (FATF, MAS, SFC, VARA) plus custom uploads
  2. Policies β€” AI reads regulatory docs and generates structured compliance policies (streaming)
  3. Rules β€” AI converts policies into machine-readable detection rules (JSON) with visual editor
  4. Screening β€” On-chain address screening via TrustIn KYA API, cross-referenced against your rules
  5. 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.


Screenshots

Dashboard

Dashboard

Address Screening

Screening Input & Report Rule Triggers & Evidence Chains

On-Chain Graph

Transaction Flow Graph

AI-Generated Rules

Rule Sets Rule Details

Compliance Policies

AI Policy Generation

Document Library

40+ Regulatory Documents


Quick Start

git clone https://github.com/amlclaw/amlclaw.com.git
cd amlclaw.com
npm install
npm run dev

Open http://localhost:3000 and go to Settings to configure your API keys.

Required 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.


Features

✨ Core Highlights

  • πŸ€– 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

🏒 Enterprise-Grade

  • 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

Supported AI Providers

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.


Built-in Rulesets & Scenarios

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.


Configuration

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.


Project Structure

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.


Development

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 Deployment

Quick Start with Docker

docker compose up -d

Open http://localhost:3000 and configure API keys in Settings.

Build from Source

docker compose up -d --build

Environment Variables

You can pass environment variables instead of using the Settings UI:

environment:
  - TRUSTIN_API_KEY=your_key_here

Data is persisted in the ./data directory via volume mount.

Production Tips

  • Mount ./data to a persistent volume for data durability
  • Use a reverse proxy (nginx/Caddy) for HTTPS
  • Set security.apiToken in Settings for API authentication

Translation / i18n

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.


Roadmap

  • πŸ”— 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

πŸ“– Documentation

Full documentation is available in the docs/ directory:

Security

See SECURITY.md for vulnerability reporting. AMLClaw is self-hosted by design β€” your data never leaves your server.


Star History

Star History Chart


Contributing

See CONTRIBUTING.md for development setup, code standards, and PR process.


License

MIT

About

Open-source AI-driven crypto AML compliance platform. Regulations in, compliance out.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors