# TrailSnap 行影集 documentation > AI-powered, self-hosted photo library. This index is optimized for AI agents and links directly to Markdown source. ## AI-friendly entry points - Full documentation: https://trailsnap.cn/llms-full.txt - Structured index: https://trailsnap.cn/ai-docs.json - CLI installation prompt: https://trailsnap.cn/install.md ## 中文文档 ### AI Agent 文档入口 - [AI Agent 文档入口](https://trailsnap.cn/docs/guide/ai-access.md): 为 AI Agent 提供 llms.txt、结构化索引和 Markdown 原文等稳定、低噪声的官网文档入口。 ### 安装部署 - [桌面版内置 AI](https://trailsnap.cn/docs/guide/desktop-ai-extension.md): 行影集桌面版已包含 AI 运行环境,安装和更新只需一次操作。 - [安装指南](https://trailsnap.cn/docs/guide/install.md): 在桌面安装包与 Docker 部署之间选择适合你的 TrailSnap 安装方式。 - [移动 App 使用指南](https://trailsnap.cn/docs/guide/mobile-app.md): 安装 TrailSnap Android App,并连接自己的 TrailSnap 服务器 - [产品概览](https://trailsnap.cn/docs/guide/overview.md): 行影集 TrailSnap 产品概览:AI 相册的定位、特色功能、主要能力与后续开发方向。 - [部署前检查](https://trailsnap.cn/docs/guide/preflight.md): 部署前检查清单:照片目录、Docker 权限、端口占用与备份,避免容器启动后无法扫描照片。 ### Docker 部署 - [飞牛OS(fnOS)部署](https://trailsnap.cn/docs/guide/docker/fnos.md): 在飞牛 OS(fnOS)上用 Docker Compose 部署 TrailSnap:目录挂载、端口规划与权限校验。 - [Docker 部署(通用)](https://trailsnap.cn/docs/guide/docker/index.md): Docker 通用部署指南:用 Compose 一次启动前端、后端、数据库与 AI 服务,并把照片目录挂载进容器。 - [绿联 NAS(UGREEN)部署](https://trailsnap.cn/docs/guide/docker/ugreen.md): 在绿联 NAS(UGOS Pro)上部署 TrailSnap:用 Docker Compose 导入项目,完成端口与照片目录配置。 - [Windows 部署](https://trailsnap.cn/docs/guide/docker/windows.md): 在 Windows 上用 Docker Desktop 部署 TrailSnap 的完整步骤:安装、Compose 配置、启动与验证。 - [极空间部署](https://trailsnap.cn/docs/guide/docker/zspace.md): 在极空间 NAS 上长期运行 TrailSnap:Docker Compose 部署、照片库挂载与日常维护。 ### 设置指南 - [AI 大模型设置](https://trailsnap.cn/docs/guide/settings/aisetting.md): AI 大模型设置:内置多模态模型、远程 OpenAI 或 Ollama 接入,以及各任务使用哪个模型的配置方式。 - [设置外部图库](https://trailsnap.cn/docs/guide/settings/directories.md): 设置外部图库:添加文件夹路径、确认 Docker 挂载目录,以及一次挂载多个照片目录的写法。 - [设置指南](https://trailsnap.cn/docs/guide/settings/index.md): 设置指南总览:个人资料、外观与浏览、外部工具授权、照片文件夹、地图与 AI 等设置项入口。 - [地图设置指南](https://trailsnap.cn/docs/guide/settings/mapsetting.md): 地图设置:申请天地图或高德等地图服务的 API Key,配置后启用足迹地图与城市点亮功能。 - [设置访问令牌](https://trailsnap.cn/docs/guide/settings/tokensetting.md): 访问令牌设置:创建令牌、设置过期时间,供 CLI、MCP 等第三方工具调用 TrailSnap 后端 API。 ### 使用指南 - [功能清单](https://trailsnap.cn/docs/guide/features.md): TrailSnap 完整功能清单:相册、AI 检索、足迹地图、票据管理、年度报告与工具箱能力一览。 - [TrailSnap 用户指南](https://trailsnap.cn/docs/guide/user.md): 用户使用指南:登录后的主页、上传与浏览照片、外部图库、相册与常用功能入口。 ### 参考信息 - [更新日志](https://trailsnap.cn/docs/guide/changelog.md): TrailSnap 版本更新日志:按版本记录新增功能、体验改进与问题修复,方便了解每个版本的变化。 - [数据、隐私与备份](https://trailsnap.cn/docs/guide/data-safety.md): 数据与隐私说明:自托管模式下照片存放位置、本地与第三方模型的数据流向,以及备份与访问控制建议。 - [识别效果展示](https://trailsnap.cn/docs/guide/demo.md): OCR 识别效果展示:火车票字段提取、复杂背景与倾斜拍摄的实际识别样例。 - [问题反馈](https://trailsnap.cn/docs/guide/feedback.md): 问题反馈渠道:官方交流群、需求平台与 Bug 提交方式,以及报告问题时建议附上的环境信息。 - [飞牛 NAS 安装与使用](https://trailsnap.cn/docs/guide/fnos.md): 使用飞牛安装包安装行影集,添加已有照片目录、查看上传原图并更新应用。 - [常见问题](https://trailsnap.cn/docs/guide/questions.md): TrailSnap 常见问题:支持的部署方式与平台、外部图库报错、API 调用与数据迁移等。 ### Agent 集成 - [Claude Code](https://trailsnap.cn/docs/guide/agent/claudecode.md): 在 Claude Code 中接入 TrailSnap CLI:获取访问令牌、安装 Skill,让 AI 直接查询你的相册数据。 - [Agent Skills](https://trailsnap.cn/docs/guide/agent/index.md): 把 TrailSnap CLI 作为 Agent Skill 使用:支持的平台、MCP 接入方式与自然语言查询相册的示例。 - [配置 TrailSnap MCP](https://trailsnap.cn/docs/guide/agent/mcp.md): 创建最小权限 Agent Token,并通过 Streamable HTTP 将 TrailSnap 的照片搜索、回忆侦探、人物时间线和待确认相册提案接入外部 AI Agent。 - [OpenClaw / Roo Code](https://trailsnap.cn/docs/guide/agent/openclaw.md): 在 OpenClaw / Roo Code 等 IDE Agent 中安装 TrailSnap Skill,通过令牌让 AI 查询个人相册。 - [TrailSnap CLI 工具](https://trailsnap.cn/docs/guide/agent/trailsnap-cli.md): TrailSnap CLI 的安装与命令参考:pip、npm、二进制三种安装方式,以及检索、导出等常用子命令。 - [TrailSnap CLI 安装指南](https://trailsnap.cn/install.md): 以下步骤面向 AI Agent,部分步骤需要用户在浏览器中配合完成。 ### 开发者文档 - [AI微服务设计](https://trailsnap.cn/docs/dev/ai_service.md): TrailSnap AI 微服务的设计与部署:OCR、人脸识别、场景分类等能力如何被后端任务系统按需调用。 - [架构设计文档](https://trailsnap.cn/docs/dev/architecture.md): TrailSnap 整体架构说明:前端、FastAPI 后端、AI 微服务与 PostgreSQL/pgvector 数据层如何分层协作。 - [后端框架分析文档](https://trailsnap.cn/docs/dev/backend.md): 后端技术栈与模块划分:FastAPI、异步 SQLAlchemy、任务队列、鉴权与数据库迁移的组织方式。 - [功能设计文档](https://trailsnap.cn/docs/dev/feature-proposals.md): TrailSnap 待开发功能的设计草案合集,涵盖图片编辑、自动旅行日志等方向,供社区讨论与贡献参考。 - [前端框架分析文档](https://trailsnap.cn/docs/dev/frontend.md): 前端技术栈说明:Vue 3 + TypeScript + Vite,Element Plus 与 TailwindCSS 的分工及目录结构。 - [TrailSnap 开发者文档](https://trailsnap.cn/docs/dev/guide.md): 开发者上手指南:环境准备、项目结构、前后端与 AI 服务开发流程、数据库迁移与常见开发任务。 - [任务管理模块设计文档](https://trailsnap.cn/docs/dev/task_manager.md): 任务管理模块设计:多级缓冲与生产者消费者模型,内存优先级队列和 PostgreSQL 持久化如何配合。 ### 博客 - [2025年度相册报告!你的全年温柔,都被我们藏进了这里](https://trailsnap.cn/docs/blog/2025-annual-album-report.md): 行影集年度相册报告:一键把全年照片整理成照片墙、照片日历、城市足迹与年度最佳,生成专属回忆录。 - [三万张照片,最后只留了三十九张](https://trailsnap.cn/docs/blog/30k-photos-kept-39.md): 国庆那七天我一共拍了 458 张,挑到最后剩下 16 张,刚够贴满一页日历。下面写的是我怎么挑、怎么贴的。 - [相册·SKILL,把你的相册接入OpenClaw,一句话生成旅游日记](https://trailsnap.cn/docs/blog/album-skill-openclaw-travel-diary.md): 昨天,我把 TrailSnap 的 SKILL 接入了我的养的龙虾。 - [红票回归 + 细节拉满!电子火车票纪念工具升级,每段回忆都有专属仪式感](https://trailsnap.cn/docs/blog/e-train-ticket-red-ticket-upgrade.md): 那张被你小心翼翼收在票夹最里层的红色软纸票,是大学报到时第一次独自远行的见证;那张皱皱的儿童票,还留着娃儿趴车窗看风景时小手捏过的痕迹;还有那张和朋友挤硬卧的车票,上铺的号码下面,仿佛还藏着那晚说不完的悄悄话…… - [功能全景速览:TrailSnap 能做什么?](https://trailsnap.cn/docs/blog/feature-scan.md): 一次扫完 TrailSnap 行影集的核心能力:智能相册、AI 识别与以文搜图、行程票据管理、出行统计、年度报告与足迹地图。 - [去过的地方,连成了一颗地球](https://trailsnap.cn/docs/blog/footprint-globe.md): 你有没有过这种时刻:翻到一张好几年前的照片,明明记得那个地方,却怎么也想不起是哪一年去的、和谁一起、前后还去过哪儿。 - [全国到底有多少座火车站?12306藏着答案,但没那么简单](https://trailsnap.cn/docs/blog/how-many-railway-stations-in-china.md): 每次在12306抢票时,你有没有过这样的好奇:从冰天雪地的漠河站到椰风阵阵的三亚站,全国到底散落着多少座火车站? 我们每天刷着12306的站点列表,按首字母检索目的地,却很少有人深究——这个列表里的车站,是不是就是全国的“全部家底”?今天咱们就顺着12306的线索,揭开火车站数量的小秘密。 - [Immich、PhotoPrism 还是行影集?2026 自托管开源相册选型对比](https://trailsnap.cn/docs/blog/immich-photoprism-trailsnap-comparison.md): 对比 Immich、PhotoPrism 与行影集 TrailSnap 三款自托管开源相册:手机自动备份、以文搜图、人脸识别、足迹地图、票根纪念、NAS 部署与中文体验的差异,附选型结论与常见问题,帮你挑到合适的 Google Photos 开源替代。 - [博客](https://trailsnap.cn/docs/blog/index.md): TrailSnap 行影集官方博客:AI 相册产品思路、功能演进、以文搜图与足迹地图实践、NAS 部署经验与独立开发实录。 - [阴晴圆缺:随手拍的月亮,也有一本自己的时间线](https://trailsnap.cn/docs/blog/moon-phase-timeline.md): 从初一到三十,你的相册替你记着哪一天拍的月亮是什么样子 晚上出门,抬头看见月亮,顺手拍一张。这样的小照片,手机里往往攒了几十张,散落在相册各处。行影集的「月迹」把它们按月相和农历日重新排好,还标出亮面百分比——2015 到 2026,81 次记录,串成一条能一路翻下去的时间线。 - [藏好每一段出行记忆,这款开源AI相册太懂记录了](https://trailsnap.cn/docs/blog/open-source-ai-album-intro.md): 手机里的相册,大概是每个人的「时光收纳盒」——旅行时的山海湖海,打卡时的人间烟火,随手拍下的出行票据,都被定格成一张张照片。可日子久了,上千张照片堆在一起,想找一张旅行照要划半天,珍贵的出行记忆,就这样被淹没在杂乱的相册里。 - [几万张照片堆爆硬盘,为什么你最后一张都没舍得删?](https://trailsnap.cn/docs/blog/photo-deletion-dilemma.md): 几万张照片舍不得删怎么办:行影集用 AI 从画面质量与回忆价值打分,批量清理重复连拍,再滑动完成断舍离。 - [我用 AI 做了一个「照片版中国地图」:去过的地方,终于有了形状](https://trailsnap.cn/docs/blog/photo-map-of-china.md): 把照片放回拍摄地:行影集「照片地图拼图」按地理位置聚合照片,点亮城市并还原每段旅程的形状。 - [12306停供纸质票?别慌!你的旅途回忆,这个工具帮你永久留存](https://trailsnap.cn/docs/blog/preserve-train-ticket-memories.md): 2025年9月30日之后铁路12306全面施行电子发票,纸质报销凭证不再提供打印服务,但是有很多人都希望打印纸质车票作为留念,我写了一个工具,可以在线生成电子火车票,可以保存成图片永久保存。可以使用这个工具做一个票夹,永久留存车票作为纪念。 - [我用Qwen3.5分析了4万张照片,用AI让沉睡的记忆重现](https://trailsnap.cn/docs/blog/qwen35-analyzes-40k-photos.md): 本地部署 Qwen3.5-4B 分析 4 万张照片:行影集如何用多模态模型做内容理解、检索与回忆整理。 - [去过 46 座城,但你去过几个 5A 景区?这个开源相册帮你算得明明白白](https://trailsnap.cn/docs/blog/scenic-spot-footprints.md): 几乎所有的相册和旅行 App 都会做同一件事:统计你去过哪些城市。 - [你有多久没打开过相册了?—— 行影集「以文搜图」](https://trailsnap.cn/docs/blog/text-to-image-search.md): 不是没时间看,是打开之后觉得……没什么可看的 几万张照片躺在手机里,你却想不起要找哪一张。行影集能听懂人话:打一句\"海边看日落的照片\",照片就出来了。开源、自托管,你的照片不用上传给任何人。 - [开源相册行影集:把票根、照片、旅行自动串成 3D 足迹](https://trailsnap.cn/docs/blog/tickets-photos-3d-footprints.md): 去年国庆你坐的那趟高铁,车次是多少?几号车厢?坐了几号座? - [TrailSnap 0.21.0:智能 CLIP 分类与人物时光线,重塑影像管理体验](https://trailsnap.cn/docs/blog/trailsnap-0-21-0-clip-and-person-timeline.md): TrailSnap 0.21.0:智能 CLIP 分类与人物时光线,重塑影像管理体验 TrailSnap v0.21.0 版本现已发布!本次更新带来了从底层识别算法到用户交互的全面革新,助您更高效地管理海量影像资源。 - [行影集 0.21.0:照片终于不再只能属于一个分类](https://trailsnap.cn/docs/blog/trailsnap-0-21-0-multi-category.md): 一张雪山,同时是风景、是湖泊、是山,也是开阔风景 行影集 0.21.0 带来全新的智能 CLIP 照片分类。一张照片可以同时带上多个分类,每个分类都带独立置信度;内置目录逐类校准过识别阈值;你还能用一段文字或几张参考图,教它认识你自己的分类。 - [你的手机相册里躺着 8000 张照片,却怎么都找不到那张\"车窗边\"的](https://trailsnap.cn/docs/blog/trailsnap-product-intro.md): —— 开源私人 AI 相册「行影集 TrailSnap」,让照片从\"文件堆\"变回\"回忆的索引\" - [独立开发者 vibecoding 实录:15 万行代码,我怎么防止 AI 把旧功能改坏](https://trailsnap.cn/docs/blog/vibecoding-reliability.md): 95% 代码由 AI 编写的开源相册 TrailSnap,如何靠工程约定、自动化测试与 CI 兜住可靠性,防止新功能悄悄改坏旧功能。 - [Vue3 实现 12306 原版火车票组件:从像素级还原到自适应适配](https://trailsnap.cn/docs/blog/vue3-12306-ticket-component.md): 在票务系统、差旅报销平台或出行类应用中,还原12306官方火车票样式的展示组件是常见需求。本文将详细介绍如何基于 Vue3 Composition API 开发一款高度还原原版、支持自适应布局、动态数据驱动的火车票组件,拆解实现过程中的核心技术亮点与设计思路。 - [为什么我推荐你拥有一台 NAS:从私人云盘、家庭微服务器到个人 AI Agent 中枢](https://trailsnap.cn/docs/blog/why-own-a-nas.md): 为什么我推荐你拥有一台 NAS:从私人云盘、家庭微服务器到个人 AI Agent 中枢 很多人在听说 NAS(网络附加存储)时,第一反应往往是:“不就是个插网线的大号移动硬盘吗?平时存在百度网盘、iCloud 或者阿里云盘里不香吗,为什么还要花几千块买硬件、折腾硬盘?” 如果你仅仅把 NAS 当作一个“… - [一句话,让 WorkBuddy 帮你把 7 万张照片整理成电子相册](https://trailsnap.cn/docs/blog/workbuddy-organizes-70k-photos.md): 用 WorkBuddy 与 TrailSnap CLI 一句话整理 7 万张照片:按时间、人物与地点归档,生成电子相册。 ## English documentation ### AI Agent access - [AI Agent Documentation Access](https://trailsnap.cn/en/docs/guide/ai-access.md): Stable, low-noise documentation entry points for AI agents, including llms.txt, a structured index, and Markdown mirrors. ### Installation - [Built-in desktop AI](https://trailsnap.cn/en/docs/guide/desktop-ai-extension.md): AI is included in the TrailSnap desktop application and updated with it. - [Installation](https://trailsnap.cn/en/docs/guide/install.md): Choose between TrailSnap desktop installers and a self-hosted Docker deployment. - [Mobile App Guide](https://trailsnap.cn/en/docs/guide/mobile-app.md): Install the TrailSnap Android app and connect it to your own TrailSnap server - [Overview 🚀](https://trailsnap.cn/en/docs/guide/overview.md): TrailSnap overview: what the self-hosted AI album does, its key features, and the roadmap ahead. - [Pre-deployment checklist](https://trailsnap.cn/en/docs/guide/preflight.md): Pre-deployment checklist: photo paths, Docker permissions, port conflicts, and backups before the first scan. ### Docker deployment - [Fnos Deployment](https://trailsnap.cn/en/docs/guide/docker/fnos.md): Deploy TrailSnap on fnOS with Docker Compose: volume mounts, port planning, and permission checks. - [Docker Deployment (Generic)](https://trailsnap.cn/en/docs/guide/docker/index.md): Generic Docker deployment: start frontend, backend, database and AI services with Compose and mount your photo folder. - [Ugreen NAS Deployment](https://trailsnap.cn/en/docs/guide/docker/ugreen.md): Deploy TrailSnap on UGREEN NAS (UGOS Pro) with Docker Compose, including ports and photo folder mounting. - [Windows Deployment](https://trailsnap.cn/en/docs/guide/docker/windows.md): Step-by-step Windows deployment with Docker Desktop: install, edit the Compose file, start services, and verify. - [Zspace Deployment](https://trailsnap.cn/en/docs/guide/docker/zspace.md): Run TrailSnap on Zspace NAS: Compose deployment, library mounting, and long-term maintenance. ### Settings - [AI / LLM Settings](https://trailsnap.cn/en/docs/guide/settings/aisetting.md): AI model settings: the built-in multimodal model, remote OpenAI or Ollama endpoints, and per-task model assignment. - [External Libraries](https://trailsnap.cn/en/docs/guide/settings/directories.md): External libraries: add folder paths, match Docker mounts, and mount several photo folders at once. - [Settings Guide](https://trailsnap.cn/en/docs/guide/settings/index.md): Settings overview: profile, appearance, external tool tokens, photo folders, maps, and AI options. - [Map Settings Guide](https://trailsnap.cn/en/docs/guide/settings/mapsetting.md): Map settings: apply for a Tianditu or Amap API key to enable the footprint map and city lighting. - [Token Settings](https://trailsnap.cn/en/docs/guide/settings/tokensetting.md): Access tokens: create, name and expire tokens so CLI and MCP tools can call the TrailSnap API. ### User guide - [Feature List](https://trailsnap.cn/en/docs/guide/features.md): Complete TrailSnap feature list: albums, AI search, footprint maps, tickets, yearly reports, and toolbox utilities. - [TrailSnap User Guide](https://trailsnap.cn/en/docs/guide/user.md): User guide: the dashboard, uploading and browsing photos, external libraries, albums, and everyday tasks. ### Reference - [Changelog](https://trailsnap.cn/en/docs/guide/changelog.md): TrailSnap changelog: new features, refinements and fixes listed by release, so you can track what changed. - [Data, privacy, and backups](https://trailsnap.cn/en/docs/guide/data-safety.md): Data, privacy and backups for self-hosted TrailSnap: where photos live, what leaves your server, and how to back up. - [Recognition Demo](https://trailsnap.cn/en/docs/guide/demo.md): OCR demo: real train ticket samples showing field extraction, tilted shots and busy backgrounds. - [Feedback](https://trailsnap.cn/en/docs/guide/feedback.md): Feedback channels: community group, feature request board, and bug reports, with what to include when filing. - [Install and use TrailSnap on fnOS](https://trailsnap.cn/en/docs/guide/fnos.md): Install the fnOS package, connect photo folders, find uploaded originals, and update TrailSnap. - [FAQ](https://trailsnap.cn/en/docs/guide/questions.md): TrailSnap FAQ: deployment options and platforms, external library errors, API usage, and data migration. ### Agent integration - [Claude Code](https://trailsnap.cn/en/docs/guide/agent/claudecode.md): Connect TrailSnap CLI to Claude Code: create a token, install the Skill, and query your photo library in natural language. - [Agent Skills](https://trailsnap.cn/en/docs/guide/agent/index.md): Use TrailSnap CLI as an Agent Skill: supported platforms, MCP setup, and examples of natural-language album queries. - [Configure TrailSnap MCP](https://trailsnap.cn/en/docs/guide/agent/mcp.md): Create a least-privilege Agent Token and connect external AI agents to TrailSnap photo search, memory investigation, person timelines, and confirmable album proposals over Streamable HTTP. - [OpenClaw / Roo Code](https://trailsnap.cn/en/docs/guide/agent/openclaw.md): Install the TrailSnap Skill in OpenClaw or Roo Code so the agent can query your albums through the API. - [TrailSnap CLI](https://trailsnap.cn/en/docs/guide/agent/trailsnap-cli.md): TrailSnap CLI reference: pip, npm and binary installs, plus commands for searching, exporting and managing photos. ### Developer documentation - [AI Service Design](https://trailsnap.cn/en/docs/dev/ai_service.md): How the TrailSnap AI microservice works: OCR, face recognition and scene classification, and how backend tasks call it. - [Architecture Design Document](https://trailsnap.cn/en/docs/dev/architecture.md): TrailSnap architecture overview: frontend, FastAPI backend, AI microservice, and PostgreSQL/pgvector data layers. - [Backend Framework Analysis Document](https://trailsnap.cn/en/docs/dev/backend.md): Backend stack and module layout: FastAPI, async SQLAlchemy, task queues, authentication, and database migrations. - [Feature Design Document](https://trailsnap.cn/en/docs/dev/feature-proposals.md): Design drafts for upcoming TrailSnap features, including photo editing and generated travel journals, open for discussion. - [Frontend Framework Analysis Document](https://trailsnap.cn/en/docs/dev/frontend.md): Frontend stack: Vue 3, TypeScript and Vite, with Element Plus and TailwindCSS, plus the project directory layout. - [TrailSnap Developer Documentation](https://trailsnap.cn/en/docs/dev/guide.md): Developer guide: environment setup, project structure, backend, frontend and AI workflows, migrations, and common tasks. - [Task Management Module Design](https://trailsnap.cn/en/docs/dev/task_manager.md): Task manager design: multi-level buffers and producer-consumer queues backed by PostgreSQL for durable AI jobs. ### Blog - [Feature Panorama - What can TrailSnap do?](https://trailsnap.cn/en/docs/blog/feature-scan.md): A panorama of what TrailSnap can do: AI albums, search by text or face, footprint maps, ticket recognition, and yearly reports. - [Blog](https://trailsnap.cn/en/docs/blog/index.md): The TrailSnap blog: product ideas, feature evolution, development practices, and self-hosting deployment notes.