Overview
Splat requires minimal configuration to get started. The primary requirement is setting up your Groq API credentials for AI-powered error analysis.Installation
Before configuring Splat, ensure you have installed it:Quick Setup
Follow these steps to get Splat configured:Get Groq API key
- Visit Groq Console
- Sign up or log in to your account
- Navigate to API Keys section
- Create a new API key
- Copy the key (you won’t be able to see it again)
Keep your API key secure and never commit it to version control.
Configure environment variables
Configuration File Location
Splat usespython-dotenv to load environment variables. The .env file can be placed in:
- Project directory:
.envin your current working directory (recommended for project-specific settings) - Home directory:
~/.envfor global settings
Project-level
.env files take precedence over home directory configuration.Verify Installation
Check that Splat is properly installed and configured:Security Best Practices
Add.env to your .gitignore:
.gitignore
Additional Security Tips
Use environment-specific files
Create separate
.env.development and .env.production files for different environments.Rotate API keys regularly
Periodically regenerate your Groq API keys in the console.
Limit key permissions
Use API keys with minimal required permissions.
Monitor usage
Track your API usage in the Groq Console to detect unauthorized access.
Troubleshooting
API Key Not Found
If you see errors about missing API keys:- Verify your
.envfile exists and contains theAPIvariable - Check that the
.envfile is in the correct directory - Ensure there are no extra spaces around the
=sign - Restart your terminal session to reload environment variables
Permission Errors
If you encounter permission errors:Next Steps
Environment Variables
Complete reference for all configuration options
Groq API
Learn about Groq API configuration and models
Quickstart
Start using Splat to debug your code
Commands
Explore available CLI commands