---
name: ripae
description: Record a deal your company already agreed with another company, so both sides hold the same record and anyone can check it. Use when an agent closes a purchase order, supplier terms, a payment, API or compute usage, or completed services with another company's agent, or when asked to join Ripae, confirm a Ripae draft, or verify a Ripae record.
---

# Ripae

Ripae records deals two companies' agents already agreed. It decides nothing and moves no money. Nothing is recorded until both sides confirm the same terms. A sealed record can be checked offline by anyone.

## What gets recorded

Ripae records any business agreement that your agent and another company's agent have agreed. It is not only for loans. A record is the deal both sides confirmed, sealed so that anyone can check it later.

Every record holds:

- The two companies, each named by its domain. A person at that domain accepted the company. A DNS or file proof of the domain is optional, and the sealed record does not store that proof
- The terms, in full or as sealed commitments (`commit:sha256:…`), depending on the mode (`full`, `hybrid`, or `committed`)
- Amounts, currency and dates (visible to Ripae in full mode; in hybrid mode, visible when they are their own fields and sealed when they sit inside a list; sealed in committed mode)
- Each side's confirmation, marked `agent_signed` or `ripae_attested`
- The outcome, on the case: `agreed`, `break` (the two sides' versions don't match), or `unconfirmed` (one side never answered). Only an `agreed` case is sealed
- Ripae's seal and ledger entry, so a bank, insurer or auditor can check the record without an account

A company that joins on or before 1 January 2027 records for free, for the life of the company. A company that joins after that pays nothing for its first 50 recordings, then $0.50, paid by the proposer. Responding, confirming and verifying are free. See `<RIPAE_URL>/pricing.json`. Joining is finished when a person at the company accepts the signature agreement.

Credit offers are optional and separate from recording.

## Connect

- Not in Ripae yet: start at MCP server `<RIPAE_URL>/room/public/mcp`, which needs no sign-in, and call `ripae_start`.
- In Ripae, no key handling: MCP server `<RIPAE_URL>/room/mcp`. Sign in with OAuth when asked, or send `Authorization: Bearer <party bearer>`.
- Your agent signing with its own key uses the local signer: `RIPAE_URL=<RIPAE_URL> npx @ripae/local-mcp`. The key stays on that machine. Without it, the hosted server attests each confirm.
- `ripae_whoami` says which company your bearer or sign-in acts for.
- `ripae_teller` says the next action. The action is a proposal. It is not submitted, and it does not decide. The company's history stays inside Ripae.
- No MCP: `POST <RIPAE_URL>/v1/<operation>` with a JSON body. The operation is the tool name without `ripae_`.

## Join

1. Call `ripae_start` with what you know: company legal name, web domain, a work email at that domain, an agent name (`agent:name`), how the agent confirms, and the deal types. It asks for anything missing.
2. Pick the confirm mode:
   - `agent_signed`: the agent signs every confirm with its own Ed25519 key. Get the public key from `ripae_local_public_key` (local server) and give it to `ripae_start`. Stronger evidence. A stolen login cannot confirm for you.
   - `ripae_attested`: Ripae attests confirms your agent makes through its login. No key handling.
3. When the setup is ready, call `ripae_start` with `submit: true`. Keep the `claimToken`.
4. A person at the email opens the link, reads the signature agreement, and accepts it with their name and title. Tell your user this step needs them.
5. Call `ripae_finish_signup` with the `claimToken`. The bearer comes back once. The local server saves it for you.

## Record a deal

1. `ripae_list_deal_types` shows each template's sides and fields. Fill only fields the deal states.
2. Write values in their forms: money `1250.00` (two decimals), decimal `2.5`, currency `USD`, date `2026-12-15`, UTC time `2026-11-27T17:00:00.000Z`, party `globex-com` (the domain with dashes).
3. `ripae_propose_record` with `dealType`, `counterparty`, `content`, and `confirmBy` (when both sides must have confirmed). Your side confirms in the same call.
4. The other company's agent calls `ripae_confirm_record`, or a person there confirms from an emailed link. If the other company has no contact in Ripae, call `ripae_invite` with an email there.
5. `ripae_get_record` shows the state:
   - `agreed`: sealed. `recordId` and `verifyUrl` are set.
   - `break`: the versions differ. `diffs` lists every differing field. Fix your side with `ripae_confirm_record` and your corrected `content`, or ask the other side to.
   - `awaiting_counterparty`: wait, or remind them.
   - `unconfirmed`: the confirm-by time passed with one side. A late confirm still agrees and is marked late.
   - `unconfirmed_with_break`: the confirm-by time passed and the two versions differ.

## Keep fields from Ripae

With the local server, a proposal is `hybrid` by default: amounts, currency, dates and party ids go in full, and every other field goes as a salted commitment Ripae cannot read. The reply has a `dealSecret`. Give it to the other company's agent yourself, never to Ripae. That agent confirms with its own `content` and the `dealSecret`. A changed committed field still shows as a break by path. To show one field to someone later, `ripae_local_disclose` gives its value and salt. Send `contentMode: "full"` to send everything in full, or `"committed"` to commit every field but the parties. A person cannot confirm a hybrid draft from an email link.

## Find the other company

- `ripae_find_party` with a web domain says whether that company is on Ripae and has chosen to be found. It needs no sign-in. `listed: false` can also mean the company is not on Ripae; send `ripae_invite` to bring it in.
- A company's own A2A agent card may carry the extension `https://ripae.ai/a2a/party/v1` with its party id. Confirm it with `ripae_find_party` before you rely on it.
- To be found, call `ripae_set_listing` with `listed: true` and, if you have one, your own agent card URL on your domain. Then add the extension to that card. Turn it off with `listed: false`.

## Get told when something changes

`ripae_add_webhook` with an https `url` registers a URL for signed notices when a deal is proposed, agrees, breaks, or closes unconfirmed. Keep the `secret`; it comes back once. Check each POST's `Ripae-Signature` header (`t=<seconds>,v1=<HMAC-SHA256 of "<t>.<raw body>">`), then call `ripae_get_record` for the detail.

## Check a record

- `ripae_verify_record` with a `recordId` or a `bundle` returns seven checks.
- `ripae_export_record` gives the bundle with both sides' content. Anyone can run `yarn verify:record bundle.json --keys <RIPAE_URL>/.well-known/ripae/keys.json`, or use the verify page on the Ripae site, without asking Ripae.

## Cc Ripae

Copy `record@ripae.ai` on an email that settles a deal. Ripae drafts the record and emails each side a confirm link. For an exact draft, add a block:

    ```ripae
    deal_type: purchase_order
    confirm_by: 2026-11-27T17:00:00.000Z
    po_number: PO-1001
    buyer: acme.com
    supplier: globex.com
    currency: USD
    total:
      value: 135.00
    ```

## Find credit

Once an offer is open, Ripae also publishes signed credit offers from its partner bank. The offer index says whether one is. An offer is an invitation to ask for a quote, not a quote and not credit. An offer marked `sandbox: true` is for testing only.

1. `ripae_list_offers` or `GET <RIPAE_URL>/.well-known/ripae/offers.json` lists what is open. `ripae_get_offer` returns the signed file. Check its Ed25519 signature against the keys at `/.well-known/ripae/keys.json`: it covers the offer's canonical JSON without `keyId` and `signature` (see `<RIPAE_URL>/credit-offers.md`).
2. Your owner sets the limits you look for credit within. Call `ripae_mandate_link` with your company's contact email; a person there gets a link. You cannot set the limits yourself.
3. `ripae_check_fit` with an `offerId` says whether the offer fits those limits, which limits miss, and by how much. To keep the limits to yourself, call `ripae_local_check_fit` on the local server with `mandate`.

The details are at `<RIPAE_URL>/credit-offers.md`.

## Do not

- Do not propose terms the two companies have not agreed. A draft is a request to confirm, not a decision.
- Do not tell your owner an offer is a quote or an approval. Signing a loan always needs a person.
- Do not put secrets or personal data in content. Both companies see it, and the hash is in the public record.
- Do not treat a record as legal advice or as proof a contract is valid. It shows both sides confirmed the same terms at a time.
