# Other

> pay fetch and pay install — the built-in HTTP client and the shorthand for adding provider sources.

Two commands that don't fit the larger groups but you'll reach for often.

## `pay fetch`

Fetch a URL using the built-in HTTP client. Useful when `curl`, `wget`, and `http` aren't installed (e.g. in a minimal container) or when you want a deterministic implementation that doesn't depend on the system tool's version.

```sh
pay --sandbox fetch https://payment-debugger.vercel.app/mpp/quote/AAPL
pay --sandbox fetch https://example.gateway/v1/search \
  -H 'content-type: application/json'
```

| Flag              | Type       | Default | Description                                                     |
| ----------------- | ---------- | ------- | --------------------------------------------------------------- |
| `<URL>`           | positional | —       | URL to fetch. Required.                                         |
| `--header` (`-H`) | repeatable | —       | Extra header in `Key: Value` format. Pass `-H` once per header. |

`pay fetch` handles HTTP 402 the same way as `pay curl`: decode the challenge, sign with the active account, retry with the credential.

## `pay install`

Add a provider source — shorthand for [`pay skills add`](/docs/toolchain/commands/agents#pay-skills-add). Aliases: `add`. Short flag: `-i`.

```sh
pay install solana-foundation/pay-skills
pay -i solana-foundation/pay-skills
pay add solana-foundation/pay-skills
```

| Flag       | Type       | Description                              |
| ---------- | ---------- | ---------------------------------------- |
| `<SOURCE>` | positional | GitHub `org/repo` or full URL. Required. |
