{"_id":"@barzkit/elizaos","name":"@barzkit/elizaos","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@barzkit/elizaos","version":"0.1.0","type":"module","description":"BarzKit plugin for ElizaOS — self-custody AI agent wallets with send, swap, lend, freeze, and x402 payments","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","lint":"tsc --noEmit","clean":"rm -rf dist"},"keywords":["elizaos","eliza","ai-agents","barzkit","web3","self-custody","erc-4337","smart-accounts","plugin"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/barzkit/plugins.git","directory":"elizaos"},"dependencies":{"@barzkit/sdk":"^0.1.4"},"peerDependencies":{"@elizaos/core":">=0.1.0"},"devDependencies":{"@types/node":"^22.13.0","tsup":"^8.5.0","typescript":"^5.9.3","vitest":"^3.0.0"},"engines":{"node":">=18.0.0"},"_id":"@barzkit/elizaos@0.1.0","gitHead":"5bc855744a87cdfc0b21fb262eaee5878ce0556c","bugs":{"url":"https://github.com/barzkit/plugins/issues"},"homepage":"https://github.com/barzkit/plugins#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-n9HKygOxGHGpT6HH0BfiOaKkorbnVIAR4ELG07VwQrQrLFGGh8mvlBiYh2YyI8SXJiTXyqq4h5l1aorLYQp3Qg==","shasum":"20be2b161c80bbf3c42b2bdda03508854427ace5","tarball":"https://registry.npmjs.org/@barzkit/elizaos/-/elizaos-0.1.0.tgz","fileCount":6,"unpackedSize":61476,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDraM3kMhKI7X/1QOtVrL1GsC7vt1SGhnYfdLy+QdJZPgIgNx2TFgteHy083JSK4pALinYr3V5f0VkFAVXa7zR2q5Q="}]},"_npmUser":{"name":"barzkit01","email":"musthavecat@protonmail.com"},"directories":{},"maintainers":[{"name":"barzkit01","email":"musthavecat@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/elizaos_0.1.0_1772383271043_0.9043891323387976"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-01T16:41:10.915Z","0.1.0":"2026-03-01T16:41:11.176Z","modified":"2026-03-01T16:41:11.504Z"},"maintainers":[{"name":"barzkit01","email":"musthavecat@protonmail.com"}],"description":"BarzKit plugin for ElizaOS — self-custody AI agent wallets with send, swap, lend, freeze, and x402 payments","homepage":"https://github.com/barzkit/plugins#readme","keywords":["elizaos","eliza","ai-agents","barzkit","web3","self-custody","erc-4337","smart-accounts","plugin"],"repository":{"type":"git","url":"git+https://github.com/barzkit/plugins.git","directory":"elizaos"},"bugs":{"url":"https://github.com/barzkit/plugins/issues"},"license":"MIT","readme":"# @barzkit/elizaos\n\nBarzKit plugin for [ElizaOS](https://github.com/elizaOS/eliza) — self-custody AI agent wallets with send, swap, lend, freeze, and x402 payments.\n\n## Installation\n\n```bash\nnpm install @barzkit/elizaos @barzkit/sdk\n```\n\n`@elizaos/core` is a peer dependency — your ElizaOS project already has it.\n\n## Configuration\n\nAdd these to your ElizaOS character settings or `.env`:\n\n```env\nBARZ_OWNER_KEY=0x...       # Owner private key (hex, 32 bytes)\nPIMLICO_API_KEY=pk_...     # Get one at https://dashboard.pimlico.io\nBARZ_CHAIN=sepolia         # sepolia | base-sepolia | base\n```\n\n## Usage\n\n```typescript\nimport { barzPlugin } from '@barzkit/elizaos'\n\n// Register the plugin in your ElizaOS character config\nconst character = {\n  name: 'DeFi Agent',\n  plugins: [barzPlugin],\n  settings: {\n    secrets: {\n      BARZ_OWNER_KEY: process.env.BARZ_OWNER_KEY,\n      PIMLICO_API_KEY: process.env.PIMLICO_API_KEY,\n      BARZ_CHAIN: 'sepolia',\n    },\n  },\n}\n```\n\nOnce registered, your agent responds to natural language:\n\n- **\"Send 0.01 ETH to 0x...\"** — sends ETH via gasless UserOperation\n- **\"What is my balance?\"** — checks wallet ETH balance\n- **\"Swap 100 USDC for WETH\"** — swaps via Uniswap V3\n- **\"Lend 50 USDC\"** — supplies to Aave V3\n- **\"Freeze the wallet\"** — emergency kill switch\n- **\"Unfreeze the wallet\"** — re-enables transactions\n- **\"Fetch https://api.example.com/data\"** — x402 auto-payment fetch\n\n## Actions\n\n| Action | Trigger Examples |\n|--------|-----------------|\n| `SEND_TRANSACTION` | \"send 0.1 ETH to 0x...\", \"transfer\", \"pay\" |\n| `CHECK_BALANCE` | \"balance\", \"how much ETH\", \"wallet balance\" |\n| `SWAP_TOKENS` | \"swap 100 USDC for WETH\", \"trade\", \"exchange\" |\n| `LEND_TOKENS` | \"lend 50 USDC\", \"deposit\", \"supply\" |\n| `BATCH_TRANSACTIONS` | \"batch transactions: [{...}]\" |\n| `FREEZE_WALLET` | \"freeze\", \"lock wallet\", \"kill switch\" |\n| `UNFREEZE_WALLET` | \"unfreeze\", \"unlock wallet\", \"resume\" |\n| `FETCH_WITH_PAYMENT` | \"fetch https://...\", \"pay and fetch\" |\n\n## Architecture\n\n```\n@barzkit/elizaos (Plugin)\n  ├── BarzService     — creates & holds BarzAgent via @barzkit/sdk\n  ├── walletProvider  — injects wallet context (address, balance, status)\n  └── 8 Actions       — NLP-parsed handlers for wallet operations\n```\n\nThe plugin uses `BarzService` to manage the smart account lifecycle. Each action gets the service from the ElizaOS runtime, parses the user's message with regex, and calls the appropriate `BarzAgent` method.\n\n## Provider\n\nThe `walletProvider` injects wallet context into the agent's conversation:\n\n```\nAgent wallet: 0x... on sepolia. Balance: 0.5 ETH. Status: active.\n```\n\n## Development\n\n```bash\nnpm run build    # tsup build (ESM + DTS)\nnpm test         # vitest unit tests\nnpm run lint     # tsc --noEmit type check\nnpm run dev      # tsup watch mode\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-0d06da0eb3d12697e4f6e27752cfc444"}