Trigv home

Search docs

Getting started
  • Overview
  • How Trigv works
Help
  • Send test
  • API keys
  • Channels
  • Image attachments
Guides
  • All guides
  • cURL
  • Laravel
  • AI coding agents
  • Cursor
  • Claude Code
  • OpenAI Codex
  • Other agents
SDKs
  • All SDKs
  • JavaScript
  • Python
  • PHP
  • Go
  • Ruby
  • CLI
API reference
  • API overview
  • POST /api/v1/events
  • Errors & rate limits
  • API security
More
  • OpenAPI spec
Open in ChatGPT ↗ Ask questions about this page Open in Claude ↗ Ask questions about this page Open Markdown https://trigv.com/docs-md/learn/codex.md

OpenAI Codex

Get a push when a Codex CLI turn completes.

Before you start

  • Shared trigv-notify.sh script
  • TRIGV_API_KEY exported in your environment
  • Codex CLI with hooks support

Step 1 — Enable hooks

Edit ~/.codex/config.toml and add:

Code
[features]
hooks = true

Step 2 — Add a Stop hook

Append to the same file:

Code
[[hooks.Stop]]
[[hooks.Stop.hooks]]
type = "command"
command = "bash -c 'TRIGV_LEVEL=success ~/.local/bin/trigv-notify.sh \"Codex: turn complete\" \"Open terminal to review\" >/dev/null 2>&1 || true'"
statusMessage = "Notifying Trigv"

Step 3 — Trust and test

  1. In Codex CLI, run /hooks to review new hook definitions.
  2. Approve/trust the hook when prompted.
  3. Run a Codex task and wait for completion — check your phone.

Troubleshooting

  • Test trigv-notify.sh manually first.
  • Hooks must not print to stdout — the command above redirects output.
  • See Codex hooks docs.
Previous Claude Code Next Other agents

On this page

    Native push alerts for developers. Send alerts from webhooks, cron jobs, and scripts. We deliver alerts to your devices, but don't keep the message or notification history on our servers.

    Follow @trigvapp →

    Built by Harish Chouhan

    Product

    • Features
    • How it works
    • Pricing
    • Docs
    • Integrations
    • SDKs
    • API
    • Full LLMs text

    Company

    • About
    • Support
    • Changelog

    Legal

    • Terms & Conditions
    • Privacy Policy
    • Cookie Policy
    • API Security
    All systems ok. Get back to coding.

    © 2026 Webtions OU (dba Trigv)