Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

immich

БесплатноБез исполняемых скриптовНе проверен

Immich is a self-hosted photo and video library with a web app, mobile backup, face and object search, and a REST API. Use this skill to deploy Immich with…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Immich — self-hosted photo and video library

Overview

Immich stores photos and videos on your own server and gives you a web app, mobile apps with automatic backup, albums, sharing, map view and machine-learning search (faces, objects, text in images). Everything is also reachable through a documented REST API, which is what an agent works with: it deploys the stack, configures it through files and API calls, imports archives with the immich command-line tool, and sets up backups. Registering the first user, clicking through the mobile app and tuning settings in the admin screens stay with a human.

The stack is four containers started by one Compose file: the server (port 2283), machine learning, Valkey (Redis-compatible) and a PostgreSQL image with vector-search extensions. The photos live in UPLOAD_LOCATION on disk, while the database holds paths and metadata. Both are needed to restore.

Instructions

Install with Docker Compose

Requirements from the docs: Linux 64-bit (amd64 or arm64), at least 6 GB RAM and 2 cores, Docker Engine with the docker compose plugin (the old docker-compose binary is not supported). The Postgres data directory must be on local disk, never a network share.

Download the release's Compose file and example environment file into a new directory and check them against the SHA-256 digests GitHub records for each release asset (both lines must print OK):

mkdir -p ~/immich-app && cd ~/immich-app || exit 1
TAG=$(curl -fsSL https://api.github.com/repos/immich-app/immich/releases/latest | jq -r .tag_name)
curl -fsSL https://api.github.com/repos/immich-app/immich/releases/tags/$TAG \
  | jq -r '.assets[] | select(.name=="docker-compose.yml" or .name=="example.env") | "\(.digest | ltrimstr("sha256:"))  \(.name)"' > SHA256SUMS
curl -fsSLO https://github.com/immich-app/immich/releases/download/$TAG/docker-compose.yml \
  -O https://github.com/immich-app/immich/releases/download/$TAG/example.env
sha256sum -c SHA256SUMS && mv example.env .env

The .env file has these settings (defaults shown):

Variable Default Meaning
UPLOAD_LOCATION ./library Where photos, thumbnails and database dumps are stored; point it at a disk with room
DB_DATA_LOCATION ./postgres Postgres files; local SSD, no network shares
TZ commented out Uncomment and set, for example Europe/Berlin
IMMICH_VERSION v3 Image tag; pin an exact release tag from the GitHub releases page for controlled upgrades
DB_PASSWORD postgres Change it; use only letters and digits

Edit the values, then start the stack and check health:

sed -i 's|^UPLOAD_LOCATION=.*|UPLOAD_LOCATION=/srv/immich/library|; s|^DB_DATA_LOCATION=.*|DB_DATA_LOCATION=/srv/immich/postgres|' .env
sed -i "s|^DB_PASSWORD=.*|DB_PASSWORD=$(openssl rand -hex 16)|" .env
docker compose up -d
docker compose ps
curl -s http://127.0.0.1:2283/api/server/ping

The ping returns {"res":"pong"} once the server is ready. Open http://SERVER-IP:2283; the first account you register becomes the administrator. For internet access put a reverse proxy with TLS in front of port 2283 (see the traefik skill) rather than publishing the port directly.

Create an API key

In the web app's account settings, open the API Keys section and create a key. Keys are scoped by permission, so give a script only what it needs (for example asset.upload and album.create for an importer, or asset.read for a reporting job). The secret is shown once; keep it in an environment variable:

export IMMICH_API_KEY="paste-the-key-here"

Keys can also be created through POST /api/api-keys with a body of {"name": "importer", "permissions": ["asset.upload", "album.create"]}, but that call itself needs an existing credential with the apiKey.create permission.

Bulk upload with the CLI

The @immich/cli package needs Node.js 22 or newer:

npm install -g @immich/cli
immich --version
immich login http://192.168.1.50:2283/api "$IMMICH_API_KEY"
immich server-info

The URL must end in /api. login stores the credentials in ~/.config/immich/auth.yml (override the folder with -d or IMMICH_CONFIG_DIR); run immich logout afterwards on shared machines. Instead of login you can pass -u/--url and -k/--key on each call or set IMMICH_INSTANCE_URL and IMMICH_API_KEY.

Always rehearse an import with --dry-run:

immich upload --dry-run --recursive ~/Pictures/2019
immich upload --recursive --album ~/Pictures/2019
immich upload --recursive --album-name "Lisbon trip 2019" ~/Pictures/2019/lisbon

Useful upload options, all confirmed from immich upload --help (CLI 3.3.5): -r/--recursive, -a/--album (one album per folder name), -A/--album-name, -i/--ignore (pattern to skip), -H/--include-hidden, -c/--concurrency, --skip-hash, --visibility (timeline, archive, hidden, locked), -j/--json-output, `--no-prog

Полный SKILL.md на GitHub

Установить immich в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл immich?

Immich is a self-hosted photo and video library with a web app, mobile backup, face and object search, and a REST API. Use this skill to deploy Immich with Docker Compose, bulk-import an existing photo archive with the immich CLI, create scoped API keys, call the API from scripts, and back up the database and media. Triggers: "self-host Google Photos", "immich docker compose", "immich upload folder", "immich API key", "immich backup and restore", "photo library on my own server".

Как установить скилл immich?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл immich запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить immich с