This page lists the environment variables Javis OS reads at startup, with their meaning, default value and when you would change them. The content follows the env.example file and how the server actually reads os.getenv(...) in the source (server/config.py, server/main.py, server/web_security.py, server/claude_cli.py, server/sessions.py, server/plugins_host.py…).
The most important thing to remember: everything runs with every line left empty. On a personal machine you barely ever need to touch .env. Editing it is mainly for putting Javis on a VPS or public server, or for changing the voice, the port or the data paths.
If you install through Hostinger Docker Manager, you do not need the full advanced list below. The Hostinger compose file surfaces only 3 user fields in the Environment box: DOMAIN_NAME, JAVIS_ADMIN_USER, JAVIS_ADMIN_PASSWORD, plus one optional JAVIS_AUTO_UPDATE. The internal variables for ports, state, brains and the working folder are already inside the Docker image.
What this feature is
.env is a text file in the project root (the folder holding env.example, docker-compose.yml and the server/ folder). Each line is a variable shaped VARIABLE_NAME=value. When Javis starts, it reads them to learn: which port to listen on, whether login is required, where the Second Brain data lives, what the default voice is.
Three configuration places need to be kept apart:
- The
.envfile: system-level settings, read once at startup. A change only takes effect after restarting Javis. - The ⚙ Settings panel in the app (the Account, Models, Admin channels pages…): settings changed live through the interface, saved into
settings.json, no file editing. For example: switching model, the OpenRouter API key, the Telegram token, the custom domain, the logo. More in Models and engines, Security and accounts, Branding and domains. - A few
settings.jsonkeys with no interface: currently themediablock (the rules for clearing images and temporary files). Changing them means opening the file by hand. See the dedicated section below.
In short: .env handles “where it runs, who gets in, where the data lives”. The in-app Settings panel handles “which model, which key, which voice”. settings.json is where the two meet, and a few rare keys can only be edited there.
Where to open it in Javis
.env has no button in the dashboard. It is a file you create and edit in a text editor (Notepad, VS Code…).
Creating the .env file the first time:
- Open the project root (where you downloaded or unzipped Javis; on Docker that is
/appinside the image, while.envsits next todocker-compose.ymlon the host). - Find the template file
env.example. The name deliberately has NO leading dot, and the file holds only 4NAME=valuelines (WORKSPACE_NAME,USER_NAME,TTS_VOICE,TTS_RATE) with no comment lines. The reason: Hostinger’s Docker Manager scans config files and pours their content into the Environment box, where old comment lines turned into invalid variable names. - Copy it and rename the copy to
.env(the copy DOES have the leading dot, and no.txtextension). Theinstall.shandinstall.ps1installers do this step for you when there is no.envyet. - Open
.envin an editor. Change a value already there, or add oneVARIABLE_NAME=valueline for each other variable you want to set (see the tables below). - Save the file. Restart Javis.
The quick way to copy by command (run in the project folder):
- Windows PowerShell:
Copy-Item env.example .env - Git Bash / Linux / macOS:
cp env.example .env
A note on #: a line starting with # is a comment and Javis ignores it. To switch a variable off for a while, put # at the start of its line or delete the line. For example, to change the port add the line JAVIS_PORT=8080.
Docker users, take note: with docker-compose.yml (pulling the ready-made image), the .env next to the compose file only fills in the variables the compose file mentions: JAVIS_ADMIN_USER, JAVIS_ADMIN_PASSWORD, WATCHTOWER_TOKEN, JAVIS_NAME, JAVIS_BIND, JAVIS_HOST_PORT, JAVIS_AUTO_UPDATE, JAVIS_AUTO_UPDATE_INTERVAL. For any other variable in the tables below to reach the container, add it under environment: of the javis service in the compose file, then recreate the container. The build-from-source file (docker-compose.build.yml) loads the whole .env into the container.
The list of variables
Grouped by function. The “Default” column is the value used when you leave it empty or do not declare it. Groups 1 to 5 are the ones users normally touch; groups 6 and 7 are advanced and almost never need editing.
Group 1: Workspace display
| Variable | Meaning | Default | When to change |
|---|---|---|---|
WORKSPACE_NAME |
The workspace name shown on the dashboard | Javis OS |
You want your own name for the workspace. Note: if you already set a name in the app, the app’s saved name wins and this variable is only a fallback. |
USER_NAME |
Your name. Javis uses it as the account name shown in your two-factor authenticator app (for example “Javis OS: Quy”), instead of the login name | Bạn (“you”; this value is ignored and the authenticator shows the login name) |
You want the 2FA app on your phone to show your name instead of admin. |
Group 2: Network (port and listening address)
| Variable | Meaning | Default | When to change |
|---|---|---|---|
JAVIS_HOST |
The address the server listens on. 127.0.0.1 = only this machine can reach it. 0.0.0.0 = listen everywhere (public, anyone with the address gets in) |
127.0.0.1 (the Docker image presets 0.0.0.0) |
Only switch to 0.0.0.0 when running on a VPS/server and wanting access from other machines. You must then turn login on (see group 3). |
JAVIS_PORT |
The dashboard’s listening port | 7777 |
Port 7777 is taken or you want another one. After changing, open that port in the browser. On Docker leave this one alone (inside the container it is always 7777) and change JAVIS_HOST_PORT below. |
JAVIS_HOST_PORT |
(Docker) The port on the host mapped to the container’s port 7777 |
7777 |
Port 7777 on the host is taken, or you run a second Javis on the same VPS (for example 7778). |
JAVIS_BIND |
(Docker) The host address the port is opened on | 0.0.0.0 |
Running behind a shared reverse proxy: set 127.0.0.1 so only the proxy can reach it. |
JAVIS_NAME |
(Docker) The container name (the Hostinger compose also uses it as the Traefik router name) | javis |
Several Javis instances on one VPS: one folder each, one .env each with its own JAVIS_NAME and JAVIS_HOST_PORT. |
An important detail about JAVIS_HOST: Javis uses a “safe by default” rule. If the listening address is NOT loopback (anything other than 127.0.0.1, localhost, ::1), the server treats itself as public and turns forced login on so nobody gets in without an account. The reason: an AI brain runs with full power on the machine, and leaving it open is dangerous.
Group 3: Login and security
| Variable | Meaning | Default | When to change |
|---|---|---|---|
JAVIS_REQUIRE_LOGIN |
Force login on or off. 1/true/yes/on = on. 0/false/no/off = off |
Automatic (on when bound public) | Running on localhost but exposed through your own tunnel (Cloudflare, ngrok…): set JAVIS_REQUIRE_LOGIN=1 to keep strangers out. Turning on the built-in Remote access (Settings, General) always requires login, even with 0. |
JAVIS_ADMIN_USER |
The admin username created at deploy time | admin |
Set it alongside JAVIS_ADMIN_PASSWORD to preseed the account, so a public server is never without an admin. |
JAVIS_ADMIN_PASSWORD |
The admin password created at deploy time | (empty) | Public deploy: put a strong password here. With this variable set and no admin yet, Javis creates the admin at startup and closes the create-account screen entirely (the safest option for public). |
JAVIS_RESET_2FA |
Removes two-factor authentication ONCE at startup, when you are locked out by a lost phone or a 2FA someone else set up. Signs out every session and writes the security log | (empty) | Set 1, redeploy, sign in, set up a new 2FA, then remove the variable. Each value applies once, so a forgotten variable never wipes the new 2FA; to use it again set another value (the date, say). See If you suspect a takeover. |
JAVIS_SETUP_2FA |
Open the QR screen for two-factor auth on the Account page. 1 = open it |
Off | You want 2FA on from the first sign-in. This flag is only a reminder: it does NOT enable 2FA by itself. You must scan the QR and enter one correct code before it is really on, because switching it on before you have proved your app produces valid codes locks you out of your own account. You can turn 2FA on or off any time in Dashboard → Account without this variable. |
JAVIS_SECURE_COOKIE |
Send the cookie only over HTTPS. 1/true/yes/on = on |
Off | Only turn on when you are CERTAIN of end-to-end HTTPS (a custom domain with SSL). Turning it on by mistake behind an HTTP proxy causes a login loop (the right password still bounces you back to the sign-in page). |
JAVIS_ALLOWED_HOSTS |
Extra hostnames allowed to call Javis (CSRF and DNS-rebinding protection). Comma separated | (empty) | Running behind a reverse proxy on a domain not declared in the app, with no password set, and getting 403 “host not allowed”. localhost, 127.0.0.1, ::1 and the domain you set in Settings are already allowed. |
JAVIS_ENABLE_USER_PLUGINS |
The switch that turns off plugins you install. false stops loading them |
On | Since 0.162.0 plugins you install load by default; each one still runs only after you enable it in the app. Set false to block them on this machine (user plugins run REAL PYTHON CODE inside the server process). Old alias: JAVIS_ENABLE_VAULT_PLUGINS. Plugins bundled with the app are not subject to this switch. See Plugins. |
JAVIS_BLOCK_BOTS |
Answers 403 to self-declared AI bots, search engines, SEO tools and scanners, so a leaked admin link is neither read nor listed on Google. 0/false/no/off = off |
On | A service you use is blocked by mistake because its name is on the list. Turning it off removes only the 403 layer; the noindex header and /robots.txt stay. See Blocking search engines and AI bots. |
JAVIS_TERMINAL |
The switch that removes the Terminal (Capabilities group) entirely. 0/off/false/no = off |
On | You do not want any command line openable from a browser. The Terminal is already only open to a SIGNED-IN browser (API tokens cannot reach it), but many people still want it hard-locked at the server layer. See Terminal. |
JAVIS_TERMINAL_SHELL |
The shell the Terminal runs | $SHELL, falling back to bash/sh. Windows: powershell.exe then cmd.exe |
You want to force another shell (zsh, fish, cmd.exe). |
JAVIS_TERMINAL_CWD |
The folder the terminal opens in | The HOME of the user running Javis | You want the shell to open at the brain root or another project folder. |
JAVIS_AUTO_INSTALL_CLIS |
The Docker edition installs Antigravity CLI (agy) and Grok Build (grok) at startup when missing |
1 (on) |
Set 0 when the server has no Internet access or you do not want these two CLIs. Installed once, kept across updates; the install log is /data/home/.cli-auto-install/install.log. |
JAVIS_TERMINAL_REMOTE |
Tell the CLIs in the Terminal that the user sits at ANOTHER machine (sets SSH_CONNECTION) |
Auto: on when the server has no screen (VPS, Docker), off on native Windows/macOS and Linux with a display | Signing into agy, claude, codex… prints a link then sits there because they assume the browser is on this machine. Turn it on (1) so they ask where to paste the code. Turn it off (0) if the server really can open a browser for you (X11 forwarding, say). See Terminal. |
About the first admin account: when running public with no admin, opening the app the first time only asks for a username and password, so whoever opens the link first can create the admin. That is why you should preset JAVIS_ADMIN_USER + JAVIS_ADMIN_PASSWORD (install.sh already asks for them) so the server boots with an admin, or create the account right after deploying. Once signed in, turn on two-factor authentication (2FA). More in Security and accounts.
About custom domains and HTTPS: on a Caddy VPS you enter the domain right in Settings → General → Domain and SSL then click Enable SSL. On Hostinger the wizard prepares the DOMAIN_NAME variable for you to copy into Docker Manager before a Redeploy. When you access the proper domain over HTTPS, the server enables the Secure cookie by itself so JAVIS_SECURE_COOKIE need not be set manually. Details in Branding and domains.
Group 4: Data paths (Second Brain and state)
| Variable | Meaning | Default | When to change |
|---|---|---|---|
CLAUDE_CWD |
Fallback folder for a few side jobs of the Claude engine (source ingest, the terminal before a brain is chosen). Since 0.55.58 chat always runs inside the selected brain folder and no longer reads this variable, so files Javis creates from chat land inside the brain | The project root (Docker: /app) |
Almost never needed. |
BRAINS_DIR |
The parent folder holding every brain, one subfolder per Second Brain. The default brain is <BRAINS_DIR>/Brain Default |
brains/ in the project (Docker: /brains) |
You want the brains elsewhere (a separate data disk, a git-backup mount). |
OBSIDIAN_VAULT_PATH |
The path of the main Second Brain vault | vault/ in the project (Docker: /data/vault) |
If the server already has a real Obsidian vault, point this at it. Left empty, Javis uses the sample vault in the repo (so a fresh machine runs immediately). |
BRAIN_PATH |
The old-style brain folder from the single-brain era. Kept only to migrate old data | brain/ in the project (Docker: /data/brain) |
Almost never needed. Do not use it for a new install. |
SOURCES_PATH |
Where chat attachments are stored (as sources for the Second Brain) | brain/01 - Sources/ in the project |
You want the source folder somewhere else. |
JAVIS_STATE_DIR |
Where Javis writes its own state: settings.json, login sessions, recurring job configuration, the .secret_key encryption key, the conversation database |
server/ (Docker: /data/state) |
On Docker/VPS this must point at a writable volume (the source tree inside the container is read-only). On a personal machine, leaving it empty is fine. |
JAVIS_SESSIONS_DB |
The path of the database file holding conversation sessions (conversations.db) |
Inside JAVIS_STATE_DIR |
You want the session history file elsewhere. See Sessions. |
JAVIS_FILES_ROOT |
The browsing ceiling of the Files page (you cannot click “Up” beyond it). brain/vault = locked inside the brain; drive/root = the whole disk holding the brain; <path> = a specific folder (which must contain the brain) |
localhost: the whole disk; public bind: locked to the brain | Running public (VPS) but still wanting wide browsing: set drive or a parent folder. Wanting a hard lock inside the brain while running locally: set brain. |
A note about the Second Brain: BRAINS_DIR is the folder that actually holds your brains (not brain/ at the repo root, which is the old-style path). Left empty, it runs immediately with the sample data in the repo. Read more about how memory works in Second Brain: memory, Wiki, INGEST and Knowledge graph.
A warning about .secret_key: inside the JAVIS_STATE_DIR folder is a small file named .secret_key. It is the key that encrypts the secret fields in settings.json (OpenRouter/Anthropic/OpenAI/Gemini API keys, ChatGPT sign-in tokens, the Telegram token, the GitHub backup token, the ElevenLabs key). Copying settings.json to another machine while forgetting .secret_key means every key is lost: Javis cannot decrypt them, returns empty strings, and you must re-enter each one. Back up the pair together. If the machine lacks the cryptography library, Javis cannot encrypt: secrets fall back to the plain: prefix with a warning line in the log; pip install cryptography then restart and it is fixed. Details in Security and accounts.
Group 5: Voice (TTS)
| Variable | Meaning | Default | When to change |
|---|---|---|---|
TTS_VOICE |
The default reading voice (using free Edge TTS) | en-US-EmmaMultilingualNeural |
You want another voice. A male Vietnamese voice or a foreign-language voice, say. |
TTS_RATE |
Reading speed, as a plus/minus percentage | +5% |
Too fast, so lower it (+0% or -10%); faster, so raise it (+15%). |
Note: these two TTS variables apply to the default free Edge TTS voice. If you pick another voice provider (OpenAI TTS or ElevenLabs), that is configured in the app’s Settings panel rather than through .env. How to chat and turn voice on: Chat and voice.
Group 6: Deploy, domains and updates
| Variable | Meaning | Default | When to change |
|---|---|---|---|
DOMAIN_NAME |
The domain the reverse proxy (Hostinger’s Traefik) routes to Javis. Javis reads it to compare against the domain you entered in the app and to know whether a Redeploy is needed | (empty; the Hostinger compose sets localhost) |
Hostinger deploy: set it to your domain in Docker Manager then Redeploy. The in-app wizard has a Copy variable button that prepares this line. |
JAVIS_DEPLOY_TARGET |
Declares the environment explicitly: hostinger, vps, native, windows |
Auto-detected (a .hstgr.cloud hostname = hostinger; running Docker = vps) |
Almost never needed by hand. The Hostinger compose already sets hostinger. Set it when Javis guesses the environment wrong and the domain wizard shows the wrong instructions. |
WATCHTOWER_TOKEN |
The token the “Update now” button (the Updates page) uses to call Watchtower when running Docker | In docker-compose.yml: javis-update. Outside Docker: empty (no variable means Javis assumes Watchtower is not running) |
For tighter security: change it to a random string, setting the same value on both the app and the watchtower service. |
JAVIS_AUTO_UPDATE |
Lets Watchtower find new versions and recreate the container on its own, with no button to press | false |
Off by default on purpose: turning it on means the app restarts itself whenever a new version lands, cutting across background work and a running chat. Set it in .env (Hostinger: the Environment box) and bring the stack up again. |
JAVIS_AUTO_UPDATE_INTERVAL |
How often Watchtower looks for a new version, in SECONDS | 86400 (24 hours) |
Only has an effect with JAVIS_AUTO_UPDATE=true. Do not set it too short: every new version is another restart. |
JAVIS_RESUME_AFTER_RESTART |
Work that was in flight when the server restarted (team jobs, chat turns, background jobs) carries on by itself | 1 |
Set 0 for the old behaviour: cut work waits for you to press Continue or Retry. A step that had already done something outside (sent, posted) always stops and asks instead of doing it again. |
Group 7: Advanced variables (rarely need touching)
| Variable | Meaning | Default | When to change |
|---|---|---|---|
JAVIS_MINIFY |
The server minifies the interface’s JS/CSS before sending it to the browser (drops comments and extra whitespace, keeps line numbers; since 0.416.0). 0 = send the source as is |
1 |
Only when debugging the interface and you want the exact source in the browser’s devtools. Turned off, the first load is about 40% heavier. |
JAVIS_CLAUDE_IDLE_TIMEOUT |
The ceiling on waiting when the engine has answered then gone quiet mid-turn with NO tool running, in seconds. 0 = no limit |
0 |
The default removes the ceiling: engine silence does NOT mean a hang (a model thinking at high effort, or composing a long file to write out, both go quiet for minutes). Only set a positive number if you genuinely need turns cut off automatically. |
JAVIS_CLAUDE_FIRST_TIMEOUT |
The ceiling on waiting for the FIRST characters of a turn, in seconds. 0 = no limit |
0 |
Same reason as above: a long conversation has to reload the whole context on the first turn, which takes time. |
JAVIS_CLAUDE_TOOL_TIMEOUT |
The ceiling on waiting while a Claude Code or Codex TOOL is mid-run (rendering video, removing a background, building…), in seconds. 0 = no limit |
0 (no limit) |
No cap by default since 2026-11-07. Set a positive number to cut tools that run too long. The Stop button always works. |
JAVIS_CODEX_SANDBOX |
Whether to use Codex’s (ChatGPT’s) own sandbox rail for background work. auto = yes, matched to the job’s permission level (suggest becomes read-only, auto becomes workspace-write). off = no separate rail |
auto, but the Docker image presets off, and install.sh writes off to .env when it finds the machine blocks it |
Codex wraps file read/write commands in bubblewrap, and bubblewrap cannot start inside a container (an ordinary user, no CAP_SYS_ADMIN, and Ubuntu 24.04 also blocks user namespaces through AppArmor), so the rail is not tighter but simply dead: every background job on ChatGPT fails to read a single file. A native install (no Docker) can hit exactly the same: Ubuntu 24.04 blocks user namespaces through AppArmor by default, so a VPS on Ubuntu 24.04 usually needs off too. install.sh checks (it runs codex sandbox -- true as the account that runs Javis) and writes off only when the sandbox fails; a value the owner already set is kept. On a machine installed before this release, add the line JAVIS_CODEX_SANDBOX=off to .env yourself, then restart. To keep the sandbox on Ubuntu 24.04 you must loosen the machine itself (sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0, saved under /etc/sysctl.d/ to survive a reboot), and then every program on the machine can create user namespaces. The trade-off with off: Codex has no per-call allowlist like Claude, so the suggest level loses what stopped it writing files; the money/order/publishing/messaging rails are UNAFFECTED because they live in the MCP Hub. A second consequence: a Team set to Needs your approval refuses members running on ChatGPT, because without the sandbox Javis cannot stop Codex’s shell commands before they run. To keep ChatGPT in an approval team on Docker, set JAVIS_CODEX_SANDBOX=auto and let the container run bubblewrap (usually security_opt: [apparmor:unconfined, seccomp:unconfined] in compose, which loosens the container’s own fence), then restart. Otherwise move that member to Claude Code or an API-key brain. |
JAVIS_AGY_PROMPT_DAI |
Forces how Javis hands a prompt to Antigravity CLI when it exceeds the command-line ceiling: stdin (through a pipe), file (write it out and tell the model to read it), argv (straight onto the command line) |
(empty, Javis chooses: stdin first, falling back to file on failure) | Only for odd cases on your machine. Windows caps the whole command line at 32767 characters while Javis’s system prompt is already over 36,000, so argv there is guaranteed to break. See Models and engines. |
JAVIS_AGY_TIMEOUT |
The time ceiling for one Antigravity CLI run, in seconds. Javis passes the same number down to the CLI’s own --print-timeout |
0 (no cap) |
Empty or 0 means no cap in the full/auto modes; suggest keeps a 15-minute safety net because it does not auto-approve tools. Set a positive number to cut long turns yourself. Javis always passes a number to agy, since without one it cuts itself off at minute 5. |
JAVIS_AGY_MCP_HOME |
Whether Javis may write the MCP configuration into your HOME (~/.gemini/config/mcp_config.json, the place agy ACTUALLY loads MCP from). 0 = no, only write <brain>/.agents/mcp_config.json |
(empty = it does write) | Setting 0 accepts that Antigravity loses every Javis tool on any agy build that has not patched issue #60 (that build finds the workspace configuration then ignores it). Only set it if you do not want Javis touching a file shared with the Antigravity IDE. |
JAVIS_AGY_MCP_CONFIG |
Write agy’s MCP configuration into EXACTLY this file instead of the two default HOME paths |
(empty) | Use it when your agy build keeps its configuration elsewhere. |
JAVIS_AGY_MCP_KEY |
The URL key name Javis writes into the MCP entry: serverUrl (current) or url (older 1.0.x builds) |
(empty = write both) | Only when your agy build rejects an entry with an unknown key. Writing both is so every build recognises it; the machine building Javis cannot download agy, so this is not directly measured. |
JAVIS_GROK_BIN |
A direct path to the grok binary (Grok Build CLI) |
(empty, Javis searches PATH and ~/.local/bin) |
Only when the machine installed it somewhere unusual. |
GROK_DISABLE_AUTOUPDATER |
Turns Grok Build CLI’s auto-updater off. Javis sets 1 ITSELF for every run of grok |
1 (set by Javis, but a value you set is respected) |
Set 0 if you want the CLI to upgrade itself. Not recommended: Javis runs it headless, and an updater cutting in mid-turn either prints extra text into the result stream or writes into a read-only place. Upgrade by hand with grok update. |
JAVIS_GROK_TIMEOUT |
The time ceiling for one Grok Build CLI run, in seconds | 0 (no limit) |
Empty or 0 means no cap. A CLI build that does not declare --permission-mode still keeps a 900-second net: Javis cannot pass that flag, a headless run that stops to ask for approval hangs silently forever, and the net is the only thing that unblocks it. |
JAVIS_BG_MAX_WALL_S |
The time ceiling for one background run (Kanban, reminders, workflow steps), in seconds | 0 (no limit) |
Set a positive number to stop background work after that many seconds. You can always stop it by hand on the Work page. |
JAVIS_TEAM_TURN_TIMEOUT / JAVIS_TEAM_STEP_TIMEOUT |
The time ceiling for one reply in a Team / one step of a team job, in seconds | 0 (no limit) |
Set a positive number to bring a cap back (floors 30 and 60 seconds). |
JAVIS_BOT_MAX_IMAGES |
The most images a customer-facing bot sends with ONE reply (Zalo, Messenger, Telegram…). Clamped between 1 and 20 | 4 |
You need to show a customer many photos at once (a rental room, product samples). Each image is one more message sent under your name, so do not set it higher than you need. Restart Javis after changing it. |
JAVIS_MAX_TOOL_ROUNDS |
The maximum tool-call rounds for ONE answer of a bot talking to customers on an API-key engine (OpenRouter, OpenAI, Anthropic, Gemini, Groq, DeepSeek, Ollama). Clamped between 1 and 120 | 30 |
Your own work (chats, the Code page, background work) does not use this ceiling, it uses JAVIS_MAX_TOOL_ROUNDS_CODING below. Kept low so a stranger messaging a bot cannot make Javis burn hundreds of token rounds. Claude Code and Codex are NOT subject to it, they manage their own loops. |
JAVIS_MAX_TOOL_ROUNDS_CODING |
The maximum tool-call rounds for ONE turn of your own work on an API-key engine: every chat of yours, the Code page, and background work (tasks, loops, workflows, teams). Clamped at 2000, 0 means no ceiling |
500 |
The main brake against a stuck model is detecting repetition without progress (the same call with the same result: stops on round 5; waiting on a running job: up to 30 times; an A-B-A-B cycle: stops). Long work such as filling a hundred sheet rows or building a video runs to the end. The name dates from when only the Code page used it. |
JAVIS_TOOL_LOOP_BUDGET_CHARS |
The character budget for tool results within ONE turn on an API-key engine. Past it, older results are cut down to their opening part while the newest stay whole | 200000 |
Keeps long turns inside the model’s context window and stops each round getting more expensive. Raise it for large-window models (1M tokens); lower it if a small-window model hits its limit mid-turn. 0 turns it off. |
JAVIS_TOOL_RESULT_SHAPING |
Switches the shaping of tool results before a model reads them: a large result is stored whole (encrypted), the model gets a compact view with a reference and reads the rest with javis_query. 0 is off, 1 is on even when your saving level is Off |
on, unless you chose the Off saving level yourself | Turn off to compare with the old behaviour. Also mcp.result_shaping ("auto", true, false) in settings.json |
JAVIS_TOOL_RESULT_INLINE_CHARS |
A tool result up to this many characters (after indentation and empty fields are removed) goes to the model as is; a longer one is stored and shown as a view. Clamped to 2,000 to 200,000 | 8000 |
Raise it for a model with a wide context window when you want fewer tool rounds. Higher means more tokens |
JAVIS_TOOL_RESULT_PREVIEW_CHARS |
Size of the view the model gets in place of a large result | 6000 |
Rarely needs changing |
JAVIS_TOOL_RESULT_TTL_HOURS |
How many hours the full copy of a tool result is kept before it is deleted. Clamped to 1 to 336 | 24 |
Raise it for multi-day work that reads old results back |
JAVIS_TOOL_RESULT_STORE_MB |
Size ceiling of the tool result store (tool_results.sqlite3 in the state folder). When full, the oldest copies go first |
256 |
Lower it on a small disk |
JAVIS_RESULT_REPEAT_REFS |
Within one turn (any brain), an identical result of the same tool with the same arguments reaches the model as a one-line reference to the copy it already holds. The tool still runs. 0 is off, 1 is on even when your saving level is Off |
on, unless you chose the Off saving level yourself | Turn off to compare before and after with tools/quality_eval.py. Also mcp.result_repeat_refs ("auto", true, false) in settings.json |
JAVIS_SKILL_SECTIONS |
Selective loading of long menu-style skills (Javis picks the parts a request needs before loading, and loads the whole skill when unsure). 1 turns it on for every owner chat session, 0 turns it off |
about 10% of the owner’s chat sessions, off at the Off saving level | Raise the share with context_runtime.skill_sections.allocation_basis_points (10000 = every session); add a skill you wrote with sections: select in its SKILL.md frontmatter, or the list context_runtime.skill_sections.skills in settings.json |
JAVIS_BG_LEAN_PROMPT |
Background jobs (Kanban jobs, loops, reminders that do work) on an API-key engine carry a short background rule set instead of CLAUDE.md. Every rule about acting stays; subscription engines (Claude Code, ChatGPT, Grok, Antigravity) are unchanged. 1 turns it on for every job, 0 turns it off |
about 10% of background jobs, off at the Off saving level | Raise the share with context_runtime.background_prompt.allocation_basis_points (10000 = every job) |
JAVIS_QUERY_MAX_PAGES |
The most pages javis_query reads when it gathers data from a read tool. Clamped to 1 to 500 |
200 |
Lower it for a source with a tight rate limit |
JAVIS_SCOUT |
Switches the scout (javis_scout): the main model hands a data-heavy read to the background model and gets back only the findings. 0 is off |
on | Turn off if you do not want the background model called during a chat turn. Also mcp.scout in settings.json |
JAVIS_CODE_MODE |
Switches javis_code: the model writes a read-only Python script that chains several tool calls and gets back only what it prints. 0 is off |
on | Also mcp.code_mode in settings.json |
JAVIS_CODE_MODE_MAX_CALLS / JAVIS_CODE_MODE_MAX_WALL_S / JAVIS_CODE_MODE_CPU_S / JAVIS_CODE_MODE_MEM_MB |
Caps on tool calls, time (seconds), CPU seconds and memory (MB) of one javis_code run |
40 / 120 / 30 / 1024 |
Over a cap the run stops and the model calls the tools itself as before |
JAVIS_SCOUT_MAX_WALL_S / JAVIS_SCOUT_MAX_PARALLEL |
Time limit of one scout run (seconds) and how many scouts run at once on the machine | 300 / 2 |
Raise the time for a slow background model. Out of time or out of slots, the main model does the reading itself as before |
JAVIS_RECIPES |
Switches the “recipes” of recurring jobs: after the same run on two different days, Javis fetches the data itself before the model starts. 0 is off |
on | Turn off to have the model work everything out on every run. Also mcp.recipes. To forget one recipe, delete its file in <brain>/Javis/recipes/ |
JAVIS_KANBAN_MAX_WORKERS |
How many Kanban jobs run in parallel. Clamped between 1 and 8 | 2 |
Raise it on a strong VPS with a long queue; set 1 on a weak or congested machine. See Work / Kanban. |
JAVIS_TEAM_PARALLEL |
How many teams run jobs at once on the machine. At most 64, 0 means no cap |
No cap | No cap by default since 17/11/2026; model calls at the same time are still braked by JAVIS_TEAM_CLI_SLOTS and JAVIS_TEAM_API_SLOTS. Set a positive number on a weak machine. |
JAVIS_TEAM_JOBS |
How many jobs ONE team runs at once, when the jobs belong to different teammates. At most 64, 0 means no cap |
No cap | No cap by default since 17/11/2026. Jobs of the same teammate, and jobs worded “after … is done”, still run one after the other. Set 1 to have each team run one job at a time as before. |
JAVIS_TEAM_CLI_SLOTS |
How many team model calls run AT ONCE on each subscription engine (Claude Code, ChatGPT through Codex, Grok Build, Antigravity CLI). Clamped to 1 to 64 | 3 |
Since 0.257.0 one teammate can work in several teams at once, so this is the brake. Keep it low: a dozen processes at once on one subscription account easily hits rate limits or gets the account locked. Calls over the cap wait, they are not lost. |
JAVIS_TEAM_API_SLOTS |
Same as above, for each API-key engine (OpenRouter, OpenAI, Anthropic, Gemini, Groq, DeepSeek, Ollama…) | 6 |
Raise it if your API plan allows many parallel calls; lower it if you keep seeing 429 errors. |
JAVIS_TEAM_JOB_PARALLEL |
How many Work steps of ONE team job run at once (one step per teammate). Clamped to 1 to 64 | 3 |
Since 0.260.0, when the lead splits work across 3 people they work at the same time before the summary. Set 1 to work one after the other as before. |
JAVIS_TEAM_TOOL_SLOTS |
How many turns with tools (file reads and writes, MCP) run at once in ONE working folder. A team with its own pinned folder counts separately; otherwise the whole brain counts as one | 3 |
Set 1 to be as strict as before 0.260.0: in one folder only one teammate writes files at a time, nobody overwrites anyone, at the cost of speed. |
JAVIS_MEMORY_INDEX_MAX |
The character ceiling of the memory index (MEMORY.md) loaded into every chat turn. Over the ceiling Javis shortens descriptions gradually rather than dropping memories |
20000 |
A very thick memory costs tokens on every turn; lower this to tighten it. See Second Brain. |
JAVIS_LONG_TURN_NOTIFY_S |
A dashboard chat turn that runs at least this many seconds leaves its answer in the bell and sends a push notification to your phone | 180 |
You want the notice sooner or later. 0 means only turns Javis continues on its own after a background job ring. |
JAVIS_CLAUDE_BG_WAIT |
When Claude Code starts a background command or a sub-agent, the chat turn waits up to this many seconds to read the result and continue answering | 1800 (30 minutes) |
0 means no wait (the turn ends at the first answer, the old way). |
JAVIS_AVATAR_HINT |
A customer-facing bot looks at the customer’s profile picture once to guess how to address them | On | Set 0 to turn it off. Each new picture is one image-reading model call. |
JAVIS_DEV_CORS |
Opens the API to any page running on another localhost port (a dev server, another app on the same machine) | Off | Only turn it on (1) while you develop an app that calls the Javis API directly. The dashboard, the CLI and plugins do not need it. |
JAVIS_CLAUDE_ENGINE |
(Historical) Since 0.9.37 the Claude engine always runs through the official Agent SDK, so this variable does nothing; setting cli/sdk-loops is ignored with a log line |
sdk |
Nothing to do. If the Claude engine misbehaves, it reports the error with the server log. |
JAVIS_CODEX_BIN |
The absolute path of the codex executable |
Auto-detected in PATH and the usual install locations | You installed the Codex CLI somewhere Javis cannot find. |
CLAUDE_CONFIG_DIR |
Claude Code’s configuration folder (where .credentials.json lives). Setting it OVERRIDES entirely, matching Claude Code’s own behaviour |
~/.claude |
You changed Claude Code’s configuration folder yourself. |
CLAUDE_CODE_OAUTH_TOKEN |
Claude Code’s long-lived token (made by claude setup-token). Claude Code reads it before its own sign-in |
(empty) | Usually not needed: Connect Claude on the Models page gets the token, stores it encrypted and hands it to Claude Code. Set it by hand only to make every claude process on the machine share one token. |
JAVIS_CLAUDE_PROJECTS_DIR |
Where Javis reads Claude Code session logs to compute Usage | ~/.claude/projects |
Claude Code logs are somewhere else. See Usage: tokens and cost. |
JAVIS_CODEX_SESSIONS_DIR |
Where Javis reads Codex session logs to compute Usage | ~/.codex/sessions |
Codex logs are somewhere else. |
JAVIS_YOUTUBE_PROXY |
A SEPARATE proxy just for reading YouTube subtitles, shaped http://user:password@host:port. Only YouTube traffic goes through it |
(empty, direct) | Javis keeps reporting that YouTube suspects this server is a robot. The root of that error is IP reputation: YouTube flags the IP ranges of server providers (AWS, Google Cloud, Azure, cheap VPSs), so the same code runs fine at home and gets challenged on a VPS. Routing through a residential proxy means standing somewhere else on the Internet. Do not use the system’s HTTPS_PROXY for this: it pushes all of Javis’s traffic through it, model calls and MCP included, which is both slow and leaks data to a third party. See Chat. |
JAVIS_IMAGE_HOST_MODEL |
Pins the “host” chat model used to call the image-generation tool through the ChatGPT plan | empty (automatic: gpt-5.5 when the plan has it, otherwise another model from the account’s ChatGPT model list) |
You want to force one model. Left empty, Javis switches model on its own when the plan answers “model is not supported”. |
JAVIS_IMAGE_MODEL |
The model that actually generates images | gpt-image-2 |
As above. |
Note: JAVIS_ENABLE_USER_PLUGINS is also an advanced variable, but because it is a security rail it is listed in group 3.
The media block in settings.json (no interface)
Each brain’s attachments/ and inbox/ folders are a cache, not a knowledge store: images are material passing through, and once read and reduced to .md that is enough. So Javis clears them by age and by size, sweeping every six hours. The temporary stage folder (where a file you paste into the chat box lands) has its own, much shorter limit.
These clearing rules have no field in Settings. To change them, open settings.json in the state folder (personal machine: server/settings.json; Docker: /data/state/settings.json) and edit the media block:
"media": {
"enabled": true,
"max_age_days": 30,
"max_mb": 300,
"staging_days": 3
}
| Key | Meaning | Default |
|---|---|---|
enabled |
false = clear nothing at all |
true |
max_age_days |
Media files older than this many days are deleted. 0 or negative = the age rule is off |
30 |
max_mb |
The size ceiling of each brain’s media area, in MB. 0 or negative = the size rule is off |
300 |
staging_days |
The separate limit for the temporary stage folder in the state folder | 3 |
Two exceptions: documents you have attached to a project or a conversation are never cleared. Turning on Sync images too in the GitHub backup section stops Javis from clearing attachments/ (inbox/ is still cleared).
Restart Javis after editing. An image that was cleared but is still referenced in an old conversation shows as a grey box saying the image expired, not a broken icon. To keep images long term, attach an external store (Drive, for instance) through the Connections page rather than letting Javis hold them.
What to remember about ANTHROPIC_API_KEY
Javis uses the very subscription you already pay for as its brain (Claude Code for a Claude plan, Codex for a ChatGPT plan), so the ANTHROPIC_API_KEY variable in .env is not needed. MCPs you installed into Claude Code are inherited automatically. If you want models through an API provider (OpenRouter, OpenAI API, Anthropic API, Google Gemini API, Groq API), you enter the key in the app on the Models page, not in .env. Keys entered there are encrypted before being saved into settings.json. See Models and engines.
Example of a minimal .env file
A personal machine, only changing the name and the reading speed, everything else untouched:
WORKSPACE_NAME=Trợ lý của Quy
USER_NAME=Quy
TTS_RATE=+0%
A public deploy on a VPS, preseeding the admin and opening it to outside access:
JAVIS_HOST=0.0.0.0
JAVIS_ADMIN_USER=admin
JAVIS_ADMIN_PASSWORD=put-a-really-strong-password-here
OBSIDIAN_VAULT_PATH=/data/vault
JAVIS_STATE_DIR=/data/state
JAVIS_ALLOWED_HOSTS=javis.yourname.com
In the second example, because JAVIS_HOST=0.0.0.0 (public) Javis turns forced login on by itself, and because JAVIS_ADMIN_PASSWORD is set you sign straight in with that account, and the server is never without an admin.
Tips
- Always keep
env.exampleas the reference original. Only edit.env. - A change in
.envonly takes effect after restarting Javis. Unlike the in-app Settings panel, where a change applies at once. - If you are unsure what a variable does, do not add it to
.env. The defaults already work well. - For on/off variables (
JAVIS_REQUIRE_LOGIN,JAVIS_SECURE_COOKIE,JAVIS_ENABLE_USER_PLUGINS), on accepts1,true,yes,on. Off accepts0,false,no,off. - The
.envfile holds passwords and sensitive configuration. Do not put it anywhere public. On a shared machine, restrict read permissions. The.secret_keyfile in the state folder deserves the same care, and matters even more: losing it loses every stored API key. - Plugins you install run real Python code inside the server process. Javis loads them by default but only runs the ones you enabled; only enable a plugin when you know where it came from, and set
JAVIS_ENABLE_USER_PLUGINS=falseif this machine should run none.
Common problems
You edited .env but nothing changed. You have not restarted Javis. .env is only read at startup. Stop the server and start it again.
After changing the port you cannot reach the app. Your browser is still on the old port. Changing to JAVIS_PORT=8080 means opening http://localhost:8080, not 7777.
The right password keeps bouncing back to the sign-in page. Most likely you turned JAVIS_SECURE_COOKIE=1 on while actually browsing over HTTP (not HTTPS). A Secure cookie is only sent over HTTPS, so the browser cannot hold the session. Delete that line or set it off, then restart.
Everything returns 403 “host not allowed”. You reached Javis through a domain not on the allowlist, with no password set. Add the domain to JAVIS_ALLOWED_HOSTS (or enter it in Settings → Domain and SSL), or simply set a password.
A plugin is enabled in the app but still does not run. Check .env for JAVIS_ENABLE_USER_PLUGINS=false: if it is there, remove it (or set true) and restart. The app states this too when you enable a plugin that is turned off.
You set the workspace name in .env but the app shows another one. The app prefers the name saved in Settings over the WORKSPACE_NAME variable. Edit the name in the app’s Settings panel, or clear the saved name so the app falls back to the .env value.
You pointed OBSIDIAN_VAULT_PATH at a real vault and Javis sees no data. Check that the path is right and that Javis has permission to read the folder. On Docker the volume must be mounted at the path you declared. After fixing, restart and rebuild the graph (see Knowledge graph).
After restoring a backup, every API key is empty. You copied settings.json without .secret_key from the same folder. There is no recovery, you have to re-enter the keys on the Models and Admin channels pages.
If you are still stuck, see Troubleshooting and FAQ.