explaingit

veryyoldman/metamask-openclaw

Analysis updated 2026-05-18

94TypeScriptAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A TypeScript library and CLI that gives web apps a small typed API for connecting to MetaMask, without ever touching private keys.

Mindmap

mindmap
  root((OpenClaw))
    What it does
      Wraps MetaMask SDK
      Typed connect API
      CLI and library
    Tech stack
      TypeScript
      MetaMask SDK
      Node.js
    Use cases
      Connect a wallet
      Read balance
      Sign messages
      Prepare transfers
    Audience
      Web3 developers
      AI agent builders
    Safety
      No key handling
      User approves in MetaMask

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Connect a web app to a user's MetaMask wallet with a few lines of code

USE CASE 2

Read a connected account's address and balance in a readable format

USE CASE 3

Ask a user to sign a message or approve a transfer from a script

USE CASE 4

Let an AI agent interact with a wallet while it always defers fund moves to the user

What is it built with?

TypeScriptMetaMask SDKNode.jsCLI

How does it compare?

veryyoldman/metamask-openclawopen-gsd/gsd-pidataants-ai/cutscript
Stars949493
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatemoderate
Complexity2/53/53/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires MetaMask installed in the browser or MetaMask Mobile for QR connect.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

OpenClaw is a TypeScript library and command-line tool that helps developers connect web applications to MetaMask, a popular browser extension and mobile app that people use to manage cryptocurrency wallets. When someone builds a web application that interacts with blockchain networks, they normally have to write a lot of low-level code to connect to MetaMask, read account balances, and prepare transactions. OpenClaw describes itself as a wrapper that reduces that work to a small, typed API. The library is built on top of the official MetaMask SDK. The README emphasizes that the tool never handles private keys or seed phrases, meaning it cannot move funds without the user approving each action inside MetaMask itself. The core codebase is described as around 400 lines with one dependency. From the library, you can call a connect function to prompt the user to link their wallet, read their account address and balance in a human-readable format, ask them to sign a message, switch between different blockchain networks, and prepare a transfer they then approve inside MetaMask. A command-line interface provides the same actions from a terminal, including showing a QR code to connect a phone running MetaMask Mobile. The library supports several blockchain networks including Ethereum, Polygon, Base, and Arbitrum. The repository also includes a file called SKILL.md intended for use with AI agent frameworks, which is meant to let an AI assistant interact with a wallet while refusing to handle seed phrases and always sending fund movements to the user for approval. The README includes a Windows one-line install command that the accompanying text describes as only cloning the repository and running npm install locally. The roadmap lists planned additions including ERC-20 token support, a React hook package, and WalletConnect fallback. The license is MIT.

Copy-paste prompts

Prompt 1
Show me how to use OpenClaw to connect a MetaMask wallet in a React app
Prompt 2
Write a script using OpenClaw to read a user's ETH balance and display it
Prompt 3
Use OpenClaw's CLI to display a QR code so I can connect MetaMask Mobile
Prompt 4
Explain how OpenClaw's SKILL.md lets an AI agent prepare a transfer without ever seeing my seed phrase

Frequently asked questions

What is metamask-openclaw?

A TypeScript library and CLI that gives web apps a small typed API for connecting to MetaMask, without ever touching private keys.

What language is metamask-openclaw written in?

Mainly TypeScript. The stack also includes TypeScript, MetaMask SDK, Node.js.

What license does metamask-openclaw use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is metamask-openclaw to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is metamask-openclaw for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.