Codex
Integrate Intutic governance with OpenAI Codex — OpenAI's autonomous coding agent.
How it works
Codex uses environment variables for configuration. Since Intutic can't inject env vars into a running process, it writes a .env.intutic file with proxy URL variables that Codex can source before starting.
Setup
1. Codex detection
Codex is detected by either:
- The
CODEX_HOMEenvironment variable being set, or - The
codexbinary being found in yourPATH
No config file needs to exist beforehand.
2. Initialize Intutic
bash
intutic init✓ Detected harnesses:
• codex → .env.intutic3. Source the env file
Before starting Codex, source the generated environment file:
bash
source .env.intutic
codex4. Start sync
bash
intutic connectWhat gets written
A .env.intutic file with proxy URLs and metadata:
bash
# Intutic Governance Rules (auto-generated)
# DO NOT EDIT — managed by intutic sync daemon
# Last sync: 2026-06-11T22:24:00Z
# Source this file: source .env.intutic
ANTHROPIC_BASE_URL=https://proxy.intutic.dev/v1
OPENAI_BASE_URL=https://proxy.intutic.dev/v1
INTUTIC_PROXY_URL=https://proxy.intutic.dev/v1
INTUTIC_SOP_COUNT=5Shell integration
Add source .env.intutic 2>/dev/null to your shell profile or project's .envrc to auto-load on every session.
Config details
| Property | Value |
|---|---|
| Harness type | codex |
| Config file | .env.intutic |
| Detection | CODEX_HOME env var or codex in PATH |
| Format | Shell environment variables |
| Write strategy | Atomic (write to .intutic-tmp, then rename) |