/openai-developers:openai-platform-api-keyfrom OpenAI Developers
Gates OpenAI API credential setup for AI apps, scripts, CLIs, and generators. Inspects safely, asks reuse-vs-new, guides manual local setup, and never exposes plaintext keys.
Ships in OpenAI Developers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this as the credential gate for OpenAI API-backed work in Claude Code.
Use this skill as the credential gate for API-backed work, not as the app, docs, or implementation skill.
Use it when:
OPENAI_API_KEY, or an sk-proj key.Do not use it when:
If API access is needed and no usable key is found, guide the user through manual local setup instead of leaving placeholder docs or incomplete setup steps.
When another implementation skill also applies, run this skill first only to inspect credentials safely and send the credential decision message. Until reuse-existing-key vs create-new-key is resolved, it outranks design-first and implementation-first flows; do not design UI, choose architecture, inspect API examples, write code, or run smoke tests. Model and prompt migrations are the narrow exception above: complete requested source/configuration edits and offline validation without a credential decision, then use this skill only before any live API request. After the user answers, hand off to the appropriate implementation or docs skill.
Before editing, testing, running, debugging, or configuring any code that calls the OpenAI API, except for the model/prompt migration source edits and offline validation explicitly allowed above:
OPENAI_API_KEY without printing it.This applies even if:
Finding an existing key is not permission to proceed. It only changes the question you ask.
The credential decision is a hard stop outside the model/prompt migration exception above. Before the user answers, do not create directories, scaffold files, draft implementation plans, wire API-dependent code, run smoke tests, or give placeholder key setup instructions. The only allowed pre-gate work is safe repo convention discovery and credential presence checks that do not print secrets.
After inspecting credentials, the next user-facing message must be the credential decision message. Do not send interim user-facing messages about env files, key presence, API docs, file plans, implementation shape, or setup instructions before this decision.
Use one of these branches:
OPENAI_API_KEY was found without revealing it, then ask whether to reuse that key or create a new one.OPENAI_API_KEY was found, then ask whether they want to create one manually.After sending the credential decision message, stop until the user answers.
.env.local, .env, and ignored framework-specific env filesOPENAI_BASE_URL, and framework env docs for repo conventions separately from secret-bearing env files.env.local and OPENAI_API_KEY when no stronger convention existsOPENAI_API_KEY instructions, or fallback placeholder setupUse manual setup because this Claude Code plugin cannot mint or retrieve OpenAI API keys automatically.
OPENAI_API_KEY, defaulting to .env.local.OPENAI_API_KEY= exists. Do not print file contents or matching lines..env.local, .env, or another ignored local env file.cat .env*, grep OPENAI_API_KEY .env*, or rg OPENAI_API_KEY .env*. Use silent exit-status checks or redacted summaries only..env.local unless the repo already has a better local secret convention.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/agents-sdkAgents SDKUse when the user wants to build, adapt, run, or evaluate an OpenAI Agents SDK app from Claude Code. Prefer a docs-first workflow and route API credential decisions through openai-platform-api-key before API-backed work./build-chatgpt-appBuild ChatGPT AppUse when the user explicitly wants a ChatGPT App, Apps SDK project, MCP server plus widget UI, ChatGPT-compatible tool UI, or submission/deployment work for that surface. Build, scaffold, refactor, or troubleshoot those projects from Claude Code, consult openai-docs before generating code, and use openai-platform-api-key before any app path that requires live OpenAI API credentials./chatgpt-app-submissionnpx claudepluginhub openai/openai-developers-for-claude --plugin openai-developersOther plugins' skills for the same job