Reference / CLI reference
alphaavatar config
Create or check application configuration. Neither subcommand starts anything.
Bundles and profiles
A bundle is a complete, startable configuration. A profile is one section that bundles reference and may share. Both live in the application home:
| File | Holds |
|---|---|
<home>/configs/bundles/<name>.yaml | avatar (and any section set inline), plus profiles |
<home>/configs/profiles/<name>.yaml | One section's body, for example voice; <name> may have / parts |
<home>/settings/settings.yaml | default_bundle, the stored credentials' file (credentials) and other user settings |
<home>/settings/credentials-<id>.env | Credentials alphaavatar setup stored, readable only by you |
profilesmaps a section to a profile name:host,runtime, or a plugin section (context,loop,voice,vision,status,router,character,memory,persona,tools).avatar, the Avatar's identity, stays in the bundle.- Profiles are grouped in layers:
host,agent(runtime), andplugins/foundation,plugins/perceptionandplugins/tools.config initwrites them this way andconfig checkreports in the same layers; any other name works too. - A profile file is that section's body. It references nothing, so references never form a
cycle; a profile with its own
profilesis rejected. - A section comes from the bundle or from one profile, never both.
- Names use 1-64 lowercase letters, digits,
-or_; profile names add/between parts. They are never paths and resolve inside the home, whatever the working directory. - With symbolic links resolved, a named bundle must stay in
configs/bundlesand a profile inconfigs/profiles, both inside the real home; a link out of the home is an error. A home reached through an alias, and links that stay inside the home, are fine. - YAML anchors do not cross files.
${...}interpolation resolves after composition, as in a single file. - The home is chosen as before:
application.homeoverride, thenALPHAAVATAR_HOME, then the platform default. Settings never choose it, and a named bundle cannot move it. - A single YAML or JSON file still loads as before, and may use
profilestoo.
Choosing a configuration
config check, doctor, start and dev take the same optional argument:
| Argument | Loads |
|---|---|
Contains / or has an extension, e.g. ./avatar.yaml | That file, relative to the working directory |
Any other word, e.g. my-avatar | <home>/configs/bundles/my-avatar.yaml |
| Omitted | The bundle named by default_bundle in settings |
- The spelling decides. A missing bundle is an error and never falls back to a file of a similar name, nor the reverse.
- With no argument and no default bundle, the command fails and says how to create one.
KEY=VALUEarguments are always overrides, soalphaavatar config check voice.tts.speed=1.2checks the default bundle.profiles.<section>=<name>chooses another profile. Every other override applies to the composed configuration, after profiles are placed.- After loading, the Host and its sessions use the accepted snapshot; later edits to profiles take effect at the next start.
Credentials
start, dev, config check, doctor, setup and
upgrade take each credential from the first of these that holds a value,
neither empty nor only whitespace (cleanup reads the first two so, for the home):
- the environment;
- the
.envfileENV_FILEnames (default.env); - the credentials
alphaavatar setupstored, in the file the settings name.
-
The credentials are the variables the configuration names for them, under any name: each
api_key_envas it is once interpolated, such as${oc.env:TTS_KEY_NAME,MODEL_AUTH}(a bundle's own, a server of your own'sALPHAAVATAR_SERVER_KEY_<hash>); in its MCP servers, each<NAME>placeholder and each${oc.env:NAME}of anAuthorizationheader; those components read when it names none (OPENAI_API_KEY,OPENROUTER_API_KEY,ANTHROPIC_API_KEY,GOOGLE_API_KEY,VOICEAI_API_KEY,TAVILY_API_KEY,QDRANT_URL,QDRANT_API_KEYand the threeLIVEKIT_*); and those setup stored. -
An empty or blank credential counts as unset: it gives way to the next source and never takes another's place, and a value is taken as it is set, spaces and all.
-
.envitself loads as python-dotenv loads it: a variable the environment sets stays, empty too, so an emptyCUDA_VISIBLE_DEVICESstill hides every GPU and an emptyALPHAAVATAR_MODEL_OFFLINEstill allows downloads; an empty line sets its variable empty. It is parsed once:${NAME}reads the environment's value first, then the file's earlier lines, never a later one; it reads a credential as the environment holds it, before the credentials are filled. -
In the configuration,
${oc.env:NAME}reads a default or stored credential, and one anAuthorizationheader names, once it is filled. Any other, such as an MCP server'sX-Region: ${oc.env:REGION}, reads an ordinary variable as the environment holds it, empty too, and logs show its value.\${oc.env:NAME}is text, as OmegaConf escapes it, and reads nothing. -
upgradereads.envonce, and the target build's plan and check, which run from/, read those values instead of a file: the ones they read are the onesupgraderead. -
ALPHAAVATAR_HOME, which chooses the home that stores credentials, counts empty or blank as unset too: the file's value then chooses it. -
A credential unset, empty or blank everywhere is missing: what reads it refuses to start and names the variable, never its value. Logs hide the values of the credentials the configuration names and of servers' keys, as they hide those whose names say they are one.
-
A variable the configuration itself reads that holds no value fails loading, in every command, at the setting that reads it, by name: where MCP is created (
enabledwith aplugin), a server's credential unset, empty or blank once filled, by<NAME>placeholder or by${oc.env:NAME}inAuthorization(never sent asBearer); and any other${oc.env:NAME}without a default whose variable is unset (one set empty interpolates as empty; write an empty default as${oc.env:NAME,''}:${oc.env:NAME,}means the same, but OmegaConf warns that this form is deprecated). InAuthorization, each call is taken as OmegaConf evaluates it, nested defaults included:${oc.env:NAME,default}takes its default only whileNAMEis unset, so an empty or blankNAME, or a default that holds no value, is refused too. An MCP not created sends nothing and requires none, though its settings still interpolate.config checkshows how it is reported. -
The default bundle comes from the same read of the settings as the stored credentials: a setup committing meanwhile changes neither.
-
Settings or stored credentials that cannot be read (invalid YAML or UTF-8, a stored file missing, anything but a regular file) give no stored credentials: a named bundle or a file still loads, and a run without a configuration argument fails, naming the file to fix.
-
YAML reads a variable as
${oc.env:NAME}; credentials never go in bundle or profile files. -
A key variable setup names after a server of your own,
ALPHAAVATAR_SERVER_KEY_<hash>, is checked against thebase_urlin effect: a bundle whosebase_urlwas moved to another server, or removed, fails at the setting that holds them, such asloop.init_config.model. See setup's credentials.
config init
Create the reference bundle, its profiles and, if none is set, the default bundle: the
reference configuration (examples/agent_configs/roles/demo.yaml) with no tool on. Voice and
vision are on, memory with ENV memory and persona, the models from OpenAI and ENV memory's from
Google.
-
Defaultnames another bundle,(unchanged), when one is set already. The credentials are named only, never shown. In the Linux package beforealphaavatar setuphas run,Nextisalphaavatar setup my-avatar, which installs what the bundle needs, checks it and enables it. -
Writes the given Avatar ID with every public setting written out: the reference's value, or its schema's default where the reference names none, with comments, to be edited. The profiles ship in the package; the reference file is not needed. Tools are off. Switched on in
tools.yaml, DeepResearch and MCP are installed byalphaavatar setup <bundle>, as this release's catalog offers them; it does not offer RAG, whichconfig checkandsetupname attools.rag.plugin.
- Writes no credentials and no machine paths.
- In the Linux package before
alphaavatar setuphas run, it namesalphaavatar setup <name>as the next step: the bundle stays as written, edits included, andconfig checknames what it needs installed until setup has installed it. - Never overwrites an existing bundle or profile file; existing directories are reused.
Checks each target as loading would: a bundle must stay in
configs/bundles, a profile inconfigs/profiles, and the settings insettings, inside the real home. - Sets
default_bundleonly when none is set. Reading, deciding and replacing the settings happen under one lock (settings/.write.lock, kept by the lock library), so concurrentinitruns never both become the default. A lock file that is a symbolic link is refused, since opening it would empty what it points to. - Appends
default_bundlewhen the file is a plain block mapping, keeping other settings and comments. Otherwise —default_bundle: null, a flow mapping, an explicit document end — it writes the same values again, without comments. Settings are replaced atomically. - Replacing the settings commits the bundle. Before that, a failure or Ctrl+C removes only the files and empty directories it created; existing files, shared profiles and settings stay unchanged, and the settings lock file may remain. After it, the complete bundle stays and the interruption is still reported.
Set these in the environment or .env, never in the files:
| Variable | Used for |
|---|---|
OPENAI_API_KEY | Models, speech, embeddings, Memory and Persona |
LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET | Session transport |
Check it, then diagnose it with alphaavatar doctor my-avatar, before starting it
with alphaavatar dev my-avatar.
config check
Validate a configuration without starting anything. Optional: start and dev run the same
validation before they start.
It runs the same loading steps as start — .env and the stored credentials,
selection, profiles, overrides, defaults,
path resolution, schema validation, read-only workspace checks, and the built-in plugins' own
settings schemas (realtime loop, context, router, memory, persona; for example a loop without
model fails at loop.init_config.model) — but starts no Host,
runner or model, contacts no service, creates no directories or settings and needs no local
log socket.
The summary lists the checked file or bundle, then facts in the profile layers: plugin
selections, vision and its input, the
on/off switches of the built-in router, status, memory (including environment, the ENV memory)
and persona processors, vector store kinds, enabled tools, the inference runners the Host would
start with their worker counts, and the health address — never service URLs, collection names or
other plugin-defined settings. Switches are read with each plugin's own schema, so an omitted
switch shows its default; --json gives the same values under plugins: vision, router
and status are objects (plugin and their switches; router and status were plugin-name
strings before v0.6.9), and memory and persona carry their processor switches. A misspelled,
unselected or non-replicable runtime.inference.methods entry fails with its field location.
A variable that holds no value is named at the setting that reads it, the MCP server and the
header included; a credential (a <NAME> placeholder, or ${oc.env:NAME} in Authorization)
was looked for in the environment, the .env file and the stored credentials:
Interpolation comes first, so a <NAME> placeholder is reported once those are set
(tools.mcp.servers.docs.headers.Authorization reads the credential MCP_PAT, which is empty);
other fields validation refused with it are named by their path alone (avatar.timezone is not valid). An interpolation that fails otherwise, such as one referencing no setting, is named
at its setting, with any such variables (avatar.timezone holds an interpolation that cannot be resolved). In an installed package, an implementation no installed package provides says
whether this release's setup installs it, with the command for the bundle checked:
loop.plugin: no installed package provides loop 'realtime'; `alphaavatar setup my-avatar` installs it (alpha-avatar-plugins-loop). For a configuration file, which setup does not take,
it says setup installs it for a bundle, not a file, and gives no command.
- Errors go to stderr, stdout stays empty, and name the failing fields, bundle, profile or variable, never the rejected values, file contents, validation messages or an exception's own text. Their lines print whole where the terminal holds them; a narrower one shows each setting at fault with its problem, package and what installs it on lines of their own.
--jsonprints{"valid": true, "config", "avatar_id", "home", "workspace", "plugins", "inference", "health"}(configis{"bundle", "default", "file"};inferencemaps each runner method to its workers) or{"valid": false, "error": {"type", "fields", "diagnostic", "problems", "action"}}:fieldsare the settings at fault,problemseach one with itsline,location,problem,package,actionandvariable, andactionthe next step, asdoctor'sconfig.loadgives it; credentials and control characters removed.- The text follows the commands' shared layout: a value too long for the
terminal goes on under its own start, as
routerdoes above at 100 columns. On a terminal, the groups are bold signal cyan and a tool not on,none, is yellow; pipes,NO_COLORandTERM=dumbget the same text, plain.
Exit codes
| Code | init | check |
|---|---|---|
| 0 | Created | Valid |
| 2 | File exists, invalid name or ID, unreadable settings or write failure | Invalid configuration, selection or reference, failed path check, or unreadable settings or stored credentials with no configuration argument |
Edits target dev/v0.7.0. Published snapshots do not change.