# OpenCLI Agent Pack: Codex CLI

Use this when an AI agent needs to work with `codex`.

## What this CLI is for
The official CLI from OpenAI. Coding agent, terminal code tasks, and prompted edits from the terminal.

Best for: coding agent, terminal code tasks, and prompted edits from the terminal.

## Agent readiness
Human-first CLI (10/100)


## Install
```sh
npm i -g @openai/codex
```

## Verify before real work
```sh
codex --help
```
Expected signal: codex responds locally; authenticate before real work.

## Safe starting commands
```sh
codex --help
```

```sh
codex
```

## Guardrails for agents
- 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.

## Suggested agent instruction
You 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.

Source: OpenCLI
