Logo: Aave Oracle Lag Arb

Aave Oracle Lag Arb

Communautéit
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.

Iwwersiicht

Editeurakari-sora
Repositoryaave-oracle-lag-arb
Skill-Nummaave-oracle-lag-arb
Stären
40
Forks
9
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzAGPL-3.0-only
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    akari-sora huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Aave Oracle Lag Arb an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/akari-sora/aave-oracle-lag-arb/tree/main/skills/aave-oracle-lag-arb
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Aave Oracle Lag Arb an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Aave Oracle Lag Arb automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Aave Oracle Lag Arb net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Aave Oracle Lag Arb op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Aave Oracle Lag Arb besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Aave Oracle Lag Arb an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/akari-sora/aave-oracle-lag-arb/tree/main/skills/aave-oracle-lag-arb an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Aave Oracle Lag Arb benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Aave Oracle Lag Arb benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Aave Oracle Lag Arb domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Aave Oracle Lag Arb gratis?

Jo. akari-sora huet de Skill ënner der Lizenz AGPL-3.0-only op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