<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>OnlyFence Blog</title>
        <link>https://onlyfence.xyz/blog</link>
        <description>OnlyFence Blog</description>
        <lastBuildDate>Mon, 30 Mar 2026 00:00:00 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <item>
            <title><![CDATA[Why We Built OnlyFence: AI Agents Need Wallets. Wallets Need Guardrails.]]></title>
            <link>https://onlyfence.xyz/blog/why-we-built-onlyfence</link>
            <guid>https://onlyfence.xyz/blog/why-we-built-onlyfence</guid>
            <pubDate>Mon, 30 Mar 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[AI agents can now trade, lend, and borrow on-chain — but giving them your wallet is a massive risk. OnlyFence is the open-source toolkit that lets agents operate with guardrails, not blank checks.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Why We Built OnlyFence" src="https://onlyfence.xyz/assets/images/why-we-built-onlyfence-3b5a0ba6cf61e26323ccff0803d013e8.png" width="2180" height="1920" class="img_ev3q"></p>
<p>The agent revolution is here. Tools like Cowork and OpenClaw let AI agents analyze markets, form strategies, and act — all without you lifting a finger. Now point that at DeFi: an agent that can swap tokens at the right moment, supply collateral when rates spike, or rebalance a portfolio while you sleep.</p>
<p><strong>That's real edge.</strong> The kind that used to require a quant team and a Bloomberg terminal.</p>
<p>But here's the catch no one talks about enough.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-wallet-problem">The Wallet Problem<a href="https://onlyfence.xyz/blog/why-we-built-onlyfence#the-wallet-problem" class="hash-link" aria-label="Direct link to The Wallet Problem" title="Direct link to The Wallet Problem" translate="no">​</a></h2>
<p>For an agent to do anything on-chain, it needs your wallet. Your private keys. Your funds.</p>
<p>And the moment you hand those over, you're trusting that:</p>
<ul>
<li class="">The agent won't make trades you didn't approve</li>
<li class="">No one can manipulate it through prompt injection</li>
<li class="">A single hallucination won't drain your entire balance</li>
<li class="">The platform holding your keys won't get breached</li>
</ul>
<p>That's a lot of trust for a system that, by design, makes autonomous decisions.</p>
<p><strong>One bad prompt. One exploited endpoint. One compromised plugin.</strong> That's all it takes. We've seen it happen — agents tricked into signing malicious transactions, wallets drained in seconds, users left with nothing.</p>
<p>This isn't a theoretical risk. It's the #1 reason most serious traders won't let agents near their funds.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="we-built-onlyfence-to-fix-this">We Built OnlyFence to Fix This<a href="https://onlyfence.xyz/blog/why-we-built-onlyfence#we-built-onlyfence-to-fix-this" class="hash-link" aria-label="Direct link to We Built OnlyFence to Fix This" title="Direct link to We Built OnlyFence to Fix This" translate="no">​</a></h2>
<p>OnlyFence is a free, open-source DeFi toolkit where <strong>the agent is treated as a threat actor by default</strong>.</p>
<p>Not because agents are evil. Because good security assumes they could be.</p>
<p>The idea is simple: your agent gets full DeFi capabilities — swap, lend, borrow, manage positions — but every action passes through rules <strong>you</strong> define. If it breaks a rule, the action is blocked. No exceptions.</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token plain">Agent wants to swap 10,000 USDC → SUI</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">  ✓ Token approved?     SUI is on the allowlist</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">  ✓ Under trade limit?  $200 max per trade → BLOCKED</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">  Action denied. Funds safe. You get notified.</span><br></span></code></pre></div></div>
<p>Think of it as a <strong>company credit card with spending limits</strong> — not handing over the company bank account.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-we-got-right-and-why-it-matters-to-you">What We Got Right (and Why It Matters to You)<a href="https://onlyfence.xyz/blog/why-we-built-onlyfence#what-we-got-right-and-why-it-matters-to-you" class="hash-link" aria-label="Direct link to What We Got Right (and Why It Matters to You)" title="Direct link to What We Got Right (and Why It Matters to You)" translate="no">​</a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="1-safety-as-the-default-not-an-add-on">1. Safety as the Default, Not an Add-on<a href="https://onlyfence.xyz/blog/why-we-built-onlyfence#1-safety-as-the-default-not-an-add-on" class="hash-link" aria-label="Direct link to 1. Safety as the Default, Not an Add-on" title="Direct link to 1. Safety as the Default, Not an Add-on" translate="no">​</a></h3>
<p>Most tools give you power first and let you figure out safety later. We flipped it.</p>
<p>Every agent interaction goes through a local policy engine — no server, no API call, no latency. Rules are checked in microseconds:</p>
<ul>
<li class=""><strong>Token allowlist</strong> — the agent can only touch tokens you approve</li>
<li class=""><strong>Per-trade limits</strong> — cap every single transaction (default: $200)</li>
<li class=""><strong>Daily volume caps</strong> — limit total exposure over 24 hours (default: $500)</li>
<li class=""><strong>Simulation before execution</strong> — every trade is dry-run on-chain before signing</li>
<li class=""><strong>Full audit trail</strong> — every action logged, approved or rejected</li>
</ul>
<p>Your keys never leave your machine. They're encrypted locally with your password. No cloud. No backend. No middleman.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="2-a-real-defi-toolkit-not-just-a-wrapper">2. A Real DeFi Toolkit, Not Just a Wrapper<a href="https://onlyfence.xyz/blog/why-we-built-onlyfence#2-a-real-defi-toolkit-not-just-a-wrapper" class="hash-link" aria-label="Direct link to 2. A Real DeFi Toolkit, Not Just a Wrapper" title="Direct link to 2. A Real DeFi Toolkit, Not Just a Wrapper" translate="no">​</a></h3>
<p>Here's what separates OnlyFence from a simple transaction signer: it's a complete DeFi layer.</p>
<p>Your agent doesn't need to know how Cetus works, or how to route through DeepBook, or how to calculate optimal lending rates on AlphaLend. OnlyFence handles it:</p>
<ul>
<li class=""><strong>Swap</strong> across 5+ DEXes with best-price routing via 7K Aggregator</li>
<li class=""><strong>Lend and earn</strong> — supply assets to lending protocols</li>
<li class=""><strong>Borrow against collateral</strong> — leveraged strategies, managed safely</li>
<li class=""><strong>Check prices and balances</strong> — real-time data, no third-party API keys</li>
</ul>
<p>One interface. All of DeFi. The agent sends a simple command, OnlyFence does the heavy lifting.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># Your agent just says:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">fence swap SUI USDC </span><span class="token number">100</span><span class="token plain"></span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># OnlyFence handles: routing, simulation, limit checks, signing, confirmation</span><br></span></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="3-multi-chain-from-day-one">3. Multi-Chain from Day One<a href="https://onlyfence.xyz/blog/why-we-built-onlyfence#3-multi-chain-from-day-one" class="hash-link" aria-label="Direct link to 3. Multi-Chain from Day One" title="Direct link to 3. Multi-Chain from Day One" translate="no">​</a></h3>
<p>We didn't build for one chain and bolt on others later. The architecture is chain-agnostic from the core — every module outside the chain layer is designed to work across networks.</p>
<p><strong>Today:</strong> Sui is live with full support.
<strong>Next:</strong> EVM chains (Ethereum, Base, Arbitrum) and Solana are in the pipeline.</p>
<p>One toolkit. One config. Multiple chains.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="4-built-for-agents-works-for-everyone">4. Built for Agents. Works for Everyone.<a href="https://onlyfence.xyz/blog/why-we-built-onlyfence#4-built-for-agents-works-for-everyone" class="hash-link" aria-label="Direct link to 4. Built for Agents. Works for Everyone." title="Direct link to 4. Built for Agents. Works for Everyone." translate="no">​</a></h3>
<p>OnlyFence ships with built-in skills for Claude, ChatGPT, and custom agents — so integration is minutes, not days.</p>
<p>But we know not everyone runs agents the same way:</p>
<table><thead><tr><th>You are...</th><th>Your setup</th></tr></thead><tbody><tr><td>Trying agents for the first time</td><td>One command install on Mac, Linux, or Windows</td></tr><tr><td>A developer building a trading bot</td><td>JSON CLI output, pipe it into anything</td></tr><tr><td>Running a production agent fleet</td><td>Docker container with security hardening</td></tr><tr><td>Deploying at scale</td><td>Kubernetes with Vault or AWS Secrets Manager</td></tr></tbody></table>
<p>Every output is structured JSON. Every action is auditable. Whether you're experimenting on your laptop or running 50 agents in production, the toolkit scales with you.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="who-is-this-for">Who Is This For?<a href="https://onlyfence.xyz/blog/why-we-built-onlyfence#who-is-this-for" class="hash-link" aria-label="Direct link to Who Is This For?" title="Direct link to Who Is This For?" translate="no">​</a></h2>
<p><strong>If you're exploring AI agents for on-chain opportunities</strong> — OnlyFence lets you experiment without risking your funds. Set tight limits, start small, watch the audit log. Expand as you gain confidence.</p>
<p><strong>If you're a developer building agent workflows</strong> — stop writing wallet management, transaction signing, and safety checks from scratch. OnlyFence gives you a tested, open-source foundation to build on.</p>
<p><strong>If you're running agents in production</strong> — you need guardrails that don't add latency, keys that never leave your infrastructure, and a complete audit trail. That's what this is.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-bottom-line">The Bottom Line<a href="https://onlyfence.xyz/blog/why-we-built-onlyfence#the-bottom-line" class="hash-link" aria-label="Direct link to The Bottom Line" title="Direct link to The Bottom Line" translate="no">​</a></h2>
<p>AI agents on-chain are not a question of <em>if</em> — it's <em>when</em>. The edge they provide is too significant to ignore. But the current model of "give the agent your keys and hope for the best" is broken.</p>
<p><strong>OnlyFence is the guardrail layer between your agent and your wallet.</strong> Open source. Local-first. Free.</p>
<p>The agent trades. You set the rules. Your funds stay safe.</p>
<hr>
<p><strong>Get started in 30 seconds:</strong></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">curl</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-fsSL</span><span class="token plain"> https://raw.githubusercontent.com/seallabs/onlyfence/main/install.sh </span><span class="token operator">|</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">sh</span><br></span></code></pre></div></div>
<p><a class="" href="https://onlyfence.xyz/docs/intro">Read the docs →</a> | <a href="https://github.com/seallabs/onlyfence" target="_blank" rel="noopener noreferrer" class="">View on GitHub →</a></p>]]></content:encoded>
            <category>manifesto</category>
            <category>ai-agents</category>
            <category>defi</category>
            <category>security</category>
            <category>open-source</category>
        </item>
    </channel>
</rss>