Skip to main content

Crate codex_config

Crate codex_config 

Source

Modules§

config_toml
Schema-heavy configuration TOML types used by Codex.
loader
permissions_toml
profile_toml
schema
test_support
Test-only helpers exposed for cross-crate integration tests.
types
Types used to define loaded and effective Codex configuration values.

Structs§

AbsolutePathBuf
A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).
AppRequirementToml
AppToolRequirementToml
AppToolsRequirementsToml
AppsRequirementsToml
BundledSkillsConfig
CloudConfigBundle
CloudConfigBundleLayers
Cloud config bundle converted into semantic layer buckets.
CloudConfigBundleLoadError
CloudConfigBundleLoader
CloudConfigFragment
Config fragment delivered by the cloud config bundle.
CloudConfigFragmentSource
CloudConfigTomlBundle
CloudRequirementsFragment
CloudRequirementsTomlBundle
ComputerUseRequirementsToml
ConfigEditsBuilder
ConfigError
ConfigLayer
A materialized configuration layer and its provenance.
ConfigLayerEntry
ConfigLayerMetadata
Identity and version information for a configuration layer.
ConfigLayerStack
ConfigLoadError
ConfigLoadOptions
User-facing config loading behavior that is not part of the config document.
ConfigRequirements
Normalized version of ConfigRequirementsToml after deserialization and normalization.
ConfigRequirementsToml
Base config deserialized from system requirements.toml or MDM.
ConfigRequirementsWithSources
Constrained
ConstrainedWithSource
FeatureRequirementsToml
FilesystemConstraints
FilesystemDenyReadPattern
HookEventsToml
HookStateToml
HooksFile
HooksToml
LoaderOverrides
LoaderOverrides overrides managed configuration inputs (primarily for tests).
ManagedHooksRequirementsToml
MarketplaceAllowedSourceToml
Raw marketplace source rule whose active fields are interpreted after requirements composition.
MarketplaceConfigUpdate
MarketplaceRequirementsToml
MatcherGroup
McpServerCommandMatcher
McpServerConfig
McpServerOAuthConfig
OAuth client settings used when Codex launches an MCP OAuth flow.
McpServerToolConfig
Per-tool approval settings for a single MCP server tool.
ModelsRequirementsToml
NetworkConstraints
Normalized network constraints derived from requirements TOML.
NetworkDomainPermissionsToml
NetworkRequirementsToml
NetworkUnixSocketPermissionsToml
NewThreadModelDefaultsToml
NoopThreadConfigLoader
Loader used when no external thread config source is configured.
PluginRequirementsToml
ProfileV2Name
Validated plain profile-v2 name used to select $CODEX_HOME/<name>.config.toml.
ProfileV2NameParseError
RawMcpServerConfig
Raw MCP config shape used for deserialization and supported-field JSON Schema generation.
RemoteSandboxConfigToml
RemoteThreadConfigLoader
gRPC-backed ThreadConfigLoader implementation.
RequirementsExecPolicy
RequirementsExecPolicyPatternTokenToml
TOML-friendly representation of a pattern token.
RequirementsExecPolicyPrefixRuleToml
A TOML representation of the prefix_rule(...) Starlark builtin.
RequirementsExecPolicyToml
TOML representation of [rules] within requirements.toml.
RequirementsLayerEntry
SessionThreadConfig
Config values owned by the service that starts or manages the session.
SkillConfig
SkillsConfig
Sourced
Value paired with the requirement source it came from, for better error messages.
StaticThreadConfigLoader
Loader backed by a static set of typed thread config sources.
TextPosition
TextRange
Text range in 1-based line/column coordinates.
ThreadConfigContext
Context available to implementations when loading thread-scoped config.
ThreadConfigLoadError
UserThreadConfig
Config values owned by the authenticated user.
WindowsRequirementsToml

Enums§

AppToolApproval
CloudConfigBundleLoadErrorCode
CloudConfigLayerError
ConfigLayerSource
Provenance for one layer in the effective Codex configuration.
ConfigLayerStackOrdering
ConstraintError
HookHandlerConfig
MarketplaceAllowedSourceKind
McpServerAuth
Authentication flow Codex attempts after resolving an HTTP MCP server’s configured bearer token and authorization headers, which always take precedence. ChatGPT authentication falls back to stored OAuth credentials when its session provider is unavailable; both modes ultimately fall back to an unauthenticated connection.
McpServerDisabledReason
Human-readable reason a configured MCP server was disabled after requirements were applied.
McpServerEnvVar
McpServerIdentity
McpServerRequirement
A requirement for one named MCP server.
McpServerTransportConfig
McpServerValueMatcher
String matching operations available to managed MCP server matchers.
NetworkDomainPermissionToml
NetworkUnixSocketPermissionToml
PluginConfigEdit
RemoveMarketplaceConfigOutcome
RequirementSource
RequirementsExecPolicyDecisionToml
RequirementsExecPolicyParseError
ResidencyRequirement
SandboxModeRequirement
Currently, external-sandbox is not supported in config.toml, but it is supported through programmatic use.
ShellEnvironmentPolicyFilterRepresentation
The mutually exclusive shell-environment filter representations.
ThreadConfigLoadErrorCode
Stable category for failures returned while loading thread config.
ThreadConfigSource
A typed config payload paired with the authority that produced it.
TomlValue
Representation of a TOML value.
WebSearchModeRequirement

Constants§

CONFIG_TOML_FILE
DEFAULT_MCP_SERVER_ENVIRONMENT_ID
Effective MCP environment id when config omits environment_id.

Traits§

ThreadConfigLoader
Loads typed config sources for a new thread.

Functions§

apply_user_plugin_config_edits
build_cli_overrides_layer
clear_user_plugin
cloud_config_layers_from_fragments
compose_requirements
config_error_from_ignored_toml_fields
config_error_from_toml
config_error_from_typed_toml
default_project_root_markers
first_layer_config_error
first_layer_config_error_from_entries
format_config_error
format_config_error_with_source
format_config_layer_source
host_name
Returns a process-cached canonical hostname, falling back to the normalized kernel hostname. The first call on Unix may perform blocking DNS resolution.
io_error_from_config_error
load_global_mcp_servers
merge_toml_values
Merge config overlay into base, giving overlay precedence.
project_root_markers_from_config
Reads project_root_markers from a merged config.toml toml::Value.
record_user_marketplace
remove_user_marketplace
remove_user_marketplace_config
sandbox_mode_requirement_for_permission_profile
set_user_plugin_enabled
shell_environment_filter_entry
Looks up a shell-environment filter pattern while ignoring case.
validate_shell_environment_policy_filter_config
Validates only the shell-environment filter representation in a raw config overlay.
version_for_toml

Type Aliases§

ConstraintResult
ThreadConfigLoaderFuture