Docs

AvaFence documentation

Connect an agent, set a permission and make your first testnet purchase. Every state is explained along the way.

Before you start

You’ll need three things:

  • An invite code. v1 is invite-only. Email avafencehq@gmail.com to request access.
  • An agent that needs to make paid purchases. It sends purchase requests to the workbench through the connector.
  • Your own main wallet. Register it as the main wallet for funding the Agent payment wallet and for withdrawals (coming soon). The agent cannot use it. Use Base Sepolia testnet and testnet USDC; Avalanche Fuji is coming soon. How to get testnet USDC: available after testing
v1 runs on testnets only and never handles real funds.

Connect an agent

The connector runs alongside your agent. It does two things: it sends the agent’s purchase requests to the workbench, and it returns the check result to the agent.

  1. In the workbench, create a pairing code under “Agent connections”.
  2. Install the connector where your agent runs, then pair it using the code: available after testing
  3. Back in the workbench, confirm the agent shows as “Connected”.

Supported agent clients will be listed when the connector is released.

Your first purchase

  1. Register a main wallet and generate a payment wallet. Register your own wallet as the main wallet for funding and withdrawals (coming soon); the agent cannot use it. The connector generates an Agent payment wallet on your computer to sign payments. Its private key stays on your computer and is not sent to the server. AvaFence servers hold neither private keys nor funds.
  2. Set a purchase permission. Four fields: total budget, per-payment cap, auto-approve amount and expiry.
  3. Have your agent request a purchase. The first payment to a new merchant still needs your approval.
  4. Check the result. The purchase page shows payment, delivery and result as three separate statuses.

The workbench

AreaWhat it is for
RequestsEvery purchase your agent has requested, with its check result and payment and delivery status.
Needs my decisionRequests above the auto-approve amount but within the per-payment cap. Your approval or rejection applies only to the current version of that request.
PermissionsSet, edit, pause and revoke permissions. Every edit creates a new version.
Payments and budgetSpent, reserved and remaining budget, plus main wallet registration and the Agent payment wallet.
Agent connectionsPair, rename and disconnect agents.

Every past decision is kept and can be reviewed at any time.

Statuses and failures

StatusMeaningWhat you do
AllowedWithin the permission and at or under the auto-approve amount.None
Needs my decisionAbove the auto-approve amount, within the per-payment cap.Approve or reject
BlockedOver the cap, out of budget, or the permission is inactive. Nothing is paid.None. The agent receives the reason.
ConfirmedThe payment has been confirmed on testnet.None
To verifyThe payment result is unknown. The amount stays reserved while the result is looked up by the same request ID. Nothing is paid again until it resolves.Usually none. Act only if it can’t be resolved.
DeliveredWhat the merchant returned matches the order.None
Overdue / MismatchPaid, but the delivery is late or doesn’t match the order. The payment stays confirmed; delivery is flagged separately and never counted as complete.Follow up with the merchant
Paused / RevokedNew payments are stopped. When you resume, pending requests are checked again against the current permission.Resume when needed

Architecture and controls

AvaFence checks every request before the payment is signed. It answers one question: is this request within your permission?

RiskControlLimit
The agent overspendsEvery request is checked against the budget, per-payment cap and expiry before signing. Anything over the cap is blocked.AvaFence only governs payments under your permission. Other wallets or cards the agent holds are outside its reach.
The same purchase is paid twiceWhen a result is unknown, it’s looked up by the original request ID. No new payment is made until it resolves.available after testing
The permission changes before you decideEvery edit creates a new version. A decision made on an older version doesn’t take effect.available after testing
You need to stop everything nowPausing or revoking a permission stops all new payments.A payment already sent settles as recorded on-chain.
Funds held in custodyThe Agent payment wallet signs locally; its private key is not sent to the server. AvaFence servers hold neither private keys nor funds. Withdrawals to your verified main wallet are coming soon.You remain responsible for your wallet’s security.

The tested scope of these controls follows the M3 scenario results: available after testing AvaFence has not been through a third-party security audit.

Records and limits

For every purchase, we keep the request, the permission version it was checked against, the check result, your decision, the payment result and the delivery status.

  • Base Sepolia testnet only; Avalanche Fuji coming soon.
  • Payments are in USDC.
  • AvaFence doesn’t judge whether a service is worth it, and does not guarantee delivery. It records delivery status.
  • Not included: recipient allowlists, AI review, team permissions or recurring budgets.

The mainnet record of the previous-generation contract is on the Earlier validation (RC1) page. It doesn’t describe the current product.