# Call Codex

> Call codex to perform a task.

- Skill: `dotneet/call-codex` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dotneet/call-codex`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dotneet/call-codex/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: dotneet (https://skillmd.com/u/dotneet)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/dotneet/call-codex

---


# Call codex to perform a task

Call codex to perform a task.

## Checking for the Existence of codex

```bash
# Check if codex is installed. Exit code 0 means success, 1 means failure.
# If not installed, skip the subsequent steps of the skill.
which codex
if [ $? -ne 0 ]; then
  echo "codex is not installed"
fi
```

## Requesting a Task to codex

This task may take a long time. If the timeout value of the Bash tool can be set, please specify the maximum timeout value.

```bash
codex exec --sandbox danger-full-access <<EOT
{task_description}
EOT
```

