This guide covers everything you need to set up autonomous agents on SohoPay: how agent credit lines work, the operator liability model, how to provision agents via MCP or REST API, and how to enforce instant spend controls.

What is an agent?

An agent is any autonomous program that spends funds on your behalf — an LLM-driven development assistant (Cursor, Claude, Windsurf), a data-gathering pipeline, or an automated workflow bot. In SohoPay, each agent receives:
  • A dedicated Base wallet identity.
  • A revolving credit line backed by your credit facility or vault collateral.
  • Granular spending limits (credit_limit and daily_limit).
  • Payment rail access over x402 with ~1s USDC settlement.

Credit line vs. prefunded wallets

SohoPay agents run on revolving credit lines rather than prefunded balances:

Operator liability

As the agent operator, you remain legally and financially liable for every transaction your agents execute. Merchants receive 100% of their order settlement instantly; there is no chargeback mechanism. Because of this, programmatic agent creation requires an explicit acknowledgment:
operator_acknowledgment represents a binding legal acceptance of liability up to the agent’s assigned credit limit. See Operator Liability before deploying production agents.

Choose your setup method


Spend limits & velocity controls

Every agent is protected by two distinct limit boundaries:
  • credit_limit — The maximum outstanding balance the agent can carry at any time. Consumes total facility or vault capacity.
  • daily_limit — The maximum cumulative amount the agent can spend in a rolling 24-hour window, regardless of available credit.
Best Practice: Always set daily_limit to standard expected daily spend, rather than matching credit_limit. A 500 USDC credit line with a 50 USDC daily limit ensures a misbehaving agent cannot burn through its entire allocation in a short spike.

Agent safeguards & controls

SohoPay provides real-time lifecycle controls. Actions take effect at the gateway immediately:

1. Pause an agent (Freeze spending)

If an agent misbehaves or requires maintenance, pause it. Any subsequent payment authorization requests will be rejected by the gateway in < 5s:

2. Resume an agent

When ready, re-enable the agent. The gateway revalidates facility standing and restores authorization capabilities:

3. Update agent nickname

Assign friendly labels to distinguish multiple agents in your fleet:
All of these controls can also be operated directly with a single click in the Borrower Portal.

Common error codes


Next steps

Key Management

Understand how MPC key shares and EIP-712 signing operate.

Vault & Funding

Manage USDC collateral deposits and borrowing capacity.

Payment Flow

Follow the complete order-to-settlement lifecycle over x402.