config.toml: api_listen does not support domains
Description
I have tried to specify in config.toml: api_listen local mDNS url that I use, during the launch got an error " ✘ Daemon error: invalid socket address syntax"
Expected Behavior
mDNS / local domains / domains are accepted
Steps to Reproduce
- Put api_listen = "agent.local:4200" or any other domain in the config.toml
- run "openfang start"
OpenFang Version
0.5.1
Operating System
Linux (x86_64)
Logs / Screenshots
openfang start
OpenFang Agent OS The open-source agent operating system
Starting daemon...
2026-03-29T22:45:32.649384Z INFO openfang_kernel::config: Loaded configuration path=/home/transpose6242/.openfang/config.toml 2026-03-29T22:45:32.649432Z INFO openfang_kernel::kernel: Booting OpenFang kernel... 2026-03-29T22:45:32.683289Z INFO openfang_kernel::kernel: Model catalog: 197 models, 27 available from configured providers (6 local) 2026-03-29T22:45:32.684813Z INFO openfang_skills::registry: Loaded 60 bundled skill(s) 2026-03-29T22:45:32.685057Z INFO openfang_kernel::kernel: Loaded 60 bundled skill(s) 2026-03-29T22:45:32.685531Z INFO openfang_hands::registry: Loaded bundled hand hand=clip name=Clip Hand 2026-03-29T22:45:32.685845Z INFO openfang_hands::registry: Loaded bundled hand hand=lead name=Lead Hand 2026-03-29T22:45:32.686128Z INFO openfang_hands::registry: Loaded bundled hand hand=collector name=Collector Hand 2026-03-29T22:45:32.686450Z INFO openfang_hands::registry: Loaded bundled hand hand=predictor name=Predictor Hand 2026-03-29T22:45:32.686749Z INFO openfang_hands::registry: Loaded bundled hand hand=researcher name=Researcher Hand 2026-03-29T22:45:32.687048Z INFO openfang_hands::registry: Loaded bundled hand hand=twitter name=Twitter Hand 2026-03-29T22:45:32.687280Z INFO openfang_hands::registry: Loaded bundled hand hand=browser name=Browser Hand 2026-03-29T22:45:32.687711Z INFO openfang_hands::registry: Loaded bundled hand hand=trader name=Trading Hand 2026-03-29T22:45:32.688014Z INFO openfang_hands::registry: Loaded bundled hand hand=infisical-sync name=Infisical Sync Hand 2026-03-29T22:45:32.688144Z INFO openfang_kernel::kernel: Loaded 9 bundled hand(s) 2026-03-29T22:45:32.688707Z INFO openfang_kernel::kernel: Extension registry: 25 templates available, 0 installed 2026-03-29T22:45:32.688882Z WARN openfang_runtime::embedding: Embedding driver configured to send data to external API — text content will leave this machine provider=openai base_url=https://api.openai.com/v1 2026-03-29T22:45:32.689076Z INFO openfang_kernel::kernel: Embedding driver auto-detected: OpenAI model=text-embedding-3-small 2026-03-29T22:45:32.689260Z INFO openfang_kernel::cron: Loaded cron jobs from disk count=0 2026-03-29T22:45:32.689770Z INFO openfang_runtime::audit: Audit trail loaded: 20 entries, chain integrity OK 2026-03-29T22:45:32.690363Z INFO openfang_kernel::kernel: Agent TOML on disk differs from DB, updating agent=assistant 2026-03-29T22:45:32.694889Z INFO openfang_kernel::kernel: Restored 1 agent(s) from persistent storage 2026-03-29T22:45:32.695087Z INFO openfang_kernel::kernel: OpenFang kernel booted successfully ✔ Kernel booted (openai/gpt-5-mini) ✔ 197 models available ✔ 1 agent(s) loaded
API: http://agent.local:4200 Dashboard: http://agent.local:4200/ Provider: openai Model: gpt-5-mini
hint: Open the dashboard in your browser, or run openfang chat
hint: Press Ctrl+C to stop the daemon
✘ Daemon error: invalid socket address syntax
@Ovaday How would you expect the daemon to "listen" on a specific domain? You spin up the daemon on the host machine listening on a specific port. How you access that port is then a matter of your infrastructure and completely external to the daemon. You need to handle this with a proxy that will route the domain to the host IP and port.
Closing as feature request. The api_listen config parameter currently accepts socket addresses (IP:port). Domain/hostname support would be a feature enhancement. For domain-based access, use a reverse proxy (e.g., nginx, Caddy) in front of OpenFang's listen address.