Product: Edgit Version: v1.0.0 Last Updated: 2025-11-01
Overview
Edgit can be configured through:- Environment variables - For API keys and global settings
 - Component registry - For component-specific metadata
 - Git config - For user-specific preferences
 
Environment Variables
AI Configuration
OpenAI API key for AI-powered commit messages.Required for: AI commit message generationWhere to get: OpenAI Platform
OpenAI model to use for commit message generation.Options: 
gpt-4, gpt-4-turbo, gpt-3.5-turboMaximum tokens for AI-generated commit messages.
Git Configuration
Directory name for Edgit metadata.Note: Changing this requires re-initialization
Prefix for Git tags created by Edgit.
Debug and Logging
Enable debug logging.
Set logging level.Options: 
error, warn, info, debugConfiguration Files
Component Registry (.edgit/components.json)
The component registry is the primary configuration file:
Component Properties
Component type: 
function, agent, config, or custom typeRelative path from repository root to component file
Human-readable description of component purpose
Array of component names this component depends on
Custom metadata specific to your use case
Environment-Specific Configuration
Use.env files for environment-specific settings:
Git Configuration
User-Specific Settings
Configure Edgit behavior in Git config:Repository-Specific Settings
Component Type Configuration
Built-in Types
Edgit provides these built-in component types:- function
 - agent
 - config
 
For serverless functions, utilities, and callable code.Common metadata:
Custom Types
Add custom component types by using them inedgit add:
AI Provider Configuration
OpenAI (Default)
Custom Providers (Coming Soon)
Support for additional providers planned:Advanced Configuration
Deployment Environments
Define deployment environments in your registry:Component Dependencies
Define component dependencies to track relationships:Configuration Best Practices
API Key Security
API Key Security
DO:
- Use environment variables for API keys
 - Add 
.envto.gitignore - Use different keys for dev/staging/production
 - Rotate keys regularly
 
- Commit API keys to Git
 - Share keys in plain text
 - Use production keys in development
 
Registry Organization
Registry Organization
DO:
- Group related components
 - Use clear, descriptive names
 - Document component purpose
 - Keep paths relative to repo root
 
- Use abbreviations without context
 - Mix different naming conventions
 - Include absolute paths
 - Leave descriptions empty
 
Versioning Strategy
Versioning Strategy
DO:
- Follow semantic versioning
 - Tag stable releases
 - Document breaking changes
 - Use consistent tag format
 
- Skip versions
 - Reuse version numbers
 - Delete published tags
 - Use non-semantic versions
 

