LocalAI/docs/content
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
..
advanced feat: pass-by metadata to predict options (#8795) 2026-03-05 22:50:10 +01:00
features feat: Add --data-path CLI flag for persistent data separation (#8888) 2026-03-09 14:11:15 +01:00
getting-started feat: Create comprehensive troubleshooting guide (M1 task) (#8856) 2026-03-08 21:58:32 +01:00
installation docs: add CDI driver config for NVIDIA GPU in containers (fix #8108) (#8677) 2026-02-28 08:42:53 +01:00
reference feat: Add --data-path CLI flag for persistent data separation (#8888) 2026-03-09 14:11:15 +01:00
_index.md chore(docs): center video 2025-12-08 16:59:11 +01:00
faq.md feat: docs revamp (#7313) 2025-11-19 22:21:20 +01:00
integrations.md chore(docs): Add Crush and VoxInput to the integrations (#7924) 2026-01-08 21:39:25 +01:00
overview.md feat: docs revamp (#7313) 2025-11-19 22:21:20 +01:00
whats-new.md feat: docs revamp (#7313) 2025-11-19 22:21:20 +01:00