Framework support
Dotvault for FastAPI
Dotvault for FastAPI services.
FastAPI projects usually read configuration through pydantic-settings, which loads .env and validates it into a typed settings object. The validation is the good part. The bad part is that the file it reads is still a plain text list you edit by hand. Dotvault makes that half visual, with history and diffs.
What you get
- →Detects FastAPI from requirements.txt or pyproject.toml.
- →Recognises DATABASE_URL, SECRET_KEY, ALLOWED_ORIGINS and REDIS_URL.
- →Knows the Uvicorn runtime set: HOST, PORT and LOG_LEVEL.
- →Diff staging against production to catch the variable you forgot to promote.
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_URLDatabase connection URL
SECRET_KEYApplication secret key
DEBUGDebug mode toggle
HOSTServer bind host
PORTServer listen port
LOG_LEVELUvicorn log level
ALLOWED_ORIGINSComma-separated CORS allowed origins
REDIS_URLRedis connection URL
ENVIRONMENTApplication environment (development/production)
Official FastAPI docs: fastapi.tiangolo.com