codex-config_skill

This skill helps you configure Codex CLI profiles, policies, and trust settings with ease across top-level and project scopes.
  • TypeScript

25

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill outfitter-dev/agents --skill codex-config

  • SKILL.md3.7 KB

Overview

This skill manages Codex CLI configuration files and related runtime settings. It helps set up model options, sandbox policies, profiles, MCP servers, and runtime overrides to control behavior and safety for agent workflows.

How this skill works

The skill reads and writes the primary config at ~/.codex/config.toml and obeys a precedence list of skills paths (project, repo, user, system, built-in). It exposes structured TOML blocks for model settings, approval_policy, sandbox_mode, profiles, MCP servers, and convenience CLI overrides to change values at runtime.

When to use it

  • Setting up or editing ~/.codex/config.toml for local or project-specific settings
  • Creating or switching named profiles for different workflows (fast vs thorough)
  • Configuring sandbox_mode or approval_policy before running potentially risky operations
  • Registering or troubleshooting MCP servers and their environment keys
  • Overriding config values on the command line for temporary runs

Best practices

  • Keep a minimal ~/.codex/config.toml and use project-level .codex/skills/ for per-repo rules
  • Define named profiles for repeatable workflows rather than changing global defaults
  • Use approval_policy and sandbox_mode conservatively in shared environments
  • Validate TOML after edits (toml-lint) and test overrides with codex -c
  • Enable MCP servers only when tested; store credentials in environment blocks, not inline secrets

Example use cases

  • Create a max profile for deep reasoning and a fast profile for quick iterations, then run codex -p max "refactor module"
  • Switch to workspace-write sandbox for trusted project work or set read-only for auditing sessions
  • Add an MCP server entry to run local toolchains with command and env keys, then verify with codex mcp list
  • Temporarily force a different model on the CLI via codex -c model="gpt-5.2-codex" for A/B testing
  • Use convenience flags like --full-auto to combine approval and sandbox settings for hands-off runs

FAQ

The primary configuration file is ~/.codex/config.toml.

How do I test a config change without modifying files?

Use CLI overrides, e.g. codex -c model="test" or codex -c 'sandbox_permissions=["disk-full-read-access"]' to validate behavior.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
codex-config skill by outfitter-dev/agents | VeilStrat