{"_id":"@amillipay/sdk","name":"@amillipay/sdk","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amillipay/sdk","version":"1.0.0","description":"The official AMILLIPAY SDK for AI agent payments","main":"src/index.js","type":"module","keywords":["amillipay","ai","agents","payments","sdk"],"author":{"name":"AMILLI AI, Corp"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AMILLIAICORP/amillipay-sdk.git"},"_id":"@amillipay/sdk@1.0.0","bugs":{"url":"https://github.com/AMILLIAICORP/amillipay-sdk/issues"},"homepage":"https://github.com/AMILLIAICORP/amillipay-sdk#readme","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-M4FMjSBTLdFOpmfyM/azS3d6sODfBobF3Q9881XAhNN5pBa8rsSXSQQxun7MmpF45xa2UTk4HPaUE2pQu3cCRQ==","shasum":"029b72e0a14cae4a413e45284c10131fd9ff3f8e","tarball":"https://registry.npmjs.org/@amillipay/sdk/-/sdk-1.0.0.tgz","fileCount":3,"unpackedSize":5536,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCDw6bcv0ZSjI41OQTFghv6iTgUYsT1Fzoqf+ABRyF68wIgZowrPwaDwD9LDuLVoCjV+mTqGdmNhfh2hhvRJmoMOYg="}]},"_npmUser":{"name":"amilliai","email":"amilliaicorp@gmail.com"},"directories":{},"maintainers":[{"name":"amilliai","email":"amilliaicorp@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.0_1780945040286_0.8029444248136519"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-08T18:57:20.101Z","1.0.0":"2026-06-08T18:57:20.436Z","modified":"2026-06-08T18:57:20.704Z"},"maintainers":[{"name":"amilliai","email":"amilliaicorp@gmail.com"}],"description":"The official AMILLIPAY SDK for AI agent payments","homepage":"https://github.com/AMILLIAICORP/amillipay-sdk#readme","keywords":["amillipay","ai","agents","payments","sdk"],"repository":{"type":"git","url":"git+https://github.com/AMILLIAICORP/amillipay-sdk.git"},"author":{"name":"AMILLI AI, Corp"},"bugs":{"url":"https://github.com/AMILLIAICORP/amillipay-sdk/issues"},"license":"MIT","readme":"# @amillipay/sdk\n\nThe official JavaScript SDK for [AMILLIPAY](https://amillipay.com) — the payment API for AI agents.\n\n## Installation\n\n```bash\nnpm install @amillipay/sdk\n```\n\n## Quick start\n\n```javascript\nimport AmilliPay from '@amillipay/sdk'\n\nconst pay = new AmilliPay(process.env.AMILLIPAY_API_KEY)\n\n// Create an agent wallet\nconst agent = await pay.agents.create({ name: 'My Research Bot' })\n\n// Check balance\nconst balance = await pay.agents.balance(agent.id)\nconsole.log(balance) // { credits: 0, usd: 0, agent_id: 'agt_xxx' }\n\n// Send a payment\nawait pay.send({\n  from: agent.id,\n  to: 'agt_search_service',\n  amount: 10, // credits\n  memo: 'Web search: Tesla Q4'\n})\n\n// List transactions\nconst { transactions } = await pay.transactions.list({ agent_id: agent.id })\n```\n\n## API Reference\n\n### `new AmilliPay(apiKey, options?)`\nCreate a new client instance.\n\n### `pay.agents.create({ name, owner_id?, metadata? })`\nCreate a new agent wallet.\n\n### `pay.agents.get(id)`\nGet agent by ID including current balance.\n\n### `pay.agents.balance(id)`\nGet agent balance as `{ credits, usd, agent_id }`.\n\n### `pay.agents.list({ owner_id? })`\nList all agents for your account.\n\n### `pay.send({ from, to, amount, memo? })`\nSend credits between agents. Amount is in credits (1 credit = $0.001).\n\n### `pay.deposit({ agent_id, amount_usd })`\nGet a Stripe checkout URL to fund an agent wallet.\n\n### `pay.transactions.list({ agent_id?, limit?, offset? })`\nList transactions for your account or a specific agent.\n\n## Error handling\n\n```javascript\ntry {\n  await pay.send({ from: agent.id, to: 'agt_xxx', amount: 1000 })\n} catch (err) {\n  if (err.code === 'insufficient_credits') {\n    console.log('Fund your agent at:', err.deposit_url)\n  }\n}\n```\n\n## Credits\n\n- 1 credit = $0.001 USD\n- Minimum transaction: 1 credit\n- 5% deposit fee\n- 1% transaction fee\n\n## License\n\nMIT — AMILLI AI, Corp\n","readmeFilename":"README.md","_rev":"1-4850086efbca229bf787fe1c011a412c"}