Логотип 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 по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный 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. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/akari-sora/aave-oracle-lag-arb/tree/main/skills/aave-oracle-lag-arb
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
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 по лицензии AGPL-3.0-only. Издатель — akari-sora. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