Skip to main content

The agentic AI companion to MultiViewer, the best app to watch motorsports

Project description

Pitwall 🏁

The agentic AI companion to MultiViewer, the best app to watch motorsports

Pitwall transforms your motorsport viewing experience by augmenting MultiViewer with an agentic intelligence you can interrogate over the course of a racing session.

CI Python License Tests Coverage

Key Features

  • 💬 Conversational Interface: Ask questions, request specific views, or let Pitwall decide what to show
  • 🤖 AI-Powered Feed Management: A conversational interface to control driver onboards, broadcast feeds, and more.
  • 🏎️ Racing Intelligence: Pit strategy, race control interpretation, and more.
  • 🧠 Session Memory: Remembers context and preferences throughout your viewing session
  • 🌐 Multi-Series Support: Works with all motorsports series that MultiViewer supports
  • OpenRouter Powered: Use any of the thousands of LLMs on OpenRouter

Quick Start

Prerequisites

  • Python 3.10 or higher
  • MultiViewer installed and running
  • A streaming subscription for the motorsport series you wish to watch.
  • OpenRouter API key for AI model access

Installation

pip install pitwall

Basic Usage

  1. Start MultiViewer and ensure it's running on your system
  2. Set your API key:
    export OPENROUTER_API_KEY="your-openrouter-api-key"
    
  3. Launch Pitwall:
    pitwall
    

Available Commands

Main Commands

  • pitwall - Start interactive chat mode (default)
  • pitwall quick <query> - Quick analysis for simple queries
  • pitwall models - Show available model shortcuts
  • pitwall memory - Memory management commands
  • pitwall --version - Show version information

Memory Commands

  • pitwall memory list - List all conversation sessions
  • pitwall memory show <session-id> - Show details of a specific session
  • pitwall memory export <session-id> - Export session to JSON file
  • pitwall memory delete <session-id> - Delete a specific session
  • pitwall memory clear - Clear all sessions

Example Commands

# Quick analysis of current session
pitwall quick "What's the current battle for the lead?"

# Start interactive chat mode (default command)
pitwall

# Use a specific AI model
pitwall --model claude-sonnet

# Connect to remote MultiViewer instance
pitwall --url http://remote-server:10101/graphql

# Check available models
pitwall models

# Resume a previous session
pitwall --session your-session-id

# Quick analysis with specific model
pitwall quick "Who's leading?" --model gpt-41

# Quick analysis with remote MultiViewer
pitwall quick "Current standings" --url http://remote-server:10101/graphql

Configuration

Environment Variables

# Required: OpenRouter API key for AI models
export OPENROUTER_API_KEY="your-key-here"

CLI Options

# Core options available for all commands
--model, -m     # AI model to use (see Model Options below)
--verbose, -v   # Enable verbose output
--session, -s   # Resume a specific conversation session
--url, -u       # MultiViewer instance URL (default: http://localhost:10101/graphql)
--version       # Show version information

Model Options

Pitwall supports various AI models through OpenRouter:

  • claude-sonnet: Anthropic Claude Sonnet 4 (recommended)
  • claude-opus: Anthropic Claude Opus 4 (premium)
  • gpt-41: OpenAI GPT-4.1
  • gpt-41-mini: OpenAI GPT-4.1 Mini
  • gemini-pro: Google Gemini 2.5 Pro Preview
  • gemini-flash: Google Gemini 2.5 Flash Preview
  • llama: Meta Llama 4 Maverick
  • llama-free: Meta Llama 4 Maverick (free tier)
  • deepseek: DeepSeek R1

You can also use any full OpenRouter model name directly.

Advanced Features

Remote MultiViewer Connections

Pitwall connects to MultiViewer instances using the --url option (defaults to localhost):

# Connect to a remote MultiViewer instance
pitwall --url http://192.168.1.100:10101/graphql

# Quick analysis with remote instance
pitwall quick "Current race status" --url http://remote-server:10101/graphql

# Use specific model with remote instance
pitwall --model claude-opus --url http://remote-server:10101/graphql

# Default behavior (connects to localhost)
pitwall

This is useful when:

  • Running MultiViewer on a different machine
  • Accessing a shared MultiViewer instance
  • Using Pitwall from a remote location

Session Memory

Pitwall remembers your viewing sessions:

# List previous sessions
pitwall memory list

# Show details of a specific session
pitwall memory show abc123

# Resume a specific session
pitwall --session abc123

# Export session data
pitwall memory export abc123 --output session.json

# Delete a session
pitwall memory delete abc123

# Clear all sessions
pitwall memory clear

Development

Local Development

# Clone the repository
git clone https://github.com/RobSpectre/pitwall.git
cd pitwall

# Install in development mode
pip install -e .[dev]

# Run tests
pytest

# Run linting and formatting
black .
flake8
mypy .

# Run tests with coverage
pytest --cov

# Run tests across multiple Python versions
tox

Testing

# Run all tests
pytest

# Run with coverage
pytest --cov

# Run specific test files
pytest tests/test_cli.py
pytest tests/test_memory.py
pytest tests/test_pitwall.py

# Run tests with verbose output
pytest -v

# Run across multiple Python versions
tox

# Run specific tox environments
tox -e py310
tox -e py311
tox -e py312
tox -e lint
tox -e type-check

Architecture

Pitwall is built with a modular architecture:

pitwall/
├── cli.py          # Command-line interface
├── pitwall.py      # Core AI agent logic
├── memory.py       # Session management
├── prompts.py      # AI prompt templates
└── __init__.py     # Package initialization

License

This project is licensed under the MIT License - see the LICENSE file for details.

Meta

  • Vibe-coded by Rob Spectre
  • Released under MIT License
  • Software is as is - no warranty expressed or implied, diggity.
  • This package is not developed or maintained by MultiViewer or any racing series
  • 🏎️ Go Weeyums! 🏎️

Acknowledgements

  • MultiViewer for the incredible motorsport viewing platform
  • mvf1 for MultiViewer MCP support
  • PydanticAI for the AI agent framework

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pitwall-0.2.1.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pitwall-0.2.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file pitwall-0.2.1.tar.gz.

File metadata

  • Download URL: pitwall-0.2.1.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pitwall-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c156f925e1d8039581adf310326498c3fdee0cac7414e84ab165ac0212f2a33d
MD5 aa46ef3b59f6f39afb00700877c6218e
BLAKE2b-256 b3eec8d2e71b61d82ffd2722b7da0fa2c9d68660153c0ef2f195fa88b3811add

See more details on using hashes here.

Provenance

The following attestation bundles were made for pitwall-0.2.1.tar.gz:

Publisher: release.yml on RobSpectre/pitwall

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pitwall-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pitwall-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pitwall-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35d43015ad0579232056ce9959b35f41daf01e84ac56475b4bd57a68bbecf24d
MD5 71196553d3900a717a81454280364abe
BLAKE2b-256 5358fc72491873e64c1521fd63010de5042122151203903f02acc70e5f3a877b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pitwall-0.2.1-py3-none-any.whl:

Publisher: release.yml on RobSpectre/pitwall

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page