# Settings and keys

Everything is configurable from **Settings**; no file editing is needed.

The sections are grouped in seven blocks, in this order. On a phone, Settings opens on the list of every section,
grouped the same way (one tap each); inside a section the tabs at the top go to the others (a thin bar between two
blocks):

| Block | Section | What you find |
|---|---|---|
| **General** | **General** | language (English, French, Spanish, German, Simplified Chinese or Japanese - see [Language](#language)), time zone, **App** (install it on this computer or phone, below), the getting started guide and the tutorial |
| | **Appearance** | saved in this browser, in four cards. **Layout**, first: *Auto*, *Desktop* (the sidebar), *Windows* (every page in a window, see below) or *Touch*, each with a small drawing. **Theme**: *Solid* (the default: plain colors) or *Glass* (the bars, menus and dialogs become see-through over a soft backdrop in your accent color; off when your system asks for less transparency), and the themes Harness installed for you next to them ([Themes](themes.md); **Ask Harness** for a new one), each shown as a small preview. **Options of the theme**: mode (dark, light or system), accent color (the logo takes it too), background (neutral or tinted with the accent), interface font (23, grouped by style: modern, with character, rounded, serif, easy to read, monospace) and code font (11; a font other than the default loads the first time you pick it) - the last mode, accent and background you pick also color the sign-in page and any browser that never chose one (new phone, private window). **Layout**: density, **layout** of this device (*Auto*: the touch layout on phones and tablets, the sidebar on computers; *Touch*; *Desktop* when the screen is wide enough), the first screen of the touch layout (*Last session* or *Dashboard*). **Sessions list**: the sort of *Sessions only* (the list chip above the sessions list) |
| | **Profile** | your pseudo, a **photo** (kept on this server, shown instead of the color and emoji, also to your Team contacts), color and emoji (picked from a searchable list) for messages, notifications and Team, with a preview; **Stay in touch**: the optional e-mail, news and anonymous counter (see [License](license.md)) |
| | **Security** | **Protections** (what protects this server, and what is left to turn on), change the password, **Two-step sign-in** (Telegram, an authenticator app, recovery codes), **Privacy**: the presentation mode by default (new browsers start with your data masked), **Signed-in devices** (the browsers signed in, **Disconnect**, **Disconnect all the others**), sign out; **What the sessions may do** (every engine): protect the secrets, the permission mode - see [Security](security.md#sign-in) |
| | **Features** | every page: the ones always there, the optional ones with their switch (on or off), the options of the sessions under Sessions (below); what shows in the sidebar is chosen in the [Apps panel](#apps-panel) |
| | **Voice** | how voice messages and dictation are transcribed (on the server, Groq, OpenAI, or off), the microphone and call buttons, the voice mode |
| **AI & tools** (was Claude) | **Engine** | the coding agent that runs the whole of Harness - see [Engines](engines.md). The active engine, a tab per engine (Claude Code, OpenCode, Codex) that changes nothing until you press **Switch all of Harness to …** (it first shows what that engine would refuse, and why), and in each panel the same blocks: install, sign-in (Claude Code: status, token or API key, live test; Codex: Sign in with ChatGPT), the providers it is paid through, default model, small model, favourite models; Claude Code also has its **sub-agents model** (the model of the sub-agents Claude starts to split up the work: Sonnet by default, "Same as the session" for the old behaviour), short session titles and its automatic updates. A last tab, **Compare**, holds the matrix of what each engine does. |
| | **Providers** | who you pay for the AI models: the Claude and ChatGPT subscriptions (signed in by their engine) and the API keys (OpenRouter, Anthropic, OpenAI), each one using the key **you choose** among those of Settings -> Keys; OpenRouter shows its credits left - see [Engines](engines.md) |
| | **Memory** | **Context of conversations** (every engine): automatic compaction threshold, compaction when you come back to an idle session, smart resume (a summary written for the message you come back with); second brain cleaner: line limit per `memory.md`, **Clean now**, size of every memory file - see [Memory](memory.md) |
| | **Skills** | the skills Claude sees on this server: **yours** (in `~/.claude/skills`, the workspace, a project or a topic, with where each one lives) and the ones **shipped with Harness** (refreshed by every update, read-only); **Open**, **Edit with Claude**, **Share with the community**, **New skill** - see [Skills](skills.md) |
| | **MCP** | the MCP servers of Claude Code (a service's tools for Claude): every session or one topic, state, **Connect** (sign-in), **Remove** - see [MCP servers](mcp.md) |
| | **Keys** | your secrets vault (below) |
| | **Browser** | the Harness Browser, once turned on in Features: your own browser, its profiles and connections - see [Harness Browser](browser.md) |
| | **Devices** | your computers and phones running Harness Link, once turned on in Features - see [Devices](devices.md) |
| | **Usage** | **Daily budget**: a ceiling in dollars per day for the whole server (0 = none), counted at the price Claude Code reports for each turn (on a subscription: what the same turns would cost with an API key). A [notification](feed.md) at 80 %, an alert when it is reached; from then on the scheduled prompt jobs and the agents' triggers wait for the next day (skipped, with the reason), while your own messages, your messages to an agent and **Run now** still run. Switch on **The daily budget also stops my messages** (off by default) and they stop too once the budget is reached: a message in a session (web, Telegram, `maxxing sessions send`), the first message of a new session, **Run now** and a message to an agent are refused until tomorrow, with a message that says how to lift it (raise the budget or switch the option off; the owner can always do that here). The card shows what today cost so far. **Alerts** (see [below](#usage-alerts)). **Start again after the usage limit** (on by default): a scheduled job or an agent run stopped by the usage limit of your Claude plan starts again by itself once the limit resets, plus a delay (60 seconds by default); **My sessions too** (off by default) does the same for a turn of one of your sessions, in the same session (a message you send before then cancels it). Then Claude plan usage (5-hour window, week) and the plan name (Pro, Max, Ultra): the same figures as the bars at the bottom of the sidebar, read from the last Claude answer; a verified **Ultra** account has no 5-hour limit, so only the week is shown; **Show plan usage** (on for new installs) shows them here (experimental: it may also ask Anthropic directly when no answer came for 10 minutes); the dashboard's **Server and usage** card shows them whenever they are known; the credits left of your OpenRouter key once selected in Providers (the sidebar entry of an engine paid through OpenRouter opens this page too); tokens and cost per engine (the other engines have no subscription limits, their cost is the provider's), tokens and cost per project, topic, **agent** and session (**CSV** / **JSON** under the table download every row of the grouping shown, **Per day** the daily chart; `maxxing usage export`), tokens per day, how fast turns start (Claude Code ready / first answer, median of recent turns) |
| **Automate** | **Crons** | the scheduled jobs: list, run now, history, editor (see [Crons](crons.md)); old `/crons` links open it |
| | **Webhooks** | every URL that a service calls on this server (Stripe, Shopify, GitHub, a form, a phone Shortcut, n8n...): what each one does, its last calls, test, replay, new URL, secret; also the webhooks that post to the notifications feed and the ones of agents. Made by asking Harness - see [Webhooks](webhooks.md) |
| | **Events** | when something happens in Harness (a notification, an agent run that ends, a cron that fails), do one thing without AI - see [Events](events.md) |
| **Notifications** | **Alerts** | what this browser and your phone do: a notification (and an optional sound) when a Claude session finishes, Team messages, pulsing unread badges (saved per browser), **Mobile notifications** (push, even with the app closed) |
| | **Feed** | the [notifications feed](feed.md): its Telegram thread, **Server problems in the notifications**, the sources and what each one does in Telegram |
| | **Telegram** | bot wizard, linking, mode (simple chat, threads, web mirror), notification options, two-step sign-in (also in Security) – see [Telegram](telegram.md) |
| **Extensions** | **Widgets** | the widget extensions of `<workspace>/extensions`: switch on/off, **Rescan**, **Customize the dashboard** (opens the dashboard in edit mode) – see [Dashboard widgets](dashboard-widgets.md) |
| | **Pages** | the page extensions: every page, switch on/off (off: it shows nowhere, the Apps panel included), **Open page**, **Rescan** (in the sidebar or not: the [Apps panel](#apps-panel)) – see [Page extensions](page-extensions.md) |
| | **Agents views** | the extensions that bring a view of the Overview of the Agents page (a page or a widget that also brings one shows in both), switch on/off, **New view**, **Rescan** – see [Overview views](page-extensions.md#overview-views-of-the-agents-page) |
| | **Themes** | the themes installed in `<workspace>/themes`: their state (in use, advanced CSS on or off, values ignored), folders that are not usable, **New theme** (asks Harness), **Choose in Appearance** – see [Themes](themes.md) |
| | **Community** | the catalogue of the website in three tabs (Extensions, Themes, Skills): **Check and install** shows what a listing would do on this server, then installs it once you confirm – see [Community extensions](page-extensions.md#5-community-extensions) |
| **Workspace** | **Templates** | add a ready-made project (**starter pack**) for your kind of work; an existing project is never overwritten - see [Starter projects](starter-projects.md) |
| | **Import** | the memory of another agent (Hermes, OpenClaw, Claude Code, a zip) - see [Import](import.md); and the way to the other imports: a memory backup (**Backup**), an agent file (Agents page) |
| | **Backup** | repository, schedule, whitelist, history, restore – see [Backup](backup.md) |
| | **Trash** | deleted sessions, topics and files, restore them or empty the trash |
| **Server** | **System** | health, **disk space** (see [below](#disk-space)), **CPU priorities** (see [below](#cpu-priorities)), services (start/stop/restart), logs (see [below](#logs)), **metrics for a monitoring tool** (see [below](#metrics-for-a-monitoring-tool)), and the **address of the server**: public URL and files root (the folder the file viewer can show) |
| | **Updates** | the installed version, **Check** and **Update** (with the smart update preflight), **Automatic update**, **What's new** (also shown once after each update; the main new features have a **Show me** button that takes you to them and highlights them), then every version of Harness Maxxing, newest first, with a search |
| | **About** | the version and the useful links (docs, GitHub, community), the optional **Enterprise key** (only for companies that need one: record it, see it, remove it - see [License](license.md)), **Support**: Harness Maxxing is free, **Donate** opens the donation page of the website in a new tab (nothing is sent from the app); **Hide the Donate buttons** removes them from What's new and the Feedback window, in every browser - see [License](license.md#donations) |

The docs are not in Settings: open them with the book icon at the bottom of the sidebar (on a phone: **Apps** → **?** at the bottom).
The community catalogue (widgets, pages, Agents views, skills and themes shared by other users) is on the website,
[harness-maxxing.com/community](https://harness-maxxing.com/community), and in **Settings -> Community** (Extensions,
Themes, Skills): **Check and install** shows what a listing would do on your server, then installs it once you confirm -
see [Extensions](page-extensions.md#5-community-extensions).
Old links keep working: `/settings/claude` and `/settings/engines` open **Engine**, `/settings/stats` opens **Usage**, `/settings/license` and `/settings/support` open **About**, `/settings/packs` and `/settings/projects` open **Templates**, `/settings/extensions` opens
**Widgets**, `/settings/docs` opens the docs.

## Language

The interface exists in six languages: English, French, Spanish, German, Simplified Chinese and Japanese. Choose
yours in **Settings -> General -> Language** (the first step of the setup wizard asks it too): it is a setting of
the server, so every browser signed in follows it. The sign-in page opens in that language, and its language
button changes it for that page.

What the server writes follows the same setting: the Telegram bot's own messages and its command menu, mobile
notifications, the built-in texts of the dashboard. From a terminal: `maxxing init --language es` (`en`, `fr`, `es`,
`de`, `zh`, `ja`).

## Disk space

**Settings -> System -> Disk space** shows how full the disk is, with two buttons:

- **Free up space** measures what Harness can drop by itself and lists it with its size: old versions and
  leftovers (previous versions of the components, browsers no longer used, temporary files, oversized logs),
  download caches (uv, npm, pip, npx: downloaded again when needed; what a running tool such as an MCP server
  uses stays), the system journal (cut down to its last 200 MB), the system packages apt already installed, the
  video previews and thumbnails of the file viewer (made again when shown) and the Harness trash. Untick what you
  want to keep, then **Free**. The previews and the trash are never ticked by default: once emptied, nothing in
  the trash can be restored. While the components are being updated, old versions and caches are not cleaned
  (the part says so): run it again afterwards. Your projects, attachments and renders are never touched. From a
  terminal, `maxxing deps clean --caches` does the first two.
- **Clean up with Claude** opens a session in the Harness topic with a ready prompt: Claude measures the disk,
  goes through every project and topic (attachments, renders, `node_modules`, environments, builds, worktrees,
  other tools' caches), finds where each big folder comes from and whether it keeps growing, and gives you a
  table of what to delete, move or keep. It deletes nothing without your OK, and suggests fixing what keeps
  coming back (a size limit, a cleanup in the job that produces it).

## CPU priorities

When the processor is full (a video render, a big build, several sessions at once), Linux shares it equally by
default: a render at 99 % gets as much as the interface you are using. **Settings -> System -> CPU priorities** (on by
default) gives the processor in this order when it is full:

| Priority | What |
|---|---|
| **Live** | the Harness server - the interface you watch |
| **Normal** | the turns of your sessions and agents |
| **Background** | scheduled jobs and heavy work started with `maxxing heavy` (e.g. `maxxing heavy ffmpeg -i in.mov out.mp4`; `maxxing video render` does it for Remotion videos) |

These are priorities, never limits: while the processor has room, everything runs at full speed; when it is full,
background work slows down a little and never stops. The server takes its place at its next restart (an update
restarts it). Switch it off and every program gets the same share again.

**Who takes the processor**: click the CPU meter at the bottom of the sidebar. It lists the programs using the
processor most (Harness, a session, an agent, heavy work, a job, the browser, Docker…) with their priority and how
long programs wait for the processor. A high CPU figure alone is not a problem, nor is background work waiting
its turn: when the interface or your sessions and agents wait (more than 20 % of the time) the meter turns amber and
says **waiting**. If they keep waiting for 10 minutes, a health problem (also in Settings -> Feed) names the program
that takes the most; it clears itself. (With CPU priorities off, any program waiting counts.)

## Usage alerts

**Settings -> Usage -> Alerts**: a [notification](feed.md) when the spend leaves its usual range, without a budget to
set first. Nothing is stopped by an alert (a budget does that); each one is said once.

- **An unusual day** (on, 3 times): what today cost so far is at least 3 times a usual day, the median of the last
  14 days that had usage. Looked at for the whole server and for each agent, so an agent without a budget that
  starts to run in a loop is noticed the same day. Silent below $5 for the server and $2 for an agent, and while
  the server has fewer than 3 days of history. Choose 2, 3, 5 or 10 times, or **Off**.
- **An expensive turn** (off): one turn costs at least the amount you enter. 0 = no alert.
- **A turn that keeps failing** (on): at least 8 tool calls of a turn failed, and at least half of them: Claude kept
  trying something that does not work. The notification opens the session; **Turn details** (the ⚙ under the
  answer) lists the calls.
- **Claude plan almost full** (on, from 80 %): the 5-hour or the 7-day window of your Claude plan reaches that share
  (50, 70, 80, 90, 95 %, or **Off**). One notification per window, saying when it resets; it opens Settings -> Usage.
  Read from the answers Claude already gives, so it costs nothing and exists only on a subscription.

## Logs

**Settings -> System -> Logs** shows the journal of a service of this server (Harness Maxxing by default). Three
filters narrow it down:

- **Search**: the lines that contain a text (no difference between capitals and small letters);
- **Level**: every line, warnings and errors, or errors only. A Python error keeps its whole trace;
- **Period**: the last 15 minutes up to 30 days.

Under the lines, a sentence says how many match and whether the journal held more than was read (a search reads the
20 000 most recent lines of the period). Passwords, tokens and keys are masked as everywhere else.

In a terminal: `maxxing logs --since 24h --level error`, `maxxing logs --grep telegram`,
`maxxing logs --session <id>` (the lines about one session), `--json` for a script.

## Metrics for a monitoring tool

For those who already run Prometheus, Grafana or another monitoring system. Off by default: nothing is exposed
until you turn it on, and most installations never need it (Settings -> Usage and the dashboard show the same
figures).

**Settings -> System -> Metrics for a monitoring tool -> Expose /metrics** (or `maxxing metrics on`) gives:

- an address, `https://<your address>/metrics`, in the Prometheus text format;
- a secret token, shown once: the monitoring tool sends it as `Authorization: Bearer <token>`. Without it the
  address answers 401; with the switch off, 404. **New token** replaces it (the old one stops working at once).

What it holds: tokens, cost and turns (in total, today, per project and per agent), the daily budget and whether it
is reached, the usage of your Claude plan, the scheduled jobs (last run, its result and duration), sessions running,
disk, memory, load, the health checks and the age of the last backup. No session title, message, file name or key
is in it.

```yaml
scrape_configs:
  - job_name: harness
    scheme: https
    authorization: { credentials: "hmx_..." }
    static_configs: [{ targets: ["harness.example.com"] }]
```

## Features

**Settings -> Features** turns the pages on and off, with what each one is for. **Dashboard**,
**Sessions** and **Files** are always there (marked **Always on**); the optional pages have a switch and say what they
need. A page switched on can be opened (sidebar, Apps panel, tab bar, palette, `G` shortcuts); switched off, it stops and
nothing is deleted (each page's doc says what still runs meanwhile). Which pages show in the sidebar, in which order and
with which icon is chosen in the [Apps panel](#apps-panel) (**Open the Apps panel** at the top of the card).

| Page | On a new install | Needs |
|---|---|---|
| **Agents** - lasting helpers of a topic (see [Agents](agents.md)) | on | nothing |
| **Tasks** - the task board (see [Tasks](tasks.md)) | off | nothing |
| **Team** - chats with other Harness users (see [Team](team.md)) | off | an https address on the internet (domain mode) |
| **E-mail** - your mailboxes (see [E-mail](mail.md)) | off | an IMAP/SMTP mailbox |
| **Infra** - sites, databases, buckets, domains, servers (see [Infra](infra.md)) | off | nothing for this server; a key for Cloudflare or Hostinger |
| **Git** - repositories and their graphs (see [Git](git.md)) | off | a `GITHUB_TOKEN` key for GitHub |

The first-run wizard asks the same question (**What will you use?**), and Settings -> Keys offers the Git page as
soon as a GitHub key is in the vault. An install made before 2.0.0a132 keeps the pages it had.

Under **Sessions**, indented: **Maxxing mode (beta)** and the **line under the answers** (cost, tokens, duration, model: tick what
it shows) for everyone, and, saved in this browser only (marked **This browser**): the **Tabs mode** (Alt+T; off = Zones). Below
the pages: **Badges**, one switch per page with a counter in the sidebar (Home: unread notifications, red when one is an
error; Sessions; Team; Agents), all on by default: turn one off and its page shows no number nor dot (the counts stay on
the page itself); then **Harness Browser** (see [Harness Browser](browser.md)) and **Devices**, off by default (Claude uses your own
computers and phones, see [Devices](devices.md)). Under **Team**, while Team is on: **Team bubbles** (the chat bubbles at the bottom right of every page,
saved in this browser). The notification when a session finishes is in **Settings -> Alerts**, the Claude plan usage
widget in **Settings -> Usage**, the presentation mode by default in **Settings -> Security**, the Telegram mode in
**Settings -> Telegram**.

Changing the **time zone** (Settings -> General) does not change the server clock: run
`timedatectl set-timezone <Zone> && systemctl restart cron` too, so scheduled jobs follow (see
[Crons](crons.md)).

## Apps panel

The **Apps** button (the grid of dots: first icon of the bottom line of the sidebar, above Help when the bar is
folded, first icon of the dock in the Windows layout; also **Settings -> Features -> Open the Apps panel**) opens every page of Harness and every page extension as tiles, like
the app drawer of a phone, in two sections: **Features** and **Extensions**. Type to filter, Enter opens the first one.
In the Windows layout it takes the whole screen over the desktop (blurred with the Glass material); a click on an empty spot closes it.

Everything works straight away, there is no edit mode:
- **click** an app to open it; a page switched off in **Settings -> Features** does not show here (switch it on there and it comes back at its place);
- **drag** an app to move it, with the mouse or, on a touch screen, press a moment then move (a quick swipe still
  scrolls); Escape cancels a drag. Apps never move between Features and Extensions;
- **right click** an app (on a touch screen: press a moment and lift without moving) for **Open**, **Add to the
  sidebar** / **Remove from the sidebar** and **Customize…**: how its sidebar row looks, **In the sidebar** (a switch)
  and its **icon**: one of the icon set, any emoji, or an image of your own (PNG, JPG, SVG..., made a small square; SVG
  files are turned into a picture, no script of theirs ever runs). **Original** gives its own icon back. The icon shows
  everywhere: sidebar, search, menus, windows;
- a small dot marks the apps that are in the sidebar;
- **New group** adds a group with a title to a section: click the title to rename it, drag its handle to move it, the
  bin deletes it and gives its apps back to the top of the section (handle and bin show when the pointer is over the
  group). While you search, the apps do not move.

The sidebar follows the panel: its pages, then an **Extensions** section, show in the panel's order, a group's title
above its first app (a short line on the folded bar). Click the Extensions title to fold or unfold its list; on the
folded bar it is one icon that opens the list. The dock of the Windows layout follows it the same way: the apps in the
sidebar, in the panel's order, a short line between groups (the group's title shows in the tooltip); an app opened
from the panel gets its window and its place in the dock while the window is open. Dragging a page in the sidebar itself changes the panel's order too.
**Settings** is an app of Features too: its button always stays in the last line of the sidebar, and **Add to the
sidebar** also puts it in the list of pages, where you like. All of it is saved on the server, for every browser, and kept by the backup.

## Install the app

Harness Maxxing installs like an app (its own window, an icon in the Dock, the taskbar or the home screen,
full screen on a phone). Two places: **Install app** at the bottom of the Apps panel on a phone, and **Settings -> General -> App**.

- **Chrome, Edge (computer or Android)**: one click when the browser offers it; otherwise the button shows the
  steps (the install icon at the end of the address bar, or the browser menu).
- **Safari on a Mac** (macOS 14 or later): File -> **Add to Dock**.
- **iPhone / iPad**: Safari's Share button -> **Add to Home Screen**.
- **Firefox** cannot install web apps on a computer: use Chrome, Edge or Safari.
- The App card shows a **QR code** of the address: scan it with the phone, sign in, then add it to the home screen.
- Installing needs the **https** address (domain access). Through Tailscale (`http://100.x.y.z:8787`) browsers do
  not offer it.

### Every page in a window

Settings -> Appearance -> **Layout** (the first choice of the page) -> **Windows** turns the interface into a desktop: the sidebar gives way to a
**dock** at the bottom (the [Apps panel](#apps-panel) first, then the same pages as the sidebar, in your order and groups,
with their counters, then your pinned extension pages and Settings) and every page opens in its own **window**, so several stay on screen at once: your sessions beside your
agents, Files beside Tasks.
- **Windows**: drag one by its title bar, resize it by an edge or a corner. Dragged against the left or right edge
  it takes that half of the screen, against the top the whole screen (a frame shows where it will land); double-click
  the title bar for the same. The buttons of the title bar minimize, maximize and close. A window you leave keeps
  its page as it was: what you were typing, where you had scrolled.
- **Dock**: a click opens a page, brings its window to the front, or puts it away when it is already in front (a dot
  marks the pages that are open).
- **Top bar**: the project spaces, the search and the commands (Ctrl K, from any window), the update button, the
  server at a glance (processor, memory, disk and your Claude usage, always on screen; a click opens the full status:
  health, light / dark, presentation mode, Help) and the widgets of the desktop.
- **Project spaces**: *All*, then one button per project: a filter. Your windows stay where they are when you
  change space: what they show follows the project (the sessions list, the agents, the tasks; Files goes to its
  folder). The sessions you have open are the same in every layout and on every device: in a project's space the
  ones of other projects are only kept off the screen, and come back where they were in *All*. A dot on a project
  means one of its sessions is unread or running. Opening a session of another project (a notification, a search
  result) takes you to that project's space.
- **Folders**: the desktop shows your projects as folders, and in a project's space its topics. A double-click opens
  the folder in Files; a right click offers the project's space, the topic's sessions or a new session in it.
- **Widgets**: the squares button of the top bar puts any widget of the dashboard on the desktop. Move one by its
  title, resize it by its bottom right corner, take it off with its cross. They are the dashboard's own widgets, kept
  for every browser of this server; a widget hidden on the dashboard can still sit on the desktop.
- A link that leads to another page (a notification, a widget of the dashboard, a result of the search) opens that
  page's window. The address bar follows the window in front, and the desktop comes back as you left it after a
  reload.

Saved in this browser, like the rest of Appearance: your phone keeps the touch layout, and *Auto* or *Desktop* brings
the sidebar back. It is only a layout: the pages are the same, nothing loads again when a window opens, and every
extension and setting works the same in its window.

### On a phone or a tablet

Phones and tablets get the **touch layout** (Settings -> Appearance -> Layout changes it per device): no sidebar,
the page fills the screen above a **tab bar** at the bottom:
- **Jarvis** (when Jarvis is on), **Sessions** and **Agents** (when the Agents page is on) open their page in one
  tap. Sessions carries the count of unread answers (red when one ended in error) or a dot while a session runs;
  Agents the count of agents that need you. A tap on the tab of the page already open opens its list.
- **Apps** opens the [Apps panel](#apps-panel): every page and extension page, a search field for them, **⌘** for the
  search of everything (the same as ⌘K: files, sessions, topics, settings, actions), **Install app** when this browser
  can install it, then the status card - an update waiting, server health (tap it for the issues), CPU / RAM / disk
  (opens Settings -> System), your Claude plan (opens Settings -> Usage), the theme, presentation mode and help. A dot
  on Apps means an update is waiting or the server needs attention.

The bar steps aside while the on-screen keyboard is up, so the message box sits right above the keys.
**☰** (top left) opens the list of the page you are on, the one the second bar shows on a computer: your sessions on
Sessions, the agents, the chats, the task projects, the Infra sections, the folder, the mailboxes and folders, the
notification sources. Pages without a list (Home, Git, Settings...) have no ☰.

On a computer the bottom of the sidebar holds the same status block, with the keyboard shortcuts next to the docs.
The pages with a list (Sessions, Agents, Team, Tasks, Infra, Files, E-mail, Notifications) show it in a second bar
next to the sidebar (see [Sessions](sessions.md#layout)); the touch layout opens the same list from ☰.
The getting started guide (also in Help, **?** at the bottom left) and the interactive tutorial are in **Settings -> General**; **Sign out** is in **Settings ->
Security**.

Also:
- **Share to Harness** (installed app, Android): in any app - Photos, Files, the browser, a note - tap **Share** and
  pick **Harness Maxxing**. A new session of the topic you were in opens with the photo, the file, the link or the
  text already in the message box (10 files at most); nothing is sent before you send the message, and you can
  move the session to another topic first. An iPhone does not offer installed web apps in its share sheet: attach
  the file from the message box instead.
- In the installed app, **swipe from the left edge** to open the page's list (the sessions on Sessions), from the
  right edge to open the menu;
  swipe a drawer back towards its edge to close it.
- Panels that slide up from the bottom close with a **swipe down** (from their handle, their title, or their
  content when it is scrolled to the top), or a tap on the dimmed area above them.
- The microphone and send buttons are bigger; while you type, panels stay above the keyboard.
- The page does not zoom (no pinch, no double tap), like a native app; fields never make the iPhone zoom in.

## Claude authentication

Three ways, best first:
1. **Long-lived token**: run `claude setup-token` on any computer with a browser, paste the token.
2. **API key** from the Anthropic console (billed per use).
3. **CLI login** done on the server (`claude`, then `/login`): detected automatically.

**Test** makes a real one-line call and shows the model and the latency.

Turns start Claude without its update check, telemetry and feature-flag download (faster start, shorter prompt);
`"claude_quiet_start": false` in config.json turns that off.

Claude runs its helper agents in the foreground: you get their result in the same turn (several agents still run
side by side). Claude Code's own habit is to send them to the background, where the turn waits for them to report
back, which is slower; `"background_agents": true` in config.json goes back to it. You can always ask Claude for a
background agent in your message.

## New Claude models

Once a day the server asks Anthropic which Claude models exist (with the Claude account it is signed in with) and
keeps the newest Opus, Sonnet, Haiku and Fable: the model lists (default model, topics, jobs, agents, Telegram
`/model`) show them as soon as Anthropic releases them, without an update of Harness Maxxing. If your default model
is the newest of its family (say Sonnet 5.5) and a newer one comes out (Sonnet 6), the default follows it. A model
you chose on a topic, a job or an agent is never changed. Short titles, the connection test and Team summaries
always use the newest Haiku or Sonnet.

## Claude Code updates

**Update Claude Code automatically** (off by default): every 6 hours the server looks for a newer **stable** Claude
Code release (the one Anthropic marks stable: already used for some days, not the very latest). When there is one,
it installs that version itself - but only when nothing is running: no conversation turn, no message waiting in a
queue, no scheduled job, and the last turn ended more than 10 minutes ago. Otherwise it waits and tries again a few
minutes later, so an update never cuts a turn, and a turn that starts during the update waits for it (the
conversation says so; at most 7 minutes). Only the installed server does it: a second Harness Maxxing started on
the same machine for development or tests never updates the machine's Claude Code. It works for
the official installer and for a global npm install (another kind of install is left alone). If the new version
does not start, the previous one is put back.

Each update shows in the notifications ("Claude Code updated to 2.1.5"), and the switch shows the last one
(`2.1.4 -> 2.1.5` and its date). A failure is also notified, once per version, with the reason; the server tries
again 6 hours later. Leave the switch off to update by hand (`claude update` in a terminal); `maxxing doctor` then
lists Claude Code under `claude_version` when it is behind.

## Permission mode

| Mode | Behaviour |
|---|---|
| `sandbox` (**Sandbox (this topic only)**) | the default of a new installation. Claude works without asking inside the topic folder: its commands write there only and cannot read the server's keys, the SSH keys nor the rest of the home folder. What has to leave the topic (install a package, restart a service, another folder) asks you first, with a **Full access** button that gives the topic full access. The topics of the `system` project keep full access. See [Security](security.md#what-claude-may-do-on-the-server-permission-mode) |
| `bypass` (**Full access**) | Claude runs every tool without asking (`--dangerously-skip-permissions`). Needed for unattended work on the whole server; suitable for a server dedicated to Claude. A server installed before the sandbox became the default keeps this mode until you change it. |
| `acceptEdits` | file edits are allowed, other actions (commands) are refused unless pre-approved in Claude Code settings |
| `ask` (**Ask me**) | reading is free; every other tool that is not pre-allowed waits for your **Allow** / **Deny** (see below) |
| `default` (**Strict**) | Claude Code's standard permissions, nobody is asked: what needs an approval is refused |

A topic can have its own mode (session list -> topic menu -> **Permissions**), and so can a scheduled Claude job
(**Permission mode** in the job editor): use a stricter mode where Claude reads content from outside - web pages,
e-mails, forwarded messages - so instructions hidden in that content cannot make it do just anything. Order: the
job's mode, else the topic's, else this global one.

**Ask me** (`ask`): when Claude wants to run a command, edit a file, fetch a page or use an MCP tool that is not
allowed yet, the session shows a card above its message box with the exact request and **Deny** / **Allow** (a
message to Claude can go with Deny). The same request reaches the notifications and Telegram, so you can answer
from your phone. Without an answer it is denied after 30 minutes; a stopped turn drops its requests. **Always
allow** answers yes and adds a narrow rule to the topic - the exact command, the exact file, the site's domain, or
the MCP tool - so its sessions stop asking for it. The topic's **Permissions** dialog lists these rules; remove one
with ×. A job in an `ask` topic asks too (notifications, Telegram) and gets a denial if nobody answers in time.

**Protect the secrets** (on by default): in every mode, Claude's tools refuse to read or edit the server's secrets
(`secrets.json`) and the SSH keys (`~/.ssh`). This holds for an engine with built-in rules (Claude Code); Codex and
OpenCode apply it in Sandbox mode only (see [Engines](engines.md)). It stops a hidden instruction from simply reading them; a script written
on purpose to open the file is not stopped, so it does not replace a stricter mode. More rules: `claude_deny` in
config.json (Claude Code rule syntax, for example `"Bash(rm -rf:*)"`).

See [Security](security.md).

## Keys (secrets vault)

Store API keys and tokens your projects need (for example `OPENAI_API_KEY`, `SHOP_TOKEN`):

- names are UPPER_CASE (`A-Z`, digits, `_`), values are hidden and shown only on **Reveal**;
- add a note (what it is for, where it comes from);
- **Add key** refuses a name already in the list (open that key with **Edit** to change it); a pasted
  multi-line value (a PEM or SSH private key) keeps its line breaks;
- **Expose** makes the secret available as an **environment variable** to every Claude session and
  every shell cron job – handy for scripts, and Claude never needs to see the value in a chat;
- **Topics** (under the switch, in the dialog of a key or a file) limits an exposed key to the projects and
  topics you tick: only their sessions and their scheduled jobs get the variable. A ticked project covers all
  its topics, also the ones created later. Nothing ticked means every topic, as before. A limited key is not
  given to a session at the workspace root nor to a shell job without a topic, and the list shows "2 topics"
  next to it. From the terminal: `maxxing keys set NAME --topics projects/shop,projects/blog/topics/seo`
  (`--topics ""` for every topic again). An agent gets only the keys of its own list, and a limited key
  only when the agent's topic is among the ticked ones. It decides
  what a session receives at its start; a session with full access can still run `maxxing keys get`, so combine
  it with the sandbox mode for the topics you do not trust;
- some names are reserved (system variables, variables that make shells, Node, Python or git load
  code or send credentials elsewhere - `NODE_OPTIONS`, `BASH_ENV`, `SHELLOPTS`, `CLAUDE_CONFIG_DIR`,
  `ANTHROPIC_BASE_URL`, `SSH_AUTH_SOCK`... -, anything starting with `MAXXING_`, `GIT_`, `LD_`, `DYLD_`,
  `PYTHON`, `NODE_`, `BASH_`, `XDG_` or `SSL_`, anything ending in `_PROXY`); an existing key with such a
  name is kept but no longer exposed.

From scripts and sessions: `maxxing keys list|get|set|delete` (the value of `set` is read from stdin) -
a script that renews a token writes the new value back this way. Scripts read keys from the
environment (`os.environ["NAME"]`), never from a file of their own.

**Check a key.** A key may get a **check command** (Edit -> *Check command*, or
`maxxing keys check-set NAME "command"`; `""` removes it): a shell command run with the key as `$NAME`, 30 s at most,
exit code 0 = the key still works (a token not revoked, a sign-in cookie not expired). The server runs it once a day;
the list shows a dot and when it ran. A failure posts one notification (source *keys*) naming the agents that use the
key; the next success ends it. `maxxing keys check [NAME]` (or *Check now* in the key's menu) runs it at once. Its
output is kept to 300 characters, the value hidden. An agent's turn can neither set nor run a check.

Write only the key *name* in memory files ("Shop API: key `SHOP_TOKEN`"). Extensions read keys with
`ctx["secret"]("NAME")`.

Keys live in `/var/lib/claude-maxxing/secrets.json` (mode 600) and are not included in the backup.

**Encrypting that file (optional).** `maxxing keys encrypt`, as root, seals it with the machine's own key
(`systemd-creds`: the host key, and the TPM when there is one) into `secrets.json.cred`; `maxxing keys decrypt` goes
back. It makes a copy of the file (a backup of the state folder taken elsewhere) useless on another machine; it does
not stop someone who is already root on the server, since the key is on the machine so that the server restarts
alone - and without a TPM a copy of the whole disk holds the key too. Once sealed, a script that reads `secrets.json`
directly stops working (use `maxxing keys get NAME` or the environment), and the state folder cannot be moved to
another server as it is: run `maxxing keys decrypt` first. Details: [Security](security.md#secrets-sealed-on-disk-optional).

### Files

Some secrets are not a line of text: a keystore (`.p12`, `.jks`), a service-account JSON, a certificate. The **Files**
section of Settings → Keys stores them (1 byte to 1 MiB, binary is fine) under a name like a key
(`ANDROID_KEYSTORE`, `GCP_SERVICE_ACCOUNT`; same naming rules, and a name is either a key or a file). Only the list is
ever shown: name, original file name, size, a short SHA-256 fingerprint (its first 12 characters, enough to tell two
versions apart) and your note. The content is never sent to the
browser; to replace a file, upload it again under the same name (**Edit**, then choose the new file; leave the file empty to change only the note or the switch).

- **Expose** puts the file's **path** (not its content) in the environment variable of that name, for every Claude
  session and every shell cron job: `keytool -keystore "$ANDROID_KEYSTORE" ...`. Nothing to copy into a project folder
  and nothing to commit by mistake.
- From the terminal (the file comes from disk, or from stdin with `-`):
  `maxxing keys put-file NAME PATH [--note TEXT] [--no-expose]`, `maxxing keys get-file NAME [-o PATH]`
  (the bytes on stdout, or a new file of mode 600; `--force` to overwrite), `maxxing keys delete-file NAME`.
  On a terminal `get-file` prints only text: for a binary file use `-o FILE` or redirect the output (`> FILE`).
  `maxxing keys list` shows them with a `file` marker.
- Files live in `/var/lib/claude-maxxing/secret-files/` (folder mode 700, files mode 600), next to `secrets.json`:
  **never in the backup**, and covered by *Protect the secrets* like `secrets.json`.
- Agents never get a file (their *Keys it can use* list is about text keys), and their commands cannot read or
  change them with `maxxing keys`.

This is safe storage that avoids leaks **by mistake** (a commit, the backup, a memory file): sessions run as the
server's user, so it is not isolation from a session, which can read the path it is given - the same as for a key
exposed as a variable. A certificate expiry date in the list may come later.
