codexconfig

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package codexconfig manages only Codex's top-level openai_base_url setting. It never reads auth.json or copies the rest of config.toml into its state file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoint

func Endpoint(value string) (string, error)

func Restore

func Restore(home string) error

func RestoreChanged

func RestoreChanged(home string) (bool, error)

RestoreChanged reports whether routing actually changed; a no-op does not require the user to restart Codex.

Types

type Preview

type Preview struct {
	ConfigPath          string `json:"config_path"`
	Endpoint            string `json:"endpoint"`
	NativeProvider      bool   `json:"native_provider"`
	HasExistingOverride bool   `json:"has_existing_override"`
	AlreadyConnected    bool   `json:"already_connected"`
	RestoreAvailable    bool   `json:"restore_available"`
	Change              string `json:"change"`
	RestartRequired     bool   `json:"restart_required"`
}

func Connect

func Connect(home, endpoint string) (Preview, error)

func Inspect

func Inspect(home, endpoint string) (Preview, error)

type State

type State struct {
	Version         int    `json:"version"`
	Endpoint        string `json:"endpoint"`
	OriginalPresent bool   `json:"original_present"`
	OriginalValue   string `json:"original_value,omitempty"`
	OriginalRaw     string `json:"original_raw,omitempty"`
	CreatedConfig   bool   `json:"created_config"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL