Logo Aave Oracle Lag Arb

Aave Oracle Lag Arb

Cộng đồng
akari-sora
aave-oracle-lag-arb

Install, run and watch the Aave oracle-lag arbitrage bot (borrow WETH on Aave V3 at the Chainlink price, sell it on a DEX trading above the oracle, buy back after convergence) on Ethereum, Arbitrum, Base and Optimism. Use when the user wants to set up or operate the bot, set its wallet or alert webhook, schedule its health check, read its findings, or unwind and withdraw.

Tổng quan

Nhà phát hànhakari-sora
Kho mãaave-oracle-lag-arb
Tên kỹ năngaave-oracle-lag-arb
Sao
40
Bản fork
9
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépAGPL-3.0-only
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được akari-sora công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Aave Oracle Lag Arb trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/akari-sora/aave-oracle-lag-arb/tree/main/skills/aave-oracle-lag-arb
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/akari-sora/aave-oracle-lag-arb.git /tmp/aave-oracle-lag-arb
mkdir -p .claude/skills
cp -r /tmp/aave-oracle-lag-arb/skills/aave-oracle-lag-arb .claude/skills/aave-oracle-lag-arb
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Aave Oracle Lag Arb trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Aave Oracle Lag Arb ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Aave Oracle Lag Arb với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Aave oracle-lag arbitrage bot

The bot holds a short-ETH position: stablecoin collateral on Aave, WETH debt. It opens only when a DEX prices ETH above Aave's oracle by OPEN_PREMIUM_BPS (default 3%) for CONFIRM_SECONDS, closes when the premium is gone, and deleverages on its own if the health factor drops. Read the repo README's risk section before helping anyone fund it.

Reply in the user's language. The bot's own log lines are Traditional Chinese by default; translate them when you report, or add BOT_LANG=en to the env file for English output (finding codes are the same in both).

Paths

  • Repo checkout: ~/aave-oracle-lag-arb (any path works)
  • App directory: APP=${APP_DIR:-$HOME/.local/share/aave-oracle-lag-arb} (bundled bot, supervisor, state, log)
  • Wallet and alert config: ${ARB_CONFIG_DIR:-$HOME/.config/aave-oracle-lag-arb}/env and alerts.env, mode 600

Install or update

bash
git clone https://gitlab.com/aa22396584/aave-oracle-lag-arb.git ~/aave-oracle-lag-arb 2>/dev/null || git -C ~/aave-oracle-lag-arb pull --ff-only
bash ~/aave-oracle-lag-arb/deploy/install.sh        # --with-op: 1Password; --bundle-node: keep Node in APP (machines that lose /usr/bin/node on reboot); restarts the bot if it runs

Needs Linux (the supervisor uses setsid and /proc), git, curl, and Node 20+ or Linux x64/arm64 for the pinned Node 22 download. On macOS, run cd bot && npm install && node start.ts in a terminal instead.

Set the wallet

Never ask for a private key or mnemonic in ordinary chat. Use one of these:

  1. Your platform's secret input (a masked secret card or secure prompt that becomes an environment variable). Ask for AAVE_BOT_KEY (private key or mnemonic), then: "$APP/set-wallet.sh" --from-env AAVE_BOT_KEY It copies the value into the env file so restarts don't depend on the variable. Never echo the variable.
  2. The user types it in a terminal on that machine: "$APP/set-wallet.sh" (hidden prompt).
  3. 1Password: "$APP/set-wallet.sh" --op op://vault/item/field --token-from-env OP_TOKEN_VAR (install with --with-op).

set-wallet.sh ends by running trader.sh whoami, which prints the address and balances on every chain. If the output mentions MNEMONIC_INDEX, the key is a mnemonic: show the user the numbered account list, ask which one, then run "$APP/set-wallet.sh" --index <n> for MetaMask #n, or --path "m/44'/60'/<n>'/0/0" for Ledger Live #n.

One wallet, one running trader: two traders on the same wallet (on one machine or several) find the same contract and race each other's transactions. If another install already trades this wallet, stop there and tell the user.

