Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

openai-platform-api-key — Codex skill: what it does, how to install

Checks for an OpenAI key before API-backed work and guides secure OPENAI_API_KEY setup. Useful when Codex builds or runs an AI tool.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill openai-platform-api-key -a codex
Open on GitHub

What openai-platform-api-key does

This skill runs before Codex builds, runs, tests, debugs, or configures an app, script, CLI, generator, or UI that calls the OpenAI API. It also applies when a request says “using AI” without naming a provider. The skill checks for a usable OPENAI_API_KEY without printing its value, then asks whether to reuse it or create a new key.

When available, setup goes through the secure OpenAI Platform connector. The key is written only to a confirmed local destination, and normal tool output must not contain plaintext credentials. In a Git repository, ignored or untracked env files are preferred. A local helper may also require the repository root through --workspace.

Install it when Codex needs a hard stop before OpenAI API work and the credential choice must be explicit. Skip it for static mockups, documentation, or code that does not call an API.

What it helps with

  • check for OPENAI_API_KEY without exposing its value
  • prepare an OpenAI key for an AI-backed app
  • gate a script or CLI before API work
  • choose between reusing a key and creating one

Example prompts for the agent

  • Build an app that generates text with the OpenAI API, and check credentials first.
  • Set up `OPENAI_API_KEY` for this CLI without printing the secret.
  • Check whether an existing key can be reused before testing this AI UI.

How to install openai-platform-api-key

1Skills CLI (Vercel)

npx skills add openai/plugins --skill openai-platform-api-key -a codex

2Manually: put the files in place

.agents/skills/openai-platform-api-key/SKILL.md

For all projects use ~/.agents/skills/

From the same set201

The whole set →
supabase official supabase Guides the agent through database configuration and strict RLS policies in Supabase. CX Codex GP ChatGPT 8installs remotion-render official Remotion Exports videos and static stills from Remotion projects using CLI commands. CX Codex GP ChatGPT 3installs figma-create-new-file official Figma Creates blank Figma, FigJam, or Slides files inside draft folders. It resolves planKey and editor types before invoking Figma MCP tools. CX Codex GP ChatGPT 6installs swiftui-performance-audit official OpenAI Pinpoints SwiftUI runtime issues like frame drops, unresponsive taps, and excessive view body computations. Works code-first and guides Instruments profiling. CX Codex GP ChatGPT 109installs swiftui-liquid-glass official OpenAI This skill helps build and review SwiftUI Liquid Glass interfaces for iOS 26+. Use it when adopting the API or checking fallbacks, interaction, and design fit. CX Codex GP ChatGPT 121installs swiftui-ui-patterns official OpenAI This skill helps build and refactor SwiftUI interfaces, from navigation and state to layouts and controls. Use it for new screens or changes to an existing project. CX Codex GP ChatGPT 114installs swiftui-view-refactor official OpenAI Refactors SwiftUI view files into clean, testable structures with dedicated subview types and proper Observation ownership. CX Codex GP ChatGPT 113installs ios-memgraph-leaks official OpenAI Captures and inspects iOS leaks from a simulator process or .memgraph. Useful for tracing retained objects and checking a fix with before-and-after evidence. CX Codex GP ChatGPT 1,054installs

Similar

mcp-builder microsoft Guide for building Model Context Protocol servers in TypeScript, Python, or C# to connect LLMs with custom APIs. Claude Code GitHub Copilot 108installs skill-creator microsoft A guide for creating and updating AI coding skills, with a focus on Azure SDKs and Microsoft Foundry. Use it when a skill needs a clear structure. Claude Code GitHub Copilot 106installs copilot-sdk microsoft Builds programmatic applications using the GitHub Copilot SDK in Node.js, Python, Go, and .NET. Helps configure sessions, tools, and streaming. Claude Code GitHub Copilot 76installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. Claude Code Claude.ai 414,180installs writing-for-agents Matt Pocock Guidance for writing skills and agent-facing documents. Use it when editing AGENTS.md, CLAUDE.md, or reference files reached from them. Claude Code 466,719installs media-use heygen-com Finds or generates media for HyperFrames videos, including voiceovers, music, cutouts, and color grades. Stores files locally in assets. Claude Code CX Codex Cursor +1 1,100,000installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs subagent-driven-development Jesse Vincent This skill runs an implementation plan through fresh subagents for independent tasks and reviews each result. Use it for multi-step work in one session. Claude Code CX Codex 237,746installs

Questions about openai-platform-api-key

How do I install openai-platform-api-key in Codex?

Run npx skills add openai/plugins --skill openai-platform-api-key. The skill file is placed at .agents/skills/openai-platform-api-key/SKILL.md.

What does openai-platform-api-key do?

It checks for a usable OPENAI_API_KEY before OpenAI API work and asks for a decision about an existing or new key. The key value must stay out of normal tool output.

Can Codex reuse an existing OpenAI key?

Yes. After the check, the skill asks whether to reuse the existing key or create a new one. Finding a usable key does not by itself authorize the next step.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor