Packages

An OTP-native coding agent SDK. Build, orchestrate, and observe AI coding agents with Elixir supervision trees, streaming events, and a JSON-RPC 2.0 interface.

Current section

Files

Jump to
opal config runtime.exs
Raw

config/runtime.exs

import Config
if data_dir = System.get_env("OPAL_DATA_DIR") do
config :opal, data_dir: data_dir
end
if shell = System.get_env("OPAL_SHELL") do
# to_atom is safe here — called once per boot with a user-controlled env var.
# to_existing_atom would crash if the shell atom hasn't been loaded yet.
config :opal, shell: String.to_atom(shell)
end
if copilot_domain = System.get_env("OPAL_COPILOT_DOMAIN") do
config :opal, copilot_domain: copilot_domain
end