<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: OpenClaw Cash</title>
    <description>The latest articles on Forem by OpenClaw Cash (@openclawcash).</description>
    <link>https://forem.com/openclawcash</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3822474%2F5c74aecd-d2f2-4e92-ade8-0dbc51525b52.png</url>
      <title>Forem: OpenClaw Cash</title>
      <link>https://forem.com/openclawcash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/openclawcash"/>
    <language>en</language>
    <item>
      <title>How to Give Your AI Agent a Wallet in 5 Minutes with OpenclawCash.com</title>
      <dc:creator>OpenClaw Cash</dc:creator>
      <pubDate>Tue, 14 Apr 2026 16:56:19 +0000</pubDate>
      <link>https://forem.com/openclawcash/how-to-give-your-ai-agent-a-wallet-in-5-minutes-with-openclawcashcom-59m</link>
      <guid>https://forem.com/openclawcash/how-to-give-your-ai-agent-a-wallet-in-5-minutes-with-openclawcashcom-59m</guid>
      <description>&lt;p&gt;AI agents are becoming useful, but most of them still cannot safely move money onchain. OpenclawCash gives your agent a wallet, policy controls, and API endpoints for transfers and swaps across EVM and Solana chains. &lt;/p&gt;

&lt;p&gt;In this post, you'll see the basic flow: authenticate with an agent key, inspect a wallet, and make a first onchain action with OpenclawCash. &lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;Most agent demos stop at "the model can suggest an action." That is not enough when the action is moving assets. OpenclawCash is built for the part that matters in production: letting an AI agent hold a wallet and act under policy controls instead of raw key access. &lt;/p&gt;

&lt;p&gt;That makes it useful for agents that need to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Send payments.&lt;/li&gt;
&lt;li&gt;Swap tokens.&lt;/li&gt;
&lt;li&gt;Run autonomous workflows with guardrails.&lt;/li&gt;
&lt;li&gt;Work across EVM chains and Solana in a single setup. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What you'll build
&lt;/h2&gt;

&lt;p&gt;By the end of this tutorial, your agent will be able to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Authenticate with an OpenclawCash agent key.&lt;/li&gt;
&lt;li&gt;List wallets.&lt;/li&gt;
&lt;li&gt;Read wallet details and balances.&lt;/li&gt;
&lt;li&gt;Send a transfer.&lt;/li&gt;
&lt;li&gt;Run a token swap.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;You need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.openclawcash.com/signup" rel="noopener noreferrer"&gt;OpenClawCash Agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.openclawcash.com/api-keys" rel="noopener noreferrer"&gt;An agent key&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Python or Node.js to make API requests. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Bonus
&lt;/h3&gt;

&lt;p&gt;Use Code &lt;strong&gt;PAYME26&lt;/strong&gt; on signup to get 10 days free use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Authenticate your agent
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Prompt:
Connect to my OpenclawCash wallet.

Example output:
✓ Connected to OpenclawCash agent wallet
Ready for wallet actions.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OpenclawCash uses an agent key passed in the &lt;code&gt;X-Agent-Key&lt;/code&gt; header. That header is the most important piece of the setup because it lets your agent call the wallet API without exposing private keys in your application logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: List available wallets
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Prompt:
Show me my available wallets.

Example output:
You have 2 wallets available:
- Main: 0.42 ETH, 128 USDC (Ethereum)
- Test: 0.01 SOL (Solana)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your agent has access to more than one wallet, this is where you can choose the right one for the task. One wallet might be used for testing, while another is reserved for live transfers. &lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Read wallet balance
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Prompt:
What's my wallet balance?

Example output:
Main wallet balance:
- 0.42 ETH ($1,250)
- 128.45 USDC ($128)
- 0.01 SOL ($1.50)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the point where your agent can make a simple decision:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If balance is too low, stop.&lt;/li&gt;
&lt;li&gt;If balance is sufficient, continue.&lt;/li&gt;
&lt;li&gt;If the asset is wrong, swap first. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That sort of logic is exactly why a wallet layer for agents matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Send a transfer
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Prompt:
Send 0.01 ETH to 0x1234567890abcdef.

Example output:
✓ Transfer sent successfully
Tx: 0xabc123... | 0.01 ETH | Confirmed on Ethereum
Gas used: 21,000 | Status: Success
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This example shows the basic idea: the agent chooses a wallet, a destination, a token, and an amount. OpenclawCash handles the wallet infrastructure so the agent can execute the transfer in a controlled way. &lt;/p&gt;

&lt;p&gt;For a real production setup, you should add policy checks before the transfer runs. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maximum amount per transfer.&lt;/li&gt;
&lt;li&gt;Allowed destination list.&lt;/li&gt;
&lt;li&gt;Network restrictions.&lt;/li&gt;
&lt;li&gt;Manual approval for large amounts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 5: Swap tokens
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Prompt:
Swap 0.05 ETH to USDC.

Example output:
✓ Swap completed
0.05 ETH → 145.20 USDC
Tx: 0xdef456... | Status: Confirmed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Agents often need to change assets before acting. OpenclawCash supports swaps as part of the same wallet workflow. That means your agent can do more than just move funds. It can prepare the right asset for the next step in an automated workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple agent flow
&lt;/h2&gt;

&lt;p&gt;Here is the simplest real-world flow for an AI agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Prompt:
Send 25 USDC to @user123 wallet.

Example output:
Checking balance... ✓ 128 USDC available
Sending payment... ✓ 25 USDC transferred
Tx: 0x789... | Status: Confirmed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That pattern is enough for many practical uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Paying a service onchain.&lt;/li&gt;
&lt;li&gt;Funding a worker wallet.&lt;/li&gt;
&lt;li&gt;Rebalancing small treasury flows.&lt;/li&gt;
&lt;li&gt;Executing a limited DeFi action under policy. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Example use case
&lt;/h2&gt;

&lt;p&gt;Imagine a support agent that receives a request to reimburse a user in USDC.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Prompt:
Reimburse @user456 25 USDC.

Example output:
✓ Balance check passed (128 USDC available)
✓ Payment sent: 25 USDC to @user456 wallet
Tx: 0x789... | Status: Confirmed ✓
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent can then check the wallet balance, swap a small amount of ETH to USDC if needed, transfer the final amount to the recipient, and record the transaction for review. &lt;/p&gt;

&lt;p&gt;That is much more useful than a chatbot that can only suggest what should happen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Production advice
&lt;/h2&gt;

&lt;p&gt;If you plan to use OpenclawCash in a live product, keep the agent restricted. A good rule is to let the model decide &lt;strong&gt;what&lt;/strong&gt; should happen, while your policy layer decides &lt;strong&gt;whether&lt;/strong&gt; it is allowed. &lt;/p&gt;

&lt;p&gt;A solid first policy set would include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Spending limits.&lt;/li&gt;
&lt;li&gt;Whitelisted addresses.&lt;/li&gt;
&lt;li&gt;Per-network restrictions.&lt;/li&gt;
&lt;li&gt;Manual review for large transactions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That keeps the system practical without giving the model unrestricted financial control.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing thoughts
&lt;/h2&gt;

&lt;p&gt;OpenclawCash makes it straightforward to give an AI agent a wallet, connect it to real onchain actions, and add policy around those actions. If you want your agent to do more than talk about money, this is the missing layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.openclawcash.com/agentwalletapi" rel="noopener noreferrer"&gt;SKILL.md&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.openclawcash.com/docs" rel="noopener noreferrer"&gt;Docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.openclawcash.com/agents" rel="noopener noreferrer"&gt;QuickStart&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  AI #AIagents #Web3 #Crypto #Blockchain #Solana #Ethereum #DeFi #developers #tutorial #buildinpublic #100DaysOfCode #showdev #programming
&lt;/h1&gt;

</description>
      <category>developers</category>
      <category>tutorial</category>
      <category>web3</category>
      <category>ai</category>
    </item>
    <item>
      <title>In the last 7 days we generated +7,735.24 USDC PnL on Polymarket using OpenClawCash.</title>
      <dc:creator>OpenClaw Cash</dc:creator>
      <pubDate>Wed, 08 Apr 2026 21:57:38 +0000</pubDate>
      <link>https://forem.com/openclawcash/in-the-last-7-days-we-generated-773524-usdc-pnl-on-polymarket-using-openclawcash-516f</link>
      <guid>https://forem.com/openclawcash/in-the-last-7-days-we-generated-773524-usdc-pnl-on-polymarket-using-openclawcash-516f</guid>
      <description>&lt;p&gt;We posted a &lt;strong&gt;60% win rate&lt;/strong&gt;, &lt;strong&gt;+24.18% avg PnL&lt;/strong&gt;, and &lt;strong&gt;+31.89% EV proxy&lt;/strong&gt; all while keeping private keys fully protected.&lt;/p&gt;

