Crypto Defi
/install crypto-defi
Crypto DeFi
A comprehensive crypto toolkit for tracking DeFi positions, managing portfolios, monitoring prices, watching whale activity, and analyzing market data. Crypto DeFi provides 16+ commands for recording and reviewing crypto-related observations with timestamped logs and multi-format data export.
Commands
| Command | Description |
|---|---|
crypto-defi track \x3Cinput> |
Record a tracking entry (token, protocol, position) — run without args to view recent entries |
crypto-defi portfolio \x3Cinput> |
Log a portfolio update or snapshot — run without args to view recent portfolio entries |
crypto-defi alert \x3Cinput> |
Record a price or event alert — run without args to view recent alerts |
crypto-defi price \x3Cinput> |
Log a price observation — run without args to view recent price entries |
crypto-defi compare \x3Cinput> |
Record a protocol or token comparison — run without args to view recent comparisons |
crypto-defi history \x3Cinput> |
Log a historical note — run without args to view recent history entries |
crypto-defi gas \x3Cinput> |
Record gas fee data — run without args to view recent gas entries |
crypto-defi whale-watch \x3Cinput> |
Log whale activity observations — run without args to view recent whale-watch entries |
crypto-defi report \x3Cinput> |
Record a report entry — run without args to view recent reports |
crypto-defi watchlist \x3Cinput> |
Add to or view the watchlist — run without args to view recent watchlist entries |
crypto-defi analyze \x3Cinput> |
Log an analysis note — run without args to view recent analysis entries |
crypto-defi export \x3Cinput> |
Record an export event — run without args to view recent export entries |
crypto-defi stats |
Display summary statistics across all log categories |
crypto-defi search \x3Cterm> |
Search across all log files for a keyword |
crypto-defi recent |
Show the 20 most recent activity entries from the history log |
crypto-defi status |
Health check — shows version, data directory, entry count, disk usage |
crypto-defi help |
Display available commands and usage information |
crypto-defi version |
Print current version (v2.0.0) |
Each data command (track, portfolio, alert, etc.) works in two modes:
- With arguments: Records the input with a timestamp into its dedicated log file
- Without arguments: Displays the 20 most recent entries from that category
Data Storage
All data is stored locally in plain-text log files:
- Location:
~/.local/share/crypto-defi/ - Format: Each entry is saved as
YYYY-MM-DD HH:MM|\x3Cvalue>in per-category.logfiles - History: All operations are additionally logged to
history.logwith timestamps - Stats: The
statscommand aggregates entry counts and disk usage across all categories - No cloud sync — everything stays on your machine, no API keys needed
Requirements
- Bash 4.0+ (uses
set -euo pipefail) - Standard Unix utilities:
date,wc,du,head,tail,grep,basename,cat - No external dependencies, no API keys, no network access required
- Works on Linux and macOS
When to Use
- DeFi position tracking — Record yield farming positions, staking entries, and liquidity pool allocations with timestamps for historical review
- Portfolio management — Log portfolio snapshots, token balances, and allocation changes to maintain a running record of your holdings
- Whale activity monitoring — Use
whale-watchto record large transaction observations and spot market-moving activity patterns - Gas fee tracking — Log gas fee observations over time to identify optimal transaction windows and track network congestion trends
- Multi-protocol comparison — Use
compareandanalyzeto record side-by-side protocol evaluations and store your analysis notes
Examples
# Track a new DeFi position
crypto-defi track "Uniswap V3 ETH/USDC 0.3% pool — 5 ETH deposited"
# Log current portfolio state
crypto-defi portfolio "BTC: 0.5, ETH: 10, SOL: 200 — total ~$45k"
# Record a price alert trigger
crypto-defi alert "ETH crossed $4000 resistance level"
# Log gas fee observation
crypto-defi gas "Ethereum mainnet base fee 25 gwei — good time for swaps"
# Record whale activity
crypto-defi whale-watch "0xdead... moved 10,000 ETH to Binance deposit address"
# View summary statistics across all categories
crypto-defi stats
# Search for all entries mentioning a specific protocol
crypto-defi search "Uniswap"
# Quick health check
crypto-defi status
Configuration
Set DATA_DIR by modifying the script or symlinking ~/.local/share/crypto-defi/ to your preferred location.
Powered by BytesAgain | bytesagain.com | [email protected]
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install crypto-defi - After installation, invoke the skill by name or use
/crypto-defi - Provide required inputs per the skill's parameter spec and get structured output
What is Crypto Defi?
Calculate DeFi yields including APY, impermanent loss, and staking rewards. Use when estimating returns, comparing protocols, tracking farming. It is an AI Agent Skill for Claude Code / OpenClaw, with 541 downloads so far.
How do I install Crypto Defi?
Run "/install crypto-defi" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Crypto Defi free?
Yes, Crypto Defi is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Crypto Defi support?
Crypto Defi is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Crypto Defi?
It is built and maintained by bytesagain4 (@xueyetianya); the current version is v2.4.9.