Docs / Configuration

Configuration

Hub, runtime, saving, memory, and keystore settings.

Use agit config to inspect or change this machine’s AgentGit settings. These settings are global to the AgentGit home, not per-project settings.

Inspect and change a setting

agit config --list
agit config hub.url
agit config runtime.default codex
agit config runtime.default --unset

The last command removes the explicit runtime choice. A bare agit config opens the interactive editor when a terminal is available. Use --list or an explicit key in scripts; add --json for structured output showing effective and stored values and their source.

Available settings

KeyValues and defaultEffect
hub.urlDefault https://agent-git.comHub used by commands; AGIT_HUB_URL takes precedence
runtime.defaultclaude-code, codex, or opencode; unset falls back to Claude Code for new sessionsRuntime used when an operation needs a default; --as selects a runtime for a particular launch
push.visibilityask (default), private, or publicFirst-publication visibility; noninteractive ask chooses private
commit.autotrue (default) or falseWhether supported runtime hooks automatically settle adopted sessions
memory.tracksession (default) or offWhether runtime memory is collected onto session branches
secrets.keystoreos (default) or fileDevice-local key storage; file is Unix-only and AGIT_SECRETS_KEYSTORE takes precedence

push.visibility does not change an already published repository’s visibility; use agit repo visibility for that. commit.auto neither installs hooks nor adopts unmanaged conversations, and does not control the RC supervisor’s save and push cycle. See runtime setup, Remote Control, and memory.

Select the right Hub and session

agit login --hub https://hub.example.com
agit config hub.url
agit whoami --check

Use your Hub’s actual address. Login remembers that Hub as the default, while credentials remain scoped to each Hub. If an environment override is set, inspect the effective setting before assuming the stored default is active.

Environment variableMeaning
AGIT_HOMEAgentGit local data root; defaults to ~/.agit
AGIT_HUB_URLOverrides the default Hub URL
AGIT_SESSIONExplicit owner/repo@branch identity inherited by commands and MCP
AGIT_SECRETS_KEYSTOREOverrides the selected secret keystore

Stored settings live in AGIT_HOME/config.json. Use the CLI to validate values instead of editing the file by hand. A runtime launched through AgentGit gets its session identity automatically. For a command in another POSIX shell:

AGIT_SESSION=alice/my-project@first-task agit log @

In PowerShell, set $env:AGIT_SESSION or use the full target directly, such as agit log alice/my-project@first-task. A directory binding does not supply a missing session target. See context selection.

Check installation and updates

agit --version
agit upgrade --check
agit doctor
agit doctor --check-backend

upgrade --check reports availability; agit upgrade installs the announced CLI release. Re-run agit setup to refresh runtime integrations after updating, and reload runtimes as needed. A running RC daemon must be stopped and restarted to use the new binary; stop it only when you are ready to end its sessions.

doctor checks local integrity and runtime support. Add --check-backend for Hub connectivity. A successful local check does not establish that a particular conversation was saved or published; inspect its history and sync status too.