{% if pty_screen_enabled and pty_extra_present %}
{# xterm.js renders the read-only live pty-screen view (#534); only loaded when the tap is on
AND the optional `pty` extra (pyte) is present — greyed control below when it's missing. #}
{% endif %}
{% include "_tabler_sprite.html" %}
{# Desktop bridge row header (#782 M-2): the badge + status pill + project name shared by
the Active-zone and Recent-zone desktop rows. `default_label` is the fallback text
before Alpine hydrates ("Running" for live, "Stopped" for ended). #}
{% macro desktop_row_head(default_label) %}
desktop{{ default_label }}
{# Session-shape chips (#779): a project can run one standard bridge plus N
interactive sessions, so mark which one this row is — and whether the
interactive session is isolated in its own git worktree. #}
interactiveworktree
{% endmacro %}
{# Modal scaffold (#782 M-1): the focus-trap / escape / backdrop a11y contract shared by
the config-editor and transcript modals. The caller supplies the data-test id, title
id, close/trap handler names, and the title content (which may include Alpine bindings).
SECURITY: `title_content` is rendered with `| safe` so Alpine bindings survive; callers
MUST NEVER pass user-controlled data — only static developer strings + Alpine directives.
Backdrop dismissal is gesture-guarded (#1030): a text-selection drag that starts inside
the dialog and releases over the backdrop makes the browser synthesize the `click` on
their COMMON ANCESTOR — this very div — so a bare `@click.self` closes the modal
mid-selection. `bdDown`/`bdUp` record whether the gesture started AND ended on the
backdrop itself; only a true backdrop click (both ends) dismisses. Escape and the ✕
button are unaffected. #}
{% macro modal_shell(data_test, title_id, close_fn, trap_fn, title_content) %}
{{ title_content | safe }}
{% endmacro %}
{# Active-session row macros — reused by both the live list and the Recent group so a
browser/detached row renders identically wherever it appears (live vs ended). The
`filtered` flag gates the live-session-filter `x-show`: the Active zone passes the
default (filtered=True) so the chips hide non-matching live rows, while the Recent
zone passes filtered=False so ended rows always show — the filter is about live
sessions, not ended ones, and recentCount() is filter-unaware (#421). #}
{% macro hosted_row(filtered=True) %}
browser
{# Unconditional, unlike a bridge row's `claude.ai` badge (x-show on
bridge_session_id): a hosted session is local-only for its whole life,
not a yet-to-register bridge. Don't gate this on state. #}
local live-view only
{# The title names Resume only when the row can actually offer it. Both halves
of the Resume gate below, not just `project`: a salvaged row can be an
orphan AND have lost its `project` (#1381), and it can just as well carry
a `claude_session_uuid` that is off-shape and so NOT usable — the record
keeps the bytes now (#1419), and `claude_session_uuid_usable` reports
whether they are a usable `--resume` token. Testing truthiness promised
Resume where the button is not rendered. Mirrors the same branch in
`reattach_all`'s orphan `error_detail`; the two must move together. #}
orphan
{# `|| h.label` because a row whose saved record degraded on `project` carries
`project: ""` (#1381) and would otherwise render nameless. Same fallback
idiom `forgetHosted` already uses for its confirm prompt. #}
{# The reason the Resume button below is absent for this row, as VISIBLE text:
a tooltip never fires on touch and this is a phone-first product — the same
reasoning the bridge rows' `resume-blocked` chip is built on. Without it the
row shows only Kill and no explanation, which is the "fails opaquely" half
of #1381 moved rather than fixed. Covers BOTH halves of the Resume gate
below, because a salvaged record can lose its `project` (#1381) or carry a
`claude_session_uuid` that is off-shape and so not usable (#1419 keeps the
bytes; `claude_session_uuid_usable` is the shape-checked signal). A healthy
row matches neither, so it is unaffected. BOTH can be missing at
once — `_degraded_row` salvages per field, so one tampered record drops the
uuid and the project independently — and that case names both rather than
falling to the project half, which would leave the operator repairing one
field and hitting the same wall. The title stays short rather than naming a
follow-up action: Kill renders only for an orphan and Forget for everything
else, so no single sentence fits both. #}
resume unavailable
{# `:disabled` is coerced with `!!` on every busy-state binding below. These
buttons live in an x-for clone and the busy maps (hostedStopping/hostedResuming/
agentStopping) start without the row's key. Alpine 3.15.x renders a bare
`:disabled="map[key]"` as DISABLED when that key is absent (an explicit false
renders enabled) — so the Stop/Kill/Resume button is stuck un-clickable until
the key exists. `!!` yields a concrete false for a missing key, which renders
enabled. The sibling `x-text` ternaries are unaffected (undefined → 'Stop'). #}
{# `h.project` joins the uuid gate (#1381): a row whose saved record degraded
on `project` still reattaches (that binds by process id) but can never
respawn, because the spawn cwd is resolved from the project name. The
resume route refuses it with a 409 that says so (and `_resume_locked`
refuses it again for any non-route caller), so offering the button could
only ever produce that error. Same shape as the uuid gate beside it, and
the two mirror the engine's two guards. The reason is rendered above and
in the View panel's ended banner; Kill stays available below, which is
the honest set of actions for such a row. #}
{# Restart (TASK-459): only where Resume could follow the stop — the same
uuid + project gate as the Resume button above — and only on a running
session. The restart route refuses a starting row with 409 from PR 1858
on (a restore pass that is still reattaching also reads starting). #}
{# Forget only for an ended, non-orphan hosted session (an orphan is a live
survivor — Kill it first). `!!` coercion: see the detached-row note. #}
{# The last restart's error on this hosted row (TASK-459). x-text: CLI output. #}
Live link dropped — reconnecting…
{# Built from `h` on every render, not stored at the moment the session ended,
so the reason and the Resume hint follow the latest poll (#1467). #}
backgroundclaude.ai
{# Liveness-aware action. A live worker is "Stop" (destructive red): the DELETE
double-SIGINTs it for an orderly cloud-deregistering shutdown. An ENDED
session has no live worker, so the deregistering SIGINT can't run — the
DELETE only `claude rm`s the local record. So it reads "Forget" (neutral,
not red, not "Deregister" — nothing is deregistered when the worker is gone);
for an ended claude.ai session the title flags the possible cloud orphan.
`!!` coercion: see the hosted-row note above — without it the button is
stuck DISABLED on first paint (Alpine 3.15.x x-for missing-key `:disabled`). #}
{# Resume an ENDED agent with a session UUID: `--bg --resume` continues the
prior conversation (#336); a claude.ai job gets `--remote-control` too.
`!!` coercion on :disabled — same Alpine 3.15.x x-for missing-key guard as
the sibling buttons. #}
{% endmacro %}
{# External (unmanaged) session row — a `claude` session in a project dir that Clauster
didn't start. Observe-only: no controls, since Clauster doesn't own its lifecycle. #}
{% macro external_row() %}
externalunmanaged
{% endmacro %}
v{{ version }}{{ projects_root }}
claude not logged in
{# Config-management surface (#773): a distinct trigger from the config editor
above (that one edits clauster.yml; this one manages the host's Claude Code
config — CLAUDE.md, settings, permissions, hooks, MCP, subagents, skills,
plugins). Rendered ONLY when config-write is enabled, mirroring the
invisible-surface invariant of its /api/config-write/* routes. #}
{% if config_write_enabled %}
{% endif %}
{# In-app help (#571): only the `?` trigger sits inline in the navbar — the
panel is emitted at end-of-body (a `.navbar-expand-*` descendant `.offcanvas`
is flattened to static by Tabler's responsive CSS, which would kill the overlay). #}
{% with help_part = "trigger" %}{% include "_help_offcanvas.html" %}{% endwith %}
{% if auth_enabled %}
{% endif %}
Clauster dashboard
Lost connection to the server — data may be stale. Retrying…
Before you start a session
Checks
not run, so readiness is unknown. That is not a pass. Select Re-check to try again,
or run clauster doctor on the host.
{# tabindex=-1: not a tab stop, but the transcript viewer's last-resort focus target
on close when the bridge row that opened it is gone (TASK-269). #}
Active sessions
what Claude is running for you right now
No sessions match this filter.
{% if claustrum_enabled %}
{{ hosted_row() }}
{% endif %}
{# aria-describedby names the metrics chip's explanation only while the chip
shows (#1306), so a row with no chip carries no reference to empty text. #}
{{ desktop_row_head("Running") }}
{# Instance-keyed metrics (#1090): each row shows ITS OWN bridge's CPU/MEM.
Keyed by project this was the co-located bridges' SUM, so a Server-Mode
row wore the Interactive Sessions' usage — which is also why the pty row
was excluded outright (#779). Both go away with the per-instance key. #}
{# The chip's explanation was a `title` only: mouse-only, on a phone-first
dashboard (#1306). A screen reader reads this copy in reading order, right
after the chip; the row's aria-describedby also exposes it to tools that
show descriptions (the row never takes focus). It adds NO tab stop: a
focusable chip on every row would shift the keyboard order of the whole
dashboard. Touch and sighted keyboard users get the one-line legend in
the help panel instead. #}
{# The `claude` release this bridge's PROCESS is running (#1275) — instance-
keyed like the metrics chip above (#1090), so co-located bridges on
different versions each show their own. Absent (not "unknown") whenever
the backend couldn't resolve it: an honest gap beats a stale guess. #}
Open in Claude
{# Running but no connect URL yet: explain the transient capture gap instead
of silently dropping the headline "open on your phone" affordance (#427
UX-02). Both modes get a URL (pty's is scraped from the reassembled pty
screen, #665), so this is USUALLY a spinner placeholder — unless the
backend named a reason it is not coming, in which case the advisory chip
below replaces it (`&& !connectNoticeOf`, #1390): a spinner promising a
link that will never arrive is worse than no chip at all. The chip is
VISUAL only (aria-hidden); the screen-reader announcement comes from a
persistent aria-live region below, because a live region toggled in via
x-show (display:none→visible) is silently skipped by NVDA/VoiceOver. #}
Preparing connect link…
{# The advisory: the link is missing and the backend knows why (#1390). Plain
text, not a control — there is nothing to click, and a button-shaped chip
would invite a press. Warning, not danger, is the point of a separate
`notice` field: the session is RUNNING and usable, only its deep link is
gone, so this must not read as the failure `error_detail` marks.
`text-warning-emphasis`, NOT `text-warning`: the plain token is Tabler's
#f59f00, which is 2.1:1 on the light theme's white surface — fine for an
icon, failing 1.4.3 AA for the only sentence explaining the missing
buttons. The emphasis token is theme-aware and clears 9:1 on both.
NOT aria-hidden, unlike its spinner sibling: this state is permanent and
survives a reload, so it must be readable in the a11y tree at any time
rather than announced once. It is therefore kept OUT of the live region
below, or a screen reader would meet the same sentence twice. #}
{# Persistent live region — always mounted, empty when idle — so the
announcement fires on a content change, not a display toggle (#427 UX-02). #}
{% if pty_screen_enabled %}
{# Read-only live terminal (#534): pty bridges only — standard bridges have no PTY.
The whole control is server-gated on pty_screen_enabled (no markup when off). #}
{% if pty_extra_present %}
{% else %}
{# The tap is on but the optional `pty` extra (pyte) is missing (#904) — the live
view can't render, so show the control GREYED + disabled with a static install
hint rather than silently omitting it. Static server-side (no Alpine state). #}
{# Native `disabled` puts the control out of tab order and conveys the
state to assistive tech; the reason is the adjacent visible hint span,
which sits right after it in reading order. #}
requires the pty extra — {% if pty_extra_is_command %}run {{ pty_extra_hint }}{% else %}{{ pty_extra_hint }}{% endif %}
{% endif %}
{% endif %}
{# Read-only transcript viewer trigger on the live-session row (#866): opens the
same project-keyed session-history modal as the project row, with this bridge's
live session sorted to the top (live-first). Shown for worktree-spawn bridges
too (TASK-488): a worktree session's .jsonl lands under a different
sanitized-cwd dir, but the project-keyed list (usage.transcript_paths_for) and
the live set (runner.live_session_uuids) both include the project's worktrees.
Distinct data-test from the project-row one. #}
{# Restart (TASK-459): stop + resume through this row's own mode path, so the
bridge picks up the claude binary now on disk. Single-flight per row; the
confirm in restart() names what this mode loses. #}
{% if force_restart_enabled %}
{# Force restart (instance_defaults.allow_force_restart): standard bridges with a
recorded environment id only (a card rebuilt after a clauster restart has none
until a plain Restart). It archives the bridge's cloud environment, so the
confirm in restart() says that every session in it ends. Shares the Restart
single-flight slot. Secondary, not warning: btn-outline-warning text fails AA
contrast (TASK-291); the confirm carries the warning. #}
{% endif %}
{# The last restart's error, on the row it belongs to (TASK-459). The detail says
whether the stop already ran. x-text: the detail carries CLI output. #}
{# Live-session list (#570): a STANDARD remote-control bridge can host several
concurrent sessions, and the row's "Open in Claude" link opens only the starter
session or the bridge CONNECT URL. Expand to list every live session under
the bridge with a direct per-session deep link + uptime. Shown from the first
live session (hasBridgeSessions); pty bridges are single-session and keep their
own link. Short-UUID labels only — friendly names deferred. x-text everywhere
(NEVER x-html): the sessionId is untrusted CLI output. #}
{# Keyed by the row key `rk` (the instance_id), NOT the project (#1020 A3): a
project can run a standard bridge and N interactive ones, so a project key
gave every one of those rows the SAME session list — the standard bridge
appeared to own the independent interactive sessions — and minted duplicate
`bridge-sess-` DOM ids while it was at it. #}
{# In-app counterpart to the claude.ai "Open" link (backlog TASK-269): opens
Clauster's own read-only transcript viewer straight onto this session,
which follows it live. A
Jump to latestpaused
( buffered)
{# The reconnecting/lost banners are mutually exclusive: the state machine sets one
and clears the other on every transition, but gate the info banner on
`!lost` too so a missed clear (e.g. an Alpine reactivity edge, cf. #310/#315)
can never stack BOTH banners at once — the warning always wins.
NB: keep `d-flex` OFF the x-show element. Tabler's `.d-flex` is
`display:flex !important`, which overrides the inline `display:none` that
x-show sets to hide — so a d-flex banner stays visible regardless of state
(the false "Live tail dropped/disconnected" banners bug). Put the flex layout
on an inner wrapper instead, like the connLost banner above does. #}
⏳ Live tail dropped — reconnecting…
{# Liveness-aware copy: only claim the bridge "may have stopped" when the snapshot
says it isn't alive. A live-tail WebSocket can drop while the bridge keeps
running (an idle proxy reaping a quiet socket) — saying it died would falsely
alarm the operator, so word that case as a transient tail drop. The
running/starting test mirrors the reconnect liveness gate in openLogs. #}
Live tail disconnected — the bridge may have stopped.Live tail disconnected — the bridge is still running; click Reconnect to resume the tail.Reconnect
{# bg-dark/text-white: terminal-style log view, intentionally dark in both
themes (a console reads as dark) — not a theming straggler to "fix". #}
{% if pty_screen_enabled and pty_extra_present %}
{# Read-only live terminal (#534). The xterm.js Terminal is created on open and
disposed on hide; it lives in a module-level registry, NOT Alpine state, so its
internals are never wrapped in a reactive Proxy (cf. #310/#315). The wire is
cells-only + redacted server-side — no raw ANSI ever reaches the browser. #}
Live terminal
{# Restart/disconnect affordance: a pty bridge restart writes a final "exited"
frame (the view freezes on the old session) and a dropped socket reads
"disconnected" — both resolve by toggling the view to reattach to the new
spawn. NB d-flex stays OFF the x-show element (Tabler !important; cf. #538). #}
{# role="alert" (assertive) matches the sibling log-tail disconnect banner — this
"session ended / toggle to reattach" message needs action, like that one. #}
Session ended — toggle Live terminal to reattach.Live terminal disconnected — toggle to reconnect.
{% endif %}
{# Pending interactive launch (#779): a pty spawn has no row (and no minted
instance_id) until the POST returns — surface an explicit stub instead of
leaving the click apparently ignored for the ready-wait seconds. #}
desktopinteractive
Starting interactive session…
{{ detached_row() }}
{{ external_row() }}
Nothing running yet — launch one from a project below.
{# `recentOpen` lives on the root component (TASK-459): a restart that stopped a row and
could not start it again opens this group, so the row's error is on screen. #}
{% if claustrum_enabled %}
{{ hosted_row(filtered=False) }}
{% endif %}
{# No live-session-filter x-show here: the Recent zone is decoupled from the
chips so ended rows always show and match recentCount() (#421). #}
{{ desktop_row_head("Stopped") }}
{# #1149: keep a failed bridge's cause on screen — an ERROR row would
otherwise render nowhere. error_detail is backend-redacted (runner). #}
{# The likely reason for a crash: a task limit refused forks just before it. #}
{# The bridge died but its session did not (TASK-562). `-emphasis` for the
same contrast reason as connect-notice. Plain text, readable at any time. #}
{# A restart that stopped this row and could not start it again (TASK-459):
its error follows the row from Active into Recent. #}
{# Hidden only while bridge-error-detail above shows the same cause; an
ERROR row with no error_detail keeps this as its only reason. #}
{# Why Resume can't run, as VISIBLE text: a disabled control's tooltip
never fires on touch, and this is a phone-first product. Carries an id
so the button can point at it with aria-describedby. #}
{# aria-disabled, NOT :disabled — a disabled button leaves the tab order,
so a keyboard/SR user would land on Forget with no hint Resume existed
and never hear the reason. Focusable + described keeps the explanation
reachable. Note `.btn.disabled` also sets pointer-events:none, so a
MOUSE click is swallowed by CSS; the @click short-circuit is what
refuses on the keyboard path, where the control is still activatable.
The `.disabled` look is deliberate, not inherited: it drops the label
to ~1.5:1, which WCAG exempts for a control declared inactive, and the
information the operator needs is the reason beside it — rendered at
full contrast, not colour-coded. Every other inactive control here uses
the same treatment, and a bespoke one for this button would be the
odd one out.
`:title` stays the plain Resume text: with pointer-events:none the
hover tooltip can never fire while blocked, and aria-describedby
outranks title for the description, so a reason here reaches nobody. #}
Resume
{# `!!` coercion: a busy-map key absent on first paint renders this DISABLED
under Alpine 3.15.x inside an x-for clone — coerce to a concrete bool.
Keyed by rk (= the instance_id _forget spins on), so the spinner tracks
THIS row (#779). #}
Forget
{{ detached_row(filtered=False) }}
Projects
a folder Claude works in — launch a session from any of them
CancelNew project
{# x-show lives on this OUTER wrapper (no d-* display utility) so Alpine's inline
display:none actually hides it; the d-flex layout sits on the inner alert. #}
{# role="status" (polite live region) so a banner that appears mid-session — a newly
discovered untrusted project surfacing on a poll — is announced (WCAG 4.1.3). Its
text carries the count; removal on success is silent and the toast covers that. #}
{# gap-3: Tabler 1.6 dropped the flex gap from .alert, so without it the wrapped text
touches the "Trust all" button at phone width. #}
trust before a session can launch here.
Trust all
https / ssh only · private/LAN hosts need
clone.allow_private_hosts in clauster.yml · cloning only fetches files (nothing runs).
CreateCancel clone
Cancel this clone? The partial download is discarded — you can start it again.
Yes, cancel cloneKeep cloning
A clone is already in progress (started in another tab) — showing its live progress here.
ships
— its code runs when you launch a session here. Review it before starting.
Show it
{% if projects %}
{% for p in projects %}
{% set idx = loop.index0 %}
{% include "_project_row.html" %}
{% endfor %}
{% else %}
Welcome to Clauster
Clauster spawns Claude Code into your project directories and lets you drive each
session from claude.ai/code or the Claude mobile app — no SSH session, no terminal
on the host.
Point projects_root at a folder whose subdirectories are projects, then
create or clone one below. Each becomes a card you can launch a bridge in.
Create a project
Clone from git URL
Got it
No projects yet — create one or clone a git repo under
{{ projects_root }} to get started.
New project
Clone
{% endif %}
{% if reaper_ui_enabled %}
Close maintenanceMaintenance
Clean up leftover environments
When a session ends, its cloud environment can linger in the
claude.ai/code "New session" list with nothing running in it. Remove those here. The cloud
Default — and any environment still backing a live session — is never touched.
Scanning…
Archive
Permanently delete
Refresh
{% endif %}
{% if login_shepherd_enabled %}
Close claude loginSign in to the claude account
Sign in to the runtime claude account
Fixes a logged-out or expired claude account without SSH. Pick a mode,
open the authorize link in a new tab, approve it, then paste the code it gives you
back here.
{% if login_shepherd_allow_setup_token %}
Opens a one-time authorize link tied to your Claude subscription.
Mints a CLAUDE_CODE_OAUTH_TOKEN you copy into the runtime
environment yourself — requires a Claude subscription.
{% else %}
Opens a one-time authorize link tied to your Claude subscription.
{% endif %}
Start
1. Open the authorize link, sign in, and approve access:
2. Paste the code it gives you back here:
Submit
A sign-in is already starting. Reload in a moment to pick up its authorize
link, or cancel it and start again.
Recheck nowCancel
Copy
Set this as CLAUDE_CODE_OAUTH_TOKEN in the runtime account's
environment, then restart the bridge.
Start another
{# Non-interactive runtime-account auth (#848): apiKeyHelper / API key /
OAuth-token deployments don't use the interactive flow above. Surface
them next to it so an operator lands on the no-SSH config path. The
secret-write plumbing already ships (#772/#773/#765); this only links
to it, and stays fail-closed on the config_write.enabled gate. #}
Already authenticate non-interactively?
If this account uses an ANTHROPIC_API_KEY, a stored
CLAUDE_CODE_OAUTH_TOKEN, or an apiKeyHelper
command instead of an interactive login, set it in
settings.json without SSH:
{# Runtime-account auth is account-wide, so it belongs in USER-scope
settings.json — which the config editor only writes under the
config_write.allow_user_scope opt-in. Offer the deep link (pinned to
User scope) only when that's on; otherwise fail closed to a hint so an
operator never saves the key into a project's settings.json where it
wouldn't authenticate the account. #}
{% if config_write_enabled and config_write_allow_user_scope %}
ANTHROPIC_API_KEY / CLAUDE_CODE_OAUTH_TOKEN — add an env row.
apiKeyHelper — add the key in Raw JSON mode.
Open Claude Code config (User scope)
{% elif config_write_enabled %}
Runtime-account auth belongs in User scope. Enable
config_write.allow_user_scope to set it from the dashboard, or
configure it over SSH.
{% else %}
Enable the Claude Code config editor (config_write.enabled +
allow_user_scope) to set these from the dashboard, or configure
them over SSH.
{# The in-app restart re-execs in place (os.execv): bridges + hosted sessions
survive the swap and reattach, so a save-then-restart preserves running
work — it only briefly disconnects. This note replaced a false
session-ending warning that contradicted the leave-bridges-running
shutdown (#663). #}
session
running — they keep
running and reconnect after the restart.
Advanced
deprecated
No settings match “”.
{# Advanced (Tier-B) settings (#978): clone.*/webhooks.* scalars behind the
config_write capability + a step-up re-auth. Shown only when config-write is
enabled; locked until the operator re-confirms the password. Bind address,
auth switches, and TLS deliberately stay file/CLI-managed (never here). #}
{# id follows the cfg-sec- convention so scrollToSection('advanced')
resolves it and applies the measured sticky-nav scroll offset (#1032). #}
Advanced settings
Sensitive operational settings (repository cloning, outbound webhooks). Editing
these re-confirms your password. Network bind, authentication, and TLS stay
file/CLI-managed.
{# Step-up needs a password; without one configured the unlock form could
never succeed (auth may still be on via reverse-proxy/API token) — show a
note pointing at how to enable it. #}
Advanced settings require a password. Set
auth.password_hash in the config file to enable them.
Loading…
Saved — restart Clauster to apply (use the Restart button below).
{# A scalar has one control, so its caption is a real
{# Slice 4 — list rows editor (e.g. clone.allowed_schemes). Stable :key
on row.id keeps input focus across add/remove. #}
×
+ Add
{# Slice 4 — fixed-key boolean map (webhooks.events): one switch per known
event; the "(default …)" hint shows when a toggle differs from its default. #}
Save advanced settings
{# Config-management modal (#773) — the first UI over the gated /api/config-write/*
surfaces. Rendered only when config-write is enabled (invisible-surface invariant),
so a disabled deployment ships no dead modal. Slice A wires CLAUDE.md + settings;
later slices append surface tabs + views. Scope toggle, project picker, and a
shared type-the-name confirm gate every write; secrets are server-masked. #}
{% if config_write_enabled %}
{# trapConfigTab is generic (scopes the focus trap via e.currentTarget), so it is
shared with the config-editor modal — not editor-specific despite the name. #}
{{ modal_shell("configmgmt-modal", "configmgmt-title", "closeConfigMgmt", "trapConfigTab", "Manage Claude Code config") }}
Manage this host's Claude Code configuration. Every write asks you to type
the scope name to confirm, and secret-shaped values are masked.
{# The banners are VISUAL only (aria-hidden): a live region toggled in via x-show
(display:none to visible) is skipped by NVDA and VoiceOver. The persistent
regions below are always mounted and change text instead, so a screen reader
hears each write result once and reads it once in browse mode (TASK-508). #}
{# text-break: a load error can now carry the server's detail (TASK-512), and a
long unbroken one must not widen the modal at phone width. #}
Saved.
{# TASK-524: a value outside a list of known values saves as typed, and the save
response names each one. text-warning-emphasis: plain .alert-warning text
misses AA contrast in the light theme. #}
{# text-break: a quoted value can be 80 characters with no space (phone width).
Not aria-hidden, unlike cm-saved: the warnings stay on screen, so a screen
reader must find them in browse mode, not only hear the live region once. #}
Scope
{% if config_write_allow_user_scope %}
User
{% endif %}
ProjectLocal
Project
{# TASK-521: a project removed since it was picked stays named in the box as a
disabled choice, instead of the box showing a stale or blank pick. It must
be :selected itself: x-model only re-applies when configMgmt.project changes,
so when the old option is removed the browser would show the first listed
project while the model still names the removed one. #}
No projects yet — create one first.
{# Always mounted and empty while the pick is valid: a status region shown by
x-show is skipped by screen readers, a text change is announced.
text-warning-emphasis: plain text-warning misses AA contrast on white. #}
Loading…
Select a project to manage its config.
CLAUDE.md
Free-form guidance. Blank clears it — there is no delete.
Other settings in settings.json
RowsRaw JSON
Desktop-only keys in this file:
.
Only Claude Desktop reads them. The Claude Code CLI ignores them, so the merged
view leaves them out.
These keys hold a value that is not on the list of known values:
.
Each saves as typed. The list comes from the Claude Code docs and can be out of date.
No keys in this file. Add one below.
Edit in Raw JSON
Edited on the tab.
Remove
Add a keyValue type for the new key
Add key
The list suggests the documented keys of one value that Claude Code reads at
this scope. Pick the type of the value: text, true/false or number. A documented
key selects its type for you. When you save, the server checks every key.
{# Keep d-flex OFF this x-show element: Tabler's `.d-flex` is
`display:flex !important`, which beats the inline `display:none` that
x-show sets, so the empty alert would always show. The flex layout lives
on the inner wrapper instead, as for the live-tail banners. #}
Edit in Raw JSON
env — environment variables
No env variables at this scope. Add one below.
Environment variables: name, value, and remove action
Name
Value
Remove
Remove
Add variable
Each key shows by the JSON type of its value: a switch, a number, or text. A text box
suggests the documented values of its key. To see them all, clear the box, then press
the Down arrow key. Any other value saves as typed, with a warning. Edit objects and
lists in Raw JSON.
Masked values show as ******** — leave the mask to keep the stored value.
settings.json (raw)
Permissions, auto mode rules (autoMode), hooks, plugins, and MCP-enable have
their own tabs and are not shown here.
Secret-shaped values are masked as ******** — leave the mask to keep the stored value.
Key
Value
From
permissions — rules, mode and switches
RowsRaw JSON
Default mode
Remove
Rules and paths are stored verbatim and never run. allow auto-approves,
deny blocks, ask prompts. additionalDirectories
gives Claude file access outside the start directory. Switch to Raw JSON for shapes the rows can't show.
permissions (raw)
The permissions object Claude Code enforces, edited as JSON. Put
autoMode in the auto mode section below (at User scope), not here: it is a separate top-level key.
autoMode — auto mode classifier rules
A JSON object with the lists environment, allow,
soft_deny and hard_deny (prose rules for the classifier, never run
by Clauster) and the Boolean classifyAllShell. Put "$defaults" in a
list to keep the built-in rules at that position; a list without it replaces them. Leave the
box empty for no block. An entry that holds a secret shows as ********: leave the
mask to keep the stored value.
autoMode — auto mode classifier rules
Claude Code reads autoMode only from User scope.
{% if config_write_allow_user_scope %}Switch to User scope
{% else %}User-scope editing is off in this Clauster
configuration, so edit ~/.claude/settings.json on the host.{% endif %}
Ignored by Claude Code: this file holds an autoMode block, but Claude Code reads
autoMode only from User scope.
{% if config_write_allow_user_scope %}Switch to User scope to save auto mode rules.{% else %}User-scope
editing is off in this Clauster configuration, so edit ~/.claude/settings.json on
the host.{% endif %}
Remove it
Marked for removal. Type below and press Save to
remove only the autoMode key from this file.
Keep it
{# A note toggled in by x-show is skipped by screen readers (see cm-saved-live),
so the pending removal is announced from this always-mounted region. #}
hooks
RowsRaw JSON
Hooks run when Claude Code reaches a lifecycle event. A hook runs a shell
command, sends the event data to a URL (http), calls an MCP tool, or asks a model (prompt, agent).
Review every hook before you save. Clauster stores hooks as data and never runs them.
No hooks at this scope. Add one below, or switch to Raw JSON.
Hooks: each hook has two lines, the event, matcher and type,
then the handler, timeout and remove action
Event
Matcher
Type
Timeout (s)
Remove
Remove
Add hook
Each row is one hook. Rows sharing an event + matcher are saved as one group.
Leave the matcher blank to match all. Switch to Raw JSON for the fields the rows
can't show (http headers, args, async, model, MCP tool input, and others).
A ******** in a URL keeps the stored value on save; replace it to change that part.
hooks (raw)
Hooks Claude Code runs on lifecycle events — review carefully before saving. Edited as JSON.
Stored header values and URL credentials show as ********; leave a mask
in place to keep the stored value for the same URL.
MCP servers
New server
No MCP servers at this scope.
Clauster converted these stored fields when it loaded them. Open
each server and save it to write the fix to the file:
:
MCP servers: name, definition, and actions
EditDelete
Delete ? Type
to confirm.
DeleteCancel
Server approvals
Whether Claude Code may use each committed .mcp.json server in this project.
Loading…
Couldn’t load approval state. Reload to try again.
Per-server approval state
settings
ApproveRejectUnset
Save approvals
Reset all approval choices
Reset choices
Name
This definition is converted from the stored one. Save to write it:
Definition
FieldsRaw JSON
Type
{%- for t in mcp_transports %}
{%- endfor %}
stdio runs a local command. http (also written
streamable-http), sse and ws connect to a URL.
A save writes only the fields of the selected type.
Command
Arguments
No arguments.
Remove
Add argument
Environment variables
Environment variables: name, value, and remove action
Name
Value
Remove
Remove
Add variable
URL
Headers
Headers: name, value, and remove action
Name
Value
Remove
Remove
Add header
Headers helper (optional)
A command that prints the headers as JSON. Claude Code runs it when it connects.
Clauster stores it and never runs it.
Tool call timeout (ms, optional)Always load this server's tools (alwaysLoad)
Claude Code loads the tools at the start of a session instead of through tool search.
Stored env and header values, the headers helper and OAuth text show as
********. Leave a mask in place to keep the stored value. For other
fields, such as role or tools, switch to Raw JSON.
Definition (raw JSON)
One server's definition, without its name, e.g.
{"command": "npx", "args": ["-y", "a-server"]} or
{"type": "http", "url": "https://…"}. Secret-shaped values are
masked as ********. Leave the mask to keep the stored value.
Type to confirm
SaveBack to list
Subagents
New subagent
No subagents at this scope.
Subagents: name, source, and actions
EditDeleteread-only
Delete ? Type
to confirm.
DeleteCancel
Name
{# TASK-468: maxlength is the backend's cap (MAX_NAME_CHARS), so the box cannot
hold a name the server refuses for its length. The rule is stated below the box,
so a paste that maxlength cuts short is not a surprise. On Windows without long
paths the whole path can bind first; that save gets a 422 that names the limit. #}
Lowercase letters, digits and single hyphens. Start with a letter, and do not
end with a hyphen. At most {{ AGENT_NAME_MAX }} characters.
{# TASK-449.5: the backend rewrote the file's old `mcpServers` mapping as the list
form on load. Say so before the operator saves, since the shown text is no
longer byte-identical to the file on disk. Above the label, so the label stays
next to its control; `text-info-emphasis` because plain alert-info text is
below AA contrast on its own tint. The textarea also lists it in
aria-describedby, since a status region shown together with its parent is
often not announced. #}
Definition (Markdown + frontmatter)
The Name above is the single source — it's written into the frontmatter
name: automatically on save, so you don't need to repeat it here.
Secret values in the frontmatter show as ********. Leave a mask as it
is to keep the stored value. The body and any comments show as stored, so do not
put secrets there.
Type to confirm
SaveBack to list
{# TASK-249: Local scope has no skills folder, only the visibility map below.
The folder list and its actions show at User and Project scope. #}
Claude Code has no local skills folder. At Local scope, this tab sets skill
visibility for you in this project only.
{# :class, not x-show: .d-flex is display:flex !important, which beats the
inline display:none that x-show sets. #}
Skills
New skill
No skills at this scope.
Skills: name, description, and actions
EditDelete
Delete ? Type
to confirm.
DeleteCancel
Skill visibility
Sets skillOverrides in this scope's settings file.
name-only lists a skill without its description.
user-invocable-only hides it from Claude but keeps its
/ command. off hides it from both. Pick
No override to remove a key.
Loading…
No skills and no overrides at this scope.
{# A wrapping list, not a table: at phone width the select drops under
its name instead of pushing the panel wider than the screen. #}
{# role="list": Safari drops the list role from a list-unstyled
. #}
{# pre-wrap: a refused name such as "two spaces" must show both
spaces, or the operator cannot see why it is refused. #}
{# Body-colour tags, not tinted badges: the -lt badges fall short
of 4.5:1 at this size. #}
no skill folderchanged
{# A stored value Claude Code does not read. x-if adds the option
after x-model set the value, so :selected picks it as it renders. #}
Add a skill name
Add
Type to save skill visibility
Save visibility
Name
{# TASK-449.6: the backend removed frontmatter fields whose value Claude Code
ignores on load. Say so before the operator saves, since the shown text is no
longer byte-identical to the file on disk. Same pattern as the subagent
editor's note: above the label, `text-info-emphasis` for AA contrast, and in
the textarea's aria-describedby. #}
SKILL.md (Markdown + frontmatter)
Edits the skill's SKILL.md. Supporting scripts aren't managed here.
Secret-shaped lines show as ********. Leave a mask as it is to keep
the stored line.
Type to confirm
SaveBack to list
Type to arm the actions below
{# TASK-522: the confirm stays typed after Enable, Disable and Update, so a
series of them needs one confirm. Any edit of the field types it fresh,
which Install, Uninstall and marketplace Add/Remove need. #}
Enable, Disable and Update keep it typed for the next one. Install, Uninstall,
and adding or removing a marketplace need it typed again.
{# Always mounted and changes text: a live region toggled in via x-show is
skipped by NVDA and VoiceOver (TASK-508). #}
Installed plugins
No plugins are installed.
Installed plugins: id, install scope, state, and actions
{# The CLI lists installs at every scope, other projects' too (TASK-523).
Update and Uninstall work only at the install's own scope and project
(p.atScope). Enable and Disable of a User-scope plugin also work at
Project and Local scope: the CLI writes a per-project override there.
Any other row is read-only, with a link to the scope that can act. #}
, installed atscope,
EnableDisableUpdateUninstall
Install a plugin (introduces new code — retype its id to confirm)
Install
Also requires the scope confirm above. To install without typing the id,
use Show plugins on a marketplace below.
Marketplaces
No marketplaces are known on this host.
Marketplaces: name, source, actions, and the plugins each offers
{# One tbody per marketplace: its row, then the plugins it offers (TASK-516),
read from the CLI only when asked. Every text in the list is marketplace
text: x-text only, and the server masks it before it sends it. #}
{# TASK-527: the list is one pool for the host. Remove works only where
this scope's settings file declares the marketplace; any other row
says so, with a link to a scope of this project that declares it. #}
{# The offered list's state for a screen reader: this row is always
shown, so the region is always mounted (TASK-508). The visible
loading, error and empty lines below are aria-hidden. #}
{# The accessible name starts with the visible words (WCAG 2.5.3);
aria-expanded carries the state. #}
UpdateRemove
{# A refresh keeps the old rows on screen with their Install buttons
disabled; this line says why. The live region stays quiet then. #}
{# The alert region is mounted with the modal and the error text fills it later, so
a failed load is announced (TASK-477). A role=alert element that appears
already holding its text is not announced reliably. #}
{# A session row's Live transcript button (TASK-269) asked for a session that has
no transcript in this list yet: say so instead of leaving the operator to
wonder why the list opened rather than the session. The status region is
mounted with the modal, outside the loading-gated picker, so the note is
announced when it fills (a region that appears already holding text is not). #}
No transcript for session
in this project yet.
No transcripts for this project yet.
{# #614: a transcript whose session id maps to a running
bridge/agent/hosted session is badged "live". #}
● live
All sessions
{# Sort toggle (#612): flips newest-first ↔ oldest-first. The visible label
and the aria-label BOTH describe the current STATE (not the action), so
they never contradict (the old aria-label described the action and read
as the opposite of the text); a caret shows the direction (down =
newest-first, up = oldest-first). aria-pressed marks it as a toggle so a
screen reader conveys that activating it flips the order. #}
Newest first
{# In-message search (#612): a backend q= scan over the whole transcript.
Bound with x-model + a debounced handler; results are still redacted. #}
Clear
Type at least 2 characters to search.
{# Live header (#614 Part 2, single-list rework): a running session is ONE
unified, tailing transcript — there is no separate tail box. This strip
sits ABOVE the loading-gated list (a non-live re-fetch toggles `loading`,
but a live session never sets it) and only shows while live. The turns
themselves render in the single list below, with new turns appended into
it per the active sort. aria-live announces the first-turn arrival. #}
● following liveUpdates as the session runs.
Waiting for new activity…
{# Only the turn list is loading-gated; the controls above stay put on reload.
A live session never sets `loading` (its tail-derived list updates in
place), so this wrapper shows immediately for live and gates only the
non-live re-fetch. #}
{# Position line (backlog TASK-268): the paged viewer says how much of the
session is on screen ("showing X of Y turns"; "matching" under a search,
where total is the post-filter count; "0 matching turns" for a search
with no hits). It sits OUTSIDE the loading gate so
the polite live region stays in the accessibility tree: its text clears
while a page loads and is announced when the page lands, which happens
only on a user action (open, Load more, search, sort). The live list keeps
its plain count and no live region, so the tail poll never chatters. #}
{# The separator stays out of the live region, so an announcement starts
with "showing" and not with "middle dot". #}
·
{# Distinct empty states: a true-empty session vs. a search that matched nothing.
Both read appliedQ, the term the list on screen was filtered with, not the box
text: while a new term waits on the debounce, the text still names the term
whose (empty) result is shown (TASK-477). #}
No messages match “”.
This session has no turns.
{# ONE list for live + non-live. Keyed on the stable per-turn _key when the
tail stamped one (live), else a timestamp+role+index composite (#720) —
never the bare index, which rebinds nodes on reorder/append. keyOf() owns
the ?? fallback (the CSP-build expression parser has no nullish operator). #}
{# iMessage-style: assistant on the left, the user ("you") on the right.
The header reverses for a user turn so the name sits on its own side. #}
{# x-text, NEVER x-html: turn content is untrusted (server-redacted) output. #}
Load more
{# In-app help (#571) offcanvas panel + controller — emitted OUTSIDE the navbar and the
dashboard() Alpine scope (the controller is independent vanilla JS). #}
{% with help_part = "panel" %}{% include "_help_offcanvas.html" %}{% endwith %}
{% include "_dashboard_script.html" %}