Configuration

The server reads its settings from environment values (on the main server: data/server.env, mode 0600). Only per-tool autonomy can change at run time, through PATCH /v1/config (owner). Model choices change through PATCH /v1/models, keys through PUT /v1/secrets/{name}.

Defaults below are read from server/src/config.rs and the modules that use them.

SettingDefaultWhat it does
AGENT_PORT8787Port to listen on.
AGENT_BIND127.0.0.1Address to listen on. Anything else is opt-in; use a private tunnel.
AGENT_ALLOWED_HOSTS(none)Extra Host values accepted besides 127.0.0.1:.
AGENT_ALLOWED_ORIGINS(none)Browser origins allowed (the app's page: https://appassets.androidplatform.net).
AGENT_DATA_DIRdataWhere the database, tokens and files live.
AGENT_PLUGINS_DIRpluginsPlugin folder.
AGENT_PROMPTS_DIRpromptsPrompt folder.
AGENT_SINGLE_USERoff1 = old one-owner mode, no accounts.
AGENT_DB_KEY(key file)DB passphrase; else data/db.key is made.
AGENT_MODEL_KINDopenaiopenai (any OpenAI-compatible API) or mock.
AGENT_MODEL_BASE_URLhttp://127.0.0.1:11434/v1Model API address for the env profile.
AGENT_MODEL_NAMEllama3.1Model name for the env profile.
AGENT_MODEL_API_KEY(none)Key for the env profile.
AGENT_MODEL_MODEautoDefault model mode (Models).
AGENT_LOCAL_MODEL_BASEhttp://127.0.0.1:11434/v1Local model server (Ollama).
AGENT_MOCK_SCRIPT(none)Scripted replies for mock.
AGENT_LUMO_URL / _TOKEN / _TIMEOUT_SECS / _COOLDOWN_MINSoff / - / 300 / 30Lumo browser bridge (Models).
AGENT_PRICE_<PROFILE>_PER_MTOK(none)Price per million tokens, for the usage panel.
AGENT_MAX_TOKENS_PER_DAY2000000Cloud tokens per day. 0 = no cap. Local models never count.
AGENT_SUMMARY_AT_TOKENS12000When long chats are summed up. 0 = never.
AGENT_APPROVAL_WAIT_SECS600How long a turn waits for a yes (Approvals).
AGENT_SENSITIVE_TO_CLOUDaskask, never or allow: sensitive memory and cloud models.
AGENT_TIMEZONEsystem zoneTime zone for jobs.
AGENT_QUIET_HOURS22:00-07:00Quiet hours for notices.
AGENT_NOTICES_PER_DAY10Daily cap on unasked notices.
AGENT_DREAMING_HOUR3Hour of the nightly dreaming run.
AGENT_DREAM_EVERY_MINS120Dream by itself when notes wait. 0 = off.
AGENT_MEMORY_CORE / AGENT_MEMORY_RECENTonoff hides the core / recent index lines.
AGENT_MINDonoff stops the Mind task being made.
AGENT_EMBED_MODEL / AGENT_EMBED_URLoff / http://127.0.0.1:11434/v1Search by meaning (Memory).
AGENT_TTS_URLoffLocal voice service for /v1/speech (loopback only).
AGENT_FILES_ROOT~/DocumentsThe only folder the files plugin may use.
AGENT_TERM_CWD / AGENT_TERM_ALLOW~ / built-in listTerminal work folder and allowed programs.
AGENT_UNSAFE_NO_SANDBOXoff1 runs tools with no sandbox. Unsafe.
AGENT_PROXY, AGENT_PROXY_SOCK, AGENT_RUNNER_EXE(set by core)Used by the core for tool runs.
AGENT_LOCATION_KEEP_DAYS90Days raw location points are kept.
AGENT_GEOCODE_BASEhttps://nominatim.openstreetmap.orgPlace names and address lookup.
AGENT_ROUTING_BASEhttps://router.project-osrm.orgTravel times.
AGENT_WEATHER_BASE / AGENT_BRIEF_WEATHER_BASEhttps://api.open-meteo.comWeather for leaving home and the brief. off skips.
AGENT_SPOTIFY_API, AGENT_OAUTH_BASE, AGENT_GMAIL_API, AGENT_GOOGLE_HEALTH_API, AGENT_GOOGLE_AUTH_URL, AGENT_GOOGLE_TOKEN_URL, AGENT_HEVY_APIthe real servicesService addresses, changed for tests.
AGENT_TRACE_KEEP_DAYS30Days full model requests are kept (Audit).
AGENT_AUTO_REPORTSonoff stops automatic reports.
AGENT_EVAL_CASES, AGENT_EVAL_SERVER, AGENT_EVAL_TOKENevals/cases.jsonModel tests.
AGENT_POWER_IDLE_W / _MAX_W / _PRICE_KWH(estimates)Power estimate for the usage panel.
AGENT_CURRENCY(none)Currency shown for money.

Never commit keys or server.env. Secrets for plugins (for example HEVY_API_KEY) are set with PUT /v1/secrets/{name} and stored in the encrypted database.

Cost limits

The design for budgets is in Turn engine, Cost limits.