SKILL28.3K installs2

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-openai

Use cases


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


Similar Skills