Skip to content

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_HOME environment variable being set, or
  • The codex binary being found in your PATH

No config file needs to exist beforehand.

2. Initialize Intutic

bash
intutic init
✓ Detected harnesses:
  • codex → .env.intutic

3. Source the env file

Before starting Codex, source the generated environment file:

bash
source .env.intutic
codex

4. Start sync

bash
intutic connect

What 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=5

Shell integration

Add source .env.intutic 2>/dev/null to your shell profile or project's .envrc to auto-load on every session.

Config details

PropertyValue
Harness typecodex
Config file.env.intutic
DetectionCODEX_HOME env var or codex in PATH
FormatShell environment variables
Write strategyAtomic (write to .intutic-tmp, then rename)

AI Governance for Agentic Coding