Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: ai-keygen3description: Generate a new Ethereum keypair. Use when the user asks the AI to generate a private key/address for testing. Use when this capability is needed.4---56# AI Keygen78生成新的以太坊密钥对,用于测试和开发。910## 功能说明1112此技能可以快速生成一个新的以太坊账户,包括:13- 随机私钥14- 对应的公钥地址1516## 使用场景1718- 创建测试钱包19- 快速获取测试账户20- 学习以太坊密钥机制2122## 环境变量2324无需任何环境变量。2526## 脚本代码2728```typescript29import {ethers} from "ethers";3031async function main() {32 const wallet = ethers.Wallet.createRandom();33 console.log("address:", wallet.address);34 console.log("privateKey:", wallet.privateKey);35}3637main().catch((err) => {38 console.error(err);39 process.exit(1);40});41```4243## 运行命令4445```bash46npx --ignore-existing -y -p ts-node@10.9.2 -p ethers@6.15.0 ts-node /tmp/skill-ai-keygen.ts47```4849## 输出示例5051```52address: 0x1234567890abcdef1234567890abcdef1234567853privateKey: 0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef123456789054```5556## 安全提示5758> [!WARNING]59> 生成的私钥应妥善保管,不要在生产环境使用测试私钥。6061## 注意事项6263- 生成的私钥是随机的64- 请将私钥保存在安全的地方65- 测试网私钥不要用于主网66- AI 不会记录或存储你的私钥6768---69> Converted and distributed by [TomeVault](https://tomevault.io/claim/zkzksss) — claim your Tome and manage your conversions.70<!-- tomevault:4.0:skill_md:2026-04-13 -->
Run npx get-skill add tomevault-io/ai-keygen in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Generate a new Ethereum keypair. Use when the user asks the AI to generate a private key/address for testing. Use when this capability is needed. It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.