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

runtime.toml

Complete field reference for Akshi’s main configuration file. Fields are grouped by TOML section. All fields are optional unless marked required.


[dashboard]

FieldTypeDefaultDescription
enabledbooltrueEnable the HTTP dashboard and API
portu163210TCP port for the dashboard
bindstring"127.0.0.1"Bind address
tokenstringBearer token for API authentication
authbooltrueRequire authentication
cors_originsstring[]["http://127.0.0.1:3210"]Allowed CORS origins
rate_limitu32300Requests per minute per IP
rate_limit_burstu3250Burst request allowance
tls_certstringPath to TLS certificate (PEM)
tls_keystringPath to TLS private key (PEM)

[router]

FieldTypeDefaultDescription
enabledbooltrueEnable inference routing
profilestring"default"Name of the route profile to use
profile_pathstringPath to a custom route profile JSON file
thresholdf640.55Classification threshold for model selection
fallback_modelstringModel to use when the router cannot classify
timeout_secsu64120Per-request timeout for inference calls
max_retriesu322Retry count on transient inference failures
circuit_breaker_thresholdu325Consecutive failures before opening the circuit
circuit_breaker_reset_secsu6460Seconds before a half-open retry

[telemetry]

FieldTypeDefaultDescription
log_levelstring"info"Minimum log level: trace, debug, info, warn, error
log_formatstring"pretty"Log format: pretty, json, compact
log_filestringWrite logs to file in addition to stderr
otel_endpointstringOpenTelemetry collector endpoint
otel_protocolstring"grpc"OTLP protocol: grpc or http
metrics_enabledbooltrueExpose Prometheus metrics on /api/v1/metrics

[runtime]

FieldTypeDefaultDescription
tick_interval_msu641000Agent tick interval in milliseconds
max_agentsu3264Maximum number of concurrent agents
fuel_limitu641_000_000Default WASM fuel budget per tick
memory_limit_mbu3264Per-agent WASM memory limit
data_dirstring"./data"Directory for runtime state (journals, DBs)
sandbox_modestring"wasm"Sandbox backend: wasm or native
kill_timeout_secsu6410Grace period before force-killing an agent

[mesh]

FieldTypeDefaultDescription
enabledboolfalseEnable mesh networking
node_namestringhostnameHuman-readable node name
listen_portu167946Gossip protocol listen port
advertise_addrstringAddress advertised to peers
bootstrap_peersstring[][]Initial peer addresses to join

[mesh.dht]

FieldTypeDefaultDescription
enabledbooltrueEnable DHT-based peer discovery
replication_factoru323Number of replicas for DHT entries

[mesh.wireguard]

FieldTypeDefaultDescription
enabledboolfalseEnable WireGuard tunnel between peers
private_keystringWireGuard private key (base64)
listen_portu1651820WireGuard UDP listen port
allowed_ipsstring[][]Allowed IP ranges for the tunnel

[mesh.sync]

FieldTypeDefaultDescription
strategystring"crdt"Sync strategy: crdt or snapshot
interval_secsu645Sync interval between peers
max_batch_sizeu321000Maximum entries per sync batch
conflict_resolutionstring"lww"Conflict resolution: lww (last-writer-wins) or merge

[channels.slack]

FieldTypeDefaultDescription
enabledboolfalseEnable Slack notifications
webhook_urlstringSlack incoming webhook URL
channelstringOverride channel name
notify_onstring[]["critical"]Severity levels that trigger notifications

[channels.discord]

FieldTypeDefaultDescription
enabledboolfalseEnable Discord notifications
webhook_urlstringDiscord webhook URL
notify_onstring[]["critical"]Severity levels that trigger notifications

[channels.email]

FieldTypeDefaultDescription
enabledboolfalseEnable email notifications
smtp_hoststringSMTP server hostname
smtp_portu16587SMTP port
smtp_userstringSMTP username
smtp_passstringSMTP password (prefer env var or broker secret)
fromstringSender address
tostring[]Recipient addresses
notify_onstring[]["critical"]Severity levels that trigger notifications

[registry]

FieldTypeDefaultDescription
enabledboolfalseEnable registry client
urlstringRegistry server URL
tokenstringAuthentication token for the registry
cache_dirstring"./cache/registry"Local cache for fetched packages

[approval]

FieldTypeDefaultDescription
enabledboolfalseEnable approval gates
default_policystring"deny"Default policy when no rule matches: allow or deny
timeout_secsu643600Time before a pending approval auto-expires
notify_channelstringChannel name (slack/discord) to send approval requests
rulestable[][]Approval rule definitions (see Approval Gates)