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

# Configuration

> Environment variables for AI compilation, Solana, TxLINE authentication, deployment gates, and keeper operations.

# Configuration reference

## AI Rulebook compiler

| Variable             | Required by                  | Behavior                                                                                      |
| -------------------- | ---------------------------- | --------------------------------------------------------------------------------------------- |
| `SLIP_RULE_PROVIDER` | Web server, live SDK AI test | Must be `ollama` or `gateway`; there is no automatic fallback.                                |
| `SLIP_RULE_MODEL`    | Web server, live SDK AI test | Exact Ollama model name or AI Gateway model identifier.                                       |
| `OLLAMA_BASE_URL`    | Ollama mode                  | Server-side Ollama API, including an MBP LAN address such as `http://192.168.1.95:11434/api`. |
| `AI_GATEWAY_API_KEY` | Gateway mode                 | Server-only Vercel AI Gateway credential. Never use a `NEXT_PUBLIC_` prefix.                  |

The creation page and `POST /api/v1/compile` fail closed when the selected provider is incomplete.
Ollama does not require a cloud key. The SDK also accepts any AI SDK `LanguageModel` without changing
Slip's canonical validation. See [Run Rulebook AI on an MBP](/how-to-use-ollama).

## Solana

| Variable                        | Required by               | Behavior                                                                         |
| ------------------------------- | ------------------------- | -------------------------------------------------------------------------------- |
| `SOLANA_RPC_DEVNET`             | Server, keeper            | Credential-capable RPC used for reads and keeper transactions.                   |
| `NEXT_PUBLIC_SOLANA_RPC_DEVNET` | Browser                   | Public RPC used for wallet simulation and submission. Never include credentials. |
| `SLIP_DEVNET_USDT_MINT`         | Keeper and tooling        | Six-decimal classic SPL settlement mint.                                         |
| `KEEPER_KEYPAIR_PATH`           | Keeper                    | Funded signer used to pay resolver transaction fees and receive disclosed tips.  |
| `ACTIVATION_KEYPAIR_PATH`       | TxLINE activation scripts | Wallet that subscribes to and activates TxLINE access.                           |

## Deployment gate

| Variable                          | Default | Behavior                                                                                                              |
| --------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------- |
| `NEXT_PUBLIC_SLIP_MARKET_ENABLED` | `false` | Shows create, stake, and claim controls only when `true`. Set only for an RPC running the checked-in unified program. |

This flag does not upgrade or detect a binary by itself. It is an operator assertion made after
deployment and a live lifecycle check. With the flag false, market reads remain available but writes
are absent from the UI.

Market creation additionally requires the AI variables above. A deployed program alone does not
cause the UI to expose a nonfunctional natural-language compiler.

## TxLINE

| Variable                   | Required                    | Behavior                                                                                      |
| -------------------------- | --------------------------- | --------------------------------------------------------------------------------------------- |
| `TXLINE_DEVNET_ORIGIN`     | No                          | Defaults to `https://txline-dev.txodds.com`.                                                  |
| `TXLINE_MAINNET_ORIGIN`    | No                          | Mainnet origin for future deployment tooling.                                                 |
| `TXLINE_API_TOKEN`         | Yes for web and keeper data | Activated token sent as `X-Api-Token`. `TxlineClient` fails precisely when it is unavailable. |
| `TXLINE_DEVNET_PROGRAM_ID` | Tooling                     | TxLINE devnet program address.                                                                |
| `TXLINE_DEVNET_TXL_MINT`   | Activation                  | Token-2022 TxL utility mint used by subscription accounts.                                    |
| `TXLINE_SERVICE_LEVEL`     | No                          | Defaults to free World Cup level 1.                                                           |
| `TXLINE_DURATION_WEEKS`    | No                          | Defaults to 4 and must be a multiple of 4.                                                    |

## Keeper operations

| Variable                   |              Default | Behavior                                                               |
| -------------------------- | -------------------: | ---------------------------------------------------------------------- |
| `KEEPER_POLL_MS`           |              `30000` | Delay between market scans.                                            |
| `KEEPER_SETTLE_RETRIES`    |                  `6` | Reserved settlement retry configuration.                               |
| `KEEPER_RETRY_BASE_MS`     |              `15000` | Base durable backoff interval after failure.                           |
| `KEEPER_STATE_PATH`        | `.keeper/state.json` | Durable attempt and completion state; file permissions are restricted. |
| `KEEPER_HEALTH_PORT`       |               `8787` | Loopback HTTP health port.                                             |
| `KEEPER_ALERT_WEBHOOK_URL` |                unset | Optional HTTP(S) target for Tier-A and pass-failure alerts.            |

Invalid or missing required keeper variables fail during startup. There is no local or sample fallback.
