Documentation Index
Fetch the complete documentation index at: https://mintlify.com/stephengpope/thepopebot/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
The Pope Bot requires several tools to be installed on your system before you begin.Required Tools
Node.js 18+
Node.js 18+
The Pope Bot requires Node.js 18 or later.Install:
- Download from nodejs.org
- npm is included with Node.js
Git
Git
Git is required for repository management and version control.Install:
- Download from git-scm.com
GitHub CLI
GitHub CLI
The GitHub CLI (Follow the prompts to authenticate with your GitHub account.Verify:
gh) is used for authentication and repository operations.Install:- Download from cli.github.com
Docker + Docker Compose
Docker + Docker Compose
Docker is required to run the agent containers and production deployment.Install:
- Download Docker Desktop from docker.com
- Docker Compose is included with Docker Desktop
- Installation requires admin/sudo password
ngrok (Local Development Only)
ngrok (Local Development Only)
ngrok is only required for local installations without port forwarding. VPS/cloud deployments don’t need it.Why ngrok?
Your server needs to be reachable from the internet for GitHub webhooks and Telegram integration.Install:Start ngrok:Alternatives to ngrok:
- Sign up for a free account at ngrok.com
- Download from ngrok.com/download
- Configure your authtoken:
On the free plan, your ngrok URL changes every time you restart. Consider upgrading to a paid plan for a static domain, or deploy to a VPS.
- Port forwarding on your router
- Cloudflare Tunnel
- Deploy to a VPS (recommended for production)
API Keys
You’ll need at least one LLM provider API key:- Anthropic (Recommended)
- OpenAI
- Google
- Custom
Anthropic Claude is the default and recommended provider.Paste the token (starts with
- Sign up at console.anthropic.com
- Create an API key
- Add credits to your account
sk-ant-oat01-) during setup when prompted.Optional Services
- Brave Search API - For web search capabilities (optional)
- Sign up at brave.com/search/api
- Available for Anthropic and OpenAI providers only
System Requirements
Minimum Requirements
- CPU: 2 cores
- RAM: 4GB
- Disk: 10GB free space
- Network: Stable internet connection
Recommended Requirements
- CPU: 4+ cores
- RAM: 8GB+
- Disk: 20GB+ SSD
- Network: High-speed internet
Platform Support
- macOS
- Linux
- Windows
Fully supported on macOS 10.15 (Catalina) and later.Notes:
- Docker Desktop for Mac required
- Apple Silicon (M1/M2) fully supported
Installation Steps
Verify prerequisites
Before starting, verify all required tools are installed:For local development:
Start ngrok (local development only)
If developing locally without port forwarding, start ngrok in a separate terminal:Keep this running and note your ngrok URL (e.g.,
https://abc123.ngrok.io). You’ll need this for the APP_URL during setup.Skip this step if deploying to a VPS or using port forwarding.
Scaffold the project
Create a new directory and initialize The Pope Bot:This scaffolds:
- Next.js project structure
- GitHub Actions workflows
- Docker configuration
- Agent templates and config files
Run the setup wizard
Start the interactive setup:The wizard will guide you through:1. Prerequisites Check
- Validates Node.js, Git, GitHub CLI
- Creates a new repository
- Pushes initial commit
- Creates a Personal Access Token
- Scoped to your repository
- For local:
https://your-ngrok-url.ngrok.io - For VPS:
https://yourdomain.com
- Choose provider (Anthropic/OpenAI/Google/Custom)
- Enter API key
- Choose model
- Option to use different settings for agent jobs
- Can use different model or provider
- If using Claude subscription
- Paste token from
claude setup-token
- Enter Brave API key for web search
- Only available for Anthropic and OpenAI providers
- Automatically sets repository secrets
- Configures variables
- Generates
.env - Runs
npm install - Runs
npm run build - Starts Docker containers
Access your agent
Once setup completes, visit your
APP_URL in a browser.First Visit:- You’ll be prompted to create an admin account
- Enter email and password
- This becomes your login for the web interface
- Chat with your agent
- Create and manage jobs
- Upload files
- View conversation history
- Access settings (API keys, crons, triggers)
Post-Installation
Verify Installation
Check that all services are running:event-handler- Next.js servertraefik- Reverse proxyrunner- GitHub Actions runner (if using self-hosted)
Test Your Agent
- Visit your
APP_URL - Log in with your admin account
- Send a test message in the chat
- Try creating a simple job:
Configure Telegram (Optional)
To add Telegram integration:Create a Telegram bot
- Message @BotFather on Telegram
- Send
/newbot - Follow prompts to create your bot
- Save the bot token
Troubleshooting
Setup fails with 'gh not authenticated'
Setup fails with 'gh not authenticated'
Make sure you’ve authenticated with GitHub CLI:If still failing, try:
Docker containers won't start
Docker containers won't start
Check Docker is running:Check logs:Restart Docker:
- Docker Desktop: Restart from system tray
- Linux:
sudo systemctl restart docker
- Docker Desktop: Increase RAM/CPU in settings
- Minimum 4GB RAM recommended
Port 80 already in use
Port 80 already in use
Another service is using port 80.Find what’s using port 80:Alternative: Modify Then update ngrok:
docker-compose.yml to use different ports:GitHub Actions not triggering
GitHub Actions not triggering
Check Actions are enabled:Should contain:
- Go to your repository on GitHub
- Settings → Actions → General
- Enable “Allow all actions and reusable workflows”
run-job.ymlauto-merge.ymlnotify-pr-complete.ymlnotify-job-failed.ymlrebuild-event-handler.yml
ngrok URL keeps changing
ngrok URL keeps changing
Free plan limitation:
ngrok free plan generates a new URL on every restart.Update APP_URL after restart:Solutions:
- Upgrade ngrok - Paid plans include static domains
- Deploy to VPS - Use a real domain (recommended)
- Port forwarding - Configure your router
Build fails with module not found
Build fails with module not found
Clean install:Check Node.js version:Update dependencies:
LLM API errors
LLM API errors
Verify API key:
Check your
.env file for correct API key.Check account status:- Anthropic: console.anthropic.com
- OpenAI: platform.openai.com
- Valid API key
- Sufficient credits/quota
- Correct model access
Updating
Keep The Pope Bot up to date:- Saves local changes
- Pulls latest from GitHub
- Installs new version
- Rebuilds project
- Pushes to GitHub
- Restarts Docker containers
Next Steps
Quickstart
Learn how to use your agent
Configuration
Configure environment variables and settings
Personality
Customize agent personality and behavior
Deployment
Deploy to production with HTTPS