> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ana.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Anafi lets a wallet run payment rules on its own, without handing its keys to anyone.

Anafi is automation for self-custody wallets. The owner of a wallet signs a rule once — "pay rent on the 1st", "send 20% of every incoming USDC to savings", "buy ETH every Friday" — and Anafi runs it for as long as the owner leaves it on.

> [!NOTE]
>
> The owner keeps the keys. Anafi never holds them and never holds the funds. Each payment that a rule makes goes through an on-chain permission that the owner granted, and the owner can take that permission back at any time, with or without Anafi.

## Who builds on Anafi

| You are building | What Anafi gives you |
| - | - |
| A wallet or a consumer app | Recurring payments, auto-routing, DCA and price orders for your users' own wallets. |
| A merchant or a subscription business | A pay link that takes a one-time or a monthly stablecoin payment. |
| A treasury tool for a company | Rules that move company funds between Safes on a schedule or on an event. |

## What a rule can do

* **Triggers:** a schedule, a calendar date, a fixed time, an incoming or an outgoing transfer, a price level.
* **Actions:** send one or more payments, swap tokens, send an email, cash out to a bank account (where supported).

## Networks

| Network | Token in the API | API host |
| - | - | - |
| Polygon | `polygon` | `https://api.polygon.ana.fi` |
| X Layer | `xlayer` | `https://api.xlayer.ana.fi` |
| Polygon Amoy | `polygon-amoy` | `https://api.polygon-amoy.ana.fi` |

## Next steps

> [card] [Quickstart](https://docs.ana.fi/quickstart.md)
>
> install the SDK and commit your first rule.

> [card] [How Anafi works](https://docs.ana.fi/concepts/how-anafi-works.md)
>
> the trust model in one page.

> [card] [API reference](https://docs.ana.fi/api-reference/fees/get-fee-terms.md)
>
> the public HTTP routes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.