Skip to content

Environment variables

agentsync reads a handful of environment overrides. The common ones come first; the rest are escape hatches you’ll rarely need.

Env varPurpose
AGENTSYNC_HOMEOverride the ~/.agentsync/ location (absolute path).
AGENTSYNC_ALLOW_SYMLINK_DEST=1Write through symlinked destinations (e.g. chezmoi-managed files).
AGENTSYNC_ALLOW_INSECURE_URLS=1Accept http:// / git:// plugin & marketplace sources.
AGENTSYNC_ALLOW_OFFLINE_VERIFY=1Let verify skip secret resolution (CI without an age key).
Env varPurpose
AGENTSYNC_HOMEOverride ~/.agentsync/ location (absolute path).
AGENTSYNC_TARGET_ROOTRedirect $HOME for testing (used by the hermetic test container).
AGENTSYNC_ALLOW_SYMLINK_DEST=1Permit writes to symlinked destination files (resolves the link first).
AGENTSYNC_ALLOW_INSECURE_URLS=1Accept http:// and git:// plugin / marketplace sources.
AGENTSYNC_ALLOW_UNIMPLEMENTED=1Accept agent add codex / cursor despite the no-op adapters.
AGENTSYNC_ALLOW_PLUGIN_DRIFT=1Bypass the plugin-cache manifest-SHA check (after hand-editing).
AGENTSYNC_ALLOW_OFFLINE_VERIFY=1Skip ${secret:…} resolution in verify (CI without an age key).
AGENTSYNC_AGE_SKIP_PERM_CHECK=1Skip the 0600 mode check on the age identity file (ACL’d NFS).
AGENTSYNC_MAX_TARBALL_MB=<N>Override the per-tarball decompressed-bytes cap (default 512; 0 disables).
AGENTSYNC_TEST_IN_CONTAINER=1Bypass the host test guard (use only with go test -run for a single case).