2026-05-16 12:48:02 +08:00
---
description : Install SnapOtter with Docker in one command. Includes Docker Compose setup, building from source, and a full feature overview.
---
2026-07-11 13:01:55 +08:00
# Getting Started {#getting-started}
2026-03-22 21:00:37 +08:00
2026-05-17 09:25:12 +08:00
::: tip Try before installing
2026-06-24 12:06:31 +08:00
Explore the full UI at [demo.snapotter.com ](https://demo.snapotter.com ) - no signup or install required.
2026-05-17 09:25:12 +08:00
:::
2026-07-11 13:01:55 +08:00
## Quick Start {#quick-start}
2026-03-22 21:00:37 +08:00
```bash
2026-05-01 19:42:11 +08:00
docker run -d --name SnapOtter -p 1349:1349 -v SnapOtter-data:/data snapotter/snapotter:latest
2026-03-22 21:00:37 +08:00
```
2026-06-29 15:49:09 +08:00
This single container runs everything it needs: with no `DATABASE_URL` set, it starts its own PostgreSQL and Redis on the loopback interface (embedded mode) and keeps all data in the `SnapOtter-data` volume. It is the fastest way to try SnapOtter or self-host on a homelab. For production, run the [Docker Compose ](#docker-compose ) stack below, which keeps PostgreSQL and Redis in their own containers. Embedded mode runs as root (the default) and turns off automatically as soon as you set `DATABASE_URL` .
2026-04-25 07:17:45 +08:00
You will be asked to change your password on first login.
2026-03-22 21:00:37 +08:00
2026-07-08 11:56:47 +08:00
::: tip Anonymous Product Analytics
SnapOtter includes anonymous product analytics by default. To turn it off, open **Settings → System → Privacy** and switch off **Anonymous Product Analytics** . It stops immediately for the whole instance.
2026-07-10 21:41:49 +08:00
You can also set the environment variable `SNAPOTTER_TELEMETRY=0` (`false` and `off` work too) to disable all telemetry for the instance without a rebuild.
Error monitoring is powered by [Sentry ](https://sentry.io ), which sponsors SnapOtter through its open-source program.
2026-07-08 11:56:47 +08:00
For details about what is collected, see [What SnapOtter collects ](/guide/telemetry ).
:::
2026-06-29 21:29:00 +08:00
::: tip NVIDIA CUDA acceleration
Add `--gpus all` for NVIDIA CUDA-accelerated background removal, upscaling, OCR, face enhancement, and restoration:
2026-04-05 20:35:24 +08:00
```bash
2026-05-01 19:42:11 +08:00
docker run -d --name SnapOtter -p 1349:1349 --gpus all -v SnapOtter-data:/data snapotter/snapotter:latest
2026-04-05 20:35:24 +08:00
```
2026-06-29 21:29:00 +08:00
Requires the [NVIDIA Container Toolkit ](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html ). Falls back to CPU automatically when CUDA is unavailable. Intel/AMD iGPU acceleration through VA-API, Quick Sync, or OpenCL is not supported for AI inference today. See [Docker Tags ](/guide/docker-tags ) for benchmarks.
2026-04-05 20:35:24 +08:00
:::
2026-05-17 09:25:12 +08:00
::: details Also on GHCR
```bash
docker run -d --name SnapOtter -p 1349:1349 -v SnapOtter-data:/data ghcr.io/snapotter-hq/snapotter:latest
```
Both registries publish the same image on every release.
:::
2026-07-11 13:01:55 +08:00
## Docker Compose {#docker-compose}
2026-03-22 21:00:37 +08:00
```yaml
services :
2026-04-24 18:02:21 +08:00
SnapOtter :
2026-04-25 01:28:02 +08:00
image : snapotter/snapotter:latest # or ghcr.io/snapotter-hq/snapotter:latest
2026-03-22 21:00:37 +08:00
ports :
- "1349:1349"
volumes :
2026-04-24 18:02:21 +08:00
- SnapOtter-data:/data
2026-03-22 21:00:37 +08:00
environment :
- AUTH_ENABLED=true
- DEFAULT_USERNAME=admin
- DEFAULT_PASSWORD=admin
2026-06-16 18:04:52 +08:00
- DATABASE_URL=postgres://snapotter:snapotter@postgres:5432/snapotter
- REDIS_URL=redis://redis:6379
depends_on :
postgres :
condition : service_healthy
redis :
condition : service_healthy
2026-03-22 21:00:37 +08:00
restart : unless-stopped
2026-06-16 18:04:52 +08:00
postgres :
image : postgres:17-alpine
environment :
POSTGRES_USER : snapotter
POSTGRES_PASSWORD : snapotter
POSTGRES_DB : snapotter
volumes :
- SnapOtter-pgdata:/var/lib/postgresql/data
restart : unless-stopped
healthcheck :
test : [ "CMD-SHELL" , "pg_isready -U snapotter" ]
interval : 10s
timeout : 5s
retries : 12
redis :
image : redis:8-alpine
command : [ "redis-server" , "--maxmemory-policy" , "noeviction" , "--appendonly" , "yes" ]
volumes :
- SnapOtter-redisdata:/data
restart : unless-stopped
healthcheck :
test : [ "CMD" , "redis-cli" , "ping" ]
interval : 10s
timeout : 5s
retries : 12
2026-03-22 21:00:37 +08:00
volumes :
2026-04-24 18:02:21 +08:00
SnapOtter-data :
2026-06-16 18:04:52 +08:00
SnapOtter-pgdata :
SnapOtter-redisdata :
2026-03-22 21:00:37 +08:00
```
2026-04-16 16:17:43 +08:00
See [Configuration ](/guide/configuration ) for all environment variables.
2026-03-22 21:00:37 +08:00
2026-07-11 13:01:55 +08:00
## Build from Source {#build-from-source}
2026-03-22 21:00:37 +08:00
2026-06-16 18:04:52 +08:00
**Prerequisites:** Node.js 22+, pnpm 9+, Docker (for Postgres + Redis), Python 3.10+ (for AI features), Git.
2026-03-22 21:00:37 +08:00
```bash
2026-05-10 22:41:52 +08:00
git clone https://github.com/snapotter-hq/SnapOtter.git
cd SnapOtter
2026-06-16 18:04:52 +08:00
docker compose -f docker-compose.dev.yml up -d # start Postgres + Redis
2026-03-22 21:00:37 +08:00
pnpm install
pnpm dev
```
2026-04-16 16:17:43 +08:00
- Frontend: [http://localhost:1349 ](http://localhost:1349 )
- Backend: [http://localhost:13490 ](http://localhost:13490 )
2026-03-22 21:00:37 +08:00
2026-07-11 13:01:55 +08:00
## What You Can Do {#what-you-can-do}
2026-03-22 21:00:37 +08:00
2026-07-11 13:01:55 +08:00
### File Processing (200+ Tools) {#file-processing-200-tools}
2026-03-22 21:00:37 +08:00
2026-06-16 18:04:52 +08:00
| Modality | Count | Example Tools |
|----------|-------|---------------|
2026-07-11 19:53:00 +08:00
| **Image** | 106 | Resize, Crop, Compress, Convert, Remove Background, Upscale, OCR, Watermark, Collage, Colorize, GIF Tools, format presets |
2026-07-06 08:09:22 +08:00
| **Video** | 57 | Trim, Crop, Compress, Convert, Merge, Extract Audio, Auto Subtitles, Video to GIF, Resize, Stabilize, format presets |
| **Audio** | 27 | Trim, Merge, Convert, Normalize, Noise Reduction, Transcribe, Pitch Shift, Fade, Ringtone Maker, format presets |
| **PDF / Document** | 42 | Merge, Split, Compress, OCR, Watermark, Redact, Word to PDF, Excel to PDF, Rotate, Protect, Repair |
2026-06-21 02:45:56 +08:00
| **Files** | 10 | CSV to JSON, JSON to XML, Merge CSVs, Split CSV, Create ZIP, Extract ZIP, Chart Maker, YAML/JSON |
2026-03-22 21:00:37 +08:00
2026-07-11 13:01:55 +08:00
### Pipelines {#pipelines}
2026-03-22 21:00:37 +08:00
2026-04-16 16:17:43 +08:00
Chain tools into multi-step workflows and apply them to one image or a whole batch:
1. Open **Pipelines** in the sidebar.
2. Add steps (any tool, any settings).
2026-04-23 20:50:38 +08:00
3. Run on a single file - or an entire batch at once.
2026-04-16 16:17:43 +08:00
4. Save the pipeline for later reuse.
2026-07-06 08:09:22 +08:00
Pipelines allow 20 steps by default. Set `MAX_PIPELINE_STEPS=0` to make the limit unlimited.
2026-04-16 16:17:43 +08:00
2026-07-11 13:01:55 +08:00
### File Library {#file-library}
2026-04-16 16:17:43 +08:00
2026-04-24 18:02:21 +08:00
Every file you process can be saved to your **Files** library. SnapOtter tracks the full version history so you can trace every processing step from the original upload to the final output.
2026-04-16 16:17:43 +08:00
2026-06-24 15:58:08 +08:00
Saving is explicit: results you save to the library are kept until you delete them, while results you process and leave unsaved are cleared automatically after 72 hours (configurable via `FILE_MAX_AGE_HOURS` ).
2026-07-11 13:01:55 +08:00
### REST API & API Keys {#rest-api-api-keys}
2026-04-16 16:17:43 +08:00
Every tool is accessible via HTTP:
```bash
2026-06-21 00:12:59 +08:00
curl -X POST http://localhost:1349/api/v1/tools/image/resize \
2026-04-16 16:17:43 +08:00
-H "Authorization: Bearer si_<your-api-key>" \
-F "file=@photo.jpg" \
-F 'settings={"width":800,"height":600,"fit":"cover"}'
```
Generate API keys under **Settings → API Keys** . See the [REST API reference ](/api/rest ) for all endpoints, or visit [http://localhost:1349/api/docs ](http://localhost:1349/api/docs ) for the interactive reference.
2026-07-11 13:01:55 +08:00
### Multi-User & Teams {#multi-user-teams}
2026-04-16 16:17:43 +08:00
Enable multiple users with role-based access control:
2026-04-16 16:40:18 +08:00
- **Admin**: full access - manage users, teams, settings, all files/pipelines/API keys
2026-04-16 16:17:43 +08:00
- **User**: use tools, manage own files/pipelines/API keys
Create teams under **Settings → Teams** to group users.
Set `AUTH_ENABLED=true` (or `false` for single-user/self-use without login).