Current collected state Current
Observed since 20 Oct, 22:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Agent SDK — spend USDC under PolicyVault policy on Base
Spend USDC from a PolicyVault on Base under owner-set limits.
Private keys stay in your environment. The website never asks for them.
npm i @arshiaxbt/policyvault
import { createPolicyAgent } from '@arshiaxbt/policyvault';
const agent = createPolicyAgent({
vaultId: 0n,
agentPrivateKey: process.env.AGENT_PRIVATE_KEY as `0x${string}`,
});
await agent.spend('0xMerchant…', 0.05, 'exa-search');
Contract (Base): 0xA99bfE8D56A42C4060568C681804D08432Ab2bD5
Builder Code: bc_aby8yf1k
The scope must match your npm username exactly (npm whoami).
cd sdk
npm whoami
# if it prints something other than arshiaxbt, edit package.json "name" to @THAT_NAME/policyvault
npm publish --access public --otp=YOUR_2FA_CODE
If you still get 404, your token cannot create packages — create a Granular Access Token with:
--otp)Then:
npm config set //registry.npmjs.org/:_authToken=npm_YOUR_TOKEN
npm publish --access public --otp=YOUR_2FA_CODE
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.1Registry latest | 12 Aug 2026 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d69732776d828206f3ada4695c8ca20dd846bbc65442215059c9d78785dd343d