gage config
The gage config command manages Gage configuration. Config lives in one TOML
file, ~/.gage/config.toml. When GAGE_HOME is set, the file is
$GAGE_HOME/config.toml. A project can set session sources in a file of its
own; see Project config.
config list
List the effective configuration.
Every setting is printed as name = value with its working value: the value in
the config file, or the default when the file does not set it. A native
setting that a project config sets is printed with the
project’s value.
config get
Show the effective value of one setting.
NAME is dotted, as printed by gage config list. A string prints without
quotes. Any other value prints as it appears in the config file.
config edit
Edit the Gage config file in the system editor.
The editor is $VISUAL, then $EDITOR. If the config file does not exist, it
is created with default values before the editor opens.
Settings
A driver’s model sizes are set in a models table under the driver’s name:
A size the table does not set keeps the driver’s default. gage config list
shows the model each size uses.
The models a Codex account can use depend on its ChatGPT plan, and Gage does not check them. When the plan lacks a size’s default model, an agent that names the size fails with Codex’s message. Set the size to a model the plan has:
Pi reaches many model providers and names a model as <provider>/<id>. The
sizes of the pi driver default to Anthropic models. A Pi user of another
provider sets each size to a model of that provider, named as
pi --list-models names it:
gage status and the check a scan makes before it starts ask Pi whether it is
signed in to the provider of the medium model.
Native source names
The native table gives names to session sources. A name is accepted wherever
a session source is: the --native option of every command, the backup.native
setting, and the native parameter of the query tool.
gage native adds, lists, edits, renames, and deletes
the names without opening the file.
A source is SCHEME:PATH or a scheme alone. A name cannot stand for another
name. A name must not be empty and must not contain a colon.
A name is looked up before a scheme. A name that is also a scheme, such as
claude, replaces the scheme written alone. The scheme with its colon,
claude:, still names the default directory of the scheme.
A source in the config file has an absolute path or a path under ~. A
relative path there is an error.
A command fails when the table holds a name or a source that breaks these rules.
gage config runs with such a table, so gage config edit can correct it.
Default session source
The name default in the native table is the default session source: the
source a command reads when --native is omitted.
The value follows the rules of every other name in the table. It is
SCHEME:PATH or a scheme alone, and it cannot be another name. When no config
sets native.default, a command reads the default directory of the default
driver, which the drivers.default setting names.
native.default does not change the default driver. Scanner agents and
gage resolve and gage publish sessions run on the driver that
drivers.default names.
Project config
A project sets session sources in .gage/config.toml under the project
directory. A command reads the file when it runs in the project directory or in
a directory below it.
With this file in ~/code/app/.gage/config.toml, gage session list run under
~/code/app lists the Claude Code sessions under ~/code/app/sessions/projects.
A project config holds the native table and nothing else. A command fails
when the file sets any other table.
A name the project config sets replaces the same name in ~/.gage/config.toml.
The other names of that file stay in effect. When more than one directory
between the current directory and the home directory has a project config, the
file nearest the current directory takes precedence. The home directory is not
a project.
A relative path in a project config is under the project directory, which is
the directory that holds .gage. An absolute path and a path under ~ are
read as written.
gage config edit edits ~/.gage/config.toml. A project config is edited as a
file.