&lt;p&gt;Every other setup we tried was bottlenecked by slow wallet flows, tab-switching, and manual approvals. Ours wasn’t.&lt;/p&gt;

&lt;p&gt;Prediction market trading has always been bottlenecked by execution friction. You spot the edge, then lose it copying prices, approving transactions, and juggling dashboards. We wanted a cleaner loop: &lt;strong&gt;scan → decide → place → monitor&lt;/strong&gt;, without exposing keys to agents or scripts.&lt;/p&gt;

&lt;p&gt;So we built the workflow around &lt;strong&gt;OpenClawCash&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyplwq8vw5arkvvgux5ds.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyplwq8vw5arkvvgux5ds.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Here’s what it actually does
&lt;/h3&gt;

&lt;p&gt;Point OpenClawCash at your Polymarket account via secure API. It gives you one unified dashboard with live PnL, exposure, collateral, and redeemable positions. No seed phrases. No wallet connections. Just fast, secure order placement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The setup is minimal by design:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sign up at &lt;a href="https://openclawcash.com" rel="noopener noreferrer"&gt;https://openclawcash.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Run the Polymarket Setup Wizard (2 minutes)&lt;/li&gt;
&lt;li&gt;Generate API key + grant venue access&lt;/li&gt;
&lt;li&gt;You’re live&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Then the loop:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Scan markets for EV-positive setups&lt;/li&gt;
&lt;li&gt; Place limit orders in seconds&lt;/li&gt;
&lt;li&gt; Monitor real-time risk in one place&lt;/li&gt;
&lt;li&gt; Realize PnL or redeem positions&lt;/li&gt;
&lt;li&gt; Repeat&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feslb9u88a2swksytbpb3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feslb9u88a2swksytbpb3.jpg" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Why this works
&lt;/h3&gt;

&lt;p&gt;We discovered that the biggest edge in prediction markets isn’t just better models or more alpha—it’s understanding how fast the market moves and how slow manual flows actually are. OpenClawCash lets the trader operate at the speed of their own edge instead of the speed of their wallet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Practical consequence:&lt;/strong&gt; The same trader + OpenClawCash consistently beats the same trader on raw Polymarket UI. The tool doesn’t add alpha; it removes every tiny friction that kills edge.&lt;/p&gt;

&lt;h3&gt;
  
  
  Emergent behaviors we didn’t program
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Repeated small-to-medium EV-positive trades instead of chasing moonshots&lt;/li&gt;
&lt;li&gt;Clean exposure management across 5+ active markets at once&lt;/li&gt;
&lt;li&gt;Natural focus on Sports (where the majority of our volume landed this week)&lt;/li&gt;
&lt;li&gt;Steady cumulative PnL curve with zero operational panic&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkt4vo3i67280d5xjvipj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkt4vo3i67280d5xjvipj.jpg" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Results: In 7 days OpenClawCash delivered
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PnL (7D):&lt;/strong&gt; +7,735.24 USDC&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Win Rate (7D):&lt;/strong&gt; 60% (18 wins / 12 losses)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Avg PnL % (7D):&lt;/strong&gt; +24.18%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EV Proxy (7D):&lt;/strong&gt; +31.89%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;All numbers pulled live from the dashboard.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What we learned
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Speed compounds.&lt;/strong&gt; The faster the loop, the more EV-positive setups you can actually take.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visibility is everything.&lt;/strong&gt; When you see total exposure and redeemables in one place, you make better sizing decisions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operational simplicity wins.&lt;/strong&gt; Removing wallet friction let us focus purely on the edge instead of the plumbing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why this matters
&lt;/h3&gt;

&lt;p&gt;The hard part of trading prediction markets isn’t finding edge — it’s executing it consistently at scale. Most traders have hundreds of micro-decisions every week. No one can hand-manage that friction across dozens of markets.&lt;/p&gt;

&lt;p&gt;OpenClawCash collapses that. You define your edge. The tool handles the rest. This is infrastructure for serious prediction market traders: continuously scanning, executing, and scaling without the usual headaches.&lt;/p&gt;

&lt;h3&gt;
  
  
  What’s next
&lt;/h3&gt;

&lt;p&gt;We’ll be dropping transparent weekly updates every Sunday—exact PnL, win rates, and markets played.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want the full strategy prompt we used?&lt;/strong&gt;&lt;br&gt;
Retweet this post + comment “STRATEGY” and we’ll DM it to you.&lt;/p&gt;

&lt;h3&gt;
  
  
  Quick Start Guide (live in &amp;lt;10 minutes)
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt; Sign up at &lt;a href="https://openclawcash.com" rel="noopener noreferrer"&gt;https://openclawcash.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; Complete the Polymarket Setup Wizard&lt;/li&gt;
&lt;li&gt; Generate your API key and grant venue access&lt;/li&gt;
&lt;li&gt; You’re ready to trade&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;See you in the markets. 🚀&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Read the full story here:&lt;/strong&gt; &lt;a href="https://openclawcash.com/blog/polymarket-7-day-results-openclawcash" rel="noopener noreferrer"&gt;https://openclawcash.com/blog/polymarket-7-day-results-openclawcash&lt;/a&gt;&lt;/p&gt;

</description>
      <category>polymarket</category>
      <category>cryptotrading</category>
      <category>defi</category>
      <category>sportsbetting</category>
    </item>
    <item>
      <title>Your AI Agent Can Think. But Can It Pay?</title>
      <dc:creator>OpenClaw Cash</dc:creator>
      <pubDate>Mon, 30 Mar 2026 17:32:37 +0000</pubDate>
      <link>https://forem.com/openclawcash/your-ai-agent-can-think-but-can-it-pay-4e6a</link>
      <guid>https://forem.com/openclawcash/your-ai-agent-can-think-but-can-it-pay-4e6a</guid>
      <description>&lt;p&gt;&lt;em&gt;The unsolved plumbing problem behind autonomous agents and how to fix it in 10 minutes.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;You've built an AI agent that can reason, plan, and act. It can browse the web, write code, send emails, and make decisions that would have taken a human hours.&lt;/p&gt;

&lt;p&gt;Then it needs to pay for something.&lt;/p&gt;

&lt;p&gt;And everything breaks.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Gap Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;The AI agent ecosystem has exploded. Frameworks like OpenClaw, LangChain, and ElizaOS let you spin up autonomous agents in an afternoon. You can give them memory, tools, personalities, and goals.&lt;/p&gt;

&lt;p&gt;But there's a structural gap that almost every agent builder hits eventually: &lt;strong&gt;agents can't hold money safely&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This isn't a minor inconvenience. It's a foundational problem. And the ways people currently work around it range from "bad idea" to "catastrophically bad idea".&lt;/p&gt;

&lt;p&gt;Let me show you what I mean.&lt;/p&gt;




&lt;h2&gt;
  
  
  What People Actually Do Today
&lt;/h2&gt;

&lt;p&gt;When an agent needs to transact on-chain, here's what most builders end up doing:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option A: Hardcode a private key in the agent's environment&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;PRIVATE_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0xdeadbeef...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent has full, unrestricted, permanent access to the wallet. No spending limits. No audit trail. No way to revoke access without rotating the key everywhere. If the agent hallucinates a bad transaction or gets prompt-injected it can drain the wallet completely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option B: Give the agent a "throwaway" wallet with a small balance, top it up manually&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This works until it doesn't. You're now a human top-up machine. The moment your agent needs to do something while you're asleep, it fails. This isn't autonomous it's remote-controlled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option C: Build your own wallet management layer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Some serious teams go this route. They build a backend service that holds keys, exposes a restricted API to the agent, logs transactions, and handles gas estimation. It takes weeks, it needs security review, and it's not the product they're trying to build.&lt;/p&gt;

&lt;p&gt;None of these are good. All of them are load-bearing.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why This Is Harder Than It Looks
&lt;/h2&gt;

&lt;p&gt;The root problem is that crypto wallets weren't designed for delegation.&lt;/p&gt;

&lt;p&gt;A private key is binary: you either have it or you don't. If an agent has the key, it has unlimited power over that wallet. There's no native concept of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"this agent can spend up to 0.1 ETH per day"&lt;/li&gt;
&lt;li&gt;"this agent can only send to pre-approved addresses"&lt;/li&gt;
&lt;li&gt;"this agent can swap but not transfer out"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Compare this to how humans handle financial delegation: we have corporate cards with category limits, expense approvals, audit trails, and revocable access. None of that exists natively in a raw private key.&lt;/p&gt;

