Session-based wallet connector for Polygon Agent CLI agents. Creates secure encrypted wallet sessions for CLI and autonomous agent operations.
- Explicit Sessions: Creates session keys with granular permissions for token operations
- Encrypted Export: Encrypts session credentials using NaCl sealed-box for secure CLI/agent ingest
- Token Limits: Supports native (POL) and ERC20 spending limits (USDC, USDT, custom tokens)
- Balance Display: Shows wallet balances after connection
- Callback Support: Automatic callback delivery to the CLI (default mode)
Copy .env.example to .env and fill with your project information:
cp .env.example .envInstall and run:
pnpm install && pnpm devThe app will start on localhost:4444
To provide your own keys from Sequence Builder, edit the .env file with your VITE_PROJECT_ACCESS_KEY.
polygon-agent wallet createThe CLI starts a local HTTP server and outputs a URL. Open the URL in browser, approve the session — the connector UI POSTs the encrypted session back automatically.
- Run
polygon-agent wallet create --no-waitto generate a session link - Open the link in browser
- Click "Connect wallet" and approve in Ecosystem Wallet
- Copy the encrypted blob
- Run
polygon-agent wallet import --ciphertext @/tmp/session.txt