Select a profile
Resolve one profile for a command, remember a workspace choice, and understand immutable session binding.
CompozyOS resolves a profile in this order:
- the root
--profile <name>flag; COMPOZY_PROFILE;- the remembered choice for the resolved workspace, or the Global lens when no workspace resolves;
default.
The flag changes one command and does not persist. The environment variable changes commands in that
process environment. compozy profile use <name> persists the current workspace's choice:
COMPOZY_WORKSPACE=my-saas compozy profile use marketing
COMPOZY_PROFILE=marketing compozy session list
compozy task list --profile devUse compozy profile current -o json when automation needs provenance. Its source is flag, env,
remembered, session, or default; note explains a safe fallback such as an archived remembered
profile. JSONL commands emit a profile_resolution frame even when the result list is empty.
An archived profile cannot be selected. If a remembered choice is archived, resolution falls back to
default and reports archived_remembered_fallback. The daemon, doctor, and update command groups
ignore profile selection because they manage the machine rather than profile-owned work.
Session binding
A session stores the resolved profile when it is created. Changing the remembered choice affects later
sessions and commands; it does not move running or historical sessions. Inside a bound session,
compozy__profile_current reports source: "session", and compozy__profile_list marks that bound profile
as current.
Command palette
The stable profile.use action delegates selection to the shell client. profile.create,
profile.update, profile.rename, profile.archive, profile.unarchive, and profile.delete open the
Profiles settings flow. Those flows use the same local API plans and mutations as the CLI; the palette
does not own a separate lifecycle implementation.
Related
Create your first profile shows resolution in a running example.
Scoped and aggregate reads covers what the resolved profile then filters,
and compozy profile carries the exact flags.
Create your first profile
Split one CompozyOS installation into two working contexts — create a profile, run work inside it, switch between them, and give it its own defaults, keys, and extensions.
Scoped and aggregate reads
Read one profile by default, or request an owner-labeled view across profiles.