# Agent Clinic > House calls for AI agents. Pay once and get the doctors' instructions for one visit: your agent examines its own run log on its own model, in eleven passes, and writes one report with the cause of each failure, the log line behind it, a fix, and a corrected instruction file. The clinic runs no model and never sees your log. Paid in USDC over x402, with no account and no API key. Price: $1.00 per visit. Payment is made in USDC on Base: 1.00 USDC (contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913), over x402. ## The service - POST https://clinic.sosell.al/house-call (House call, $1.00, paid in USDC on Base): Pay once; get the doctors' instructions for one visit. Your agent examines its own run log on its own model, in eleven passes (intake, seven departments, consolidation, verification, treatment), and writes one report with the cause of each failure, the log line behind it, a fix, and a corrected instruction file. The log stays on your machine. - Who examines: The Triage Nurse, the seven heads of department with their sub-specialists, the Chief Medical Officer's consolidation, a verification of every quote and the treatment file, all run by your agent on its own model. - A visit lasts 3 days: its owner's link, its check-ins and its re-delivery. ## What a visit asks your agent to do - Read its own run log and, if it chooses, its own instructions, and mask the secrets in the copy it examines. - Examine that copy on its own model in 11 passes, one per stage, in a fresh call with no tools: Intake, Loops, Fabrication, Tool use, Instructions, Memory and context, Security, Cost, Consolidation, Verification, Treatment. - Check that every quote in its findings is in its log word for word, and drop any that is not. - Write one report in the clinic's format, with a corrected instruction file, and say which model examined the run. - Delete the instructions and its working copy of the log when the report is written. - If it chooses, tell the clinic how the visit is going (optional check-ins: stage names, counts, severities, diagnosis codes and the model's name; no text), so its owner can watch on a private link. ## What a visit never asks your agent to do - Use any tool, run any command or code, or read, write or change any file other than its own log, its own instructions and its report. - Make any network request other than the calls to its own model and the optional check-ins to the clinic. - Send its log, its instructions or any text from them to the clinic. The one exception is yours to choose: if you opt in when you pay, the full report is sent to the clinic, kept for 3 days and shown on your private link; it quotes the log lines behind each finding, secrets masked. - Pay again, sign anything else, or contact anyone. - Change its own instructions or settings. The corrected instruction file is a suggestion for its owner to review. The full outline, free, as JSON: https://clinic.sosell.al/house-call/outline ## What it costs your model - 11 passes, one per stage; 10 of them read the log. - Input: about 10 times your log's size in tokens, plus about 21,000 tokens of the clinic's instructions, plus about 6,000 tokens of stage answers and report that the last three stages read (measured on short logs, 22 Nov 2026). - Output: about 10,000 per visit on average in the clinic's test visits with Claude Haiku 5.5 (protocol 1.2, short logs, 22 Nov 2026), 21,000 at most in one visit; longer logs, and models that write more, use more. - A model with prompt caching may bill the repeated log at a lower rate. Your model's own price list decides the cost; the clinic makes no estimate in dollars. ## Request POST JSON with Content-Type: application/json, or no body: {"share_report": false, "request_id": ""} There is no log field: the log stays with your agent. Any other field is refused with 400 before payment. ## Response (200, after the payment settles) {"session_id": string, "visit": {"id", "protocol_version", "paid_usd", "paid_in", "expires_at", "owner_link", "share_report", "redelivery"}, "licence": string, "cost_to_your_model": {...}, "outline": url, "instructions": {"scope", "how_to_run", "prompt_layout", "shared_rules", "stages": [{"id", "stage", "doctor", "brief", "output_schema"}], "checks_before_report", "doctor_codes", "report_format", "check_ins", "licence"}} The stages: Intake (Triage Nurse), Loops (Dr. Loop), Fabrication (Dr. Verity), Tool use (Dr. Schema), Instructions (Dr. Prompt), Memory and context (Dr. Context), Security (Dr. Guard), Cost (Dr. Budget), Consolidation (Chief Medical Officer), Verification (Verification), Treatment (Treatment). Each finding in the report has a fixed code (LOOP.NO_STOP, VERITY.UNGROUNDED, SCHEMA.BAD_PARAM, PROMPT.CONFLICT, CONTEXT.GOAL_DRIFT, GUARD.INJECTION, GUARD.OVERREACH, GUARD.SECRET_LEAK, BUDGET.WASTE); the report's diagnosis_code is the most severe one, or NONE. ## After the visit (all free and optional) - Check-ins, with the visit's token (Authorization: Bearer ): POST https://clinic.sosell.al/visit//stage with {"stage": one of triage, loop, verity, schema, prompt, context, guard, budget, cmo, verify, treatment; "status": "started", "done" or "failed"; "findings": [{"severity", "code"}]}, and POST https://clinic.sosell.al/visit//done with {"model", "mode": "separate" or "single", "findings", and "report" only if share_report was true}. Fixed fields only: any other field, or free text, is refused. done returns a signed stamp for the report. - The owner's link (visit.owner_link) shows which doctors came, each stage, and the result. No login; anyone with the link can open it until the visit expires. - POST https://clinic.sosell.al/stamp/verify with {"stamp": {...}}: {"valid": true} when the clinic signed it. - POST https://clinic.sosell.al/outcome with {"session_id", "resolved": true | false}: did the fix resolve the problem? 10 per day per visit. ## Payment (x402 version 2) 1. Free checks first: an unknown field or a bad value (400), too many requests (429), or a paused clinic (503) is refused at once, so nothing is signed or charged. 2. Otherwise the first request returns 402 Payment Required. The PAYMENT-REQUIRED header holds base64 JSON with the price (USDC atomic units), network, asset, pay-to address and extra.paymentFlow "upfront". 3. Sign the payment with an x402 client, for example @x402/fetch, and send the same request again with the PAYMENT-SIGNATURE header. 4. The payment settles first, and only then are the instructions sent. If it cannot be settled, the answer is 402 with an error and nothing is charged. The receipt is in the PAYMENT-RESPONSE header. 5. Payment is final: there are no refunds. If the response is lost, send the same request again with the same request_id before the visit expires: you get the same visit, and you are not charged again. Without a request_id a visit cannot be sent again. ## How to pay 1. A wallet. The agent pays from an Ethereum-style wallet on Base: an address and its private key. Its owner can create one in a wallet app and give the agent the key, or the agent can create one with a library such as viem (generatePrivateKey, then privateKeyToAccount). Use a wallet kept for this, with a small balance: whoever holds the key can spend what is in it. 2. Fund it with USDC on Base. Send USDC on the Base network to the wallet's address, from another wallet or from an exchange that offers withdrawals to Base (choose Base as the network when withdrawing). USDC on Base is the token contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913; a token named USDC with any other contract is not it. USDC sent on another network, or another token, may not arrive. Each exchange sets its own minimum and fee; check them there. 3. No ETH for gas. The agent only signs an authorization for the USDC transfer (EIP-3009); the facilitator sends the transaction and pays its gas. The wallet needs USDC only: at least the price, $1.00. 4. Check the balance. Open https://basescan.org/address/ and look under token holdings for USDC with the contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, or call balanceOf(address) on that contract (6 decimals: 1000000 is 1.00 USDC), for example with viem's readContract. This is how payment works, not advice on buying, holding or selling USDC. ## Limits - Every route: 30 per minute per client IP. The paid route: 6 per minute per paying wallet, counting settled payments only; a wallet at its limit is refused before it pays again. - Over a limit the answer is 429 with {"retry_after": seconds} and a Retry-After header, before any payment is settled. ## Data The log never leaves the agent's machine: the house call has no field for it. Per visit the clinic keeps the payment (wallet, amount, transaction), the protocol version and, if the agent sends the optional check-ins, stage names, counts, severities, diagnosis codes and the model's name. It keeps the full report only if the payer opted in (share_report), and deletes a visit's details 3 days after payment; the ledger keeps the payment row. ## Machine-readable - [Service list (JSON)](https://clinic.sosell.al/) - [The free outline (JSON)](https://clinic.sosell.al/house-call/outline) - [OpenAPI 3.1](https://clinic.sosell.al/openapi.json) - [A2A agent card](https://clinic.sosell.al/.well-known/agent-card.json)