# Liquidation Sentinel AI Agent + Noxy: How I Built an AI Agent That Texts Me Before Aave Wipes My Portfolio

By [Noxy](https://paragraph.com/@noxy) · 2026-04-13

ai, agent, aave, defai, defi, noxy, noxy.network, human-in-the-loop, decision-layer, wallet-native, trading, crypto, eth

---

It was 4am. ETH was sliding. My health factor on Aave had quietly dropped to 1.15 — deep in danger territory. I was asleep.

By morning, ETH bounced back. I got lucky. Most people don’t.

The usual tools sent alerts. An email. All ignored. And even if I’d seen them — then what? Wake up, open MetaMask, figure out how much to repay, calculate decimals, hope gas isn’t spiking. By then the window’s gone.

That’s the real problem. Not that alerts don’t arrive. It’s that **alerts don’t tell you what to do, and they definitely don’t do it for you.**

So I Built an Agent. Then Hit the Next Problem.

My first instinct was to go fully autonomous — let the agent watch my position and just execute the rescue without asking. Sounds great until you realize you’re giving a bot unconditional access to your wallet.

One stale price feed. One edge case. One miscalculated amount. And the agent that was supposed to save you becomes the thing that drained you.

Full autonomy over real money is terrifying. Pure alerting is useless. What I needed was something in between: **an agent that thinks for itself, but asks me before it moves my funds.**

That’s the exact gap [Noxy](https://noxy.network/) fills.

**What I Built**
----------------

The **Liquidation Sentinel** is a 24/7 watchdog for Aave v3. It polls your health factor every minute, and the moment it drops below your threshold, the agent:

1.  Reads your full position — collateral, debt, liquidation price
    
2.  Asks **Claude (Anthropic)** to calculate the optimal rescue: repay how much USDC, or supply how much collateral, to safely restore the health factor
    
3.  Fetches live ETH/USD from **CoinGecko** (or Alchemy) to translate gas cost into dollars
    
4.  Sends the full proposal through **Noxy** to your phone and Telegram — simultaneously
    

You see exactly what’s proposed. You tap Approve or Reject. If you approve, the agent executes on-chain. If you reject, it backs off and only re-alerts if the position gets _worse_.

No more vague “health factor low” pings. An actual decision, with context, waiting for your answer.

**What the Alert Looks Like**
-----------------------------

![](https://storage.googleapis.com/papyrus_images/8cefb44e19d4da52896e58c43e3d8f7da9cf75246f3b482c174ff71d26bdfd19.jpg)

![](https://storage.googleapis.com/papyrus_images/3eee6462b609f064adb851726eb9ccecb48cd162b0ed737c633ae8ab5c6ef6da.jpg)

At 4:03am on Sunday, this hit my lock screen:

!\[iOSest\]

Same message, same second, in Telegram:

!\[Telegram Liquidation Sentinel Bot with Approve and Reject buttons\]

And in the LQ Agent iOS app:

!\[LQ Agent iOS app showing the current decision request with full position details\]

**The Stack**
-------------

*   **Aave v3** — reads health factor, collateral, debt on-chain
    
*   **Alchemy** — RPC + ETH/USD price (CoinGecko and Binance as fallbacks)
    
*   **Anthropic Claude Haiku 4.5** — generates the rescue proposal (costs fractions of a cent per alert)
    
*   **Noxy** — delivers the decision to iOS and Telegram, waits for your response, returns it to the agent
    
*   **Node.js + TypeScript** — the agent runtime
    

**Try It Yourself**
-------------------

The full source is open:

👉 [github.com/vstostap/liquidation-sentinel-agent](https://github.com/vstostap/liquidation-sentinel-agent)

You’ll need an Alchemy RPC URL, an Anthropic API key, and a Noxy app token. Clone the repo, fill in `.env`, run `pnpm start`. The README covers every config option.

The agent watches constantly. Claude thinks. Noxy asks you. You decide. Transaction only moves if you say so.

Noxy: [noxy.network](http://noxy.network) · Source: [github.com/vstostap/liquidation-sentinel-agent](https://github.com/vstostap/liquidation-sentinel-agent)

---

*Originally published on [Noxy](https://paragraph.com/@noxy/liquidation-sentinel-ai-agent-noxy)*
