Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Light Agent

light-agent hosts agent execution. Some deployments run one general Agent; portal-config-loc additionally starts specialized advisor and technical support service instances from the same image with distinct service IDs and ports. These are ordinary Compose services, not Compose profiles.

Important environment variables

VariableSecretPurpose
LIGHT_AGENT_HOST_IDNoPortal host identity.
LIGHT_AGENT_SERVICE_ID, SERVER_SERVICEIDNoRuntime service/profile identity.
LIGHT_AGENT_ENVIRONMENT, LIGHT_ENV_TAGNoConfig Server and runtime environment selectors.
LIGHT_AGENT_ADVERTISED_ADDRESSNoAddress registered for callers.
LIGHT_PORTAL_AUTHORIZATIONYesAgent service token.
LIGHT_AGENT_DELEGATION_SECRETYesAuthenticates bounded delegation where enabled.
LIGHT_AGENT_MODEL, LIGHT_AGENT_TEMPERATURE, CODEX_REASONING_EFFORTNoModel/runtime behavior overrides for configured profiles.
CODEX_API_KEY, CODEX_ACCOUNT_IDYesCodex provider identity where that runtime is selected.
LIGHT_AGENT_KNOWLEDGE_URLNoKnowledge API endpoint.
LIGHT_AGENT_KNOWLEDGE_ALLOW_PRIVATE_PLAINTEXTNoExplicit development policy switch.
AGENT_OPERATIONALSTORE_DATABASEURLFILEYes, by contentProtected operational database URL file.
AGENT_A2APOLICY_AUTHORIZATIONCONTEXTKEYFILE, AGENT_A2AOUTBOUND_AUTHORIZATIONCONTEXTKEYFILEYes, by contentA2A authorization-context key files.
RUST_LOG, AGENT_LOG_ANSINoLogging controls.

Isolation

Service instances sharing an image are still separate runtime identities. Give each instance its intended service ID, advertised address, Config Server snapshot and operational ownership. Do not route two instances through one identity merely to reduce configuration records.

Agent artifacts belong on the designated persistent artifact volume. Database URLs and A2A keys are materialized before Agent starts; broad access to the initial secret source should not be carried into the runtime container.