Turn long videos into ready-to-post clips, on your own infrastructure.
Self-hosted AI clipping, editing, rendering and publishing.
Give FireClip a podcast, interview, webinar or stream. It transcribes it, scores the moments worth clipping with a reason you can audit, gives you a timeline to edit, renders vertical clips with FFmpeg, and publishes to YouTube, Facebook, Instagram or TikTok through your own OAuth apps.
Honesty by design. If a model, API key or platform permission is missing, FireClip says so and records the real error. It never fabricates clips, analytics, uploads or connections.
Docker Compose starts PostgreSQL, Redis, the API, a worker and the web app:
git clone https://github.com/rahulxdevv/FireClip.git
cd FireClip
cp .env.example .env
python -c "import secrets; print(secrets.token_urlsafe(48))" # paste into JWT_SECRET
docker compose up --build -dOpen http://localhost:3000 and register - the first account becomes owner of a workspace.
| Service | URL |
|---|---|
| Web app | http://localhost:3000 |
| API | http://localhost:8000 |
| OpenAPI docs | http://localhost:8000/docs |
If 3000 or 8000 is already taken on the host, set WEB_PORT and API_PORT in .env before starting. These change the published host ports only. To change the internal ports too, set WEB_CONTAINER_PORT and API_CONTAINER_PORT, rebuild, and update the proxy/domain target to the new web container port.
Docker Compose caps every container so one stack cannot take the whole VPS. Defaults are 0.5 CPU and 512 MB for Postgres, 0.25 CPU and 256 MB for Redis, 1 CPU and 1 GB for the API, 2 CPU and 4 GB for the worker, and 0.75 CPU and 768 MB for the web app. Raise any of them in .env (POSTGRES_MEMORY, WORKER_CPUS, and so on) when the host has room. Workspace media defaults to a 50 GB cap per workspace; set MAX_WORKSPACE_STORAGE_GB=0 to remove it.
The first account is already the owner of its workspace. To promote another existing account, run the operator command inside the API container:
docker compose exec api python -m app.cli make-admin you@example.comAdd --workspace <slug> to limit the change to one workspace. The default role is owner, the highest level; pass --role admin for admin instead.
Without Docker (Python 3.10-3.12, Node 20+, FFmpeg and ffprobe on PATH):
cd backend && python -m venv .venv && ./.venv/Scripts/pip install -r requirements.txt
cd ../frontend && npm install
cd .. && cp .env.example .env
node scripts/dev.mjs # starts API and web together, ports read from .envWant it in the cloud instead? The Render blueprint builds the included all-in-one image.
- Upload an MP4/MOV, or import a public video URL.
- Wait for ingest, transcription and analysis - each stage and any real error is shown.
- Open Clip discovery, approve a candidate, then Open in editor.
- Adjust crop and captions, choose a preset, hit Render, download from Exports.
flowchart LR
B["Browser"]
subgraph app["FireClip"]
direction TB
N["Next.js 16<br/>App Router, /api rewrite"]
API["FastAPI<br/>routers and services"]
end
subgraph bg["Background jobs"]
direction TB
Q[["Redis + ARQ"]]
W["Worker<br/>ingest, render, publish"]
end
subgraph store["Storage"]
direction TB
DB[("PostgreSQL<br/>or SQLite")]
FS[("Media<br/>disk or S3")]
RP[("Rendered<br/>exports")]
end
subgraph ext["Media and platforms"]
direction TB
TOOLS["FFmpeg, ffprobe, yt-dlp"]
AI["Whisper ASR<br/>optional LLM"]
PLAT["YouTube, Facebook<br/>Instagram, TikTok"]
end
B -->|"same-origin /api"| N
N --> API
API --> DB
API --> FS
API -->|"enqueue"| Q
API --> AI
Q --> W
W --> TOOLS
W --> AI
W --> FS
W --> RP
W --> DB
W -->|"OAuth upload"| PLAT
Publishing goes out through each platform's official API using your own OAuth app; progress and failures are stored verbatim rather than retried into silence.
flowchart LR
I["Ingest<br/>validate, probe, audio"] --> T["Transcribe<br/>word timestamps"]
T --> A["Analyze<br/>scored signals, reason"]
A --> C["Cut<br/>candidate clips"]
C --> E["Edit<br/>crop, captions, music"]
E --> R["Render<br/>FFmpeg, probed output"]
R --> P["Publish<br/>OAuth upload"]
P --> M["Measure<br/>metrics or manual"]
Each stage is a real background job, not a request handler, so a long source never blocks the UI. The same task callables run under ARQ in Docker and inline locally. Details in Architecture.
| Area | What you get |
|---|---|
| Ingest | Streamed uploads with validation, URL import via yt-dlp, SSRF protection |
| Transcription | faster-whisper or OpenAI Whisper, word timestamps, editable segments |
| Clip discovery | Explainable offline scoring, or OpenAI, Anthropic, Gemini, Ollama |
| Campaigns | Reusable brief, brand kit, required hashtags, headline/CTA overlays, JSON campaign discovery and one-click onboarding |
| Editor | Timeline, trim, fill/fit, face-cam and gameplay layouts, face-anchored auto-crop, full-look presets, caption styles, headings, translated captions, overlays, music, fades, undo/redo |
| Clip quality | Still-screen and slate detection with an explicit "keep anyway" override |
| Rendering | 9:16, 1:1, 16:9 and 4:5 presets, MP4/MOV/WebM, burned ASS captions, loudness normalization |
| Publishing | YouTube, Facebook, Instagram Reels and TikTok, manual or scheduled, campaign auto-publish with a quality floor |
| Schedule | One timeline for queued, scheduled, published and failed posts, with direct post links, cancel and retry |
| Analytics | Platform metric sync, plus manual numbers labelled by source |
| Live | Creator search, streamer roster, public YouTube/Twitch/Kick recording and optional auto-clip |
| Library | Real dimensions/duration, direct downloads, bulk ZIP download and share links |
| Teams | Workspaces with owner/admin/editor/viewer roles, email invitations, audit log |
| Review | Threaded clip comments with resolve state, bulk approve/reject/merge/delete |
| Sharing | Password-protected, expiring public links for any export, with view counts |
| Billing | Starter/studio/agency plans, Stripe Checkout and portal, invoices, webhook sync |
| SMTP verification, password reset and invitations; falls back to logged links when unconfigured | |
| Webhooks | HMAC-signed event delivery with retries, delivery log and test endpoint |
Transcription, LLM providers, publishing, SMTP and payments need your own credentials. Every unconfigured provider reports that honestly instead of faking success. The full status table is in Architecture.
Everything is environment-driven, and .env.example documents each option. The ones that matter first:
| Variable | Default | Why it matters |
|---|---|---|
JWT_SECRET |
dev value | Required in production. Signs sessions and derives the AES key for stored provider tokens. |
DATABASE_URL |
SQLite | Point it at PostgreSQL for anything beyond a demo. |
REDIS_URL |
empty | Enables the ARQ worker; without it jobs run inline. |
FRONTEND_URL, BACKEND_PUBLIC_URL |
localhost | Public origins used for OAuth callbacks and CORS. |
COOKIE_SECURE |
false |
Set true behind TLS. |
Full variable list, ports by deployment type and performance tuning: Configuration.
| Target | How |
|---|---|
| VPS with Docker | docker compose up --build -d, then proxy the web and API ports and terminate TLS |
| Render | One-click blueprint - the free plan sleeps, has 512 MB and ephemeral media |
| Dokploy | Compose application with JWT_SECRET set; PostgreSQL and Redis come with the stack |
Proxy examples, backups, scaling and an operations checklist: Deployment.
| Document | Covers |
|---|---|
| Configuration | Requirements, every variable, ports, tuning |
| Deployment | Render, VPS, Dokploy, production self-hosting |
| Guides | Speech recognition, AI providers, OAuth publishing, S3, live recording |
| Troubleshooting | Symptoms, fixes, known limitations |
| Architecture | Pipeline, feature status, project structure |
| Roadmap | What's next, what isn't planned |
| Third-party licenses | Dependency licenses |
The backend test suite, the TypeScript check, the production build and ESLint all run in CI on every push. Docker images, the Render blueprint and live OAuth/AI calls are not exercised there because they need a Docker host or real credentials. Known gaps: Troubleshooting.
- bcrypt password hashing, HTTP-only JWT cookies, API keys stored as hashes with a visible prefix.
- Provider and OAuth tokens encrypted with AES-GCM derived from
JWT_SECRET. - Workspace-scoped media, SSRF-guarded URL imports and webhooks, audit logs and rate limits.
- Share links use optional bcrypt-hashed passwords, expiry, revocation and short-lived media tokens.
- Back up
JWT_SECRET: losing it invalidates sessions and makes encrypted tokens unrecoverable.
AGPL-3.0. Self-host it, modify it and use it commercially; if you run a modified FireClip as a network service, offer your users the source. Commercial licensing: rahulxdevv@proton.me.
Built by Rahul (@rahulxdevv).
If FireClip saves you an editing session, a star helps other people find it.