&lt;p&gt;So when you give an agent a private key, you're essentially handing a new employee your personal bank account password and saying "be careful."&lt;/p&gt;




&lt;h2&gt;
  
  
  The Three Properties You Actually Need
&lt;/h2&gt;

&lt;p&gt;Before looking at solutions, it helps to get clear on what "agent-safe" wallet access actually means. You need three things working together:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Scoped permissions, not root access
&lt;/h3&gt;

&lt;p&gt;The agent should only be able to do what it needs to do. A trading agent needs swap access. A payment agent needs transfer access. Neither should be able to create new wallets or import external keys. Permissions should be granular, set in advance, and enforced server-side not trusted to the agent's judgment.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Policy controls that survive prompt injection
&lt;/h3&gt;

&lt;p&gt;Spending limits and address restrictions need to live outside the agent's context window. If your safety guardrails are just in the system prompt, a sufficiently clever user message can override them. Actual enforcement needs to happen at the API layer, not the LLM layer.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Auditable history that's useful at 3am
&lt;/h3&gt;

&lt;p&gt;When something goes wrong and something will go wrong you need a log that tells you exactly what the agent did, when, and why. Not just successful transactions, but failed attempts, rejected transfers, and policy violations.&lt;/p&gt;




&lt;h2&gt;
  
  
  A Practical Solution: The Managed Wallet API Pattern
&lt;/h2&gt;

&lt;p&gt;The cleanest architecture I've found for this is what you might call a &lt;strong&gt;managed wallet API&lt;/strong&gt;: a service that holds keys server-side, exposes a restricted HTTP API to agents, and enforces policy controls at the infrastructure level.&lt;/p&gt;

&lt;p&gt;Here's how it works in practice with &lt;a href="https://openclawcash.com" rel="noopener noreferrer"&gt;OpenclawCash&lt;/a&gt;:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Create a wallet and set policy
&lt;/h3&gt;

&lt;p&gt;In the dashboard, you create a managed wallet for your agent. You set the policies upfront:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Max transfer amount per transaction&lt;/li&gt;
&lt;li&gt;Allowed destination addresses (whitelist)&lt;/li&gt;
&lt;li&gt;Whether the API key can create new wallets or only operate existing ones&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The wallet's private key never leaves the server. Your agent never sees it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Issue a scoped API key
&lt;/h3&gt;

&lt;p&gt;You create an API key with specific permissions. This key is what your agent uses, not a private key. If you need to revoke access, you delete the API key. The wallet stays intact.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;X-Agent-Key: ag_your_key_here
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: The agent calls the API
&lt;/h3&gt;

