You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you don't have one, follow [these instructions](https://platform.openai.com/docs/quickstart#create-and-export-an-api-key) to create an OpenAI API key.
30
38
39
+
These commands set the key for your current terminal session.
40
+
41
+
On macOS or Linux:
42
+
31
43
```bash
32
44
export OPENAI_API_KEY=sk-...
33
45
```
34
46
47
+
On Windows PowerShell:
48
+
49
+
```powershell
50
+
$env:OPENAI_API_KEY = "sk-..."
51
+
```
52
+
53
+
On Windows Command Prompt:
54
+
55
+
```cmd
56
+
set "OPENAI_API_KEY=sk-..."
57
+
```
58
+
35
59
## Create your first agent
36
60
37
61
Agents are defined with instructions, a name, and optional configuration such as a specific model.
0 commit comments