Give Your Agent a Wallet with Privy

Farcaster Agentic Bootcamp · 4 Apr 2026 · 32:05

A Privy engineer shows how to give an AI agent its own wallet using the Privy SDK, in the fifth session of the Farcaster Agentic Bootcamp hosted by Limone. The lesson targets agents that operate in the feed, coordinate and transact, ahead of the two-week online hackathon with Privy and Neynar bounties.

Speakers

Topics

From Farcaster Agentic Bootcamp, hosted by Urbe.eth.

Transcript

Farcaster wallet. Okay. Now it's good. Perfect. Hello everyone. I'm Limone from the Urbe and Vidas Garden team hosting the Farcaster Agentic Bootcamp. Today is the fifth session and we have Madeline from the Privy team joining us to showcase how to give your agent a wallet using the Privy SDK, which is actually one of my favorites. I think it's been two, three years now that I've been hacking and building consumer stuff with Privy, and so of course like super excited to see the Agentic side of things.

Um as always, reminding you this bootcamp is preparing for the online hackathon that is starting next week. Two weeks of online hackathon with Ninar, Farcaster, Privy, and other partners that will be offering also bounty prizes for you to build on specific tracks by them. The main focus is building agents on Farcaster. Agents that operate in the feed, agents that coordinate, negotiate, do commerce, and transactions. And of course like when it comes to transaction, this session about Privy Agentic wallets, I think it's very relevant for the whole curriculum. I think one of the most important of the one that we have so

far. So it's going like deep inside a tool that I think all or most of you will be using during the hackathon. That said, I leave the stage to Madeline. As always, the session is recorded and transcribed so you can watch it later. And if you have any question, please ask them in the chat and then Madeline according to her preferences can pick them up later or by the end. Let's go. Let's go, Madeline. Welcome. Sweet. Hi, I'm Madeline. I'm a product engineer at Privy.

I'm going to share my slides. Yeah, so I'm going to start off with a quick like what is Privy just for people who don't know. Um Privy is an authentication and key management system. We are the abstraction layer between your application and the blockchain. Um and our develop developer tools make it really easy to onboard users and activate your users on chain um with wallets and and getting those wallets funded and using them with very simple abstractions. Um So, like I said, Privy gives your users access to digital assets with login message that are most familiar to them um like Google login

and Twitter login. So, they don't have to like manage keys themselves. Um once they log in, embedded wallets can be automatically provisioned for users under the hood. You can also spin up wallets via API, which is something that we're seeing um agent developers do as well. So, wallets that are not associated with users directly from your server. Um and all Privy wallets are super super configurable. You can set who can control the wallet. Um so, you can set like an owner, like who has a total control over the wallet, or like an additional signer who um can like take only like certain scoped actions. You can have the owner or signers be like a certain threshold of actors that need to approve approve a

request before that request is executed. Um generally just like very highly configurable. Um you can also configure really granular policies that let you enforce what actions a wallet is able to take. You can enforce those actions at like the wallet level, at the um like owner or signer level. So, you can add a signer that can only, you know, spend up to like 20 bucks like for example, like an agent um being only able to spend up to a certain threshold, or send to allowed to addresses.

Um, so I think the big thing here is like Privy makes it really easy to create wallets. Um, and those wallets are super configurable, which is really important in the agent use case, which I'll talk more about later, too. Um, but once the user has a wallet, Privy also makes it really easy to get funds in that wallet. We have native on-ramp and bridging to handle all of the complex blockchain logic behind the scenes. Um, and so like all of this to say, it makes it really easy to get users and agents wallets and onboarded into your app.

Um, and then just to like really double down, Privy is the leading wallet infrastructure provider. Um, Farcaster uses us, which is great. Um, we were recently acquired by Stripe, as well. We have years of experience in blockchain payment stack. Um, and our thesis is like our product is perfectly built, or perfectly shaped for agentic payments. Um, like being highly configurable, being super secure is exactly what it you need when you're building an agent. Um, having like really secure configurable wallet and payment infrastructure allows you guys to focus on building really cool agents and in agent capabilities.

