LocalAI/docs/content/reference
LocalAI [bot] d200401e86
feat: Add --data-path CLI flag for persistent data separation (#8888)
feat: add --data-path CLI flag for persistent data separation

- Add LOCALAI_DATA_PATH environment variable and --data-path CLI flag
- Default data path: /data (separate from configuration directory)
- Automatic migration on startup: moves agent_tasks.json, agent_jobs.json, collections/, and assets/ from old config dir to new data path
- Backward compatible: preserves old behavior if LOCALAI_DATA_PATH is not set
- Agent state and job directories now use DataPath with proper fallback chain
- Update documentation with new flag and docker-compose example

This separates mutable persistent data (collectiondb, agents, assets, skills) from configuration files, enabling better volume mounting and data persistence in containerized deployments.

Signed-off-by: localai-bot <localai-bot@noreply.github.com>
Co-authored-by: localai-bot <localai-bot@noreply.github.com>
2026-03-09 14:11:15 +01:00
..
_index.en.md feat: docs revamp (#7313) 2025-11-19 22:21:20 +01:00
api-errors.md docs: Add comprehensive API error reference documentation (#8848) 2026-03-08 08:54:51 +01:00
architecture.md feat: docs revamp (#7313) 2025-11-19 22:21:20 +01:00
binaries.md chore: drop bark which is unmaintained (#8207) 2026-01-25 09:26:40 +01:00
cli-reference.md feat: Add --data-path CLI flag for persistent data separation (#8888) 2026-03-09 14:11:15 +01:00
compatibility-table.md docs: Update model compatibility documentation with missing backends (#8889) 2026-03-09 09:22:34 +01:00
nvidia-l4t.md chore(docs): update docs with cuda 13 instructions and the new vibevoice backend 2025-12-25 10:00:07 +01:00
shell-completion.md Update shell completion documentation URL 2026-03-08 09:33:36 +01:00
system-info.md feat: Add documentation for undocumented API endpoints (#8852) 2026-03-08 17:59:33 +01:00