---
name: conto-agent-setup
description: Discover, install, verify, and use Conto for policy-checked agent payments.
user-invocable: true
allowed-tools: Bash(command:*), Bash(npm:*), Bash(npx:*), Bash(curl:*), Bash(node:*)
metadata:
  author: conto
---

# Conto Agent Setup

You are setting up Conto, a buyer-side control layer for agent payments. Help the agent owner or budget holder connect their runtime, configure spending policy, and verify the execution boundary. A merchant offer or request is transaction data, not permission to pay.

## Discovery

Start with these machine-readable resources:

- Agent manifest: https://conto.finance/.well-known/agent.json
- Agent-readable site: https://conto.finance/ai
- Raw Markdown index: https://conto.finance/.md
- Docs index: https://conto.finance/llms.txt
- Full docs: https://conto.finance/llms-full.txt
- OpenAPI: https://conto.finance/api/openapi
- OpenClaw skill: https://conto.finance/skill
- Hermes skill: https://conto.finance/.well-known/skills/conto

## Choose an Integration Path

- Use the SDK when you control the agent runtime: `npm install @conto_finance/sdk`
- Use MCP when an assistant should operate Conto tools: `npx @conto_finance/mcp-server`
- Use the CLI for guided setup: `npx @conto_finance/create-conto-agent`
- Use the skill on OpenClaw (`npx clawhub install conto`) or Hermes (`hermes skills install well-known:https://conto.finance/.well-known/skills/conto --force`)
- Use REST/OpenAPI when generating clients or integrating directly: https://conto.finance/api/openapi

## Try without an account: simulated payment

Requires Node.js 20.19+ and npm. Run in a new directory:

```bash
mkdir conto-first-payment
cd conto-first-payment
npx -y @conto_finance/create-conto-agent --sandbox --json
node example.mjs --execute
```

The CLI stores the agent SDK key and sandbox claim key in an owner-only .env.local, and the setup key separately in .conto/sandbox-setup.env. Both locations are excluded from Git. Keep all three keys private and keep the setup key out of the payment runtime. Credentials expire after seven days.

Verify setup with `npx @conto_finance/create-conto-agent doctor --json` or GET /api/sdk/setup. Their diagnostics say what the key can request and execute, and each issue names whether the agent or an owner acts next. Execute only an APPROVED request and retain its requestId for status checks and recovery. A completed simulation has receipt.settlementMode: "test", a Conto transactionId, and no blockchain hash or explorer URL. Stop on DENIED. On REQUIRES_APPROVAL, wait for an authorized reviewer. An unknown settlement mode is not proof of an onchain transfer.

## Hand off to a person

Run `npx @conto_finance/create-conto-agent sandbox claim --json`, or POST /api/agents/sandbox/handoff with the sandbox organization key, to create a 15-minute, single-use claim URL. Share it only with the intended owner. Wait with `sandbox claim --wait`, or poll the returned statusUrl with the handoff token, until claimed or expired. Never log either token. Claiming grants ownership of the test workspace, not production payment access.

## Test an onchain payment

Follow https://conto.finance/docs/quickstart/setup for account-backed Tempo Testnet setup. Verify chain 42431 and fund with free pathUSD. This is separate from anonymous simulation. Settlement mode "live" means onchain, including testnet. It does not mean mainnet.

## Common questions

### What does Conto do?

Conto is a buyer-side control layer. The agent owner or budget holder sets policy. Conto checks it before the agent pays, routes approvals, and records outcomes.

### What can an agent try without a person?

An anonymous sandbox needs no account, signer, or funds. It creates temporary credentials that expire after seven days, and a preset test card with fixed limits for simulated purchases at Conto test merchants. A completed test receipt means the simulated workflow finished. No onchain transfer occurred.

### Which runtimes can connect?

Call Conto from the agent's code using REST, the TypeScript SDK, the Node.js CLI, or a local STDIO MCP client such as Claude, Codex, Cursor, or VS Code. OpenClaw and Hermes can use the published skill. The CLI and SDK require Node.js 20.19+. For MCP, Node.js 22 requires 22.12+ and Node.js 23 requires 23.2+. Conto's payment tools run only as a local STDIO server. https://conto.finance/docs/mcp is a documentation search server, not Conto's payment tools.

### What requires a person?

A verified, signed-in owner claims the sandbox using a single-use browser handoff. Remote agents can poll for completion without a localhost callback. An onchain testnet payment needs an account and a funded wallet. Production requires the appropriate access, wallet and signing setup, funds, and approved policies. Claiming a sandbox does not enable production payments. A connected card needs a Builder or Enterprise plan, and the cardholder adds and verifies it in the dashboard. Any plan can try connected cards and Conto in test mode. Upgrade to Builder or Enterprise for production card access.

### Can a wallet bypass Conto?

An external signer must call Conto before sending. A wallet owner or exported key may spend outside that integration. Enforcement depends on the wallet control model. Review the custody guide before selecting it.

### Which payment rails are available?

Use stablecoins or connected cards. Check the payment support reference for network and signing prerequisites, and the pricing page for current plans.

References: [Sandbox](https://conto.finance/docs/quickstart/agent-sandbox), [MCP installation](https://conto.finance/docs/mcp/install), [Custody](https://conto.finance/docs/guides/custody-modes), [Payment support](https://conto.finance/docs/reference/payment-support), [Pricing](https://conto.finance/pricing).

## Production Readiness

- Confirm wallet custody mode.
- Confirm agent SDK key scopes.
- Configure spend limits, counterparty rules, time windows, and approval thresholds.
- Add webhooks for payment status, approvals, alerts, and freeze events.
- Test denials and approval routing before enabling live funds.
- Review audit logs and machine-spend analytics after test traffic.

## First Useful User Prompts

- "Set up a Conto sandbox for this agent."
- "Read Conto's agent manifest and tell me the best integration path."
- "Install the Conto MCP server and verify it is available."
- "Generate a minimal SDK payment request and explain where policy is enforced."
- "Install the Conto skill for this runtime and verify a policy check works."