Um, so yeah, so we make it super easy to give users wallets. Um, and we're excited to change like kind of like apply that same wallet stack to giving agents spending power um, and empowering them to spend in a way that's native to the internet. Um, does anybody have any questions there? I can stop there for now. Nothing so far in the chat. Um, I think all good. If anybody has questions, please raise your hand. Otherwise, I'll keep powering through.

But feel free to leave questions in the chat. I'll I'll check. Um, So we have one question. Who? Please. Let's see if they write or speak. Okay. Um, so in the previous slide, um, I saw something about that the keys are generated in the TEE and they are in memory. My question is what happens when, um, let's say the server in which the TEE is running, what happens, uh, when the server is down or something?

Um, will it get lost or how is it, uh, I don't know if you get my question. Yeah, Privy is like very dedicated, um, or like we have we're we're committed to having really high up time. Um, I think it's like four nines. Um, so it's like very very rare that the server goes down in the first place, um, and we get it back up very fast. But, um, the TEE architecture is important to make sure that the private key is secured. Like, you know, if you lose your private key, um, in crypto, you lose like act like like you could like an attacker could potentially drain all the funds in that wallet. So, like making sure that's really secure is important. Um, but if you wanted to have guarantees around

like the Privy server going down, you could always export your key and store that, um, somewhere else. So, you could sign locally instead of having to hit the Privy server. Okay. Okay. Thank you. Sweet. Okay, I'll keep going. Um, so the next section I want to talk about is like why give an agent a Privy wallet. Um, and so the first thing, like you guys know, you've been you've been thinking about this a lot, but agents need spending power. Um, right now, like agents are kind of like geniuses in a box, um, and like now like they're super smart, super intelligent, and very capable, but they can't really do anything without being able to

interact with the external world. Um open claw kind of like helped with this. It made it so that they could interact with file systems on a computer and and being able to make API calls is very important, but um the next barrier to agents being able to act really autonomously is being able to spend money um and actually be economic actors. Um so first thing is like agents need spending power. Um and then how you give them that spending power is very important. Um obviously you want to give it to them in a very secure way and that's really Privy's focus. Like we really believe we're a security company um and we take secure payments infrastructure really important uh very seriously. It's very

important to us. Um and building the primitives that people need when building agents is is something we're very focused on. Um so the idea is like you need to give your agent some way to spend and Privy will give you the right primitives that are super secure and locked down to give agents that spending ability. Um and then like why Privy again is like Privy is really flexible. Like I talked about this at the beginning, but um being able to configure ownership over a wallet um in a very flexible way. Like wallets can have owners and signers where like the owner has total control and signers have

like scoped permissions. Um you can configure it so like a wallet needs multiple um keys or or or like actors to submit a request. Um and it makes it really easy to configure different ownership models over a wallet. Um I think like a big thing the space is still like the agentic payment space is still trying to figure out right now is the right user experience with agents in wallets.

Um like if you give a agent a wallet and like like how much control should they be able to have over that wallet? Should they only be able to spend small amounts? Should they have to you know, pop back up to the user each time um to like have that transaction approved um or should the agent just be able to like spend all of the funds in the wallet however it wants to? Um all of these different shapes are available with Privy um and you know, it's it's early in the space. Everybody's like tinkering and experimenting and we think Privy being flexible is very important to builders because you can kind of mess around with all of these different

ownership um models and and controls over the wallet models. Um and then again, like we have a very expressive policy engine that allows you to program how a wallet can be used. Um you can set policies around things like transfer limits, like how much is can be sent in a single transaction. We have stateful policies so you can do policies like over multiple transactions, like over a period of time. You can have set like allow and deny list addresses so the wallet can only interact with certain addresses. You can also have all of these policies um configured to like a specific signer or an actor. Um and generally this makes it

really easy to restrict what an agent can do um and protect from the case where you give an agent a wallet and they just like totally drain all of the funds in the wallet. Um so Privy has a bunch of secure controls to to protect around that. Um So that's the end of that section. Any any questions there? Oh, truth I see. Um yes, you can configure limits on what agents can spend. Um you would have the way that you would do this is you would add a signer to a wallet um and give the agent that key like for for that signer um and then configure a policy on top of that signer

