Subject: How do LLM Connections inject API keys into the crew process?
I’ve configured an OpenAI LLM Connection in the dashboard. My crew still fails with AuthenticationError: Incorrect API key: sk-placeholder.... I can confirm:
-
os.environ.get("OPENAI_API_KEY")returns my placeholder at both import time andbefore_kickoff -
Removing explicit
llm=LLM(...)from agents doesn’t help — the default LLM also uses the placeholder -
load_dotenv()at the top ofcrew.pydoesn’t resolve it -
Tool validations in the logs show “OpenAI: Successfully validated tool X” — so something is working
Question: Does an LLM Connection inject the real API key into os.environ? If not, how should I reference it in crew.py?