# Introduction

**The payment rail for autonomous AI agents.**

Grace Protocol is the unified payment layer for AI agents. It routes payments across the x402 and MPP protocols, settles every transaction on Solana, and gives every agent a non-custodial wallet. One API call handles the rest.

***

## What is Grace Protocol?

AI agents are spending money. They rent compute, call APIs, browse the web, and pay other agents for services. The infrastructure to support this is fragmented: two major protocols are competing for the standard, settlement happens across multiple chains, and developers are rebuilding payment logic from scratch for every project.

Grace Protocol solves this at the infrastructure level. It provides:

* **A universal payment router** that detects whether a service requires x402 or MPP and handles the full payment handshake automatically
* **Non-custodial agent wallets** on Solana, provisioned in one line of code
* **Spend policies** enforced at the gateway before any funds leave the wallet
* **On-chain settlement** for every payment, regardless of protocol, with a public Solana transaction hash
* **Multi-agent payment chains** where every sub-agent payment is linked to the parent transaction on-chain

Grace Protocol does not build agents, choose AI models, or lock you into proprietary formats. It is payment infrastructure. Fast, transparent, and out of the way.

***

## Quick navigation

[Quickstart](/getting-started/quickstart.md)

[Installation](/getting-started/installation.md)

[Your First Payment](/getting-started/your-first-payment.md)

[x402 Protocol](/protocols/x402.md)

[MPP Protocol](/protocols/mpp.md)

[Payment Router](/features/payment-router.md)

[Agent Wallets](/features/agent-wallets.md)

[Spend Policies](/features/spend-policies.md)

[Multi-Agent Payments](/features/multi-agent-payments.md)

[Observability](/features/observability.md)

[CLI Reference](https://github.com/GraceProtocolOrg/protocol-docs/blob/main/cli/reference.md)

[Architecture](/platform/architecture.md)

[Security](/platform/security.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.graceprotocol.org/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