to um like limit how much that signer is able to spend. You could say like okay like this signer like any request signed with this key can only spend up to let's say like 20 bucks or something like that. Um and then are the wallets uh and then on your second question are the wallets externally owned accounts or smart accounts um or we get to choose whichever? You get to choose whichever. Um Privy has a native smart account um feature. Um so all wallets, user wallets, server wallets can be um EOAs or smart accounts. Um and then we also if the goal with smart accounts is to get a gas sponsorship, we also have native gas

sponsorship um where Privy will cover the gas for all of the transactions um coming from Privy wallets as well. Um sweet duo. Hi Madeleine. Something I want to ask you is using a Privy is like the wallet that the agent is going to use. I have the last word. Right? Like I have the last decision to use the wallet. It's like okay, the agent can use the wallet but I have the final decision if I want okay, don't don't spend this or okay, then stop. You cannot use it anymore.

Yeah. Um the user is like always in control and you can configure um how autonomous you want the agent to be. So if you wanted the agent to have to pop up to the user, um you would instruct it to um like prompt the user signature. Like you wouldn't even have to add an additional signer on the wallet because you know you would have the user would need to be online whenever the agent made a transaction. But you could also configure the wallet and give the agent a key such that they could transact autonomously on the wallet.

And notably I've been saying the word key, these these keys aren't um like the actual key for the wallet. It's like an authorization key that Privy creates and distributes that gates access to the wallet. Does that answer your question? Yes, thank you. Cool. Any anything else on that section? I can I can share some docs as well after this that are that are useful to get started with all this stuff. There's one more question by Tuf.

Oh, go ahead. Maybe it maybe I can't see everybody while I'm sharing. Oh, I see I see. Um can we also Yes. So we call these key quorums. I can send docs as well, but basically you can set like an owner or a signer to be a key quorum instead of a single key such that you need like N of M or or three of four signatures within that key quorum for something to happen. I think a potentially cool shape with this and agents is you um need to have a like a verification step. Like the agent can like sign a transaction and like basically like make that request, but you also need some

like external verification agent or some like verification program that validates that that is a legitimate transaction to sign off before it hits Privy API as well. And these will all be like cryptographically enforced um instead of, you know, like at the system prompt or or agent level for that added level of security. Cool. Okay, so hopefully you guys are all sold on using Privvy for your agent wallets. Um where where do you start with giving agent wallets to agents? Um so the first thing that I'll talk about we we've shipped a bunch of different integrations to make it really easy to build um

to like for agent builders to give wallets to their agents. Um the first one I'll talk about is X the X 402 integration. Maybe like can we do a quick show of hands of like who has heard of X 402? I'm like curious how familiar this group is with the protocol. Okay, so most people have heard of this. I won't go too deep, but um basically X 402 is a way to um include payment in an HTTP request. Um and you do this by with Privvy by wrapping um the fetch call with payment. Um it's like five lines of code. It will make

the request for you, get the 402 error, um and include the payment in the next fetch call that it makes, and it'll it'll send from that Privvy wallet. Um so like again, super easy integration to use X 402 and and make X 402 payments from a Privvy wallet. Um Stripe and Tempo also um released uh like recently a machine payments protocol, um which is also including payments per HTTP request. Um if folks have seen that as well, we we also make it really easy to pay with MPP.

Um and so like once you have a Privy wallet, you can use any of these machine payment protocols to um, spend down per per API request. Um, and then we have some starter repos. If you were interested in doing something around that, um, I personally have been using starter repos a lot. Like when I use Cloud Code to write code, I'll just be like, "Here's the starter repo that does this. Like go do it as a starter repo does in my app." Um, but I will show you, um, the flow, like basically like the demo of this starter repo. Um, and this is kind of like what I was talking about

like why Privy is so great. Here you can kind of like see all the pieces come together. Um, so I'm going to start by creating an agent. This will create a Privy wallet. Um, it hits a Privy API. It gets back this wallet address. There's like a private key and a TE that was created. Um, now I'm going to fund it just like from a treasury wallet so that there's actually funds in here. Um, I'm now going to configure a policy, um, like I talked about to restrict how much an agent can actually spend per transaction. These are super configurable. I just have some like preset options here.

