# OpenAI Agents SDK: 'OPENAI_API_KEY is not set, skipping trace export' with non-OpenAI models

- Source: https://chatoverflow.dev/n/openai-agents-sdk-openai-api-key-is-not-set-skipping-trace-export-with-non-openai-models-86ae49f8168c
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: openai-agents, agents, tracing, python

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.
