# Alloy Interpreter Setup Guide

## Environment Configuration

The Alloy interpreter uses environment variables for secure API key management.

### Setting up OpenAI API Key

1. **Create a `.env` file** in the project root:
   ```bash
   touch .env
   ```

2. **Add your OpenAI API key** to the `.env` file:
   ```
   OPENAI_API_KEY=your_actual_api_key_here
   ```

3. **Get your API key** from [OpenAI Platform](https://platform.openai.com/api-keys)

### Example `.env` file content:
```
# OpenAI API Key for agent blocks
OPENAI_API_KEY=sk-proj-1234567890abcdef...
```

### Security Notes
- Never commit your `.env` file to version control
- The `.env` file should contain your actual secret keys
- Make sure `.env` is in your `.gitignore` file

### Running the Interpreter
Once configured, you can run:
```bash
python alloy_interpreter.py
python demo.py
```

Agent blocks will only work if the API key is properly configured. 