&lt;p&gt;Now your agent can check balances, transfer tokens, or run DEX swaps via simple HTTP calls. On EVM chains it uses Uniswap routing. On Solana it uses Jupiter. The agent doesn't need to know anything about gas estimation, nonce management, or RPC endpoints.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check balance:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /api/agent/wallet?walletId=w_123
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"address"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0xabc..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"nativeBalance"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0.45 ETH"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"tokens"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"symbol"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"USDC"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"balance"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"250.00"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Execute a swap:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/agent/swap
{
  "walletId": "w_123",
  "chain": "ethereum",
  "fromToken": "ETH",
  "toToken": "USDC",
  "amount": "0.1"
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the amount exceeds the policy limit, the API returns a &lt;code&gt;403&lt;/code&gt; the transaction never touches the chain. The agent gets a clear error it can reason about.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Everything is logged
&lt;/h3&gt;

&lt;p&gt;Every API call, successful or rejected appears in the activity history. You can see exactly what your agent tried to do, what was allowed, and what was blocked.&lt;/p&gt;




&lt;h2&gt;
  
  
  Integrating with OpenClaw in 10 Minutes
&lt;/h2&gt;

&lt;p&gt;If you're running an OpenClaw agent, there's a pre-built skill for this. Here's the full setup:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Install the skill&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In your OpenClaw skills directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# The skill is available in the OpenClaw skills registry&lt;/span&gt;
&lt;span class="c"&gt;# Search for: agent-crypto-wallet&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Configure your API key&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# In the skill's .env file:&lt;/span&gt;
&lt;span class="nv"&gt;AGENTWALLETAPI_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ag_your_key_here
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Get your key at &lt;a href="https://openclawcash.com" rel="noopener noreferrer"&gt;openclawcash.com&lt;/a&gt; sign up, create a wallet, go to API Keys.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Tell your agent what it can do&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Your agent's system prompt can now reference wallet capabilities naturally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You have access to a managed crypto wallet. You can:
- Check your ETH and token balances
- Send ETH or ERC-20 tokens to approved addresses
- Execute DEX swaps on Ethereum (Uniswap) and Solana (Jupiter)

All transfers are subject to policy limits. Never attempt to exceed them.
Always check your balance before attempting a transfer.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;4. Test with a read-only call first&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bash scripts/agentwalletapi.sh wallets
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you get your wallet list back, you're good. Only then move to transfer/swap calls.&lt;/p&gt;




&lt;h2&gt;
  
  
  What This Unlocks
&lt;/h2&gt;

&lt;p&gt;Once your agent has safe, policy-controlled wallet access, a whole class of use cases becomes practical rather than theoretical:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automated DCA (Dollar-Cost Averaging)&lt;/strong&gt;&lt;br&gt;
An agent executes weekly ETH purchases within a monthly spend limit. No human needed, no risk of the agent overspending.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agent-to-Agent payments&lt;/strong&gt;&lt;br&gt;
Two agents can settle micro-payments for services rendered, compute time, API calls, data without a human in the loop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Polymarket prediction agent&lt;/strong&gt;&lt;br&gt;
An agent monitors markets, places bets within a daily limit, and logs its reasoning. You can audit exactly why it made each trade.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Treasury management&lt;/strong&gt;&lt;br&gt;
An agent monitors token balances across multiple wallets and rebalances when allocations drift, subject to address restrictions so it can only move funds between pre-approved wallets.&lt;/p&gt;

&lt;p&gt;All of these were technically possible before. None of them were safe before.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Bigger Picture
&lt;/h2&gt;

&lt;p&gt;We're at an early stage with autonomous agents and money. The patterns are still forming. But the direction is clear: agents that can transact are meaningfully more capable than agents that can't. The gap between "agent that can plan" and "agent that can act financially" is the next big unlock in the space.&lt;/p&gt;

&lt;p&gt;The right answer isn't to give agents unlimited wallet access and hope. And it isn't to build your own wallet infrastructure from scratch. It's the same answer we arrived at for API security, database access, and every other resource agents touch: &lt;strong&gt;least privilege, policy enforcement, and audit trails&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Your agent doesn't need to be trusted. It needs to be constrained.&lt;/p&gt;




&lt;h2&gt;
  
  
  Get Started
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenclawCash&lt;/strong&gt;: &lt;a href="https://openclawcash.com" rel="noopener noreferrer"&gt;openclawcash.com&lt;/a&gt; create a free account, get your API key in under 5 minutes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenClaw skill&lt;/strong&gt;: Search &lt;code&gt;agent-crypto-wallet&lt;/code&gt; in the skills registry  pre-built integration, works out of the box&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API docs&lt;/strong&gt;: &lt;a href="https://openclawcash.com/docs" rel="noopener noreferrer"&gt;openclawcash.com/docs&lt;/a&gt; all endpoints documented, with request/response examples&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're building agents that need to transact, I'm happy to answer questions in the comments. The edge cases around gas, slippage, and policy design are worth a follow-up post if there's interest.&lt;/p&gt;

</description>
      <category>web3</category>
      <category>cryptocurrency</category>
      <category>langchain</category>
      <category>openclaw</category>
    </item>
    <item>
      <title>Give Your AI Agent a "Bank Account" in 2 Minutes with OpenClawCash 🦞💸</title>
      <dc:creator>OpenClaw Cash</dc:creator>
      <pubDate>Mon, 16 Mar 2026 11:08:19 +0000</pubDate>
      <link>https://forem.com/openclawcash/give-your-ai-agent-a-bank-account-in-2-minutes-with-openclawcash-47ni</link>
      <guid>https://forem.com/openclawcash/give-your-ai-agent-a-bank-account-in-2-minutes-with-openclawcash-47ni</guid>
      <description>&lt;p&gt;The biggest bottleneck for AI agents today isn't their intelligence—it's their &lt;strong&gt;agency&lt;/strong&gt;. An agent that can't pay for its own compute, settle a bounty, or send a tip isn't truly autonomous; it's just a chatbot on a leash.&lt;/p&gt;

&lt;p&gt;If you’re building with &lt;strong&gt;OpenClaw&lt;/strong&gt;, you know the power of self-hosting. But managing private keys for an agent is a security nightmare.&lt;/p&gt;

&lt;p&gt;That’s where &lt;strong&gt;OpenClawCash&lt;/strong&gt; comes in.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is OpenClawCash?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://openclawcash.com" rel="noopener noreferrer"&gt;OpenClawCash&lt;/a&gt; provides the &lt;code&gt;agent-crypto-wallet&lt;/code&gt; skill. It’s designed to remove all the Web3 complexity, allowing your agent to interact with the blockchain through simple API calls.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The best part?&lt;/strong&gt; The agent has control, but the platform has no access to your wallets or keys. It’s built for the "Your Machine, Your Rules" ethos of the OpenClaw community.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠 Quickstart: Creating a Dev Wallet
&lt;/h2&gt;

&lt;p&gt;Instead of wrestling with ethers.js or managing mnemonic phrases in your &lt;code&gt;.env&lt;/code&gt; files, you can provision a wallet for your agent in three steps.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Install the Skill
&lt;/h3&gt;

&lt;p&gt;Assuming you have OpenClaw running, you can pull the skill directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claw &lt;span class="nb"&gt;install &lt;/span&gt;skill @macd2/agent-crypto-wallet

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. The "Non-Code" Method (Natural Language)
&lt;/h3&gt;

&lt;p&gt;Once the skill is active, you don't even need to write a script. You can simply command your agent in Telegram or Discord:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;You:&lt;/strong&gt; "Create a new Ethereum wallet for development and send me the address."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;The Agent's response:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Done! I've generated a new wallet for this instance. My public address is: &lt;code&gt;0x71C...&lt;/code&gt;. I'm ready to handle transactions."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  3. The Dev Method (Simple API)
&lt;/h3&gt;

&lt;p&gt;If you're building a custom workflow, you can trigger wallet creation programmatically. No complex providers required:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// What the agent executes under the hood:&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;skills&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;0xRecipientAddress...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;0.01&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;ETH&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;network&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;base&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Why this matters for Devs
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Abstraction:&lt;/strong&gt; Your agent doesn't need to know how gas prices work or how to sign a transaction hex. It just says "Send 5 USDC," and OpenClawCash handles the plumbing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security:&lt;/strong&gt; By using the OpenClawCash architecture, you avoid the "Honey Pot" effect of storing raw private keys in plain text on your server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speed:&lt;/strong&gt; You can go from a "Read-Only" agent to a "Transactional" agent in the time it takes to brew a coffee.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🦞 The "Lobster" Future
&lt;/h2&gt;

&lt;p&gt;We're moving toward a world where agents are economic actors. Whether it's an agent that buys its own API credits or a Discord bot that tips helpful community members, the "Cash" layer is the final piece of the puzzle.&lt;/p&gt;

&lt;p&gt;Check out the docs and get started at &lt;a href="https://openclawcash.com" rel="noopener noreferrer"&gt;OpenClawCash.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>web3</category>
      <category>ai</category>
      <category>typescript</category>
      <category>openclaw</category>
    </item>
    <item>
      <title>How to Give Your AI Agent a Crypto Wallet in 5 Minutes</title>
      <dc:creator>OpenClaw Cash</dc:creator>
      <pubDate>Fri, 13 Mar 2026 14:04:13 +0000</pubDate>
      <link>https://forem.com/openclawcash/how-to-give-your-ai-agent-a-crypto-wallet-in-5-minutes-i8m</link>
      <guid>https://forem.com/openclawcash/how-to-give-your-ai-agent-a-crypto-wallet-in-5-minutes-i8m</guid>
      <description>&lt;h1&gt;
  
  
  How to Give Your AI Agent a Crypto Wallet in 5 Minutes
&lt;/h1&gt;

&lt;p&gt;AI agents can browse the web, write code, and book meetings. But the moment they need to move money, most setups fall apart.&lt;/p&gt;

&lt;p&gt;You either hardcode a private key, wire up a janky workaround, or just skip it entirely. None of those are production-ready.&lt;/p&gt;

&lt;p&gt;In this tutorial, I'll show you how to give your AI agent a proper managed wallet with spending limits, token transfers, and DEX swaps using &lt;a href="https://openclawcash.com" rel="noopener noreferrer"&gt;OpenClawCash&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What We're Building
&lt;/h2&gt;

&lt;p&gt;By the end of this post your agent will be able to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create and access a managed wallet (EVM or Solana)&lt;/li&gt;
&lt;li&gt;Check token balances&lt;/li&gt;
&lt;li&gt;Send native and token transfers&lt;/li&gt;
&lt;li&gt;Execute DEX swaps via Uniswap (EVM) or Jupiter (Solana)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All without ever touching a raw private key in your code.&lt;/p&gt;




&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An OpenClawCash account → &lt;a href="https://openclawcash.com" rel="noopener noreferrer"&gt;openclawcash.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;An API key (generated from your dashboard)&lt;/li&gt;
&lt;li&gt;Any AI agent framework (LangChain, CrewAI, AutoGPT, custom doesn't matter)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Step 1 Create a Wallet
&lt;/h2&gt;

&lt;p&gt;Once you're signed in, create a wallet from the dashboard and assign it to your agent. You'll get back a wallet address on EVM or Solana mainnet.&lt;/p&gt;

&lt;p&gt;You can also set &lt;strong&gt;policy controls&lt;/strong&gt; at this point spending limits and address restrictions. This is what makes it production-safe. Your agent can only spend what you allow it to.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 2 Authenticate Your Agent
&lt;/h2&gt;

&lt;p&gt;All agent API calls use an &lt;code&gt;X-Agent-Key&lt;/code&gt; header. Generate one from your dashboard and keep it in your environment variables.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;X-Agent-Key: your_agent_key_here
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Never hardcode this in your source. Treat it like any other secret.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 3 Discover Wallets
&lt;/h2&gt;

&lt;p&gt;Your agent can list all wallets it has access to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /api/agent/wallets
X-Agent-Key: your_agent_key_here
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This returns wallet addresses and chain info no balances at this stage, just discovery.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 4 Check Balances
&lt;/h2&gt;

&lt;p&gt;To get native and token balances for a specific wallet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /api/agent/wallet?address=0xYourWalletAddress
X-Agent-Key: your_agent_key_here
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Returns native balance (ETH, SOL) plus any ERC-20 or SPL token balances.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 5 Send a Transfer
&lt;/h2&gt;

&lt;p&gt;Your agent can now send funds programmatically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/agent/transfer
X-Agent-Key: your_agent_key_here

{
  "from": "0xYourWalletAddress",
  "to": "0xRecipientAddress",
  "token": "ETH",
  "amount": "0.01"
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the transfer violates a policy you set (e.g. exceeds spending limit), it'll be rejected before it hits the chain.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 6 Execute a DEX Swap
&lt;/h2&gt;

&lt;p&gt;Need your agent to swap tokens? One call handles it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/agent/swap
X-Agent-Key: your_agent_key_here

{
  "wallet": "0xYourWalletAddress",
  "fromToken": "ETH",
  "toToken": "USDC",
  "amount": "0.05"
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Routes automatically through &lt;strong&gt;Uniswap&lt;/strong&gt; on EVM chains or &lt;strong&gt;Jupiter&lt;/strong&gt; on Solana.&lt;/p&gt;




&lt;h2&gt;
  
  
  Plugging It Into Your Agent
&lt;/h2&gt;

&lt;p&gt;Here's a minimal example of how this looks inside a LangChain tool:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="n"&gt;AGENT_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your_agent_key_here&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;BASE_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://openclawcash.com/api/agent&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;send_transfer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;to_address&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ETH&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;BASE_URL&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;/transfer&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;X-Agent-Key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;AGENT_KEY&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
        &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;from&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;0xYourWalletAddress&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;to&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;to_address&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;token&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wrap this in a LangChain &lt;code&gt;Tool&lt;/code&gt; and your agent can now reason about when and how to move funds with guardrails already in place.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;Most crypto + AI setups right now are brittle. Raw private keys in env files, no spending limits, no audit trail.&lt;/p&gt;

&lt;p&gt;OpenClawCash gives you managed wallets with policy controls and a full activity history so when your agent acts autonomously, you're not flying blind.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Set up spending limits and address whitelists in your dashboard&lt;/li&gt;
&lt;li&gt;Explore the full &lt;a href="https://openclawcash.com/docs" rel="noopener noreferrer"&gt;API documentation&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Check the &lt;a href="https://openclawcash.com/openclaw-skill-setup" rel="noopener noreferrer"&gt;Openclaw Skills Guide&lt;/a&gt; to integrate with agent frameworks directly&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Built something cool with OpenClawCash? Drop it in the comments would love to see what people are building.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>blockchain</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
