soma env subcommand to manage environment variables for your agents. These environment variables are accessible to the AI agent server.
You can manage these environment variables via the soma CLI whilst the dev server is running (some dev in another terminal).
If you would like to dynamically pass through an environment variable from the Soma API server process to the AI agent server, set the variable’s value to start with a
$.soma env set <env-name> <env-value>
soma env rm <env-name>
soma env list