Install

pip install blastai

Get an OpenAI API Key

echo "OPENAI_API_KEY=sk-..." > .env

Start the Server

blastai serve

Try the UI

Open http://localhost:3000 in your browser and try asking BLAST something totally normal like compare the weight of the 10 heaviest gorillas and the 10 heaviest bench presses and squats ever.

This frontend is a lightweight Next.js app that is simply calling the OpenAI Node.js API and reading the returned stream for screenshots and text results.

Use the API

BLAST provides an OpenAI-compatible API. Here’s a simple example using the Python OpenAI client:

from openai import OpenAI

# Initialize client pointing to local BLAST server
client = OpenAI(
    api_key="not-needed",
    base_url="http://127.0.0.1:8000"
)

# Create a streaming response
stream = client.responses.create(
    model="not-needed",
    input="Compare the r/protectandserve and r/securityguard subreddits",
    stream=True
)

# Process the stream
for event in stream:
    if event.type == "response.output_text.delta":
        # Print real-time thoughts/actions
        if ' ' in event.delta:  # Skip screenshots
            print(event.delta, end='', flush=True)

Next Steps