Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions typescript/.changeset/agent-guild-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/agentkit": patch
---

Added an Agent Guild action provider for free endpoint preflight plus quoted, capped trust and payment-safety decisions.
25 changes: 25 additions & 0 deletions typescript/agentkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,31 @@ const agent = createAgent({

## Action Providers

<details>
<summary><strong>Agent Guild</strong></summary>
<table width="100%">
<tr>
<td width="200"><code>preflight_agent_endpoint</code></td>
<td width="768">Runs a free, read-only live preflight on one exact public A2A or MCP endpoint before delegation.</td>
</tr>
<tr>
<td width="200"><code>quote_agent_trust</code></td>
<td width="768">Quotes a capability-specific Agent Guild trust decision without paying.</td>
</tr>
<tr>
<td width="200"><code>purchase_agent_trust</code></td>
<td width="768">Purchases an unchanged, explicitly confirmed trust-decision quote within a configured USDC cap.</td>
</tr>
<tr>
<td width="200"><code>quote_payment_safety</code></td>
<td width="768">Quotes an AGPD-1 decision bound to an exact contemplated Base USDC payment without paying.</td>
</tr>
<tr>
<td width="200"><code>purchase_payment_safety</code></td>
<td width="768">Purchases an unchanged, explicitly confirmed AGPD-1 payment-safety decision within a configured USDC cap.</td>
</tr>
</table>
</details>
<details>
<summary><strong>Across</strong></summary>
<table width="100%">
Expand Down
50 changes: 50 additions & 0 deletions typescript/agentkit/src/action-providers/agentGuild/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Agent Guild Action Provider

The Agent Guild provider lets an AgentKit agent run a free live endpoint preflight, then optionally quote and purchase trust decisions immediately before delegation or payment. The free action needs no wallet, Agent Guild account, API key, or payment. Paid actions use Agent Guild's public x402 v2 service on Base mainnet.

## Safety model

- Quote actions never create a payment.
- Purchase actions require the exact x402 option returned by the matching quote, plus `confirmPayment: true`.
- The live 402 must still match the selected scheme, Base network, USDC asset, amount, payee, timeout, extra fields, and exact resource URL before a payment payload can be created.
- `maxPaymentUsdc` is a hard per-request ceiling and defaults to `0.01` USDC.
- An overridden `baseUrl` is quote-only unless the developer also sets `allowPaymentsToOverriddenBaseUrl: true`. The model cannot change either option.
- A changed or ambiguous live quote fails closed before signing.

## Usage

```typescript
import { agentGuildActionProvider } from "@coinbase/agentkit";

const provider = agentGuildActionProvider({
maxPaymentUsdc: 0.01,
});
```

The provider supports Base mainnet EVM wallets.

## Actions

### `preflight_agent_endpoint`

Runs a free, read-only live protocol preflight on one exact public A2A or MCP operational endpoint. It never creates a payment or changes remote state. Report every failed and unknown check; `no_failed_checks` is point-in-time evidence, not an endorsement, and never authorizes delegation.

### `quote_agent_trust`

Returns the current unpaid x402 quote for a capability trust decision. Set `signed: true` for an offline-verifiable AGD-1 decision; signed decisions may cost more than the default cap.

### `purchase_agent_trust`

Retries the same trust request with one exact option from `quote_agent_trust`. The action pays only when the live quote is unchanged and within the configured cap.

### `quote_payment_safety`

Returns the unpaid quote for an AGPD-1 decision bound to the contemplated Base USDC payment: token, atomic amount, payee, resource URL, optional capability, and risk thresholds.

### `purchase_payment_safety`

Purchases the exact quoted AGPD-1 decision. Before signing the protected payment, verify the returned credential and require its decision to be `allow`, its proof to be valid and fresh, and its sealed request to match the intended payment. The Agent Guild fee for this decision is capped directly by this provider and is not recursively passed through the payment-safety action.

Portable credentials can be rechecked without payment using `POST /wallet-binding/decision/verify`.

Agent Guild's verification and discovery routes are documented at `https://agent-guild-5d5r.onrender.com/openapi.json`.
Loading
Loading