Skip to main content

What is OnlyFence?

OnlyFence is a free, open-source DeFi toolkit that gives your AI agent full onchain capabilities — with safety guardrails built in from day one.

Your agent can swap tokens, lend, borrow, open and close positions, and run complex strategies. OnlyFence makes sure it can never go beyond the limits you set.

Think of it like giving your AI agent a company credit card with spending limits instead of handing over your bank account.

The Problem

AI agents need wallet access to trade, lend, borrow, and manage positions. But raw wallet access means:

  • The agent can trade tokens you didn't approve
  • There's no limit on how much it can spend
  • A single bug or prompt injection can drain everything in seconds
  • You have zero visibility into what it's actually doing

You wouldn't give an employee unlimited access to the company funds. So why give your AI agent unlimited access to your wallet?

The Solution

OnlyFence gives your agent everything it needs to execute DeFi strategies — while keeping you in control.

Your AI Agent --> OnlyFence --> Blockchain
|
+------------+------------+
| Token approved? |
| Under trade limit? |
| Under daily limit? |
| Strategy allowed? |
+-------------------------+

All checks pass --> action executes
Any check fails --> action blocked, you stay safe

Why OnlyFence?

Without OnlyFenceWith OnlyFence
DeFi capabilitiesBuild everything yourselfSwap, lend, borrow, LP — out of the box
Spending controlUnlimitedYou set per-trade and daily limits
Token controlAgent can trade anythingOnly tokens you approve
VisibilityNo idea what the agent is doingFull history with audit log
Your keysOften sent to a serverStay on your computer, encrypted
InfrastructureUsually needs a server or accountRuns 100% on your machine
CostOften paid serviceFree and open source

Supported Chains

ChainStatusExchanges
SuiLiveCetus, DeepBook, Bluefin, FlowX, Turbos (via 7K Aggregator)
EVM (Ethereum, Base, etc.)Coming soon
SolanaComing soon

What Can Your Agent Do?

ActionStatusDescription
SwapLiveTrade tokens across multiple DEXes with best-price routing
Check balanceLiveQuery wallet balances and token prices
LendLiveSupply assets to lending protocols to earn yield
BorrowLiveBorrow against collateral for leveraged strategies
Open positionComing soonEnter leveraged long/short positions
Close positionComing soonExit positions and take profit or cut losses
LP (Liquidity)Coming soonDeposit, withdraw, compound, and rebalance LP positions
StakeComing soonStake tokens for protocol rewards

Every action goes through your safety rules first.