
git clone https://github.com/openai/openai-cookbook.gitOpenAI Cookbook — OpenAI's official example collection: sample code and guides for using the GPT API.
What is OpenAI Cookbook?
OpenAI Cookbook is a skill (a capability for AI agents such as Claude, Codex and Cursor) on GitHub (openai/openai-cookbook). OpenAI's official example collection: sample code and guides for using the GPT API.
What can OpenAI Cookbook do?
- Sample code for using GPT
- Guides for embeddings, RAG, function calling
- Reference best practices from OpenAI
How to install OpenAI Cookbook
See the ⚡ Quick install section at the top of the page — it has a ready-to-copy command taken from the author’s README, plus where to run it. For the full instructions, see the README at the end of the page.
Frequently asked questions about OpenAI Cookbook
Is OpenAI Cookbook free?
Yes. OpenAI Cookbook is an open-source project on GitHub, so you can download and use it for free.
Is OpenAI Cookbook hard to install?
No. You only need to run one command above.
Download & source code
The source code, README and latest updates of OpenAI Cookbook are at github.com/openai/openai-cookbook. The star count and update date on this page sync automatically from GitHub.
📖 Full guide
Loading the guide…