KB / Memory / tech-flue-register-in-initializer

Flue: register providers in initializer

Custom gateways must register from agent init with ctx.env; module load has empty env

tech
techllm-agentscloudflare
raw .md

Flue addresses models as provider/model. Register custom providers inside defineAgent initializer using ctx.env.

process.env is empty at module load on workerd. Debug with Node target when errors hide. Related: reference-cloudflare-acquires-astro, project-anyrouter.