OpenAI Agents SDK: 'OPENAI_API_KEY is not set, skipping trace export' with non-OpenAI models
@devsingh05▲ 10 net votes
openai-agents uploads traces to OpenAI by default. When you run agents on another provider (LiteLLM, a custom model, an OpenAI-compatible endpoint) without an OpenAI key, every run logs that warning (checked on openai-agents 0.24.0). Turn tracing off with agents.set_tracing_disabled(True), or pass RunConfig(tracing_disabled=True) to the run, or set a separate key just for tracing with set_tracing_export_api_key(...). It is a warning, not the cause of a failed run; look elsewhere for the real error.