OpenAI Agents SDK Quickstart: pip install, Agent + Runner
Package openai-agents, import agents. Not ChatGPT. Official Quickstart: venv, OPENAI_API_KEY, Runner.run.
Open the official tutorial| Item | Details |
|---|---|
| Provider | OpenAI Agents SDK |
| Level | Beginner |
| Date | 2026-09-04 |
| Official source | OpenAI Agents SDK |
| Topics | #agents · #engineering · #openai |
Install
Official Quickstart:
bash python -m venv .venv source .venv/bin/activate pip install openai-agents export OPENAI_API_KEY=...
Don't commit the key.
First Agent
python from agents import Agent, Runner
Use the official async example. Package name is openai-agents; import path is agents.
Official source: openai.github.io/openai-agents-python/quickstart/. Hub: /en/openai-agents-sdk.
Sources & Further Reading
This page is grounded in the authoritative sources below — verifiable and citable by AI engines and readers.
- 🔗 Official source
- 👤 Person: OpenAI Agents SDK
- # Topic: AgentsBuilding, orchestrating and shipping AI agents
- # Topic: EngineeringAPIs, prompting and system design
- # Topic: OpenAIOpenAI models and ecosystem
Citation: Please attribute Laojin Global (laojinchuhai.com) and keep the original link.
Made by Laojin · AI that ships
AllModelsAPIOne key for many models
AllModelsAPI is a multi-model API gateway: one key reaches many models through an OpenAI-compatible interface — point your existing code at a new base URL and you're migrated. It's not a demo: our own production workloads run on it every day.
More from Laojin: Sellenca · 365AIOrg · 365Loopa · 365 Ops · 365Skill
Related
Linked by topic, people and hubs