Framework support

Dotvault for FastAPI

Dotvault for FastAPI projects.

FastAPI is one of the frameworks Dotvault detects automatically. Point Dotvault at your project folder and it'll identify FastAPI from your package manifest, surface the common environment variables it uses, and give you the visual editor, snapshot history, and diff tools you need to manage them properly.

What you get

  • Automatic detection of FastAPI from your project's manifest.
  • Visual editor with syntax highlighting, validation, and smart warnings.
  • Snapshot history so you can roll back any change.
  • Diff view across environments to catch drift.
  • Works entirely on your Mac — no accounts, no cloud, no CLI required.

Known environment variables

Dotvault recognises these variables when you open a FastAPI project and surfaces helpful descriptions and warnings in the editor. FastAPI is detected via `fastapi` in requirements.txt or pyproject.toml.

  • DATABASE_URL

    Database connection URL

  • SECRET_KEY

    Application secret key

  • DEBUG

    Debug mode toggle

  • HOST

    Server bind host

  • PORT

    Server listen port

  • LOG_LEVEL

    Uvicorn log level

  • ALLOWED_ORIGINS

    Comma-separated CORS allowed origins

  • REDIS_URL

    Redis connection URL

  • ENVIRONMENT

    Application environment (development/production)

Official FastAPI docs: fastapi.tiangolo.com