Skip to main content
Development Note: Splat’s CLI is under active development. The core error analysis modules are functional, but the splat squash command interface is not yet fully wired up in the codebase. This guide documents the intended installation and usage pattern.

Prerequisites

Before installing Splat, ensure you have the following:

Python 3.7+

Splat requires Python 3.7 or higher

pip or setuptools

Python package manager for installation

tmux

Terminal multiplexer for session management

npm (optional)

Required for repomix dependency

Installation Methods

Environment Configuration

1

Set up your API key

Splat uses Groq for AI inference. Create a .env file in your project or Splat installation directory:
.env
API=your_groq_api_key_here
API_KEY=your_groq_api_key_here
MODEL=llama3-70b-8192
Get your free Groq API key at console.groq.com
2

Verify .gitignore support

Splat automatically respects .gitignore files in your project to exclude sensitive information. Ensure your .env file is in .gitignore:
.gitignore
.env
__pycache__/
*.pyc

Troubleshooting

If the splat command is not recognized after installation:
  1. Ensure your virtual environment is activated:
    source zapenv/bin/activate
    
  2. Reinstall Splat:
    pip install -e .
    
  3. Check if the installation directory is in your PATH:
    echo $PATH
    
Install tmux using your system package manager:
# macOS
brew install tmux

# Ubuntu/Debian
sudo apt-get install tmux

# Fedora
sudo dnf install tmux
Make sure you’ve installed all dependencies:
pip install -r requirements.txt
If issues persist, try recreating your virtual environment:
deactivate
rm -rf zapenv
python3 -m venv zapenv
source zapenv/bin/activate
pip install -r requirements.txt
pip install -e .
If you see API authentication errors:
  1. Verify your .env file exists and contains your Groq API key
  2. Check that the MODEL and API_KEY variables are set correctly
  3. Ensure your API key is valid at console.groq.com

Next Steps

Now that Splat is installed, let’s run your first debug session:

Quick Start Guide

Learn how to use Splat to debug your first error

Build docs developers (and LLMs) love