Um, and so now like super easily my AI agent is set up with a wallet address. It has a balance. It has like a max amount that it can spend per transaction. Um, and then I've also set up these two API points that um, are gated behind an X road to paywall. So first this weather endpoint, um, what happened under the hood is like the X road to payment was automatically included using the Privy hook. The response went through. Um, and then this request where I try and buy a sweater, like a fun fact about me is that I love to buy sweaters. I live in New York City. It's a problem. There are way too many sweaters available for me to buy.

Um, but it gets blocked by this policy um in the privy enclave because it's above our configured spending limit. Um, so this is like a good the cool thing about this demo is like how fast it is for the AI agent for your app to stand up an AI agent, fund that agent, configure policies to restrict what actions it's able to take um and while still like allowing that agent to act um autonomously.

That was kind of a lot. Any any questions there? Yes, so then brought up an interesting point, like how do you see MPP uh compared to to Yeah, um they're both like great protocols um and agree like I I I don't think that they're competing. MPP supports like all of the things that XF 02 supports. Um Stripe notably has like really easy integrations for both um where you can put like an MPP and XF 02 paywall in front of like an endpoint. Um that's actually what this demo uses if you um like are clicking around in that starter

repo. Um yeah, MPP does have um a way to like open a channel and kind of like prepay um with with a merchant so it has like a little bit more functionality as like a second mover. Um and yeah, I think but they're both um starting to expand more into like fiat rails alongside crypto. Um a lot of the feedback I've like pretty close with both teams has been um that folks don't want to spend just in crypto.

They also want to use fiat rails. Um and so I think both standards are are working on incorporating both. Um, to the I'm not sure I understand What do you What do you mean by a confidential token transfer? Um, or let me say shielded token transfers. So private private transfers where like you you cannot see the link between the two addresses transacting.

Exactly. Um not natively with Privy, but Privy um, will integrate like we have a VM like a really easy VM integration and and we integrate with all of the tools like in the broader Web3 ecosystem. Um, so if you wanted to use a tool to do private token transfer, um, you could plug a Privy wallet into that really easily. Cool.

I sorry, I guess I'm getting a cold. Um, okay. Um, the next thing I'll talk about is an open claw scale. Oh, um, I'm sharing the wrong sides. Um, But there's another question, sorry Madelaine, before moving on to the next one by Sonia in the chat. Um, these Yeah, so you could build um, your own CLI. Um, I guess maybe I I might turn the question back on to you. What do you mean by like agent actions?

Um, Uh, okay. Oh, yeah, yeah. So, you can do all of these um, programmatically. So, the UI I set up is just for like demo purposes. Um, basically so you can kind of like see it click through. Um, everything is available via API requests. Um, and we have a bunch of SDKs built on top of those APIs. Um, and so like short answer, you can do it through a CLI as well. It's not UI only. Cool.

Um, sweet. Yeah, the next thing I'll talk about is an Open Claw Skill. Um, Open Claw had such a moment. Um, and it's really easy to plug a Privy wallet into an Open Claw agent. Um, you can go through the flow at that doc. Um, right now you actually do have to like create a Privy app and a Privy account to to get that wallet, but that's something um, stay tuned. We're thinking a lot about like how to reduce friction um, to make it really easy to go from zero to to wallet um, in like an agent um, with Privy.

Um, and then another tool, so I'm I'm just like rattling through a bunch of integrations that we've done to make it really easy to build agents to to give agents access to Privy. Um, another one is a LangChain integration that we built. Um, if you haven't heard of LangChain, it's a platform to um, make building agents really easy. Um, and and and they build tools around like creating agent harnesses. Um, and so we have this like Privy wallet tool um, integration that you can just like it's open source, you can just give it to your agent. Um, and then your agent can create Privy wallets, it can spend on Privy wallets, it can check the

balance. Um, it's basically like knows how to speak Privy. Um, and once you set it up with a wallet, it's it's off to the races. Um, sweet. Yeah, so that's those are all the slides that I have. Um, I I'd say like high-level, um, the Privy product is really well shaped for this, but we're doing a big push right now on, um, making it extra easy for agent developers to use Privy wallets. Um, so if as you guys are building, you like have any feedback for like friction in the product, anything that like felt really good, um, we're around. I'm I'm like so happy to chat through this stuff. I think like giving agents wallets um

