Логотип Aave Oracle Lag Arb

Aave Oracle Lag Arb

Спільнота
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.

Огляд

Видавецьakari-sora
Репозиторійaave-oracle-lag-arb
Назва навичкиaave-oracle-lag-arb
Зірки
40
Форки
9
Файли в пакеті
Лише інструкції
ЛіцензіяAGPL-3.0-only
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: akari-sora. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Aave Oracle Lag Arb у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/akari-sora/aave-oracle-lag-arb/tree/main/skills/aave-oracle-lag-arb
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Aave Oracle Lag Arb в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Aave Oracle Lag Arb, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Aave Oracle Lag Arb не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Aave Oracle Lag Arb у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Aave Oracle Lag Arb — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Aave Oracle Lag Arb у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/akari-sora/aave-oracle-lag-arb/tree/main/skills/aave-oracle-lag-arb. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Aave Oracle Lag Arb?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Aave Oracle Lag Arb?

Зі скількома забажаєте. У TypingMind ви можете використовувати Aave Oracle Lag Arb із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Aave Oracle Lag Arb?

Так. На GitHub цю навичку публікує akari-sora за ліцензією AGPL-3.0-only. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