Before you connect your wallet, check the score.
TrustLayer is the wallet-agnostic preflight check for AI agents.
Mechanical detection first, AI explains. Same input, same grade — every time.
Powered by deterministic tools that don't hallucinate
Four layers. One grade.
Each layer is a deterministic tool that runs on the contract behind the agent. Together they form a weighted composite no single detector can game.
30% weightVulnerabilities
Slither runs ~90 static detectors — reentrancy, shadowing, assembly misuse, unsafe arithmetic. The single largest layer in the composite.
20% weightToken Risk
Dedaub TokIn supplies 12 canonical flags: honeypot, hidden sell tax, owner can mint or blacklist, transfer pause, proxy manipulation.
20% weightPermissions
Six dangerous capabilities (self-destruct, owner drain, arbitrary call, no access control) scored against six positive patterns (whitelist, time-lock, daily cap, multi-sig).
15% weightWallet Approvals
Every active ERC20 allowance the agent can spend, scanned via multicall3. Unlimited approvals flagged, blast radius quantified.
Eight steps. Eight seconds. One grade.
The pipeline runs end-to-end on Solidity source, bytecode, or a deployed address. Every step emits a structured event; the score is computed before the AI is called. Solana runs a streamlined 4-step variant — authority freeze, TX history, SPL approvals, source verification — tuned to BPF program models.
Three surfaces. Same engine.
Whether you paste an address in the browser, ask Claude Code, or pipe a folder of .sol files through your CI — same orchestrator, same grade, same overrides.
Scanner
Paste Solidity source, EVM bytecode, or a deployed address. Live pipeline progress strip, color-coded grade panel, per-step event log. The route you're one click away from.
CLI
Script the pipeline. trustlayer analyze prints a formatted report or raw JSON for jq. Gate PRs on minimum grade in three lines of YAML.
MCP server
Seven tools over stdio. Ask Claude Code, Cursor, Windsurf, Continue, or Zed: "is agent 0x… safe?" and get the A+ → F grade back in the same conversation. No copy-paste to a browser.
Numbers that compound
Real figures from a deterministic engine. Same inputs tomorrow, same outputs.
Lost to AI-agent security attacks in Q1 2026 alone. The preflight check exists because the damage is real.
Chains supported: Ethereum, Base, Arbitrum, Optimism, Solana. EVM gets the full 8-step pipeline; Solana runs a streamlined 4-step variant.
Lighthouse score on /scanner — accessibility, best-practices, SEO, agentic browsing. Verified on every PR.
Same input. Same grade. Every time.
Five canonical targets. Paste the address tomorrow, next week, next month — the score doesn't move. Mechanical first, AI explains.
Zero High, zero Medium. +15 safety bonus applied.
Whitelist, daily limit, 24h time-lock, reentrancy guard.
3 Medium findings (constant-function-asm). Honest, not generous.
Self-destruct, owner drain, arbitrary call. Cap-20 enforced.
Built in the open
Six packages, one pipeline. The same scoring engine runs whether you call it from the terminal, the browser, or your AI agent. Every commit is public on GitHub.
$ new PipelineService().runAnalysis({ source, chain })@trustlayer/core
Scoring engine
The pipeline. Slither for static bugs, Dedaub for token risks, plus permissions, wallet approvals, transaction history, and AI intent. Outputs one score from 0 to 100 with a letter grade.
$ pnpm cli analyze 0xA0b8...3606eB48@trustlayer/cli
Terminal scanner
Run a scan from any shell. Accepts a Solidity file, an EVM address, or a Solana program. Prints a formatted report by default, or raw JSON with --json for piping into scripts.
$ open localhost:3000/scanner@trustlayer/web
Scanner + landing
Next.js 16, React 19, Tailwind v4. The landing tells the story; /scanner runs the same pipeline as the CLI in real time, in the browser.
$ pnpm mcp # stdio, drop into your AI tool@trustlayer/mcp-server
AI agent tool
Model Context Protocol server. Hook it into Claude Code or Cursor, then ask about any contract in plain English. TrustLayer runs the pipeline behind the scenes and the agent explains the result.
$ import type { Finding, ScoreGrade } from "@trustlayer/schema"@trustlayer/schema
Shared types
TypeScript types for findings, scores, and pipeline events. Imported by every other package so the CLI, web, and MCP server never drift out of sync.
$ MaliciousAgent.sol → F (20/100)@trustlayer/contracts
Demo fixtures
Eight Solidity contracts with known bugs: reentrancy, DAO hack, flash loan manipulation, missing access control. Used to verify the pipeline still flags what it should.
Why builders trust it
Three properties that make the engine safe to depend on.
Of the composite is deterministic — Slither (30%) plus Dedaub (20%). AI carries 5%. Both reproducible.
The score is computed before the AI is called. Detection runs on Slither and Dedaub; the LLM only translates the structured findings into a paragraph a non-developer can act on. Hallucination in the explanation does not affect the grade.
Two or more High Slither findings caps the score at F (20 max), one High caps at D (44 max), missing Slither caps at B+ (80 max). The cap reason shows on the result card. No amount of marketing copy moves the grade.
Steps in the EVM pipeline. Solana runs a streamlined 4-step variant tuned to BPF program models.
Three ways to use TrustLayer
Same engine, three surfaces. Pick the one that fits your workflow.
Web Scanner
Paste. Scan. Decide.
Open /scanner in your browser. No install, no keys for the demo fixtures. Mainnet scans need an Etherscan key.
- Source, bytecode, or address input
- Live pipeline progress strip
- Color-coded grade panel
- Per-step event log
MCP Server
Ask Claude Code.
Seven tools over stdio. Configure your editor once, then ask "is agent 0x… safe?" in plain English and get the grade inline.
- trustlayer_analyze (full pipeline)
- decompile, token_risk, permissions, approvals, score, fix
- Works with Claude Code, Cursor, Windsurf, Continue, Zed
- .mcp.json template included
CLI
Pipe-friendly. CI-ready.
Script the pipeline. trustlayer analyze prints formatted reports or raw JSON for jq. Gate PRs on minimum grade in three lines of YAML.
- analyze, replay, fix commands
- --type, --chain, --json flags
- GitHub Actions + pre-commit recipes
- Exit codes for unattended pipelines
Questions worth asking
The ones developers and security reviewers ask most. If something is still unclear, the docs go deeper.
A+ through A means safe to connect: limited permissions, audited contracts, clean history. F means do not connect: the contract can drain your wallet, has unaudited code, or shows suspicious patterns. Full bands: A+ ≥97, A ≥93, A- ≥87, B+ ≥80, B ≥73, B- ≥65, C+ ≥55, C ≥45, D ≥35, F <35.
The pipeline still runs but the grade caps at B+ (80 max). The result card shows the slither_not_run cap reason so you know what's missing. Install with `pip3 install --user slither-analyzer solc-select`.
Yes. The CLI ships with a GitHub Actions recipe and a pre-commit hook example. Fail the build below B+ in three lines of YAML. The CLI exits 0 on success even when the grade is F — CI gating logic reads the JSON and decides.
Only 5%. The pipeline runs deterministic tools (Slither, Dedaub, multicall3) and computes the score before the AI is called. The LLM takes the structured findings and writes a plain-English summary. Hallucination in the explanation does not affect the grade.
Five: Ethereum, Base, Arbitrum, Optimism, Solana. EVM chains run the full 8-step pipeline. Solana runs a streamlined 4-step variant (authority, TX, approvals, verify) tuned to BPF program models.
Model Context Protocol lets AI editors (Claude Code, Cursor, Windsurf, Continue, Zed) call external tools inline. With TrustLayer's MCP server configured, you can ask "is agent 0x… safe?" and get the A+ → F grade back in the same conversation — no copy-paste to a browser.
Ready to scan?
Paste a contract address, Solidity source, or bytecode. Get a reproducible trust grade in seconds — or drop us a line below.
