Credentials and researcher profiles
User TOML stores credential references and reusable researcher profiles. Campaign YAML selects names; the trusted controller resolves the selected material when a Session starts. Keep actual keys outside both files.
Configure once
Copy user.example.toml to a private local file and select it with --user-config PATH or MYXOS_CONFIG_FILE. Otherwise myxos uses the OS default:
| OS | Default user config |
|---|---|
| Linux | $XDG_CONFIG_HOME/myxos/config.toml, or ~/.config/myxos/config.toml |
| macOS | ~/Library/Application Support/myxos/config.toml |
| Windows | %APPDATA%/myxos/config.toml, or ~/AppData/Roaming/myxos/config.toml |
schema_version = 1
[credentials.openai-personal]
kind = "env"
consumer = "agent:harbor:codex"
[credentials.openai-personal.bindings]
OPENAI_API_KEY = "MYXOS_OPENAI_KEY"
[profiles.researchers.codex-default]
harness = "codex"
model = "openai/OPERATOR_SELECTED_MODEL"
credential_profile = "openai-personal"
MYXOS_OPENAI_KEY names an existing variable supplied to the controller. For Claude, use consumer agent:harbor:claude-code and an ANTHROPIC_API_KEY binding. There is no implicit credential discovery or .env loading.
An explicitly selected Codex login file is also supported:
[credentials.codex-login]
kind = "file"
consumer = "agent:harbor:codex"
format = "codex-auth-json"
path = "~/.codex/auth.json"
On Linux, use a current-user-owned regular file with mode 600. Relative file references resolve from the TOML directory. File format checks do not establish provider authorization or token expiry.
Select per researcher
Single harness:
agent:
backend: harbor
harness: codex
model: openai/OPERATOR_SELECTED_MODEL
credential_profile: openai-personal
For mixed researchers, select user profiles or explicit slot fields under agents.slots; see researchers. Credential consumers must match the selected harness. Slot fields override reusable profile fields.
Check locally
uv run --no-dev myxos auth list --user-config runs/user.local.toml
uv run --no-dev myxos auth check --config runs/campaign.local.yaml --json
These inspect names, consumers and local source availability without making a model request. Use paths/env valid on the actual Linux controller. WSL paths and permissions must be checked inside WSL.
The Mac control profile currently supports a selected Codex agent.auth_file and rejects named/env profiles and explicit user-config forwarding. For source validation, private projection and redaction contracts, read the agent reference.