Skip to main content

Configuration reference

AI Rulebook compiler

VariableRequired byBehavior
SLIP_RULE_PROVIDERWeb server, live SDK AI testMust be ollama or gateway; there is no automatic fallback.
SLIP_RULE_MODELWeb server, live SDK AI testExact Ollama model name or AI Gateway model identifier.
OLLAMA_BASE_URLOllama modeServer-side Ollama API, including an MBP LAN address such as http://192.168.1.95:11434/api.
AI_GATEWAY_API_KEYGateway modeServer-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.

Solana

VariableRequired byBehavior
SOLANA_RPC_DEVNETServer, keeperCredential-capable RPC used for reads and keeper transactions.
NEXT_PUBLIC_SOLANA_RPC_DEVNETBrowserPublic RPC used for wallet simulation and submission. Never include credentials.
SLIP_DEVNET_USDT_MINTKeeper and toolingSix-decimal classic SPL settlement mint.
KEEPER_KEYPAIR_PATHKeeperFunded signer used to pay resolver transaction fees and receive disclosed tips.
ACTIVATION_KEYPAIR_PATHTxLINE activation scriptsWallet that subscribes to and activates TxLINE access.

Deployment gate

VariableDefaultBehavior
NEXT_PUBLIC_SLIP_MARKET_ENABLEDfalseShows 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

VariableRequiredBehavior
TXLINE_DEVNET_ORIGINNoDefaults to https://txline-dev.txodds.com.
TXLINE_MAINNET_ORIGINNoMainnet origin for future deployment tooling.
TXLINE_API_TOKENYes for web and keeper dataActivated token sent as X-Api-Token. TxlineClient fails precisely when it is unavailable.
TXLINE_DEVNET_PROGRAM_IDToolingTxLINE devnet program address.
TXLINE_DEVNET_TXL_MINTActivationToken-2022 TxL utility mint used by subscription accounts.
TXLINE_SERVICE_LEVELNoDefaults to free World Cup level 1.
TXLINE_DURATION_WEEKSNoDefaults to 4 and must be a multiple of 4.

Keeper operations

VariableDefaultBehavior
KEEPER_POLL_MS30000Delay between market scans.
KEEPER_SETTLE_RETRIES6Reserved settlement retry configuration.
KEEPER_RETRY_BASE_MS15000Base durable backoff interval after failure.
KEEPER_STATE_PATH.keeper/state.jsonDurable attempt and completion state; file permissions are restricted.
KEEPER_HEALTH_PORT8787Loopback HTTP health port.
KEEPER_ALERT_WEBHOOK_URLunsetOptional 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.