> ## Documentation Index
> Fetch the complete documentation index at: https://askmarvin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# settings

> Settings for Marvin.

# `marvin.settings`

Settings for Marvin.

## Classes

### `Settings`

```python theme={null}
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 theme={null}
  def setup_logging(self) -> Self
  ```
  Finalize the settings.
* **`validate_database_url`**

  ```python theme={null}
  def validate_database_url(cls, v: str | None, info: ValidationInfo) -> str
  ```

  Set and validate the database URL.

  Priority:

  1. MARVIN\_DATABASE\_URL (from environment or .env file via os.getenv).
  2. Default SQLite path if MARVIN\_DATABASE\_URL is not set.
     This validator bypasses Pydantic's implicit fallback to an unprefixed DATABASE\_URL from .env.
* **`validate_home_path`**
  ```python theme={null}
  def validate_home_path(cls, v: Path) -> Path
  ```
  Ensure the home path exists.

***

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