Skip to main content
The OpenAI Agents SDK accepts a custom AsyncOpenAI client. Select its Chat Completions model explicitly because the SDK uses the Responses API by default.

Install

Build an agent

Tracing is disabled because the default trace exporter requires an OpenAI platform key. Configure a different trace processor when your application needs tracing.

Production checks

Keep max_turns bounded, add network timeouts, and validate tool input. For confidential-only calls, change the client base URL to https://tee.redpill.ai/v1 and select an is_tee: true model.

Troubleshooting

References