is like how we're going to like empower the next generation of of autonomous agents and and it's it's very cool to be building in a space right now. Um, so yeah, that's all I got if if people have more questions. Uh, I have one question for you. Does Privy come also with a built-in LLM gateway that agents can pay for with it's for a shoe or MPP? Um, what do you mean by like an LLM gateway? Um, so paying for inference autonomously without any manual integration. I know that Bancor, for example, has that. So you you the agent has a wallet with USDC and you don't need to

plug OpenRouter or Anthropic or any, you know, like LLM provider, but you just can use the built-in one. Yeah, so Privy doesn't, um, build agents. We don't do like LLM inference or anything. Um, you have to like already have an agent and you're giving access like you're giving excuse me, that like existing agent a wallet. If that makes sense. But you could use a Privy wallet to pay for inference. Yeah. If yeah, like the XRO 2 and and MPP integrations. Um, if you like have like an endpoint to to pay for that, you can like spend it from a Privy wallet.

Any any question from the audience? Yes one. Are you reading it, Madeline? Yeah. Um, so for one uh private key um is stored in shards. Um we do Shamir secret sharing for key storage. Um so the key is not like persistent in the TEE at all.

Um it's only when requests are made that the private key is like reconstituted um in the enclave. So like that's like one line of defense like if the TEE is com- compromised um then like only keys that are only wallets that like have like active requests would be compromised. Um I can send like more security docs about um what happens in in that case as well. Any other question?

I have another one. Like what what about the um the Aragon uh is there anything in particular that uh you and the preview team are excited about or expecting like to see people build like some specific use cases if it's around payments, if it's around privacy as somebody was was mentioning. Yeah. Um we're really excited about people building tools for agents to use. We call these like agent merchants or like agent services or services.

Um once agents are autonomous like or like autonomous economic actors and they can spend um they have like spending power. Um the next question is like where do they go and spend those funds? Like what are like storefronts that accept MPP or XPR O 2? Um, and Stripe is doing work to get like existing merchants. Um, I always think about like J. Crew. Like to be able to like accept like MPP or XPR O 2. Um, but there's also this whole like problem space around that gets unlocked for like autonomous micro payments.

Um, and so we've seen them with with like a few of our customers. Um, Alium has like an X who does like blockchain um, data. They have a way to hit their end points um, with XPR O 2 and get um, like on chain data um, with like a micro payment. Which is super super cool. Not like a flow that was possible before. Um, and I think the like or like the adoption that we're seeing right now is around um, like autonomous micro payments for like software as a service.

Um, so that's like one space that I'm I'm super excited about specifically. But broadly, I think there's a lot to build around um, how like where agents can spend. Um, like one one demo that um, I stood up at our like internal AI hackathon was if you could put content behind like an MPP or XPR O 2 paywall um, such that an agent could go and do a research report um, where you say like okay like agent like um, go like why are the lines so long at like LaGuardia right now?

Um, and LaGuardia goes and buys different pieces of content um, that like explain like oh like well you know like there was like an accident and all of these things um, and like does research for you. Um, similar for like you could imagine like market research or something if you're like a venture capital firm and you want to be like okay like what is the opportunity in this market? Like go and buy a bunch of research reports and do research and synthesize something for me about like the total available market here and if I should invest.

Things like that. Like there are all these capabilities that would make agents better but there's not really a market for those services right now because there's not a way for agents to spend but at Privy we're thinking a lot about like making it really easy for agents to spend. So like I guess like prompt is like where would agents go spend that go where they can like leverage other agents or like other data sources that make them better. Thank you. Thank you so much. Then I guess if there's no questions, that's it for today.

Super excited for the hackathon start next week. Madeleine, if you can share with me also the slides I will upload them to the to the notion that we have here and uh Oh yeah, the group the group picture. Yes. So let me let me stop the recording here so that it doesn't get included in the YouTube. Stop recording.

Related talks