Configuration
Git-Iris uses a two-tier configuration system: global settings for your personal preferences, and project-specific settings that teams can share without exposing secrets.
Global Configuration
Global settings live in ~/.config/git-iris/config.toml and apply to all repositories.
Set Up Your Provider
Pick your LLM provider and configure the API key:
OpenAI:
git-iris config --provider openai --api-key sk-...Anthropic:
git-iris config --provider anthropic --api-key sk-ant-...Google:
git-iris config --provider google --api-key AIza...The API key is stored securely in your global config file.
Environment Variables
Prefer environment variables? Git-Iris checks these:
export OPENAI_API_KEY=sk-...
export ANTHROPIC_API_KEY=sk-ant-...
export GOOGLE_API_KEY=AIza...Environment variables take precedence over config file values.
View Current Configuration
git-iris configThis displays your active provider, model, presets, and all configured providers.
Provider Details
Git-Iris supports three LLM providers with different strengths:
| Provider | Default Model | Fast Model | Context Window | Best For |
|---|---|---|---|---|
| openai | gpt-5.1 | gpt-5.1-mini | 128K | General purpose, fast |
| anthropic | claude-sonnet-4-5-20250929 | claude-haiku-4-5-20251001 | 200K | Deep analysis, code understanding |
| gemini-3-pro-preview | gemini-2.5-flash | 1M | Massive context windows |
Fast models are used for simple tasks like status updates and parsing. The primary model handles complex analysis.
Override Models
Set a custom model for your provider:
git-iris config --provider anthropic --model claude-opus-4-20250514Set a custom fast model:
git-iris config --provider openai --fast-model gpt-5.1-miniToken Limits
Override the default token limit:
git-iris config --provider openai --token-limit 4000Customization Options
Gitmoji
Enable or disable emoji prefixes in commits:
git-iris config --gitmoji true # Enable
git-iris config --gitmoji false # DisableInstruction Presets
Set a default style preset:
git-iris config --preset conventional
git-iris config --preset detailed
git-iris config --preset cosmicList available presets:
git-iris list-presetsPresets are categorized:
- General (both commits and reviews):
default,conventional,detailed,concise,cosmic - Review-specific:
security,performance,architecture,testing,maintainability
Custom Instructions
Add global instructions that apply to all operations:
git-iris config --instructions "Always include JIRA ticket numbers in brackets"These combine with presets—your custom instructions are applied in addition to the preset style.
Additional Parameters
Set provider-specific parameters:
git-iris config --provider openai --param temperature=0.7 --param max_tokens=150Project Configuration
Project settings live in .irisconfig in your repository root. Teams can commit this file to share settings without exposing API keys.
Create Project Config
Set project-specific settings:
git-iris project-config --provider anthropic --preset conventionalSet a model for the project:
git-iris project-config --model claude-sonnet-4-5-20250929Set project instructions:
git-iris project-config --instructions "Follow Angular commit format"View Project Config
git-iris project-config --printSecurity Note
API keys are NEVER stored in .irisconfig files. Only non-sensitive settings like models, presets, and custom instructions are saved. This prevents accidentally committing secrets to version control.
API keys must be in your global config (~/.config/git-iris/config.toml) or environment variables.
Configuration Precedence
Settings are layered with this priority:
- CLI flags (highest priority)
- Environment variables
- Project config (
.irisconfig) - Global config (
~/.config/git-iris/config.toml) - Defaults (lowest priority)
Example:
# Project config sets anthropic, but CLI overrides for this run
git-iris gen --provider openaiThemes
Git-Iris supports custom themes for Studio. Set your preferred theme:
git-iris config --theme silkcircuit-neon # Default
git-iris config --theme silkcircuit-dusk
git-iris config --theme silkcircuit-coralList available themes:
git-iris themesOverride theme for a single session:
git-iris studio --theme silkcircuit-violetAdvanced Options
Debug Mode
Enable color-coded agent execution output:
git-iris gen --debugThis shows Iris's tool calls, reasoning, and token usage in real-time with gorgeous formatting.
Logging
Log debug messages to a file:
git-iris gen --logCustom log file path:
git-iris gen --log --log-file /tmp/iris-debug.logQuiet Mode
Suppress spinners and progress messages:
git-iris gen --quietUseful for scripting and CI/CD where you only want final output.
Example Workflows
Team Setup
Commit shared project settings:
git-iris project-config --provider anthropic --preset conventional
git add .irisconfig
git commit -m "Add Git-Iris project configuration"Team members clone the repo and only need to set their personal API key:
git-iris config --provider anthropic --api-key sk-ant-...Multiple Providers
Switch providers easily:
git-iris config --provider openai --api-key sk-...
git-iris config --provider anthropic --api-key sk-ant-...
# Use OpenAI for this commit
git-iris gen --provider openai
# Use Anthropic for reviews
git-iris review --provider anthropicPer-Repository Presets
Different projects can use different styles:
cd backend-api
git-iris project-config --preset conventional
cd frontend-app
git-iris project-config --preset detailedConfiguration File Format
The global config file (~/.config/git-iris/config.toml) looks like this:
default_provider = "anthropic"
use_gitmoji = true
instruction_preset = "conventional"
instructions = "Always include ticket numbers"
theme = "silkcircuit-neon"
[providers.anthropic]
api_key = "sk-ant-..."
model = "claude-sonnet-4-5-20250929"
fast_model = "claude-haiku-4-5-20251001"
[providers.openai]
api_key = "sk-..."
model = "gpt-5.1"
fast_model = "gpt-5.1-mini"You can edit this manually if you prefer, but the git-iris config command is safer.
What's Next?
With configuration complete, explore Git-Iris features:
- User Guide: Commits — Master AI-generated commit messages
- User Guide: Reviews — Get comprehensive code reviews
- Iris Studio — Learn all six Studio modes
Press Shift+S in Studio to adjust settings without leaving the interface.
