Weth

Autonomous AI Agent Drafting with Zero-Trust Human Execution

The institutional-grade bridge between Large Language Models and Ethereum. Let AI assistants inspect balances, simulate gas, and draft transactions via MCP—while every single on-chain action stays locked behind your explicit cryptographic signature.

Terminal — zsh
# 1. Clone the Weth zero-trust repository
$ git clone https://github.com/ayushkumar2601/weth_wallet_devcon.git
$ cd weth_wallet_devcon
# 2. Install workspace monorepo dependencies
$ pnpm install
# 3. Launch local Weth Signing Console & Core Backend
$ pnpm dev
Weth Signing Console live at http://localhost:3002
01 / DEPLOYMENT

Instant Monorepo Deployment.

Engineered as a high-performance Turborepo workspace. One single terminal command installs all dependencies and concurrently boots the zero-trust desktop signing console, API gateway, and local MCP server.

  • Zero-config Turborepo monorepo structure
  • Dedicated Next.js Signing Console on port 3002
  • Built-in Ethereum Sepolia testnet readiness
02 / MCP INTEGRATION

Native Model Context Protocol.

Connect Weth directly to Claude Desktop or Cursor in seconds. Give your Large Language Model assistants deterministic, read-only tools to inspect balances and stage transactions over standard stdio pipes.

  • Standard stdio JSON-RPC transport specification
  • Isolated ERC-20 read & gas simulation tools
  • Strict runtime input validation powered by Zod
claude_desktop_config.json
{
  "mcpServers": {
    "weth-wallet": {
      "command": "node",
      "args": [
        "/absolute/path/to/weth_wallet_devcon/apps/mcp-server/dist/index.js"
      ],
      "env": {
        "DATABASE_URL": "postgresql://weth:weth_pass@localhost:5432/weth_db?schema=public"
      }
    }
  }
}
AI Agent Session — Execution Log
>Prompting Claude: “Check my Sepolia ETH balance and draft a 0.015 ETH transfer to vitalik.eth”
[MCP Client] Executing tool:get_balance({ address: "0x71C...E39a" })
[Weth Core] Returned: { balance: "1.4820 ETH", status: "SAFE" }
[MCP Client] Executing tool:simulate_transaction({ to: "vitalik.eth", value: "0.015 ETH" })
[Weth Core] Simulation SUCCESS. Gas Estimated: 21,000 | Fee: 0.00014 ETH
[MCP Client] Executing tool: create_transaction_draft(...)
[Weth Core] STAGED DRAFT #9011 → STATUS: PENDING_APPROVAL (Quarantine Active)
Action Required: Open http://localhost:3002/signing to inspect payload and sign with MetaMask.
03 / ZERO-TRUST SECURITY

AI Drafts. Only You Sign.

AI agents can reason, simulate gas, and prepare payload parameters—but can never sign or broadcast. Every staged draft waits in local quarantine until you explicitly authorize it with your wallet extension.

  • Private keys never exposed to AI models
  • Human-in-the-loop payload inspection & risk flags
  • Tamper-proof PostgreSQL transaction audit trail

SECURITY PARADIGM

Why Zero-Trust Human-in-the-Loop?

Model Context Protocol (MCP)

AI agents inspect wallet balances and draft transactions in a zero-trust sandbox without ever accessing your private keys.

Human-in-the-Loop Quarantine

Every staged draft waits in pending status until reviewed and explicitly signed by your cryptographic wallet extension.

Automated Risk & Policy Guardrails

Real-time policy engines enforce spending limits and alert you to unlimited spender allowances before signing.