onlyfence-cli

Category: Blockchain & Web3 | Uploader: seallabsseallabs | Downloads: 0 | Version: v1.0(Latest)

How to use the OnlyFence CLI (`fence`) to execute DeFi actions on-chain with safety guardrails. Use this skill whenever the user asks to swap tokens, check wallet balances, query token prices, manage wallets, configure trading limits or token allowlists, or perform any on-chain DeFi action through OnlyFence. Also use when the user mentions "fence", "OnlyFence", trading guardrails, DeFi safety rules, or wants an AI agent to interact with the Sui blockchain. If the user asks to "trade", "swap", "check balance", "check price", or "set spending limit" in the context of this project, this skill applies. --- # OnlyFence CLI — Agent Usage Guide OnlyFence is a local CLI tool (`fence`) that gives AI agents full DeFi capabilities on the Sui blockchain — with safety guardrails enforced on every action. You call `fence` commands via the shell, parse structured JSON output, and react to the results. ## First-Time Setup Before any on-chain action, the user needs a wallet. Check if OnlyFence is set up: ```bash fence config show 2>/dev/null ``` If this errors with "Configuration file not found" or "No primary wallet found", guide the user through setup: ```bash fence setup ``` This is an **interactive wizard** — it prompts for wallet generation/import and password. Do not try to automate or pipe input to it. Tell the user to run it themselves and come back when done. After setup, the user should unlock their wallet for the session: ```bash fence unlock # default 4h session fence unlock --ttl 8h # longer session ```

Changelog: Source: GitHub https://github.com/seallabs/onlyfence

Directory Structure

Current level: plugins/onlyfence/skills/onlyfence-cli/

SKILL.md

Login to download/like/favorite ❤ 2 | ★ 0
Comments 0

Please login before commenting.

No comments yet. Be the first one!