{"_id":"@0xkobold/pi-wallet","_rev":"2-bd8040e7c5334fc1f716fbafe572bae4","name":"@0xkobold/pi-wallet","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@0xkobold/pi-wallet","version":"0.1.0","keywords":["pi-package","wallet","ethereum","base","cdp","x402","agent-economy"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-wallet@0.1.0","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-wallet#readme","bugs":{"url":"https://github.com/0xKobold/pi-wallet/issues"},"pi":{"image":"https://www.coinbase.com/img/press/coinbase-logo.png","extensions":["./dist/index.js"]},"dist":{"shasum":"8c0949c178395fbad66c6010ae744eb95ef4a20f","tarball":"https://registry.npmjs.org/@0xkobold/pi-wallet/-/pi-wallet-0.1.0.tgz","fileCount":8,"integrity":"sha512-SCqlMsLH9kWn7+GUm1pwalPkt1zxqqF5t4qNS3Fh0EG9++kzyl7Ig3Y3MzOWXcZ1Lc2nK2imV83GVM9xWwrCYw==","signatures":[{"sig":"MEUCIQDoODPRgXfomSYFYQ9B+WJzBiJRGrXlhfmc6tApGFHblgIgQtoHZ2FB8Du4+cMLPtWdOMKBuiSJPA7hfA1J2t3DoAY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":95024},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"21c27fa114e570df80642ff37f43d32f14ce2848","scripts":{"dev":"tsc --watch","lint":"echo 'No linter configured'","test":"bun test","build":"tsc","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-wallet.git","type":"git","directory":"packages/pi-wallet"},"_npmVersion":"11.6.2","description":"CDP Agentic Wallet + x402 payments for pi-coding-agent. Zero-setup agent wallets with Base L2 support","directories":{},"_nodeVersion":"25.1.0","dependencies":{"ethers":"^6.13.5","@walletconnect/core":"^2.23.8","@walletconnect/web3wallet":"^1.16.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"^5.0.0","@types/node":"^20.0.0","@walletconnect/types":"^2.17.0"},"peerDependencies":{"@sinclair/typebox":"^0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-wallet_0.1.0_1773339040339_0.7135381307645912","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@0xkobold/pi-wallet","version":"0.1.1","description":"CDP Agentic Wallet + x402 payments for pi-coding-agent. Zero-setup agent wallets with Base L2 support","keywords":["pi-package","wallet","ethereum","base","cdp","x402","agent-economy"],"author":{"name":"0xKobold"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","dev":"tsc --watch","test":"bun test","lint":"echo 'No linter configured'","prepublishOnly":"npm run build && npm test"},"pi":{"extensions":["./src/index.ts"],"image":"https://www.coinbase.com/img/press/coinbase-logo.png"},"dependencies":{"@walletconnect/core":"^2.23.8","@walletconnect/web3wallet":"^1.16.1","ethers":"^6.13.5"},"peerDependencies":{"@mariozechner/pi-coding-agent":">=0.6.0","@sinclair/typebox":"^0.32.0"},"devDependencies":{"@types/bun":"latest","@types/node":"^20.0.0","typescript":"^5.0.0","@walletconnect/types":"^2.17.0"},"repository":{"type":"git","url":"git+https://github.com/0xKobold/pi-wallet.git","directory":"packages/pi-wallet"},"bugs":{"url":"https://github.com/0xKobold/pi-wallet/issues"},"homepage":"https://github.com/0xKobold/pi-wallet#readme","gitHead":"059e41c5634947dd39e52c4d0935a41bf1debdc2","_id":"@0xkobold/pi-wallet@0.1.1","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-cb3HDmmcnXXT+W4o81t5lQqbxvNvE3cWXofct8p8VvtYPjDULUdyEc8afF7VqHxGkUJ716KJHYWzCvq5M0gwJA==","shasum":"f58611373526407d7d0c895439dac77a9c1996e4","tarball":"https://registry.npmjs.org/@0xkobold/pi-wallet/-/pi-wallet-0.1.1.tgz","fileCount":8,"unpackedSize":95023,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCGJm/ZXuznFMNHNV1KPXNU7l8/u6kcJgRqjnF6OMAWXQIhAKHhpRkcTiy/2qvDVrRSTvROwYwJnq2Bg1uxkHMvqRTi"}]},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"directories":{},"maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-wallet_0.1.1_1773340944898_0.3765980817275174"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-12T18:10:40.224Z","modified":"2026-03-12T18:42:25.195Z","0.1.0":"2026-03-12T18:10:40.548Z","0.1.1":"2026-03-12T18:42:25.065Z"},"bugs":{"url":"https://github.com/0xKobold/pi-wallet/issues"},"author":{"name":"0xKobold"},"license":"MIT","homepage":"https://github.com/0xKobold/pi-wallet#readme","keywords":["pi-package","wallet","ethereum","base","cdp","x402","agent-economy"],"repository":{"type":"git","url":"git+https://github.com/0xKobold/pi-wallet.git","directory":"packages/pi-wallet"},"description":"CDP Agentic Wallet + x402 payments for pi-coding-agent. Zero-setup agent wallets with Base L2 support","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"readme":"# Pi Wallet Extension\n\nCDP Agentic Wallet + x402 payments for [pi-coding-agent](https://github.com/badlogic/pi-mono).\n\n## Installation\n\n```bash\n# Via pi CLI\npi install npm:@0xkobold/pi-wallet\n\n# Or in pi-config.ts\n{\n  extensions: [\n    'npm:@0xkobold/pi-wallet'\n  ]\n}\n\n# Or temporary (testing)\npi -e npm:@0xkobold/pi-wallet\n```\n\n## Features\n\n- 🪙 **CDP Agentic Wallet** - Zero setup, email-based authentication\n- 💳 **x402 Protocol** - Machine-to-machine payments\n- ⛓️ **Base L2** - Mainnet (8453) and Sepolia (84532)\n- 🔒 **Secure** - Config stored with 0600 permissions\n- 📁 **Portable** - Works with or without .0xkobold directory\n- ⚙️ **Configurable** - Environment variables for custom paths\n\n## Quick Start\n\n```bash\n# Create wallet\n/wallet-create --email me@example.com\n\n# Check status  \n/wallet-status\n\n# Send ETH\n/wallet-send --to 0x742d35... --amount 0.01\n\n# Send USDC\n/wallet-send --to 0x742d35... --amount 10 --token USDC\n\n# Trade tokens\n/wallet-trade 10 USDC ETH\n\n# Pay via x402\n/wallet-x402 --url https://api.service.com/pay --budget 0.001\n```\n\n## Configuration\n\n### Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `PI_WALLET_DIR` | Custom storage directory | `~/.pi/wallet` or `~/.0xkobold/wallets` |\n| `PI_WALLET_CHAIN` | Default chain | `sepolia` |\n| `PI_WALLET_MAX_AMOUNT` | Max transaction amount | `100` |\n\n### Config File\n\nStored at `PI_WALLET_DIR/config.json`:\n\n```json\n{\n  \"activeProvider\": \"agentic\",\n  \"agentic\": {\n    \"email\": \"me@example.com\",\n    \"authenticated\": true,\n    \"address\": \"0x742d35...\"\n  },\n  \"settings\": {\n    \"defaultChain\": \"sepolia\",\n    \"maxTransactionAmount\": \"100\",\n    \"requireConfirmation\": true\n  }\n}\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `/wallet create --email E` | Create CDP Agentic Wallet |\n| `/wallet status` | Check status and balances |\n| `/wallet send --to ADDR --amount N [--token T] [--chain C]` | Send crypto |\n| `/wallet trade AMOUNT FROM TO` | Swap tokens |\n| `/wallet x402 --url URL [--budget N]` | Pay via x402 |\n\n## Chains\n\n| Chain | Chain ID | Explorer |\n|-------|----------|----------|\n| Base | 8453 | https://basescan.org |\n| Base Sepolia | 84532 | https://sepolia.basescan.org |\n\n## Tools\n\n### `wallet_send`\n```typescript\n{\n  to: \"0x742d35...\",\n  amount: \"0.01\",\n  token?: \"ETH\" | \"USDC\",\n  chain?: \"base\" | \"sepolia\"\n}\n```\n\n### `wallet_x402_pay`\n```typescript\n{\n  url: \"https://api.example.com\",\n  maxBudget?: 0.01\n}\n```\n\n## Prerequisites\n\n```bash\n# Install CDP Agentic Wallet\nnpm install -g @coinbase/awal\n\n# Or use via npx (no install)\nnpx awal status\n```\n\n## Local Development\n\n```bash\ngit clone https://github.com/0xKobold/pi-wallet\ncd pi-wallet\nnpm install\nnpm run build\npi install ./\n```\n\n## Testing\n\n```bash\nnpm test\n```\n\n## Security\n\n- Config stored with `0o600` permissions (owner only)\n- No private keys stored locally\n- Atomic writes prevent corruption\n- Optional transaction confirmations\n\n## License\n\nMIT © 0xKobold\n","readmeFilename":"README.md"}