---
title: settings
description: "Settings for Marvin."
---

# `marvin.settings`
Settings for Marvin.

## Classes

### `Settings`
```python
class Settings()
```
Settings for Marvin.

Settings can be set via environment variables with the prefix MARVIN_. For
example, MARVIN_AGENT_MODEL="openai:gpt-4o-mini"

**Methods:**

- **`setup_logging`**
  ```python
  def setup_logging(self) -> Self
  ```
  Finalize the settings.
- **`validate_database_url`**
  ```python
  def validate_database_url(cls, v: str | None, info: ValidationInfo) -> str
  ```
  Set and validate the database URL.
- **`validate_home_path`**
  ```python
  def validate_home_path(cls, v: Path) -> Path
  ```
  Ensure the home path exists.

---

**Parent Module:** [`marvin`](marvin)
