Skip to main content

Configuration reference

Every server setting NeoAgent reads from its environment file, with its default and what needs it.

🛠️ Change a setting​

  • The file. ~/.neoagent/.env, or .env under NEOAGENT_HOME.
  • The app. The Admin tabs (Providers, Integrations, Configuration) write the same file. Desktop installs have no CLI, so use these.
  • Restart afterwards. Most values are read once at startup.
neoagent env list # every value, secrets masked
neoagent env get PORT # one value, unmasked
neoagent env set PORT 3400
neoagent env unset PORT
neoagent restart
  • Nothing is required to start. Secrets are generated on first start. Required below marks values a feature can't work without.
  • Setup bookkeeping. NEOAGENT_SETUP_PROFILE and NEOAGENT_SETUP_COMPLETED_SECTIONS are written by setup. Leave them alone.

🖧 Core server​

VariableDefaultPurpose
PORT3333, or the next free port at setupHTTP port
PUBLIC_URLunsetPublic base URL for OAuth callbacks, email links and the address users are given
ALLOWED_ORIGINSunset: loopback origins onlyComma-separated browser origins allowed to sign in and save changes. Once set, list http://localhost:<PORT> too
SECURE_COOKIEStrue when PUBLIC_URL starts with https://HTTPS-only session cookies. Setup writes false when there is no PUBLIC_URL
TRUST_PROXYfollows SECURE_COOKIESTrust the reverse proxy's forwarded headers
NEOAGENT_HSTS_MAX_AGE86400HSTS max-age in seconds, sent while secure cookies are on
NODE_ENVproductionNode environment
NEOAGENT_INSTANCE_NAMEhost nameName shown to nearby apps; read on first start only
NEOAGENT_DISABLE_MDNSunsettrue stops advertising _neoagent._tcp.local on the local network

Exposing the server: see Reach it from other devices.

🔐 Secrets​

VariableDefaultPurpose
SESSION_SECRETgenerated on first startSigns sessions; fallback key for both encryption keys below
NEOAGENT_DATA_ENCRYPTION_KEYSESSION_SECRETEncrypts local secrets at rest
NEOAGENT_ENCRYPTION_KEYSESSION_SECRETEncrypts official integration tokens
NEOAGENT_VM_GUEST_TOKENgenerated on first startAuthenticates the server to each cloud computer
Keep secrets stable
  • Changing SESSION_SECRET signs everyone out. Without the two dedicated encryption keys, stored credentials also become unreadable.
  • Never reuse example values from docs or issue reports.

👥 Accounts and limits​

VariableDefaultPurpose
NEOAGENT_ADMIN_USERSunsetUsernames made admin on every start. Removing a name does not revoke; use neoagent admin revoke <user>
NEOAGENT_ALLOW_SIGNUPonfalse, 0 or no makes new accounts need a one-time sign-up key from an admin. A server with no accounts always lets the first one register
NEOAGENT_RATE_LIMIT_4H2500000Tokens per user per rolling 4 hours
NEOAGENT_RATE_LIMIT_WEEKLY10000000Tokens per user per rolling 7 days
NEOAGENT_DISABLE_RATE_LIMITSunsettrue turns both limits off for everyone
  • In the app. Admins change the defaults and per-user limits in the Admin tab.
  • Own keys are exempt. Models running on a user's own key skip the server limits.

🔄 Updates and install location​

VariableDefaultPurpose
NEOAGENT_RELEASE_CHANNELstablestable or beta; change it with neoagent channel
NEOAGENT_DEPLOYMENT_MODEself_hostedmanaged turns off in-app updates
NEOAGENT_HOME~/.neoagentRuntime root. Set it in the shell before installing; the background service keeps it
NEOAGENT_SOURCE_DIR~/NeoAgentWhere neoagent update moves an old package-style install

🧠 Model providers​

VariableProviderNotes
OPENAI_API_KEYOpenAIAlso memory embeddings, voice-note transcription and GPT-Live calls
ANTHROPIC_API_KEYAnthropic
GOOGLE_AI_KEYGoogle GeminiAlso embeddings, transcription and Gemini Live calls
XAI_API_KEYxAIAlso image generation
MINIMAX_API_KEYMiniMax CodeCoding Plan key
NVIDIA_API_KEYNVIDIA NIM
OPENROUTER_API_KEYOpenRouterAlso SystemOne models
TYPESAFE_API_KEYTypeSafeSystemOne models only
OPENAI_COMPATIBLE_API_KEYCustom OpenAI-compatibleRequired with the base URL below
OPENAI_COMPATIBLE_BASE_URLCustom OpenAI-compatibleRequired with the key above
OLLAMA_URLOllamaDefault http://localhost:11434
Endpoint overrideDefault
OPENAI_BASE_URLOpenAI's API
ANTHROPIC_BASE_URLAnthropic's API
XAI_BASE_URLhttps://api.x.ai/v1
OPENAI_CODEX_BASE_URLhttps://chatgpt.com/backend-api/codex
GITHUB_COPILOT_BASE_URLhttps://api.githubcopilot.com
  • Account sign-ins. neoagent login writes CLAUDE_CODE_OAUTH_TOKEN, OPENAI_CODEX_ACCESS_TOKEN, GITHUB_COPILOT_ACCESS_TOKEN or GROK_OAUTH_ACCESS_TOKEN. See Models.

🎙️ Search, voice and media​

