Funding your agent just got a lot less painful (Stripe onramp + CDP v2 + wizard/doctor) #19
VGIL77
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Funding your agent just got a lot less painful
Three things landed today that together turn agent wallet setup from a 30-minute headache into a couple of clicks.
1. Stripe Crypto Onramp is live
Tap Fund with Card in the Wallet view, complete a Stripe-hosted card flow, USDC lands in your agent's Smart Wallet on Base. We fixed four blockers that were stopping it:
connect.challengeevent the gateway no longer sends; now sends the connect RPC on WS open withminProtocol: 3).window.StripeOnrampAPI. The oldstripe.createCryptoOnrampSession()was removed by Stripe and was throwing in-browser; we switched towindow.StripeOnramp(publishableKey).createSession({clientSecret, appearance}).mount(...).wallet.fundagainst the Vite dev origin (:5173) rather than the gateway HTTP origin (:19001), so the SPA catch-all rendered and you landed on chat instead of the funding page. Now derives the gateway HTTP origin fromVITE_GATEWAY_URL.connect()idempotent when the URL hasn't changed.2. AgentKit 0.10.4 + CDP v2 SDK
Wallets are now real ERC-4337 Smart Accounts via
CdpSmartWalletProvider. The legacyCdpWalletProvideris deprecated upstream in 0.11; the old PEM-ECDSA keys aren't even issued anymore. Coinbase's portal only gives Ed25519 base64 secrets now.Init is fully idempotent:
getOrCreateAccountfor the owner, thengetOrCreateSmartAccount, plus alistSmartAccountsfallback that reclaims orphan smart accounts from any failed attempts. Persistence switched from encrypted blob to plain metadata.3. Wizard + doctor know about it
The onboarding wizard has a wallet step that walks you through CDP API keys (opens
portal.cdp.coinbase.com/projects/api-keysfor you) and persists the three required env vars:CDP_API_KEY_IDCDP_API_KEY_SECRETCDP_WALLET_SECRETbitterbot doctornow validates all three and surfaces missing config with a clear fix-it pointer instead of a stack trace at runtime.Plus:
bitterbot wallet fundopens the onramp (or prints the URL on headless boxes).Try it
If anything breaks for you, run
bitterbot doctorfirst and paste the wallet section of the output. Most issues are now down to "one of three env vars missing" and doctor will point at it directly.Beta Was this translation helpful? Give feedback.
All reactions