Skip to main content

Module config

Module config 

Source

Modules§

auth_sync
bootstrap
legacy
storage

Structs§

ConfigV4MigrationReport
GroupConfigV2
GroupMemberRefV2
LoadedProxyConfig
NotifyConfig
NotifyExecConfig
NotifyPolicyConfig
NotifySystemConfig
PersistedProviderEndpointSpec
PersistedProviderSpec
PersistedProvidersCatalog
PersistedRoutingProviderRef
PersistedRoutingSpec
PersistedStationProviderEndpointRef
PersistedStationProviderRef
PersistedStationSpec
PersistedStationsCatalog
ProviderConfigV2
ProviderConfigV4
ProviderEndpointV2
ProviderEndpointV4
ProxyConfig
ProxyConfigV2
ProxyConfigV4
ResolvedRetryConfig
ResolvedRetryLayerConfig
RetryConfig
RetryLayerConfig
RoutingCandidate
RoutingConditionV4
RoutingConfigV4
RoutingNodeV4
RoutingPoolV4
ServiceConfig
A logical config entry (roughly corresponds to cli_proxy 的一个配置名)
ServiceConfigManager
ServiceControlProfile
ServiceRoutingExplanation
ServiceViewV2
ServiceViewV4
SyncCodexAuthFromCodexOptions
SyncCodexAuthFromCodexReport
UiConfig
UpstreamAuth
UpstreamConfig

Enums§

RetryProfileName
RetryStrategy
RoutingAffinityPolicyV5
RoutingExhaustedActionV4
RoutingPolicyV4
ServiceKind
支持的上游服务类型:Codex / Claude。

Constants§

CURRENT_ROUTE_GRAPH_CONFIG_VERSION
LEGACY_ROUTE_GRAPH_CONFIG_VERSION

Functions§

build_persisted_provider_catalog
build_persisted_station_catalog
claude_settings_backup_path
claude_settings_path
codex_auth_path
codex_config_path
codex_sessions_dir
Directory where Codex stores conversation sessions: ~/.codex/sessions (or $CODEX_HOME/sessions).
codex_switch_state_path
collect_route_graph_affinity_migration_warnings
compact_v2_config
compile_v2_to_runtime
compile_v4_to_runtime
compile_v4_to_v2
config_file_path
Return the primary config file path that will be used by load_config().
effective_v4_routing
explain_service_routing
import_codex_config_from_codex_cli
显式从 Codex CLI 的配置文件(~/.codex/config.toml + auth.json)导入/刷新 codex 段配置。
init_config_toml
is_supported_route_graph_config_version
load_config
load_config_with_v4_source
load_or_bootstrap_for_service
Unified entry to load proxy config and, if necessary, bootstrap upstreams from the official Codex / Claude configuration files.
load_or_bootstrap_for_service_with_v4_source
load_or_bootstrap_from_claude
load_or_bootstrap_from_codex
加载代理配置,如有必要从 ~/.codex 自动初始化 codex 配置。
migrate_legacy_to_v2
migrate_legacy_to_v4
migrate_legacy_to_v4_with_report
migrate_v2_to_v4
migrate_v2_to_v4_with_report
model_routing_warnings
overwrite_codex_config_from_codex_cli_in_place
Overwrite Codex configs from ~/.codex/config.toml + auth.json (in-place).
probe_codex_bootstrap_from_cli
Probe whether we can successfully bootstrap Codex upstreams from ~/.codex/config.toml and ~/.codex/auth.json without mutating any codex-helper configs. Intended for diagnostics (codex-helper doctor).
proxy_home_dir
获取 codex-helper 的主目录(用于配置、日志等)
resolve_service_profile
resolve_service_profile_from_catalog
resolved_v4_provider_order
save_config
save_config_v2
save_config_v4
sync_codex_auth_from_codex_cli
Sync Codex auth env vars from ~/.codex/config.toml + auth.json without changing routing config.
validate_profile_station_compatibility