Configuration
Where Jouzu keeps settings and state, language and profile settings, Pi import, updates, and environment variables.
Jouzu keeps its configuration, state, and cache apart from a stock Pi installation. Default roots for npm installations:
| Platform | Locations |
|---|---|
| Linux | Agent/config ${XDG_CONFIG_HOME:-~/.config}/jouzu/agent; state and sessions ${XDG_STATE_HOME:-~/.local/state}/jouzu; cache ${XDG_CACHE_HOME:-~/.cache}/jouzu |
| macOS | Agent/config ~/Library/Application Support/Jouzu/agent; state and sessions ~/Library/Application Support/Jouzu/state; cache ~/Library/Caches/Jouzu |
| Windows | Agent/config %APPDATA%\Jouzu\agent; state and sessions %LOCALAPPDATA%\Jouzu\state; cache %LOCALAPPDATA%\Jouzu\cache |
Move all three roots together with --jouzu-home <path> or JOUZU_HOME. The Windows launcher keeps its roots under %LOCALAPPDATA%\Shisa.ai\Jouzu unless JOUZU_HOME overrides it. Sessions live under the state root; see Session history.
JOUZU_HOME="$PWD/.jouzu" jz doctorjz doctor reports your resolved configuration, state, and cache locations without changing them. Node's startup compile cache is separate: it uses the operating system's temporary directory unless NODE_COMPILE_CACHE sets another location, and contains compiled code, not conversation history.
The interactive terminal defaults to full-screen mode. To use the terminal's normal scrollback instead, set "tuiMode": "regular" in settings.json under the agent/config directory; "tuiMode": "fullscreen" selects full-screen explicitly. Jouzu preserves an existing setting.
{
"tuiMode": "regular"
}In fullscreen mode, /scrollback prints the active conversation branch on the terminal's normal screen while the agent and shell commands are idle, so you can use terminal search and selection or tmux copy mode. The export does not change the display setting, and the prompt draft stays intact. It requires an interactive fullscreen terminal and is unavailable with TERM=dumb.
Work dashboard size is a separate setting in Settings / Catalogs: compact (up to 12 lines), expanded (up to 24), or hidden. /subagents hide hides it for the current session only.
The UI locale, the response language, and the artifact policy are three separate settings, stored in localization.json in the Jouzu configuration directory (the parent of the agent directory in the locations table):
{
"schemaVersion": 2,
"localization": {
"uiLocale": "ja",
"responseLanguage": "auto",
"artifactPolicy": {
"comments": "preserve",
"documentation": "project",
"commits": "project",
"reviews": "project"
}
}
}| Field | Values and effect |
|---|---|
uiLocale | auto, en, ja, zh-Hans, or zh-Hant. The interface offers English and Japanese; a Chinese locale request falls back to English. auto resolves from locale environment variables. |
responseLanguage | The language of the agent's user-facing explanations: auto, en, ja, zh-Hans, or zh-Hant. auto adds no fixed conversational-language instruction. |
artifactPolicy | Per artifact kind (comments, documentation, commits, reviews): preserve keeps existing text, project follows the project's existing language, or a fixed locale. |
Use /language or Settings → Language to preview changes, then press Enter to review and Enter again to save. Confirmed display choices override CLI and environment inputs; response and artifact changes apply on the agent's next turn. Direct file edits apply to a new session. jz doctor reports the resolved startup values and their sources.
A profile is a set of instructions, skills, and prompts that Jouzu installs into its agent directory. core is the default; ja adds Japanese responses while leaving code, commands, and paths unchanged.
jz profile plan --profile ja # preview, writes nothing
jz profile apply --profile jaTo select a profile for one launch and save it, run jz --jouzu-profile ja or set JOUZU_PROFILE=ja. Each launch reconciles the selected profile: applying uses a lock, conflict checks, backups, and atomic file replacement, and unknown files and your own AGENTS.md are never removed. Backups are kept under the Jouzu state directory shown by jz doctor.
Profiles may write only bundled UTF-8 files at APPEND_SYSTEM.md, skills/jouzu-*/**/SKILL.md, skills/jouzu-*/references/<name>.md, and prompts/jouzu-*.md. If a managed file conflicts with a file you own or edited, Jouzu stops before launching; see Profile conflicts. The bundled skills themselves are covered in Skills.
On the first interactive setup, Jouzu looks for Pi files in PI_CODING_AGENT_DIR, then ~/.pi/agent, and offers to import them. It asks separately for each file, and both prompts default to no. Source files are not changed, and an existing Jouzu file is never replaced.
| Offered for import | Not imported |
|---|---|
Custom models.json | settings.json, keybindings |
Saved provider credentials from auth.json | Packages, extensions, skills, prompts, themes |
| Sessions, caches, trust decisions |
Rejected: symbolic links, non-regular files, oversized files, and files whose top-level JSON value is not an object. Non-interactive commands never read Pi state. JOUZU_NO_PI_IMPORT=1 skips the offer for one launch. Jouzu still uses trusted project .pi resources and the shared ~/.agents/skills directory.
Add model catalog sources in Settings / Catalogs (/catalogs). Shisa AI's catalog is built in and activates when you sign in. Check sources with jz catalog status.
| Platform | Catalog configuration |
|---|---|
| Linux | ${XDG_CONFIG_HOME:-~/.config}/jouzu/catalogs.json |
| macOS | ~/Library/Application Support/Jouzu/catalogs.json |
| Windows | %APPDATA%\Jouzu\catalogs.json |
When catalogs.json does not exist, JOUZU_MODEL_CATALOG_URL and JOUZU_MODEL_CATALOG_TOKEN define a single catalog source. See Model selection for how defaults are chosen.
A global npm installation checks the latest version of the Jouzu package before an interactive launch. After a successful check the next check waits 24 hours; after a failed or offline check, at least one hour. The check contacts your configured npm registry and sends no Jouzu telemetry.
| Policy | Behavior |
|---|---|
auto-restart (default) | Install the update and relaunch your command once under the new version. |
notify | Report that an update is available. |
off | Do not check at startup. |
jz self-update status
jz self-update check
jz self-update apply
jz self-update policy notify # or auto-restart, offAn update downloads the new version without running install scripts, verifies its checksum, installs it globally, and verifies --version; if verification fails, the previous version is restored. Source checkouts, project-local installs, and npx runs are not updated automatically, and installations where the global npm prefix is not writable keep running the current version and report the problem. Only one update runs at a time. See Update problems.
| Variable | Effect |
|---|---|
JOUZU_HOME | Root for Jouzu configuration, state, and application cache; excludes Node's compile cache. |
NODE_COMPILE_CACHE | Directory for Node's startup compile cache. |
NODE_DISABLE_COMPILE_CACHE=1 | Disable Node's startup compile cache. |
JOUZU_PROFILE | Profile for this launch: core or ja. The selection is saved. |
JOUZU_UI_LOCALE | Startup UI locale when no preference is saved; a CLI option takes precedence in that case. |
SHISA_API_KEY | Shisa API key; overrides the saved login. |
JOUZU_MODEL_CATALOG_URL, JOUZU_MODEL_CATALOG_TOKEN | Single catalog source when catalogs.json does not exist. |
JOUZU_FLOW_CONTROL=0 | Disable flow control for this process. |
JOUZU_CAMOUFOX_IDLE_STOP_MS | Browser idle shutdown delay. |
JOUZU_CAMOUFOX_LIBRARY_PATH | NSS library directory for the browser. |
JOUZU_NO_UPDATE=1 | Skip the update check for one launch. |
JOUZU_UPDATE_POLICY | auto-restart, notify, or off for this process. |
JOUZU_UPDATE_INTERVAL_HOURS | Hours between successful update checks. |
JOUZU_NO_KEYBINDING_DEFAULTS=1 | Skip first-run keybinding defaults. |
JOUZU_NO_PI_IMPORT=1 | Skip the Pi import offer. |
JOUZU_NO_CLEAR=1 | Keep terminal output at startup. |
NO_COLOR | Turn off header color. |
PI_CLIPBOARD_TMUX=0 | Disable Jouzu's tmux clipboard forwarding and use Pi's ordinary clipboard paths. |
PI_CODING_AGENT_DIR | Pi directory checked for import. |