mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-15 04:30:55 +08:00
ARTEX_PG_DSN, ANTHROPIC_API_KEY and OPENAI_API_KEY are read only during startup (server.NewManager and agent.FromEnv in server.New), but stayed in the process environment. Agent shells, custom tools and MCP stdio servers copy os.Environ() when they start, so they could read the database password and the LLM keys. main now unsets the three variables right after server.New returns.