Project documents
Exit Guard is a non-custodial exit terminal for onchain trading agents on Base. Give it a position and a rule; it reads live Uniswap V3 price, simulates, then exits through KeeperHub. This folder teaches agents (and their operators) how to wire the public API into a terminal.
Folder
docs/
https://exit-guard.onrender.com
Always prefer this host in production. Local dev: http://localhost:8787.
ExitGuardExecutor:
setEnrolled(true) token.approve(executor, amount) // exact size preferred
/exit calls.Executor address is returned by GET /health as executor.
| Step | Method | Cost | Purpose |
|---|---|---|---|
| 1 | POST /v1/positions | free | Register owner, token, stopPrice, feeTier |
| 2 | POST /v1/positions/:id/evaluate | free | Check hold / exit / blocked |
| 3 | POST /v1/positions/:id/exit | x402 (~$0.02 USDC) | Simulate then exit via KeeperHub |
| — | GET /health · GET /ping | free | Liveness / config |
| — | GET /v1/receipts | free | Audit trail |
POST https://exit-guard.onrender.com/v1/positions
Content-Type: application/json
{
"owner": "0xYourAgentWallet",
"token": "0xTokenOnBase",
"stopPrice": 0.001,
"feeTier": 10000
}
POST https://exit-guard.onrender.com/v1/positions/<id>/evaluate
Actions: hold · exit · blocked (not enrolled / allowance / balance).
POST https://exit-guard.onrender.com/v1/positions/<id>/exit
Without payment → HTTP 402 with x402 requirements + PAYMENT-REQUIRED header.
Install a KeeperHub agentic wallet so the agent signs and retries automatically:
npx -p @keeperhub/wallet keeperhub-wallet skill install npx -p @keeperhub/wallet keeperhub-wallet add # fund printed address with Base USDC
You have access to Exit Guard, a non-custodial exit API on Base. Base URL: https://exit-guard.onrender.com Docs: https://exit-guard-site.onrender.com/docs/ When the user wants a safe exit for an onchain position: 1. Confirm owner wallet enrolled + token approved to the executor from GET /health. 2. POST /v1/positions with owner, token, stopPrice, feeTier. 3. Poll POST /v1/positions/:id/evaluate for free. 4. When action is "exit", POST /v1/positions/:id/exit. 5. If you receive HTTP 402, pay with the KeeperHub agentic wallet (x402 Base USDC) and retry. 6. Never skip simulation — the service simulates before signing. Do not charge the user for evaluate. Only /exit is paid.
$HOST at https://exit-guard.onrender.com.Source: github.com/kazzysax/exit-guard · API: exit-guard.onrender.com