Profiles
A profile is an independent instance: data, memory, secrets, workspace, config, web port, channels and service units are all per profile. Two profiles are two agents that happen to share one binary, the global skills library, and one operator. Within one profile, users (and their roles) partition accounts: one user partition per member under <data>/users/, disjoint from the operator’s own tree.
The tree
Section titled “The tree”~/.ka-agent/ config.toml # the default profile's config skills/ # your SKILL.md library (shared by all profiles) active_profile # written by `ka-agent profile use` profiles/default/ # data for the default profile workspace/ state.db memory/ secrets/ backups/ logs/ … profiles/work/ # another profile: same tree + its own config.toml$KA_AGENT_HOME moves the whole root; $KA_AGENT_DATA_DIR replaces a data root wholesale (tests, service units).
Lifecycle
Section titled “Lifecycle”ka-agent profile create work # config from default, minus channels; next free web portka-agent profile create work --copy-keys # also copy the provider keyska-agent -p work setup # any command takes -p/--profileka-agent profile use work # make it the default for commands without -pka-agent profile list | show [name] | rename work side | remove work --yesPrecedence: -p > $KA_AGENT_PROFILE > profile use > default. remove refuses the default profile and requires --yes; rename moves data, config and service units together.
Running side by side
Section titled “Running side by side”ka-agent -p work service install installs ka-agent-work.service / dev.ka-agent.work.daemon, so profiles run as separate daemons side by side, each on its own web port. ka-agent update restarts every installed profile’s service.
One bot token, one daemon
Section titled “One bot token, one daemon”A new profile starts without Telegram or Matrix: one bot token can only be polled by one daemon, so give each profile its own bot. Credential files are protected by advisory locks (flocks) so two daemons can never race on the same key or secret.
What stays shared
Section titled “What stays shared”The global skills library under ~/.ka-agent/skills/ is the fallback every profile shares (each profile may also carry its own library under its data root, which wins on name clashes), and so are the binary, its update state, and the operator: identities link per profile, and each profile answers only its own linked senders.