Complete installation instructions for CodeQuest, the terminal-based gamified developer productivity RPG.
- Prerequisites
- Quick Install
- Step-by-Step Installation
- Configuration Setup
- Verification
- Troubleshooting
- Uninstallation
- Getting Help
Before installing CodeQuest, ensure you have the following installed:
-
Go 1.21 or higher: Install Go
- Verify installation:
go version
- Verify installation:
-
Git: Install Git
- Verify installation:
git --version
- Verify installation:
-
Skate: Data persistence for character and quest data
- Install via Homebrew (macOS/Linux):
brew install charmbracelet/tap/skate
- Verify installation:
skate --version
- Install via Homebrew (macOS/Linux):
-
Mods (local AI models): Install via Homebrew
brew install charmbracelet/tap/mods
- Requires Ollama or similar for running local models
-
API Keys for online AI:
- OpenRouter (Crush): openrouter.ai/keys
- Anthropic (Claude): console.anthropic.com
For most users, the fastest way to install CodeQuest:
# Clone the repository
git clone https://github.com/AutumnsGrove/codequest.git
cd codequest
# Build the application
make build
# Run CodeQuest
./build/codequestThat's it! CodeQuest will create its configuration on first run.
Alternative: Install via go install (latest version):
go install github.com/AutumnsGrove/codequest/cmd/codequest@latestBefore starting, verify all required tools are installed:
# Check Go
go version
# Output should be: go version go1.21+ ...
# Check Git
git --version
# Output should be: git version 2.x.x ...
# Check Skate
skate --version
# Output should show skate versionIf any of these fail, install the missing tools using the links in the Prerequisites section.
# Navigate to where you want to store the project
cd ~/projects # or your preferred directory
# Clone the CodeQuest repository
git clone https://github.com/AutumnsGrove/codequest.git
cd codequest
# Verify you're in the correct directory
ls -la
# Should show: Makefile, README.md, cmd/, internal/, etc.Download and prepare the Go dependencies:
# Install Go module dependencies
make deps
# Verify dependencies are installed
go mod verify
# Output: Should show "all modules verified" or similarCompile CodeQuest into an executable:
# Build for your system (macOS/Linux)
make build
# Verify the build succeeded
ls -la ./build/
# Should show: codequest (executable)
# Test the binary
./build/codequest --version
# Should show version informationInstall the binary to your system PATH so you can run codequest from anywhere:
# Install globally
make install
# Verify installation
which codequest
# Should show: /usr/local/bin/codequest (or similar path)
# Test global installation
codequest --versionOr manually:
# Copy the binary to a directory in your PATH
cp ./build/codequest /usr/local/bin/
chmod +x /usr/local/bin/codequest
# Verify
codequest --version# If installed globally
codequest
# Or if running from the build directory
./build/codequestOn first run, CodeQuest will:
- Create
~/.config/codequest/directory - Generate a default
config.toml - Prompt you to create a character
- Display the main dashboard
When you first launch CodeQuest, you'll be guided through:
- Character Creation: Enter your character name
- Game Settings: Choose difficulty (easy/normal/hard)
- Repository Paths: Specify where your Git projects are located
CodeQuest stores its configuration at:
~/.config/codequest/config.toml
Edit this file directly to customize settings:
# Open configuration in your preferred editor
nano ~/.config/codequest/config.toml
# or
vim ~/.config/codequest/config.toml
# or
open ~/.config/codequest/config.toml # macOS[character]
name = "YourCharacterName"
starting_level = 1
[game]
difficulty = "normal" # easy, normal, or hard
auto_detect_repos = true
[git]
watch_paths = [
"~/projects",
"~/work"
]
[ai.mentor]
provider = "crush" # or "mods", "claude"
model_complex = "openrouter/deepseek/glm-4.5-air"
model_simple = "openrouter/deepseek/glm-4.5-air"
temperature = 0.7
[ai.review]
provider = "mods"
auto_review = true
bonus_xp_enabled = trueCodeQuest uses a fallback system: Crush (OpenRouter) → Mods (Local) → Claude (Anthropic)
Crush provides online AI models with no local setup required.
-
Get an API key:
- Visit openrouter.ai/keys
- Create a free account
- Copy your API key
-
Store the key securely:
# Save the key to Skate (encrypted) skate set codequest.openrouter_api_key "sk-or-v1-..." # Verify it was stored skate get codequest.openrouter_api_key # Output: sk-or-v1-...
-
Update your config:
[ai.mentor] provider = "crush" model_complex = "openrouter/deepseek/glm-4.5-air" model_simple = "openrouter/deepseek/glm-4.5-air"
Run AI models locally without external API calls.
-
Install Mods:
brew install charmbracelet/tap/mods
-
Configure local models:
# Open Mods settings mods --settings # Or manually check Mods documentation for your preferred model
-
Update your config:
[ai.mentor] provider = "mods" model_complex_offline = "qwen3:30b" model_simple_offline = "qwen3:4b"
For access to Claude models.
-
Get an API key:
- Visit console.anthropic.com
- Create account or sign in
- Go to API keys section
- Create a new key
-
Store the key securely:
skate set codequest.anthropic_api_key "sk-ant-..."
-
Update your config:
[ai.mentor] provider = "claude" model_complex = "claude-sonnet-4-5-20250929" model_simple = "claude-haiku-4-5-20251001"
Add the directories where your Git projects are located:
# Find your project directories
cd ~
find . -name ".git" -type d 2>/dev/null | head -5Update your config:
[git]
auto_detect_repos = true
watch_paths = [
"~/projects",
"~/work/client-projects",
"~/open-source"
]CodeQuest will monitor these directories for Git commits and award XP automatically.
# Check the binary exists and runs
codequest --version
# Expected output:
# CodeQuest v0.1.0-beta# Check configuration file exists
ls -la ~/.config/codequest/config.toml
# Expected output:
# -rw-r--r-- 1 user group 2048 Oct 25 12:00 ~/.config/codequest/config.toml# Check Skate is working
skate get codequest.test_key
# Skate might return an empty value (expected) or error if not configured-
Launch CodeQuest:
codequest
-
In another terminal, test Git activity:
cd ~/projects # or any of your watch_paths git status echo "# Test" >> test.txt git add test.txt git commit -m "test: Verify CodeQuest installation"
-
Return to CodeQuest and verify:
- You should see XP awarded for the commit
- Character stats should update
- Commits appear in quest progress
Test AI mentor functionality:
# In CodeQuest, press 'm' to open the Mentor screen
# Ask a question like "How do I use git branches?"
# You should receive a response from the AI providerProblem: The codequest command is not in your PATH.
Solution:
# Reinstall globally
make install
# Or add the build directory to PATH
export PATH="$PATH:~/projects/codequest/build"
# Make permanent (add to ~/.bashrc, ~/.zshrc, etc.)
echo 'export PATH="$PATH:~/projects/codequest/build"' >> ~/.zshrcProblem: Skate is not installed.
Solution:
# Install Skate
brew install charmbracelet/tap/skate
# Verify installation
skate --version
# If Homebrew doesn't find it
brew tap charmbracelet/tap
brew install skateProblem: Config file is missing or corrupted.
Solution:
# Create the config directory
mkdir -p ~/.config/codequest
# Delete the bad config (backup first!)
cp ~/.config/codequest/config.toml ~/.config/codequest/config.toml.backup
rm ~/.config/codequest/config.toml
# Launch CodeQuest to regenerate it
codequestProblem: No AI provider is properly configured.
Solution - Option 1: Disable AI (CodeQuest works fine without it):
[ai.mentor]
provider = "none"Solution - Option 2: Set up OpenRouter (easiest):
# Get key from openrouter.ai/keys
skate set codequest.openrouter_api_key "sk-or-v1-..."
# Update config
# provider = "crush"Solution - Option 3: Set up local models:
brew install charmbracelet/tap/mods
# Then configure provider = "mods" in configProblem: Go modules aren't initialized.
Solution:
cd ~/projects/codequest
make deps
make buildProblem: CodeQuest isn't watching your repository.
Solution:
# Check your config
cat ~/.config/codequest/config.toml
# Verify your repository path is listed
# Make sure it's an absolute path or use ~/
# Add the path if missing:
# watch_paths = ["~/projects"]
# Verify the repository has commits
cd ~/your/project
git log --oneline -1Problem: API key wasn't stored properly.
Solution:
# Store the key again
skate set codequest.openrouter_api_key "YOUR_KEY_HERE"
# Verify it was stored
skate get codequest.openrouter_api_key
# Check the config has the correct provider
cat ~/.config/codequest/config.tomlProblem: Data wasn't persisted properly.
Solution:
# Check Skate storage
skate list | grep codequest
# Verify Skate is working
skate set test.value "test"
skate get test.value
# If Skate is broken, reinstall it
brew reinstall charmbracelet/tap/skateFor macOS (Intel):
make buildFor macOS (Apple Silicon):
make build
# Or specify architecture
GOARCH=arm64 make buildFor Linux:
make build
# Adjust build command if neededFor Windows:
# If using WSL (Windows Subsystem for Linux)
make build
# Or use Go directly
go build -o build/codequest.exe ./cmd/codequestIf you want to completely remove CodeQuest:
# Remove the binary
rm /usr/local/bin/codequest
# Or wherever make install placed it
# Remove the source code
rm -rf ~/projects/codequest
# Or wherever you cloned it
# Remove configuration (OPTIONAL - keeps your character/data)
rm -rf ~/.config/codequest
# Remove stored secrets (OPTIONAL - removes API keys)
skate delete codequest.openrouter_api_key
skate delete codequest.anthropic_api_keyTo keep your character and progress:
# Remove only the binary and source
rm /usr/local/bin/codequest
rm -rf ~/projects/codequest
# Your data remains in:
# - ~/.config/codequest/config.toml
# - Skate's encrypted storageReinstalling later will restore your character!
- README.md - Overview, features, and quick start
- CLAUDE.md - Developer documentation and Go standards
- CODEQUEST_SPEC.md - Complete technical specification
- DEVELOPMENT_STATUS.md - Current development progress
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Questions: Check existing issues before opening a new one
When reporting an issue, include:
# Your system information
go version
git --version
skate --version
# Relevant config (without API keys)
cat ~/.config/codequest/config.toml
# Error messages (copy/paste exactly)
# Steps to reproduceOpenRouter Issues:
- Visit openrouter.ai/status
- Check your account balance
- Review API key permissions
Mods Issues:
- Run
mods --settingsto verify configuration - Check if Ollama/models are installed
- Review Mods documentation
Skate Issues:
- Run
skate --versionto verify installation - Check file permissions:
ls -la ~/.local/share/skate/(or appropriate path) - Review Skate documentation
Once installed and configured:
- Create your character - Launch
codequestand create your hero - Set up Git watching - Configure
watch_pathsfor your repositories - Accept a quest - Browse the Quest Board (press
q) - Start coding - Make commits and earn XP
- Level up - Watch your character grow with your productivity
Happy questing! 🎮
Questions or issues? Check the Getting Help section or visit the GitHub repository.
For developers, see CLAUDE.md for contribution guidelines and development setup.