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

# AI tools

> Use the SDK with a coding agent.

## What it is

Pari ships two files for coding agents. `SKILL.md` teaches an agent to use the `pari` CLI safely. `llms.txt` gives an agent a map of these docs.

The skill is a folder with two files:

* `SKILL.md`: the rules. Dry run first, how to handle keys, the fee guard, and how to talk about rewards.
* `reference.md`: every command, option and exit code, generated from the CLI.

## When to use it

Use it when an agent runs the CLI or writes code against Pari. The agent tools work on devnet only today.

## Step by step

**1. Install the CLI**

The skill needs the CLI. See [CLI](https://docs.pariprotocol.xyz/build/cli.md). The `npm i -g` line inside `SKILL.md` does not work yet, because the CLI is not on npm.

**2. Copy the skill into your agent's skills folder**

The command creates `<dir>/pari/`. Use `--force` to replace an older copy.

```sh theme={null}
pari skill install --dir ~/.claude/skills
```

For one project only:

```sh theme={null}
pari skill install --dir .claude/skills
```

If your agent has no skills folder, print the file and add it to the agent's instructions:

```sh theme={null}
pari skill print > PARI.md
```

**3. Give it a keypair path**

Give the agent a path to a keypair file, never the key itself. Use a wallet made for testing, with nothing of value in it.

```sh theme={null}
export PARI_KEYPAIR=~/.config/solana/id.json
```

**4. Ask in plain words**

```text theme={null}
Launch a devnet token called Cat with the standard preset. Use my metadata at https://example.com/cat.json. Show me the dry run first.
```

```text theme={null}
Quote a buy of 0.1 SOL for this mint and tell me the fee: <mint>
```

The skill tells the agent to work in this order: run the command without `--send`, read the simulation, the quote and the fee, and repeat with `--send` only if the result is right.

## llms.txt

`llms.txt` is a short plain-text index of the docs, made for language models. Point your agent at it when it needs to find a page:

```sh theme={null}
curl -s https://pariprotocol.xyz/llms.txt
```

Or paste this into your prompt:

```text theme={null}
Read https://pariprotocol.xyz/llms.txt first, then use the pages it links to.
```

## Using the SDK with an agent

The skill covers the CLI. If your agent writes code, point it at the [SDK](https://docs.pariprotocol.xyz/build/sdk.md) and [REST API](https://docs.pariprotocol.xyz/build/rest-api.md) pages too. Tell it to use only names shown there.

To read data, an agent needs no key at all:

```sh theme={null}
curl -s https://api.pariprotocol.xyz/v1/status
```

## Numbers and limits

| | |
| - | - |
| Networks | Devnet only today |
| Refused buy | Exit code 2 |
| Keys in chat | The skill tells the agent to refuse them and never print one. The CLI only takes a file path |

## What can go wrong

> [accordion] A buy is refused by the fee guard
>
> The CLI refuses a buy whose fee is over `--max-fee-bps`, and exits with code 2. The skill tells the agent not to raise that limit unless you say so, with the number. After a refused buy, the agent should report the fee and wait.

> [accordion] The agent invents a function
>
> Tell it to use only names shown on the [SDK](https://docs.pariprotocol.xyz/build/sdk.md) and [REST API](https://docs.pariprotocol.xyz/build/rest-api.md) pages.

## Next

> [card] [CLI](https://docs.pariprotocol.xyz/build/cli.md)
>
> Every command, with an example to copy.

> [card] [SDK](https://docs.pariprotocol.xyz/build/sdk.md)
>
> Read data and build unsigned transactions.


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