LinkexLinkex Docs
For Agents

Keep Funded (balance guard)

The console's semi-automatic top-up watcher, and options for fully unattended funding.

Keep Funded (Console → Agents → Keep Funded) is a browser-based, semi-automatic balance guard: it polls an agent's balance and, when it drops below your threshold, prompts you to approve a top-up that you sign in your connected wallet. Funds move only on your confirmation, and the tab must stay open.

Keep Funded is not hands-off automation — it's a supervised safety net. For unattended funding see Fully autonomous options below.

Setup

Load the agent credential

Paste the agent API key, or upload the backup .json you downloaded at creation. Credentials stay in your browser — they are never uploaded.

Configure the guard

SettingDefaultRange / notes
Threshold — top up when balance falls below$1any USD amount
Top-up amount per trigger$1clamped to the x402 order bounds ($1–$1,000 default)
Check interval60 s5 s – 86,400 s
Funding networkplatform defaultany advertised x402 network (Base / BNB Chain / Solana)

Connect the funding wallet

Connect any wallet holding the stablecoin on the chosen network — it does not have to be the agent's own wallet; a mismatch is allowed and the credit still lands on the agent's account.

Start watching

The guard polls GET /api/user/self/balance. When the balance dips below the threshold it builds an x402 order and asks your wallet to sign. Approve, and the credit lands; decline, and it just asks again next cycle.

Security notes

  • Funding requests are sent with the agent key only (browser credentials omitted), so the agent-token spend-cap path applies — caps you set on the agent hold even here.
  • The recipient address of every order is verified against the platform configuration before signing.

Fully autonomous options

When you need funding with no human present:

  • @linkexai/agent-sdk — build the loop into your agent: poll balance → create order → buildX402PaymentPayload / buildSvmPaymentPayload → submit. The SDK surfaces SPEND_CAP_EXCEEDED and friends as typed errors.
  • linkex/funder Docker image — a standalone watcher you run on your own machine with a funding key; same loop, zero code.
  • Binance Agentic Wallet — if your agent runs in an OpenClaw/skills environment, baw x402-payment signs Linkex challenges directly.

On this page