init

Set up GitHub access and AI-assisted commit messages.

Usagegit-wrangler init

Quick 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_TOKEN provides GitHub access.
  • GIT_WRANGLER_AI_API_KEY provides AI service access.
  • OPENAI_API_KEY is also accepted for the OpenAI provider.

Press Ctrl+C or Ctrl+D to cancel setup.

  • Use doctor to verify setup.
  • Use config to view or change individual settings later.