Installing and Activating Skins
Skin management uses the existing PHOS application and lifecycle services. The local runtime is required for live appearance; package import alone does not start it or change the display.
Web Administration
Open Appearance → Skins after signing in.
For a supplied design, find it under Available Skins and choose Apply on its card. The action saves that skin as the global skin and requests an in-process reload/reconciliation; a separate PHOS process restart is not required. If the page is in Follow Active Agent mode, the active eligible agent skin can still become the effective appearance. To keep the saved global skin in control, set Global Appearance and choose Save mode.
| Operation | Result |
|---|---|
| Import Skin Package | Accepts .phos-skin or compatible .zip; validates and installs a new custom ID. Standalone YAML is not an upload format. |
| Preview | Temporarily applies eye/background/Eye Safe/State Effect settings live; does not save configuration or apply LED/personality settings. |
| Apply | Saves the skin's appearance and global ID, then requests runtime reload/reconciliation. |
| Export | Downloads a version-3 .phos-skin archive with referenced background files. |
| Delete Skin | Deletes a managed custom definition and owned assets, subject to reference checks; built-ins and catalog entries are not deleted through this action. |
| Save mode | Persists Global Appearance or Follow Active Agent and requests reconciliation. |
The current card UI offers Preview, Apply, Export, and eligible custom-skin deletion. There is no card editor for YAML, renaming, LED palette editing, or Physical Personality editing. Edit an exported package and import it again. Repeated imports create distinct IDs rather than updating a previous skin.
Preview has no countdown or automatic revert. Apply a different appearance, trigger normal reconciliation, or restart to replace it. After Apply, verify runtime status; saving and the currently effective agent appearance are distinct.
Other global appearance controls are separate from skin cards:
| Web Admin page | Supported controls | Apply behavior |
|---|---|---|
| Appearance → Eyes | Base iris colour, visual source, and environmental eye overlays | Save & Apply updates the running display live. |
| Appearance → Backgrounds | Enable state backgrounds and assign managed images to supported robot states | Saves and applies through the running PHOS configuration reload. |
| Appearance → Eye Safe Layer | Enable local contrast protection and choose subtle, balanced, or expressive mode | Saves and applies through the running PHOS configuration reload. |
| Appearance → State Effects | Enable state effects; choose preset, palette, and reduced motion | Saves and applies through the running PHOS configuration reload. |
These pages change global display configuration; they do not edit a skin package. For a reusable set of skin options, export a custom skin, edit only documented package fields, and import it again. A selected Follow Active Agent skin can temporarily replace the global visual settings.
Other supported selection methods
- Authenticated REST API:
PATCH /api/v1/configaccepts a partial canonical runtime-configuration document, validates it, saves it, and applies reloadable settings. For example, to make the built-in Ambient skin the global selection, send{"appearance":{"mode":"global","global_skin_id":"ambient"}}. The response reports applied and pending fields. This API does not import a skin package or edit the YAML skin catalog; see the configuration API reference. - Advanced configuration editor: edit
appearance.modeandappearance.global_skin_idin the canonical configuration, validate and save, then use the existing Restart PHOS action to apply the saved configuration. Preserve other runtime settings. The editor is a full configuration surface, not a skin-package editor. - MCP: there is no MCP skin-selection tool or resource. In Follow Active Agent mode, accepted agent activity can select only the skin already assigned to that agent by an administrator.
Manual local catalog
For a stable, source-controlled ID, use the supported catalog rather than copying arbitrary skin folders into the runtime.
- Place a catalog such as the repository's
config/skins.yamlbeneath the active configuration directory. Keep the three required entry fields plusappearanceand any supported optional blocks. - Put referenced background files under that directory's
backgrounds/. - Set
appearance.config_filein the existing full runtime configuration. - In Web Admin, find the catalog skin under Available Skins and choose Apply on its card. For manual configuration instead, merge the following appearance section into the full configuration and restart through the normal deployment workflow.
appearance:
config_file: skins.yaml
mode: global
global_skin_id: aurora
anonymous_mcp_use_default_agent_skin: false
presentation_owner:
agent_id: null
This example selects the real shipped Aurora definition. Preserve unrelated
runtime fields and agent records. Canonical model validation checks the runtime
configuration; SkinRepository.list() checks the catalog itself. Changing a
catalog file is not a filesystem-watched hot reload; request an explicit apply,
reconciliation, or restart after edits.
The current Python wheel packages config/phos.yaml, but does not bundle
config/skins.yaml. Source checkouts include it. When using an installed
package without that catalog, copy the repository catalog alongside your active
configuration, or set appearance.config_file: null to use only built-ins and
managed custom skins. Do not leave a configured catalog path pointing at a
missing file.
Portable-package manual installation is supported through the internal
SkinRepository.import_package(bytes) boundary, as demonstrated in the
tutorial's temporary validation.
There is no dedicated skin-management CLI. Do not hand-create custom IDs or
write skins.json as an installation shortcut.
Runtime switching and per-agent appearance
Global Appearance uses the persisted global skin, falling back to saved display settings when there is no usable global definition.
For Follow Active Agent:
- In Settings → Agents, assign a known skin to the desired registered agent.
- Enable its appearance participation and choose priority/timeout.
- In Appearance → Skins, select Follow Active Agent and save the mode.
- Use the agent's normal MCP credential and perform accepted semantic work. The activity tracker renews that agent's appearance lease. Merely connecting or authenticating does not select the skin.
- Inspect current activation and Active LED Palette. On expiry, PHOS selects another eligible active agent or the global fallback.
Defaults are participation enabled, priority 50, and a 30-second activity window. Higher priority wins; existing winners are retained on a tie where possible. The complete ranges and optional anonymous default-agent fallback are in the configuration reference. A configured legacy presentation owner does not override this mode authority.
Disconnecting a client does not immediately clear its appearance lease. The selection changes after the configured inactivity timeout unless another eligible agent wins first. Revoking the agent's credential blocks future authenticated requests, but the already-recorded appearance lease can remain until that timeout expires; revocation does not itself force an immediate visual reset.
These appearance leases are distinct from phos_set_state's bounded thinking
visual lease. Assigning a skin does not change permissions or give an agent
exclusive access to the display. The global configuration is not overwritten by
a temporary selected-agent skin.
REST, MCP, and internal application boundaries
| Surface | Implemented appearance access |
|---|---|
Authenticated Web Admin /appearance/skins |
Package import, temporary preview, apply, export, deletion, and mode controls through application services. |
Web Admin GET /appearance/skins/<skin_id>/export |
Download a portable package; requires normal Admin access. |
Web Admin GET /appearance/preview.svg and /appearance/preview |
Static SVG and its preview page; not a live skin-activation API. Current shape/catalog limitations are documented under troubleshooting. |
REST /api/v1/config |
Existing authenticated full-configuration read/update boundary; not a skin package/catalog CRUD API. |
REST /api/v1/backgrounds/assets, /api/v1/backgrounds |
Existing managed background listing/configuration; not skin package import/export. |
| MCP | No skin-list/import/apply tool or skin resource. Accepted agent activity can indirectly select an administrator-assigned skin in follow_agent mode. |
| Python application services | Internal skin list/create/import/export/preview/apply/delete operations; these are not automatically public REST/MCP methods. |
MCP expression, speech, signal, and thinking-state tools continue to use their existing permissions. They do not accept a skin manifest or choose arbitrary skin IDs. Follow the existing Remote API and MCP reference for those contracts.
Restore PHOS Default
- Select Global Appearance and save the mode if automatic selection is active.
- Find PHOS Default in Available Skins and choose Apply.
- Verify cyan irises, classic oval eyes, no assigned backgrounds, and disabled State Effects. Normal robot state and expressions still affect appearance.
This resets the appearance baseline; it does not reset sensors, credentials,
agent records, or runtime behavior configuration. global_skin_id: null alone
means “use saved global display values,” not “reset to PHOS Default.”
Before deleting a custom skin, remove or replace agent assignments, including retained disabled assignments, and apply another appearance if its owned backgrounds are still in use. Export a backup before deletion.