VariableDefaultPurpose
BRAVE_SEARCH_API_KEYunsetRequired for the web_search tool
DEEPGRAM_API_KEYunsetVoice-note and dictation transcription with Deepgram Nova-3
VOICE_LIVE_PROVIDERopenaiDefault live voice provider: openai (GPT-Live) or google (Gemini Live)
VOICE_LIVE_MODELnewest live model the provider listsDefault live voice model
VOICE_LIVE_VOICEmarin (OpenAI), Kore (Google)Default live voice
YT_DLP_BINyt-dlpyt-dlp binary for video and audio downloads
FFMPEG_BINffmpegffmpeg binary for media conversion
  • In the app. Admins set the live voice defaults under Admin › Integrations › Live voice.
  • Per account. Each account can pick its own live voice provider, model and voice under Settings › Voice.

🔌 Official integrations​

  • Per user by default. Each user registers their own OAuth app in the app; no server setup is needed.
  • Optional global app. <PREFIX>_OAUTH_CLIENT_ID and <PREFIX>_OAUTH_CLIENT_SECRET (prefixes GOOGLE, MICROSOFT, GITHUB, NOTION, SLACK, FIGMA, SPOTIFY), or TRELLO_API_KEY, apply one app to every account, so users only connect their accounts. Set them under Admin › Integrations.
  • OpenRouter account sign-in. The same category has an enable switch backed by NEOAGENT_OPENROUTER_SIGN_IN_ENABLED (default true). Disabling it blocks registration, login, and account linking immediately; existing sessions and model keys keep working.
  • No server setup. Home Assistant and Nextcloud are connected per account in the app.
  • Messaging channels. Configured per agent under Settings › Messaging, not here.

📧 Service email​

Optional SMTP for account confirmation, password reset and security notices; the agent can't read or send from this mailbox.

VariableDefaultPurpose
NEOAGENT_EMAIL_SMTP_HOSTunsetRequired to turn service email on
NEOAGENT_EMAIL_FROMunsetRequired; sender address
NEOAGENT_EMAIL_SMTP_PORT587SMTP port
NEOAGENT_EMAIL_SMTP_USERunsetSMTP user
NEOAGENT_EMAIL_SMTP_PASSunsetSMTP password
NEOAGENT_EMAIL_SMTP_SECUREtrue on port 465, else falseImplicit TLS
NEOAGENT_EMAIL_SMTP_REQUIRE_TLSopposite of SECURERequire STARTTLS
NEOAGENT_EMAIL_SMTP_REJECT_UNAUTHORIZEDtrueReject invalid certificates
NEOAGENT_EMAIL_REPLY_TOunsetReply-To address
NEOAGENT_EMAIL_BRAND_NAMENeoAgentName used in emails
NEOAGENT_EMAIL_SUPPORT_URLunsetSupport link in emails
NEOAGENT_EMAIL_PUBLIC_URLPUBLIC_URLBase URL for links in emails
NEOAGENT_EMAIL_TOKEN_TTL_HOURS24Confirmation and reset link lifetime
NEOAGENT_EMAIL_REQUIRE_SIGNUP_CONFIRMATIONtrueNew accounts confirm their email
NEOAGENT_EMAIL_REQUIRE_EMAIL_CHANGE_CONFIRMATIONtrueEmail changes are confirmed
NEOAGENT_EMAIL_NOTIFY_UNUSUAL_LOGINtrueAlert on unusual sign-ins
NEOAGENT_EMAIL_NOTIFY_ACCOUNT_CHANGEStrueAlert on account changes

The confirmation and notification switches apply only once SMTP is configured.

🖥️ Cloud computer​

VariableDefaultPurpose
TERMINAL_ENVqemuWhere each user's cloud computer runs: qemu, docker or host
NEOAGENT_VM_BASE_IMAGEunsetLocal guest image to use instead of the pinned Debian image (qemu)
NEOAGENT_GUEST_BASE_IMAGEnode:22-bookworm-slimBase image for the guest build (docker)
NEOAGENT_COMPUTER_MAX_MEMORY_MB2560Most memory one computer gets; also set under Admin › Configuration
NEOAGENT_COMPUTER_MIN_MEMORY_MB1536Least memory one computer needs; limits how many run at once
NEOAGENT_COMPUTER_MAX_CPUS2Most vCPUs per computer; also set under Admin › Configuration
NEOAGENT_COMPUTER_HOST_MEMORY_RESERVE_PERCENT25Host memory kept free, at least NEOAGENT_COMPUTER_HOST_MEMORY_RESERVE_MB (default 2048)
NEOAGENT_COMPUTER_MIN_DISK_GIB6Smallest disk per computer
NEOAGENT_COMPUTER_MAX_DISK_GIB12Largest disk per computer
NEOAGENT_COMPUTER_STORAGE_RESERVE_PERCENT20Free disk space kept for the host
NEOAGENT_VM_IDLE_TIMEOUT_MS600000Idle time before a computer shuts down
NEOAGENT_WEB_SHARINGtrueWhether agents may share web pages; false hides the option from everyone and takes every shared link down. Also under Admin › Config › Cloud computers
TERMINAL_ENVIsolationTrade-offs
qemuPer-user micro-VMDesktop view; downloads a pinned Debian image (about 1 GB); fast with KVM, HVF or WHPX
dockerPer-user containerStarts in seconds; builds a local image instead of downloading one; shares the host kernel; no desktop view
hostNoneRuns as the server's OS user; shell and workspace files only; one trusted account
  • Switching backends. Run neoagent repair afterwards; it prepares the guest for the selected backend.
  • host warning. The server logs a warning naming the machine on every start.

📁 Runtime paths​

PathContents
~/.neoagent/.envSettings and secrets
~/.neoagent/data/SQLite database, logs, cloud computer disks
~/.neoagent/agent-data/Skills and memory files
~/.neoagent/backups/Backups from neoagent backup, update and repair

The commented template is .env.example.