Use staging. Production settlement is not enabled, and there is no separate sandbox host. Pick the track that matches your job: an agent that pays, or a merchant that gets paid.
The agent path is the hosted MCP server plus the skills on the CDN. SohoPay does not ship a local MCP binary or a login CLI.
1

Install the staging skills

Follow setup-staging, or start from https://staging.sohopay.xyz/install.Then connect the host with mcp-connect-staging. The server URL is:
The host completes OAuth in the browser. You do not paste a borrower private key into the agent.
2

Onboard the borrower

The skill borrower-onboard is the procedure. In short: register_borrower (keep operational_agent_id and terminal_id), prove the wallet with an off-device EIP-712 signature, register an Ed25519 workload key, open the agent-grant consent URL until the grant is ACTIVE, and claim_handle. The borrower is not onboarded without a handle.Details and the stops where a person must act are on Borrower onboarding.
3

Pay a 402

When a merchant returns HTTP 402, call prepare_x402_payment for that order. On VOUCHER_ISSUED, sign the voucher with @sohopay/agent-signer and send PAYMENT-SIGNATURE back to the merchant. Keep the same payment idempotency key for the same orderRef.The full sequence is Payment flow.

Next steps

Environment setup

Hosts, chain id, and staging contracts.

Authentication

How agents and merchants authenticate.