1# Libraries1# SDKs and CLI
2 2
3This page covers setting up your local development environment to use the [OpenAI API](https://developers.openai.com/api/docs/api-reference). You can use one of our officially supported SDKs, a community library, or your own preferred HTTP client.3This page covers the main ways to build with the [OpenAI API](https://developers.openai.com/api/docs/api-reference): official SDKs for application code, the OpenAI CLI for shell-native workflows, the Agents SDK for orchestration, or your own preferred HTTP client.
4 4
5## Create and export an API key5## Create and export an API key
6 6
50 <div data-content-switcher-pane data-value="golang" hidden>50 <div data-content-switcher-pane data-value="golang" hidden>
51 <div class="hidden">Go</div>51 <div class="hidden">Go</div>
52 </div>52 </div>
53 <div data-content-switcher-pane data-value="ruby" hidden>
54 <div class="hidden">Ruby</div>
55 </div>
56 <div data-content-switcher-pane data-value="cli" hidden>
57 <div class="hidden">CLI</div>
58 </div>
59
60
61
62## Use the Agents SDK
63
64Use the official OpenAI SDKs above for direct API requests. Use the Agents SDK
65when your application needs code-first orchestration for agents, tools,
66handoffs, guardrails, tracing, or sandbox execution.
67
68<a href="/api/docs/guides/agents/quickstart">
53 69
54 70
71<span slot="icon">
72 </span>
73 Build your first agent with the Agents SDK.
55 74
56## Install the Agents SDK
57 75
58Use the official OpenAI libraries above for direct API requests. Use the OpenAI76</a>
59Agents SDK when your application needs code-first orchestration for agents,
60tools, handoffs, guardrails, tracing, or sandbox execution.
61 77
62- [Agents SDK quickstart](https://developers.openai.com/api/docs/guides/agents/quickstart)
63- [OpenAI Agents SDK for TypeScript](https://github.com/openai/openai-agents-js)78- [OpenAI Agents SDK for TypeScript](https://github.com/openai/openai-agents-js)
64- [OpenAI Agents SDK for Python](https://github.com/openai/openai-agents-python)79- [OpenAI Agents SDK for Python](https://github.com/openai/openai-agents-python)
65 80
80 95
81Please note that OpenAI does not verify the correctness or security of these projects. **Use them at your own risk!**96Please note that OpenAI does not verify the correctness or security of these projects. **Use them at your own risk!**
82 97
83### C# / .NET
84
85- [Betalgo.OpenAI](https://github.com/betalgo/openai) by [Betalgo](https://github.com/betalgo)
86- [OpenAI-API-dotnet](https://github.com/OkGoDoIt/OpenAI-API-dotnet) by [OkGoDoIt](https://github.com/OkGoDoIt)
87- [OpenAI-DotNet](https://github.com/RageAgainstThePixel/OpenAI-DotNet) by [RageAgainstThePixel](https://github.com/RageAgainstThePixel)
88
89### C++
90
91- [liboai](https://github.com/D7EAD/liboai) by [D7EAD](https://github.com/D7EAD)
92
93### Clojure98### Clojure
94 99
95- [openai-clojure](https://github.com/wkok/openai-clojure) by [wkok](https://github.com/wkok)100- [openai-clojure](https://github.com/wkok/openai-clojure) by [wkok](https://github.com/wkok)
96 101
97### Crystal
98
99- [openai-crystal](https://github.com/sferik/openai-crystal) by [sferik](https://github.com/sferik)
100
101### Dart/Flutter102### Dart/Flutter
102 103
103- [openai](https://github.com/anasfik/openai) by [anasfik](https://github.com/anasfik)104- [openai](https://github.com/anasfik/openai) by [anasfik](https://github.com/anasfik)
110 111
111- [openai.ex](https://github.com/mgallo/openai.ex) by [mgallo](https://github.com/mgallo)112- [openai.ex](https://github.com/mgallo/openai.ex) by [mgallo](https://github.com/mgallo)
112 113
113### Go
114
115- [go-gpt3](https://github.com/sashabaranov/go-gpt3) by [sashabaranov](https://github.com/sashabaranov)
116
117### Java
118
119- [simple-openai](https://github.com/sashirestela/simple-openai) by [Sashir Estela](https://github.com/sashirestela)
120- [Spring AI](https://spring.io/projects/spring-ai)
121
122### Julia
123
124- [OpenAI.jl](https://github.com/rory-linehan/OpenAI.jl) by [rory-linehan](https://github.com/rory-linehan)
125
126### Kotlin114### Kotlin
127 115
128- [openai-kotlin](https://github.com/Aallam/openai-kotlin) by [Mouaad Aallam](https://github.com/Aallam)116- [openai-kotlin](https://github.com/Aallam/openai-kotlin) by [Mouaad Aallam](https://github.com/Aallam)
129 117
130### Node.js
131
132- [openai-api](https://www.npmjs.com/package/openai-api) by [Njerschow](https://github.com/Njerschow)
133- [openai-api-node](https://www.npmjs.com/package/openai-api-node) by [erlapso](https://github.com/erlapso)
134- [gpt-x](https://www.npmjs.com/package/gpt-x) by [ceifa](https://github.com/ceifa)
135- [gpt3](https://www.npmjs.com/package/gpt3) by [poteat](https://github.com/poteat)
136- [gpts](https://www.npmjs.com/package/gpts) by [thencc](https://github.com/thencc)
137- [@dalenguyen/openai](https://www.npmjs.com/package/@dalenguyen/openai) by [dalenguyen](https://github.com/dalenguyen)
138- [tectalic/openai](https://github.com/tectalichq/public-openai-client-js) by [tectalic](https://tectalic.com/)
139
140### PHP118### PHP
141 119
142- [orhanerday/open-ai](https://packagist.org/packages/orhanerday/open-ai) by [orhanerday](https://github.com/orhanerday)120- [orhanerday/open-ai](https://packagist.org/packages/orhanerday/open-ai) by [orhanerday](https://github.com/orhanerday)
143- [tectalic/openai](https://github.com/tectalichq/public-openai-client-php) by [tectalic](https://tectalic.com/)
144- [openai-php client](https://github.com/openai-php/client) by [openai-php](https://github.com/openai-php)121- [openai-php client](https://github.com/openai-php/client) by [openai-php](https://github.com/openai-php)
145 122
146### Python
147
148- [chronology](https://github.com/OthersideAI/chronology) by [OthersideAI](https://www.othersideai.com/)
149
150### R
151
152- [rgpt3](https://github.com/ben-aaron188/rgpt3) by [ben-aaron188](https://github.com/ben-aaron188)
153
154### Ruby
155
156- [openai](https://github.com/nileshtrivedi/openai/) by [nileshtrivedi](https://github.com/nileshtrivedi)
157- [ruby-openai](https://github.com/alexrudall/ruby-openai) by [alexrudall](https://github.com/alexrudall)
158
159### Rust123### Rust
160 124
161- [async-openai](https://github.com/64bit/async-openai) by [64bit](https://github.com/64bit)125- [async-openai](https://github.com/64bit/async-openai) by [64bit](https://github.com/64bit)
162- [fieri](https://github.com/lbkolev/fieri) by [lbkolev](https://github.com/lbkolev)
163 126
164### Scala127### Scala
165 128
173 136
174### Unity137### Unity
175 138
176- [OpenAi-Api-Unity](https://github.com/hexthedev/OpenAi-Api-Unity) by [hexthedev](https://github.com/hexthedev)
177- [com.openai.unity](https://github.com/RageAgainstThePixel/com.openai.unity) by [RageAgainstThePixel](https://github.com/RageAgainstThePixel)139- [com.openai.unity](https://github.com/RageAgainstThePixel/com.openai.unity) by [RageAgainstThePixel](https://github.com/RageAgainstThePixel)
178 140
179### Unreal Engine141### Unreal Engine