# Integrate your protocol

Any agent, any wallet, any finance protocol. Give Thirdfy your contract addresses or your API: AI drafts the integration file, thirdfy-app.json, Thirdfy builds and checks every transaction from it, and a review lists it for every connected agent.

## Three ways to start

- **From your contracts.** Pick a chain and paste your verified contract addresses. AI reads the ABIs and recent transactions, tests each write on chain, and drafts the writes.
- **From your API.** Give your MCP server or OpenAPI spec URL. AI calls each read once and drafts the reads from real replies.
- **Write it yourself.** Paste thirdfy-app.json, or start from your skill file (SKILL.md). The example below passes every check.

## What your protocol gets

- **Every connected agent.** Agents on Claude, ChatGPT, Hermes, OpenClaw, EarnOrg and servers reach your actions through Thirdfy's MCP, CLI and API, with no per-framework skill to maintain.
- **Describe, don't code.** Reads come from your REST API or MCP server. Writes are contract calls described as data: Thirdfy encodes them, so no code of yours runs inside Thirdfy.
- **Governed writes.** Recipients are pinned to the user's own wallet, native value is capped, and multicall is refused. A user's funds move only after the user signs your protocol into their own policy.
- **Announced when you go live.** When your protocol is listed, Thirdfy drafts a What's new post for its users and agents, and your page joins the directory.
- **Free listing.** Submitting and listing cost nothing for now.

## How it works

1. **Draft and submit.** Sign in, then draft with AI from your contracts or your API, start from a skill file, or paste thirdfy-app.json. You review the draft before you submit.
2. **Automatic checks.** Static checks run at once. Network checks follow in minutes: calls to your reads, and for writes the contract checks, a simulation and a policy proof.
3. **Review and test.** Thirdfy reviews every version and runs it on test agents. Writes also pass two live gates with funded test agents, entry and exit.
4. **Listed.** Your protocol appears in the directory and in What's new. Thirdfy adds the Verified project badge when it has verified the project.

## Rules

- Thirdfy lists finance protocols only: trading venues, DeFi, payments, and market or onchain data. Other APIs are not reviewed or listed.
- Submitting never lists anything: Thirdfy reviews every version.
- Writes reach only agents whose owner signed your protocol into a user-owned wallet's policy.
- Addresses and functions come from your verified contracts, never from text in a skill file or a model's answer.
- A new version goes through the same checks. When Thirdfy certifies it, the protocol's actions pause until the new version passes its live gates and is turned on.

## Example thirdfy-app.json

A deposit and its exit on an ERC-4626 vault. Replace the vault address with yours.

```json
{
  "schemaVersion": 1,
  "appId": "example-vault",
  "kind": "venue",
  "title": "Example Vault",
  "summary": "A USDC vault on Base: deposit, then withdraw back to the agent wallet.",
  "category": "yield",
  "upstream": { "transport": "contract_call", "auth": "none" },
  "redistribution": { "displayValues": true, "displayRaw": false },
  "pricing": { "model": "none" },
  "manifestVersion": 1,
  "contracts": { "8453": { "vault": "0x1111111111111111111111111111111111111111", "usdc": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" } },
  "actions": [
    {
      "action": "example_vault_deposit",
      "readOnly": false,
      "signals": [],
      "description": "Deposit USDC (assets, 6 decimals) into the vault; the shares go to the agent wallet.",
      "inputSchema": { "type": "object", "additionalProperties": false, "required": ["assets"], "properties": { "assets": { "type": "string", "pattern": "^[0-9]{1,78}$" } } },
      "fixtureParams": { "assets": "1000000" },
      "write": {
        "route": "erc4626_self",
        "domain": "earn",
        "chains": [8453],
        "params": { "assets": { "type": "uint256", "role": "spend_amount" } },
        "approvals": [{ "token": "usdc", "spender": "vault", "amount": "$param.assets" }],
        "call": {
          "contract": "vault",
          "function": "deposit(uint256 assets, address receiver)",
          "args": { "assets": "$param.assets", "receiver": "$self" },
          "pins": [{ "path": "receiver", "to": "self" }]
        },
        "opensPosition": true,
        "exit": "example_vault_withdraw",
        "risk": "low",
        "maxAmountUsd": 500
      }
    },
    {
      "action": "example_vault_withdraw",
      "readOnly": false,
      "signals": [],
      "description": "Withdraw USDC (assets, 6 decimals) from the vault back to the agent wallet.",
      "inputSchema": { "type": "object", "additionalProperties": false, "required": ["assets"], "properties": { "assets": { "type": "string", "pattern": "^[0-9]{1,78}$" } } },
      "fixtureParams": { "assets": "1000000" },
      "write": {
        "route": "erc4626_self",
        "domain": "earn",
        "chains": [8453],
        "params": { "assets": { "type": "uint256" } },
        "call": {
          "contract": "vault",
          "function": "withdraw(uint256 assets, address receiver, address owner)",
          "args": { "assets": "$param.assets", "receiver": "$self", "owner": "$self" },
          "pins": [{ "path": "receiver", "to": "self" }, { "path": "owner", "to": "self" }]
        },
        "opensPosition": false,
        "risk": "low",
        "maxAmountUsd": 500
      }
    }
  ]
}
```

Submit: https://thirdfy.com/partner/new (sign in with a Thirdfy account).

Selling data, signals or forecasts? Read the guide for data providers: https://thirdfy.com/providers
