OpenAIfeature
May 14, 2026·Source

Codex Hooks and Programmatic Access Tokens

Customize the Codex loop with scripted hooks, and issue scoped credentials for Business and Enterprise automation.

Codex Hooks and Programmatic Access Tokens announcement image
  • Hooks run scripts at key points in a Codex task: validators before or after work, secret scanning on prompts, conversation logging, and per-repo or per-directory memory and behavior.
  • Programmatic access tokens are scoped credentials created from ChatGPT workspace settings.
  • Tokens work in CI, release workflows, and internal automations, with expirations and revocation.
  • Programmatic access tokens are limited to Business and Enterprise teams.

Best for

Teams wiring Codex into CI, internal automation, or per-repo workflows.

When to use it

Need to run validators, scan prompts for secrets, log conversations, or use Codex from a release workflow.

Who benefits

Business and Enterprise platform owners and developer-experience teams.

Join the newsletter to get ahead with AI.

I share strategies, new modules, free guides, and tools to get you better at using AI in your work.

Leading a team? See team programs →