Show the address and balances and ask once before starting. The first time, also point the user to DISCLAIMER.md in the repo (unaudited, leveraged short ETH, may lose everything) in one line. Starting deposits all USDC/USDT in that wallet as principal on every chain where Aave accepts it; ETH stays in the wallet for gas.

Run

bash
"$APP/trader.sh" start       # background, restarts itself with backoff; survives your session
"$APP/trader.sh" status      # running or not, mode, last exit, last log lines
"$APP/trader.sh" whoami      # address and balances

Run stop, close-only or exit only when the user asks: stop leaves positions open, close-only stops opening and only unwinds, exit closes everything and withdraws to the wallet (if it can't finish, it restarts in close-only mode; run exit again later).

Scheduled check (every 6 hours is enough; the bot itself reacts every block)

bash
"$APP/trader.sh" ensure      # start it if it isn't running; skips if no wallet or stopped on purpose
"$APP/trader.sh" check       # exit 0: nothing changed since the last check; 1: changed; other: error
  • ensure printing started means the bot had died or the machine rebooted: mention it.
  • ensure printing this environment doesn't have it: the wallet was stored by variable name only and the variable is gone; ask the user to set the wallet again.
  • The first check only records a baseline: it counts as changed only if there is a warning or critical finding (info codes like aave_frozen alone give exit 0).
  • check exit 0 and nothing restarted: stay silent. Exit 1: summarize new and resolved in one or two sentences. Other exit codes: report the first lines of the error once, not every time.

Finding codes (<code>:<chain>, chain is mainnet / arbitrum / base / optimism):

codemeaningwhat to say
premium_opena DEX prices ETH above the oracle by the open thresholdopportunity; the bot acts on its own. If the message says Aave is frozen, it can't borrow yet
hf_lowhealth factor below EMERGENCY_HFurgent: liquidation risk; attach trader.sh status
bot_not_runningopportunity or position, but no heartbeat for a minuterun trader.sh ensure, report the result
position_opena position is openit disappearing means the bot closed it
aave_frozencan't borrow on that chain: WETH frozen, or no stablecoin usable as collateral (LTV 0)it in resolved means borrowable again; the bot deposits pending principal itself
action_failingseveral actions in a row failedattach trader.sh status
gas_lowposition open but little ETH for gasask the user to send ETH on that chain
rpc_errorcouldn't read that chain
trader_crashloop (no chain)the bot keeps exiting right after start (key unreadable, RPCs down)urgent; attach trader.sh status

Instant alerts (optional)

If your platform gives you a webhook that turns POSTs into messages: "$APP/set-alerts.sh" <https://url> --header-from-env AAVE_ALERT_KEY (a bare token becomes Authorization: Bearer <token>). It sends a test POST and prints the HTTP status. The bot then POSTs {source, chain, findings, new, resolved} whenever a chain's findings change. set-alerts.sh --off removes it.

Never

  • print, read aloud or copy the env file, keys, tokens or webhook secrets;
  • send transactions yourself or edit files in $APP;
  • run stop, close-only or exit without the user asking.

Câu hỏi thường gặp

Kỹ năng AI Aave Oracle Lag Arb làm được gì?

Install, run and watch the Aave oracle-lag arbitrage bot (borrow WETH on Aave V3 at the Chainlink price, sell it on a DEX trading above the oracle, buy back after convergence) on Ethereum, Arbitrum, Base and Optimism. Use when the user wants to set up or operate the bot, set its wallet or alert webhook, schedule its health check, read its findings, or unwind and withdraw.

Vì sao nên dùng Aave Oracle Lag Arb trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Aave Oracle Lag Arb là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Aave Oracle Lag Arb trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/akari-sora/aave-oracle-lag-arb/tree/main/skills/aave-oracle-lag-arb. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Aave Oracle Lag Arb?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Aave Oracle Lag Arb với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Aave Oracle Lag Arb với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Aave Oracle Lag Arb có miễn phí không?

Có. Kỹ năng này được akari-sora phát hành trên GitHub theo giấy phép AGPL-3.0-only. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