Repository navigation
Description
Work description
A user who already runs a personal agent gets from installing YUI to a talking character by handing the setup to an agent. Today the agent paths are a seven-step skill for OpenClaw (integrations/openclaw/skills/yui-openclaw-setup/SKILL.md) and a plugin install for Hermes Agent (integrations/hermes/platform/yui/skills/yui-platform-install/SKILL.md). Both assume a git checkout of this repository, the OpenClaw skill ends with five fields typed by hand because the Connection page has no OpenClaw preset (CHAT_PROVIDER_PRESETS, src/ui/quick-controls/constants.ts:175-182), and Quick start names neither agent.
This work makes the setup skills the path and makes the agent the first choice of Quick start: the page opens on connecting an agent, and the free-key path sits beside it for a user who has none yet. It ships in the next release together with everything merged since v0.6.0.
Owner decisions, 2026-11-29 (they replace the guided multi-step flow this issue first described; that storyboard and its mock stay on the branch as reference only):
- The setup lives in skills an agent runs, not in app screens. A user of OpenClaw or Hermes Agent almost always has an agent with a shell on that computer (a coding agent, or the personal agent itself), and the agent's side of the setup changes with every release of those agents: three weeks after it was written, the OpenClaw skill already lacked a step (see the facts table).
- The settings pages are reorganised so that each part of her is set up on its own page, in any order. Today the Connection page holds two views, Quick start and Detailed settings; Quick start offers the voice step only after the chat server is connected, the TTS and STT servers sit in Connection's Detailed settings while the voices are on the Voice page and the STT key is on the Listening page, and the Help rows sit inside Quick start's connected state.
- Connection is her brain only. The Quick start and Detailed settings switch is removed. The page opens on its state: connected (what it is connected to, with Change) or not yet. When not connected it shows the guided rows; "Set it by hand" opens the chat fields that Detailed settings held (type, provider, address, model, key, effort, reset).
- Voice owns her voice. A "Voice server" section at the top of the Voice page holds its state, the guided rows that were Quick start's voice step, and "Set it by hand" with the TTS fields. Today's Voice page content follows it. The voice can be set before the brain. Once set, the section shows a row naming the server with Change and, under it, today's TTS server line (Connected · host, or the refused and unreachable states); the "voice is on" line shows only right after it is turned on. The step's "Maybe later" is dropped: leaving the page does the same. The key-page link of the voice step is drawn at the size of the other key link (today its class has no size rule, so it renders at 16 px).
- Listening owns her hearing. The STT server fields move beside the STT key that is already there, and become one setting for every character, as the key already is (they were stored per character). Breaking: an STT address, model or language set in the app is entered once more.
- Help leaves Connection. It stays on the General page, where it already is, and gains the First conversation row with Replay, which today exists only in Quick start's Help. The connected state keeps one short "Next" group of links: give her a voice, and learn the controls, which asks her for the controls guide as the Help section's Ask does.
- On the Connection page the first row is one choice, under one sentence that says what an agent adds: OpenClaw, Hermes Agent, or no agent yet. Only the picked path opens. The agents come first and the sentence recommends them; there is no badge. The third option recommends an agent too: its first content is one row that says an agent is the recommended way and links to the official install guides of OpenClaw (
https://docs.openclaw.ai/install) and Hermes Agent (https://hermes-agent.nousresearch.com/docs/getting-started/installation), and tells the user to come back and pick it. Under it, second, "Or start now with a free key" opens today's free-key steps in one group, closed by the daily limit, and says once what a bare model lacks. (An independent UX review found that the earlier "No agent yet?" section under the agent rows pushed the key field below the fold and left an unanswered row above it.) - Secondary actions inside rows and lines share one link-button look, in Amber ink as the Help section's Ask is; the token command is drawn as a command, in the mono stack, with Copy.
DESIGN.mdgains both as named exceptions; a connected brain and a set voice server report the same way: a done line right after the action, and a live status line under the row on later visits. - In both skills the agent never holds the gateway token or the Hermes key and never restarts a gateway: the user prints the token or key and restarts in their own terminal or chat. The Hermes skill creates a key on the gateway only when the gateway has none, without printing it, and keeps an existing key.
- The order is: pick the agent, copy the setup prompt, then paste the gateway's key: the OpenClaw gateway token, or the Hermes Agent platform key. The key belongs to the gateway: the prompt carries no key and YUI never makes one (owner decision, 2026-11-30).
- After an agent connects, the connected state names the agent and its address, not a key.
- Motion, all on the panel's ease-out tokens and opacity-only under reduced motion: rows that appear after a pick and sections that open fade in over 200 ms with a 6 px rise; a result line or an error line fades in; a wait reuses the checking dot's pulse. A connection gets no flourish: her greeting is that moment.
PRODUCT.mdnames people who already run a personal agent as the first users, and keeps the free-key promise as the second.- The chat Provider list gains an OpenClaw preset.
- The skills are written for any agent that has a shell on the computer of the gateway, follow the
writing-for-agentsrules, and work from a release install with no checkout. The copied prompt names the skill at the app's own version tag (the raw file, so an agent can fetch it; "Read the steps" opens the rendered page). - The YUI side stays with the user: they pick the preset and paste the token or key. No route lets an outside agent write YUI's connection settings in this release.
- Voicebox is not part of this release. Measured on the released v0.6.1 app (facts table): it is harder to set up than pasting one API key (a 649 MB app, 2.4 to 3 GB per model, a profile made from a clip and its transcript), it has no OpenAI-compatible route in any release, its fastest cloning engine fails in Japanese, and the other takes 1.5 to 1.9 times the length of the speech on an M2 Pro and 3 to 5 times on a CPU. When Voicebox releases its OpenAI-compatible route, YUI's existing OpenAI-compatible TTS provider reaches it with a voice id field ([feature] Enter voice IDs for OpenAI-compatible TTS servers #2006) and no Voicebox code.
- Out of this release: listing on ClawHub and a Hermes skill tap, start at login, auto-update.
Facts the skills and presets rest on (sources in the linked research notes):
| Product | Fact |
|---|---|
| OpenClaw (measured on 2026.11.12, 2026-11-29) | Gateway default 127.0.0.1:18789, ready about 9 s after start. /healthz answers 200 without a token. /v1/models answers 401 {"error":{"message":"Unauthorized","type":"unauthorized"}} without the token, 404 plain Not Found while the HTTP endpoints are off, and 200 with openclaw/default and openclaw/<agentId> with the token; the default agent id is main; an unknown agent answers 400 Unknown agent '<id>'.. Every openclaw config set used here applies at the next request, with no restart. openclaw gateway auth-token --show prints the token in an interactive terminal only. With tools.toolSearch unset (the default) a client-declared tool is not in the model's tool list: the model must find it through tool_search (3 to 5 model calls a turn, and once Tool Search's own error text came back as the reply); tools.toolSearch.mode directory keeps client tools in the list and leaves the user's other tools deferred (1 model call). With Code Mode on, a program that called generate_express twice ran to the end and the client received no function_call. A tool allowlist (tools.allow) or deny-all that does not name YUI's tools removes them; an allowlist that leaves no tool fails the turn with 500 internal error. When the gateway cannot reach its model, the reply fails after about 88 s (408 upstream provider timeout, or response.failed on a stream). On the Codex harness (a ChatGPT or Codex subscription, measured once with gpt-6-luna) a client-declared tool is not handed to the model at all: she replies (6.7 s for a plain turn) but receives no expression cue and no yui_run. The Claude CLI backend drops them the same way (read in the 2026.11.12 code, not run): client tools reach the model only on OpenClaw's own embedded runtime. A request that starts no turn tells the endpoint's state: POST /v1/responses with the body {} and no token answers 401 while Responses is on and 404 plain Not Found while it is off, within a second of the switch; /v1/models answers 401 while either endpoint is on, so it cannot tell. For a few seconds after the gateway starts a request answers 503 Plugin runtime is starting. |
| Hermes Agent (checked on v0.23.2, 2026-11-29) | hermes config set <key> <value> writes nested keys with their types (a JSON list becomes a list) and hermes config path prints the config file, with -p <profile> and HERMES_HOME honoured; hermes plugins enable yui enables a plugin copied into <Hermes home>/plugins/yui; the plugin's lines (yui: accepting clients on ws://…) are in logs/agent.log; the system python3 need not have PyYAML or aiohttp. /restart is a Hermes slash command (hermes_cli/commands.py). Platform plugins load from ~/.hermes/plugins/<name>/ and are enabled in config.yaml. The gateway imports the adapter at start, so a restart is needed; an agent cannot restart its own gateway, and the /restart chat command restarts it when idle. The yui plugin listens on 127.0.0.1:8646 and checks the key the client sends. Hermes runs natively on Windows 10 and 11. |
| Voicebox (measured on the released v0.6.1 app, Apple M2 Pro, 2026-11-29) | Local server at 127.0.0.1:17493, no key, up 56 s after the first launch; it stops when the app quits. The released app has no OpenAI-compatible route: POST /v1/audio/speech answers 404. That route is on Voicebox's main since 2026-10-07 and in neither release since. What the release serves: GET /health, GET /profiles, POST /profiles then POST /profiles/{id}/samples (the clip and its transcript, required; clip 2 to 30 s), POST /generate/stream (JSON profile_id, text, language, engine; the answer is one whole WAV, not incremental), POST /models/download with progress on GET /models/progress/{name}. A cloned voice on the M2 Pro: Chatterbox multilingual synthesizes at 0.9 to 1.1 times the length of the speech in Korean and English and fails in Japanese (HTTP 500); Qwen3-TTS 0.6B takes 1.5 to 1.9 times the length in Korean, Japanese and English. On a CPU only (8 threads of a 2.1 GHz server Xeon) the same two engines take 2.7 to 4.7 times the length; Kokoro is 5 to 6 times faster than real time but clones no voice and has no Korean. A stored Hugging Face token that has expired fails every model download with 401, and a stalled download blocks synthesis without an error. |
The gateway token cannot be printed by an agent: openclaw gateway auth-token --show refuses outside an interactive terminal, and openclaw config get gateway.auth.token returns a redacted placeholder (measured 2026-11-29). The user runs the first command and pastes the token into YUI.
Storyboard
Journey 1: first run with OpenClaw. Starts when the user opens YUI for the first time; ends when she speaks her first reply. Windows: the character window, the settings window (Connection page), and the user's own agent chat.
| Frame | The user sees | The user does | Next |
|---|---|---|---|
| 1 | The character says "We're not connected yet · shall we set it up?" with a Connect action (today's first-run hint) | Chooses Connect | The settings window opens on the Connection page |
| 2 | Connection, not connected. One sentence: connect the agent you already run, and she keeps its memory and tools and speaks first on her own. One row, "Which agent?", with three options, none picked: OpenClaw, Hermes Agent, and one for a user with no agent yet. Below, a quiet "Set it by hand" | Picks OpenClaw | Two rows fade in under the first |
| 3 | Row 2, "Let your agent set up its side": one line, Copy prompt, and "Read the steps"; the prompt names the OpenClaw setup skill at the app's version. Row 3, "Paste the gateway token": the command that prints it, the field, Connect | Chooses Copy prompt | The button says it is copied and the line says to paste it to the agent |
| 4 | In their agent's chat (outside YUI): the agent follows the skill, makes the changes on the agent's side, runs the skill's checks, and ends by telling the user to paste the gateway token in YUI | Pastes the prompt; answers the agent | Frame 5 |
| 5 | Row 3 with the token pasted; after Connect, the checking line with its pulsing dot | Pastes the token, chooses Connect | Frame 6 |
| 6 | Connection, connected: the done line; a row naming the connection (OpenClaw, openclaw/main at 127.0.0.1:18789) with Change; a "Next" group with two links, "Give her a voice" (opens the Voice page) and "Learn the controls". The character greets |
Reads, or follows a link | End |
Journey 2: first run with Hermes Agent. Same start and end.
| Frame | The user sees | The user does | Next |
|---|---|---|---|
| 1, 2 | As journey 1 | Picks Hermes Agent | Two rows fade in under the first, as for OpenClaw |
| 3 | Row 2, "Let your agent set up its side": Copy prompt and "Read the steps". The prompt names the Hermes setup skill and the port, and no key | Chooses Copy prompt | Frame 3b |
| 3b | In the Hermes chat (outside YUI): the agent installs the plugin from the app's release, writes the port, creates a key on the gateway only if it has none (without printing it), and ends by asking the user to restart the gateway, because an agent inside the gateway cannot restart it: send /restart in the same chat, or run hermes gateway restart in a terminal |
Sends /restart |
Frame 4 |
| 4 | Row 3, "Paste the gateway key": the command hermes config get --raw platforms.yui.extra.key in the mono stack with Copy, to run where Hermes runs, and the key field, as the OpenClaw token row |
Runs the command, pastes the key | YUI stores it as the chat key and opens the socket: frame 5 when it accepts; while nothing listens, the waiting line with the pulsing dot, "Waiting for Hermes on 127.0.0.1:8646…" |
| 5 | Connection, connected: the done line, the row naming the connection (Hermes Agent, 127.0.0.1:8646) with Change, and the "Next" group. The character window opens its input and shows the controls hint; it performs no greeting, because a push preset has no card (her persona lives in the agent) |
Says hello | End |
Journey 3: her voice, at any time. Starts on the Voice page, from the rail or from "Give her a voice"; ends when voice is on. It does not need a connected brain.
| Frame | The user sees | The user does | Next |
|---|---|---|---|
| 1 | Voice. At the top the "Voice server" section, not set: one line (she answers in text until a voice server is set), then the guided rows that are Quick start's voice step today (make a Fish Audio key, paste the key, Turn on voice), and a quiet "Set it by hand". Today's Voice page sections follow | Makes a key, pastes it, chooses Turn on voice | Frame 2 |
| 2 | The "Voice server" section, set: a row naming the server (Fish Audio) with Change, the result line that voice is on, and on later visits today's server line (Connected · api.fish.audio) in its place. She speaks from her next reply, and the play button on a voice row below auditions it; when her brain is not connected, the line says she will speak once her brain is connected, with a link to Connection | Plays a voice, or talks to her | End |
Journey 4: no agent yet. On the Connection page the user picks the third option: a row recommends installing an agent, with links to the two official install guides. The user who wants to talk today chooses "Or start now with a free key" under it: today's free Gemini key steps fade in as one group (what gets sent, make a key, paste the key, the daily limit), with one line that says she has no memory or tools until an agent is connected. After a free-key connection the connected state names Google Gemini with Change, and keeps one quiet row, "Run an agent? Connect it", that returns to the first row with nothing picked. Two frames.
Journey 5: by hand. "Set it by hand" on Connection opens the chat fields, with OpenClaw in the Provider list (it fills the address, Responses and openclaw/main) beside Hermes Agent. "Set it by hand" on Voice opens the TTS fields. The Listening page shows the STT server fields beside the STT key. Three frames.
Failure frames: (a) the gateway refuses the token (401): the error line says so and its next step is the user's: print the token again with the command shown and paste it; (b) any other failed chat check (endpoint off 404, unknown agent 400, a tool allowlist 500, model unreachable 408 after about 88 s): the error line, then "Give this error to the agent that ran the setup." with Copy error; the skill's symptom table maps each to its step; (c) Hermes is still not there after a minute: the dot stops pulsing and the line adds what to check (the gateway was restarted, the plugin is enabled) with Copy for the agent and Try again; (d) the Hermes plugin refuses the pasted key (close 4401): the line says the key does not match the gateway's, and its next step is the user's: print it again with the command shown and paste it; (e) she replies but never changes expression: the skill's last check catches it before the user reaches YUI, and its symptom table names the cause (Tool Search, Code Mode, a tool allowlist, or a runtime that does not hand over YUI's tools: Codex or a CLI backend); (f) the user has no agent with a shell: "Read the steps" opens the skill as a readable page; (g) the voice server refuses the key, or cannot be reached: today's lines for those states, shown in the "Voice server" section; the refused line carries Change key.
Acceptance criteria
- Storyboard and mock reviewed by the owner
- The Connection page has no Quick start and Detailed settings switch; it shows its state, the guided rows, and "Set it by hand" with every chat field Detailed settings held
- The Voice page sets the voice server and works before a chat server is connected; the Listening page holds the STT server fields, and they apply to every character; no TTS or STT field is left on the Connection page
- Every setting reachable before the change is reachable after it (the First conversation Replay row moves to General's Help), and settings search finds each at its new place
- From a release install with no checkout, an agent given the copied prompt connects an OpenClaw gateway on the same computer, and the user reaches a first reply by pasting the token
- With Hermes Agent the prompt carries no key and YUI makes none: the user pastes the gateway's key printed by the command shown, and YUI connects when the socket accepts; on macOS, Linux and Windows
- The connected state names the agent and its address; on the agent path proactive speech stays on; the free-key steps behave as before
- The OpenClaw skill holds the Tool Search step, the Code Mode step with its measured reason, the tool allowlist note, the Codex runtime limit, and a symptom table built from the measured failure responses; no step needs a gateway restart
- The OpenClaw skill ends on a check that a client tool comes back with its arguments; the Hermes skill ends on the gateway log lines that say the app connected and declared its tools
- Each failure frame shows its next step
- New rows, opened sections and result lines fade in on the panel's motion tokens, and only fade under reduced motion
-
PRODUCT.md,DESIGN.mdand the guides describe the pages as they now are
Architecture map
Named in the spec, before any code: the Connection page (src/ui/quick-controls/connection/: its two views, quick-start/, detail/), the Voice page (src/ui/quick-controls/voice/), the Listening page (src/ui/quick-controls/listening/), the Help section (src/ui/quick-controls/general/help/), the settings search index, the preset table src/ui/quick-controls/constants.ts, and the two setup skills under integrations/.
Unverified, to settle in the spec: OpenClaw behaviour under a normal tool profile (the measurements used a minimal tool profile, one local model and one Codex-subscription model); a live run on the Claude CLI backend (the code reading says client tools are dropped).
Dependencies
- [spike] Fish Audio s2.1-pro-free end of free access: recheck after 2026-11-30 #1813 (Fish Audio free access): Quick start's voice step is unchanged here and stays with that issue.
- [feature] Enter voice IDs for OpenAI-compatible TTS servers #2006 (voice ids for OpenAI-compatible TTS servers): the way a local voice server such as Voicebox is reached later.
- [feature] Quick start tells the user it turned proactive speech off #2009 (Quick start says it turned proactive speech off): the free-key path is unchanged here; the agent path turns nothing off.
Reference docs
docs/:docs/guide/connect-a-backend.md,docs/guide/voice.md,docs/guide/installation.md,integrations/openclaw/README.md,integrations/hermes/README.md
Checklist
- Schema changes update
docs/reference/client-context.mdbefore the code - No unverified assumptions (web/context7 cross-check, then record in docs if needed)
- No brain in the client (firing ≠ judgment)
-
cargo check+pnpm buildpass
Activity
[-][feature] Quick start connects OpenClaw, Hermes Agent and Voicebox[/-][+][feature] Setup skills and presets connect OpenClaw, Hermes Agent and Voicebox[/+][-][feature] Setup skills and presets connect OpenClaw, Hermes Agent and Voicebox[/-][+][feature] Quick start opens on the user's agent: setup skills and presets for OpenClaw and Hermes Agent[/+][-][feature] Quick start opens on the user's agent: setup skills and presets for OpenClaw and Hermes Agent[/-][+][feature] Each part of her is set up on its own page; the Connection page opens on the user's agent[/+]yw0nam commentedon Nov 30, 2026
Owner decision, 2026-11-30: the Hermes key belongs to the gateway. The setup prompt carries the port only and YUI never makes a key. After Copy prompt the Hermes path shows a paste row, like the OpenClaw token row, with the command
hermes config get platforms.yui.extra.keyto run where Hermes runs; the pasted key is stored as the chat key and YUI connects. The install skill creates a key on the gateway only when it has none, without printing it, and keeps an existing key. The body's ordering, Journey 2, failure frame (d) and the Hermes acceptance line are updated to match.feat!: the Connection page opens on the user's agent, and voice and h…