1 KiB
1 KiB
Run the SDK preview
Install the SDK preview, then choose the guides for your installed release. The quickstart shows a complete first agent. To run repository examples, download the matching source archive as described in example setup.
Examples that call a live model need an OpenAI API key. The scripted testing guide runs without one.
Set an OpenAI API key
Create an OpenAI API key if you do not already have one. Replace your-key below with that key, and set it in the shell where you run your agent.
On Linux or macOS:
export OPENAI_API_KEY="your-key"
On Windows PowerShell:
$env:OPENAI_API_KEY = "your-key"
Save the quickstart script as agent.py, then run python agent.py with the Python interpreter from your installed environment. Use the quickstart from your installed release.