Environment variables

Splice reads configuration only from the variables listed here. Provider variables are read from the process environment first, then from the file named by SPLICE_ENV_FILE, else the nearest .env.local / .env (current folder or a parent), else ~/.splice/.env (SPLICE_HOME/.env); no other variable in those files is parsed. Values are never printed — splice setup shows only whether each one is set.

splice setup --init                      # creates ~/.splice/.env (keys for every folder)
splice setup                             # what is set, what each key unlocks
splice setup --template > .env.local     # a per-project file instead

CLI and registry

VariablePurpose
SPLICE_REGISTRYRegistry URL or alias (local, production)
SPLICE_TOKENRegistry token (overrides the saved one)
SPLICE_HOMESplice user folder (default ~/.splice)
SPLICE_MCP_TOKENBearer token for splice mcp --http (at least 24 characters)
SPLICE_ENV_FILEExplicit provider env file
NO_COLORDisable colored output

Providers

VariableProviderWithout it
ALCHEMY_RPC_URL or ALCHEMY_API_KEYAlchemy RPCother RPC providers answer
QUICKNODE_RPC_URLQuickNode RPC—
GOLDSKY_API_KEYGoldsky Edge RPC (gs_edge_… key)—
ROBINHOOD_PUBLIC_RPC_URLPublic RPC override; off disables itthe official public RPC is used
BLOCKSCOUT_API_KEYBlockscout PRO (indexed data)indexed sections are unavailable
COINGECKO_API_KEYCoinGecko demo keykeyless prices; no DEX pools
GOPLUS_APP_KEY + GOPLUS_APP_SECRETGoPlus authenticated accessanonymous access, lower limits
ZERION_API_KEYZerion portfoliosportfolio unavailable
THEGRAPH_API_KEY, STREAMINGFAST_API_TOKENThe Graph gateway / Token APIsubgraph queries unavailable
OPENROUTER_API_KEYOpenRouterAI unavailable unless Gemini is configured
GEMINI_API_KEYGemini—
TAVILY_API_KEY, EXA_API_KEY, FIRECRAWL_API_KEYWeb search and extractionweb capabilities unavailable without one
GITHUB_TOKENGitHub (5,000 requests/hour, code search)anonymous API, 60 requests/hour

Routing (not secret)

VariablePurpose
AI_PROVIDERDefault AI provider (openrouter)
AI_DEFAULT_MODELDefault model for AI_PROVIDER
GEMINI_DEFAULT_MODELDefault model when the Gemini provider is requested
AI_FALLBACK_PROVIDER, AI_FALLBACK_MODELExplicit AI fallback (both required)
GITHUB_API_VERSIONX-GitHub-Api-Version header (default 2022-11-28)

Sandboxed skills receive none of these. A skill gets an environment variable only if it declares it in permissions.env and you grant it at install.