Codex¶
Codex (OpenAI) is supported as a secondary provider. Skills are generated from the canonical klaude-plugin/ source via the generate-kodex tool.
Setup¶
- Install Codex
- Install the plugin:
codex plugin marketplace add serpro69/claude-toolbox - Configure MCP servers at the user level
Configuration Files¶
| File | Purpose |
|---|---|
.codex/config.toml | Main configuration |
.codex/hooks.json | Pre-tool-use hooks |
.codex/rules/default.rules | Starlark permission rules |
.codex/scripts/session-start.sh | Behavioral instructions (session startup) |
.codex/agents/*.toml | Sub-agent definitions (generated) |
kodex-plugin/ | Skills (generated from klaude-plugin/) |
AGENTS.md | Project instructions |
Known Limitations¶
Current limitations
- Plugin-only installs provide skills and profile content only — hooks, sub-agents, rules, and project config require template setup or adopting into an existing repo.
- PreToolUse hooks are only wired for Bash commands.
apply_patchand MCP tool hooks are documented in ADR 0005 but not yet implemented. - MCP servers (Context7, Pal) must be configured at the user level — they are not packaged in the plugin. See Codex MCP Setup.
Generation Pipeline¶
klaude-plugin/ is the single source of truth. The generation tool:
- Reads
klaude-plugin/skills and agents - Applies Codex-specific transformations (resolves
${CLAUDE_PLUGIN_ROOT}, injects headers) - Produces
kodex-plugin/(skills) and.codex/agents/*.toml(sub-agents)
After editing skills in klaude-plugin/, regenerate with:
CI checks freshness via make generate-kodex && git diff --exit-code kodex-plugin/ .codex/agents/.