init
Set up GitHub access and AI-assisted commit messages.
Usage
git-wrangler initQuick start
git-wrangler init
What it does
init guides you through optional GitHub and AI setup. It can open GitHub’s sign-in page, store credentials in the system keyring, and save non-secret settings such as the AI provider, service URL, and model.
Use it before cloning private repositories, renaming GitHub repositories, or generating AI commit messages.
Before you run it
The command is interactive. You can skip GitHub or AI setup when you do not need that feature.
If secure keyring storage is unavailable, setup still saves non-secret choices and explains which environment variables to use for credentials.
Environment variables
GIT_WRANGLER_GITHUB_TOKENprovides GitHub access.GIT_WRANGLER_AI_API_KEYprovides AI service access.OPENAI_API_KEYis also accepted for the OpenAI provider.
Press Ctrl+C or Ctrl+D to cancel setup.