Get started with GitPilot in 2 minutes!
- Go to: https://github.com/settings/tokens/new?scopes=repo,user:email
- Click "Generate token"
- Copy the token (starts with
ghp_)
# Create .env file
cp .env.template .env
# Add your token
echo "GITPILOT_GITHUB_TOKEN=ghp_your_token_here" >> .envgitpilot serve --openThat's it! GitPilot will open in your browser and you're ready to go.
For teams and organizations, use GitHub App installation for better security and user management.
When you start GitPilot without a token, you'll see this installation dialog:
┌─────────────────────────────────────────────┐
│ │
│ [GP] │
│ │
│ Install GitPilot GitHub App │
│ │
│ The GitPilot GitHub app must be │
│ installed in your repositories to │
│ use GitPilot. │
│ │
│ ❌ GitHub app is not installed │
│ │
│ Steps: │
│ 1️⃣ Install GitPilot App │
│ Grant GitPilot access │
│ │
│ 2️⃣ Authenticate Your Account │
│ Sign in to start using GitPilot │
│ │
│ [ Install GitPilot → ] │
│ │
└─────────────────────────────────────────────┘
-
Click "Install GitPilot →"
- Opens GitHub in your browser
- Shows app installation page
-
Select Repositories
- Choose "Only select repositories"
- Select the repos you want to use with GitPilot
- Click green "Install" button
-
Return to GitPilot
- Come back to the GitPilot window
- Click "Check status" button
- Wait for verification
-
Start Using!
- Once installed, automatically logged in
- Can now select repositories and start working
| Feature | Personal Access Token | GitHub App |
|---|---|---|
| Setup Time | 2 minutes | 5 minutes |
| Best For | Personal use, testing | Teams, organizations |
| User Experience | Enter token once | Install app → auto-login |
| Security | Token in .env | Per-repo permissions |
| Team Sharing | Share tokens (not recommended) | Each user installs |
| Like Claude Code | ❌ | ✅ |
Solution:
- Make sure you completed the installation on GitHub
- Click "Check status" button
- Wait 10-20 seconds and try again
Solution:
Add a Personal Access Token to .env:
GITPILOT_GITHUB_TOKEN=ghp_your_token_hereSolution:
- Token/App needs
repoanduser:emailscopes - Make sure app is installed to the repositories you want to access
- For GitHub App: Go to https://github.com/settings/installations and check which repos have access
GitPilot supports three authentication methods (in priority order):
GITHUB_APP_ID=123456
GITHUB_APP_SLUG=gitpilotWhen to use: Enterprise environments, teams, Claude Code-style experience
GITPILOT_GITHUB_TOKEN=ghp_xxxxxxxxxxxxWhen to use: Personal use, testing, quick start, CLI usage
GITHUB_CLIENT_ID=Iv1.xxxxx
GITHUB_CLIENT_SECRET=xxxxx
GITHUB_REDIRECT_URI=http://localhost:8000/api/auth/callbackWhen to use: Custom SSO, enterprise auth, advanced setups
Once authenticated, you'll see:
┌─────────────────────────────────────────────────────┐
│ [GP] GitPilot 👤 @yourname │
├─────────────────────────────────────────────────────┤
│ │
│ 📁 Workspace 🔄 Agent Flow ⚙️ Settings │
│ │
│ Search repositories... [Search] │
│ │
│ 📦 yourname/repo1 Private │
│ 📦 yourname/repo2 Public │
│ 📦 organization/repo3 Private │
│ │
│ [Select a repository to start] │
│ │
└─────────────────────────────────────────────────────┘
After logging in:
-
Select a Repository
- Search for your repo
- Click to select it
-
Ask Questions
- "What does this codebase do?"
- "Where is the authentication logic?"
- "Find all API endpoints"
-
Generate Plans
- "Add a dark mode feature"
- "Fix the login bug in UserAuth.js"
- "Refactor the API client"
-
Execute Changes
- Review the AI-generated plan
- Click "Execute" to apply changes
- GitPilot commits directly to your repo
- GitHub Setup:
docs/GITHUB_SETUP.md - Enterprise Login:
docs/ENTERPRISE_LOGIN.md - Environment Config:
.env.template
- Check logs:
~/.gitpilot/logs/ - Enable debug:
GITPILOT_DEBUG=truein.env - GitHub issues: https://github.com/ruslanmv/gitpilot/issues
Ready to start? Just run:
# Quickstart with PAT
echo "GITPILOT_GITHUB_TOKEN=ghp_your_token" >> .env
gitpilot serve --open
# Or let GitPilot guide you through GitHub App installation
gitpilot serve --openHappy coding with GitPilot! 🚀