All variables are optional. If unset, AFK uses the defaults listed below.
LLM defaults
These variables configure the default LLM provider and behavior. They are read byLLMSettings.from_env() at startup.
Memory
Configure the persistent memory backend for thread-based conversations.Queue
Configure the task queue backend for async agent execution.Prompts
Agents resolve
instruction_file paths relative to this directory. See System Prompts for details.
Runner and tool command defaults
Runner constructors and
RunnerConfig fields remain the preferred way to set command policy. Use this environment variable only for process-wide defaults.
MCP server
These variables are read by the MCP server configuration helpers inafk.config.
A2A
No default environment variables are required. Configure A2A host and authentication in code for an explicit security posture. See A2A for details.Precedence
Configuration is resolved in this order (highest priority first):- Constructor arguments —
Runner(memory_store=...),Agent(model=...) RunnerConfig/LLMSettingsobjects — passed to constructors- Environment variables — fallback defaults listed on this page
- Built-in defaults — hardcoded in the source
Next steps
Configuration Reference
Full reference for all configurable fields across Agent, Runner, and more.
Core Runner
Runner lifecycle and configuration options.