{"schemaVersion":"opencli.cli.v1","slug":"codex","name":"Codex CLI","shortName":"codex","binaryName":"codex","maker":{"slug":"openai","name":"OpenAI","type":"org","url":"https://openai.com","officialPlatformMaker":true,"featuredBuilder":false},"category":"AI","description":"The official CLI from OpenAI. Coding agent, terminal code tasks, and prompted edits from the terminal.","tagline":"Coding agent, terminal code tasks, and prompted edits from the terminal.","install":{"packageManager":"npm","command":"npm i -g @openai/codex","packageName":null,"npmPackage":"@openai/codex","brewFormula":null,"brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"codex --help","signal":"codex responds locally; authenticate before real work."},"quickStart":"codex","exampleWorkflow":["codex"],"agent":{"readiness":{"label":"Human-first CLI","score":10,"reasons":[],"guardrails":["Prefer small commands and ask the agent to summarize plain text output.","Expect prompts; keep a human in the loop for interactive flows.","Verify identity/account before running task commands.","Network access is required; avoid leaking secrets in logs.","Require confirmation before apply, delete, deploy, transfer, merge, or write actions."]},"packUrl":"https://opencli.co/cli/codex/agent.md","packMarkdown":"# OpenCLI Agent Pack: Codex CLI\n\nUse this when an AI agent needs to work with `codex`.\n\n## What this CLI is for\nThe official CLI from OpenAI. Coding agent, terminal code tasks, and prompted edits from the terminal.\n\nBest for: coding agent, terminal code tasks, and prompted edits from the terminal.\n\n## Agent readiness\nHuman-first CLI (10/100)\n\n\n## Install\n```sh\nnpm i -g @openai/codex\n```\n\n## Verify before real work\n```sh\ncodex --help\n```\nExpected signal: codex responds locally; authenticate before real work.\n\n## Safe starting commands\n```sh\ncodex --help\n```\n\n```sh\ncodex\n```\n\n## Guardrails for agents\n- Prefer small commands and ask the agent to summarize plain text output.\n- Expect prompts; keep a human in the loop for interactive flows.\n- Verify identity/account before running task commands.\n- Network access is required; avoid leaking secrets in logs.\n- Require confirmation before apply, delete, deploy, transfer, merge, or write actions.\n\n## Suggested agent instruction\nYou may use Codex CLI (`codex`) for coding agent, terminal code tasks, and prompted edits from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"coding agent, terminal code tasks, and prompted edits from the terminal.","useThisIf":"You work with AI models and inference and want a fast terminal interface.","skipIf":"You're not comfortable with a tool that can write to production.","whatHappensNext":"Run `codex` and see what comes back."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":false,"supportsNonInteractive":false,"supportsDryRun":false,"requiresAuth":true,"requiresNetwork":true,"ciFriendly":false,"localFirst":false,"destructivePotential":"high"},"taxonomy":{"useCases":["Coding agent","Terminal code tasks","Prompted edits"],"aliases":["openai codex"],"keywords":["agent coding terminal"],"tags":["official","agent-friendly"]},"links":{"website":"https://openai.com/codex","github":"https://github.com/openai/codex","docs":"https://www.npmjs.com/package/@openai/codex","opencli":"https://opencli.co/cli/codex","markdown":"https://opencli.co/cli/codex/agent.md","json":"https://opencli.co/cli/codex.json"},"metrics":{"githubStars":89556,"latestRelease":"2026-06-08T10:42:13Z","license":"Apache-2.0","metricLabel":"npm weekly downloads","metricValue":13450673,"metricSource":"npm","metricAsOf":"2026-06-08T11:00:37.411Z"}}