# API Reference

## CLI Commands

### generate-code
Generate code based on a prompt.

#### Usage
```python cli.py generate-code "Create a Python function to add two numbers"```

### save-session
Save the current session.

#### Usage
```python cli.py save-session --session-name my_session```

### load-session
Load a saved session.

#### Usage
```python cli.py load-session --session-name my_session```

### configure
Configure the OpenAI API key.

#### Usage
```python cli.py configure```