Skip to content

five-on-it / apps/creator/src/config

apps/creator/src/config ​

The creator runner's configuration, read from the environment once at start.

VariableDefaultWhat
FOI_CREATORofffake (the scripted model, fake-model.ts), openrouter or claude (Anthropic's API, claude.ts); off runs nothing.
FOI_CREATOR_SECRETThe runners' secret the API shares (16 characters at least).
FOI_API_URLhttp://localhost:8080The platform API, straight (never through the stack's proxy).
FOI_WEB_URLhttp://localhost:5173The web client, which the tools' links point at.
FOI_CREATOR_CONCURRENCY1How many creations this process runs at once.
FOI_CREATOR_FAKE_DELAY_MS400How long each turn of the scripted model takes.
FOI_CREATOR_FAKE_BLURBits ownThe blurb the scripted model writes into its games (the tests' blocked word, to see moderation refuse it).
OPENROUTER_API_KEYOpenRouter's key, for openrouter (the platform's own; never a creator's).
ANTHROPIC_API_KEYAnthropic's key, for claude (the platform's own; never a creator's).
FOI_CREATOR_MODELSgoogle/gemini-2.5-flash,openai/gpt-4.1-mini; with claude, claude-haiku-5-5The models, the first asked and the others its fallbacks, until the evals choose (npm run creator:eval); their prices are OpenRouter's, read at start, or Anthropic's list prices (claude.ts).
FOI_CREATOR_PRICEWith claude, the price of a model the list does not know: dollars a million tokens in and out (1,5).

Interfaces ​

Functions ​