Extension Openai
MANDATORY recipe for every Caffeine build that calls OpenAI (ChatGPT, GPT-4o, an LLM, a chatbot, embeddings). The ONLY supported path is the `openai-client` mops package with a canister-side API-key bearer. Hand-rolling `ic.http_request` to `api.openai.com/v1/...` is a FORBIDDEN anti-pattern — it leaks the bearer across replicated outcalls (security + 13× billing impact), bypasses the typed request/response bindings, and forces hand-rolled JSON on a language with poor JSON support. Load this skill whenever the user, spec, or any prior task mentions ChatGPT, GPT (any version), OpenAI, an LLM, a chatbot, or embeddings — and BEFORE writing any code that touches `api.openai.com`.
- Type
- Skill
- Author
- caffeinelabs
- Category
- API Integration
- GitHub stars
- 2
- Installs
- 28.3K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/caffeinelabs/skills --skill extension-openaiUse cases
- Add a chatbot that calls GPT-4o from a Caffeine build.
- Generate embeddings for a project without hand-rolling HTTP outcalls.
- Wire an LLM feature through the openai-client package before writing code.
Frequently Asked Questions
What is the supported way to call OpenAI from a Caffeine build?
The openai-client mops package with a canister-side API-key bearer.
Why is hand-rolling ic.http_request to api.openai.com discouraged?
It leaks the bearer across replicated outcalls, which has security and billing impact, and bypasses the typed request and response bindings.
When should I load this skill?
Whenever a task mentions ChatGPT, GPT, OpenAI, an LLM, a chatbot, or embeddings, and before writing code that touches api.openai.com.
About this skill
A mandatory recipe for any Caffeine build that calls OpenAI — chat, GPT-4o, embeddings, or a chatbot. It routes all calls through the `openai-client` mops package with a canister-side API key, because hand-rolling `ic.http_request` to `api.openai.com` leaks the bearer across replicated outcalls and multiplies billing. Load it before writing any code that touches the OpenAI API.
Summary written with AI assistance from the project's public description.
Categories
More from caffeinelabs
Extension Email Calendar Events
Support for organising events/meetings and sending invitations by email.
by caffeinelabs
Extension Stripe
Payment support based on Stripe, supporting credit cards and debit cards
by caffeinelabs
Extension Qr Code
QR code scanner using the camera.
by caffeinelabs
Extension Camera
Web-camera support.
by caffeinelabs
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh