Config Reference
GitSage reads configuration from ~/.git-sage.json. This file is created automatically the first time you run gitsage config.
Full Configuration File
Parameters
ai_providerThe intelligence engine to use. "gitsage" uses the GitSage API Cloud; "local" routes to Ollama.
Values: "gitsage" | "local"
modelThe specific model. For local: "mistral", "llama3", "codellama", etc.
Values: Any valid model ID
auto_commitIf true, automatically commits without asking for confirmation when confidence is high (≥ 85%).
Values: true | false
max_lengthMaximum character length for the commit subject line.
Values: 40–120
styleCommit message formatting style. Conventional Commits is recommended.
Values: "conventional" | "simple" | "detailed"
telemetryAnonymous usage telemetry to help improve GitSage. No code or diff data is ever sent.
Values: true | false
Setting Config via CLI
You can update configuration directly from the terminal without editing the JSON file:
API Key Setup
Get your production API key from the GitSage Portal. Set it as an environment variable for security:
Security: Never commit your API key to version control. GitSage stores it encrypted in ~/.git-sage.json, which is outside your repo.