The server reads its settings from the env object you pass to PilotooModule.forRoot, usually process.env. Nothing is required except a database and a model key. This page lists the variables you will touch first; the rest are documented next to the feature they control.
An agent runs on a profile, and a profile names a provider. A provider is either a file in .pilotoo/providers/ or one the environment configures by name.
Variable
Purpose
AI_DEEPSEEK_API_KEY
Configures the deepseek provider. AI_DEEPSEEK_BASE_URL overrides its endpoint.
OPENAI_API_KEY
Configures the openai provider. OPENAI_BASE_URL overrides its endpoint.
ANTHROPIC_API_KEY
Configures the anthropic provider. ANTHROPIC_BASE_URL overrides its endpoint.
ANTHROPIC_BEDROCK_REGION
Configures anthropic-bedrock. AWS_BEARER_TOKEN_BEDROCK supplies its key.
Your own variable
A provider file names the variable that holds its key in apiKeyEnv, for example DEEPSEEK_API_KEY.
A URL the server calls with the caller’s credentials to learn who they are. Unset, every caller is { subject: 'local', tenant: 'local', roles: ['owner'] }.
AUTH_IDENTITY_TIMEOUT_MS
How long to wait for that URL.
See Authentication for the response the URL must return and for writing your own resolver.