|
Download QUICKSTART.md from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 7.4 kB
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/QUICKSTART.md
- Command line
-
hf download hf://spaces/new-arc/vector/QUICKSTART.md
-
curl -L -o QUICKSTART.md https://huggingface.co/spaces/new-arc/vector/resolve/main/QUICKSTART.md
7.4 kB
SupoClip Quick Start Guide
Run SupoClip with Docker in just one command!
Prerequisites
- Docker Desktop installed and running
- API Keys (get these from the providers):
- AssemblyAI API Key (required for transcription)
- At least one AI provider:
- OpenAI API Key (recommended)
- Google AI API Key
- Anthropic API Key
- Ollama (local/self-hosted, no API key required for local)
Quick Start (Single Command)
./start.sh
That's it! The script will:
- Check prerequisites
- Build Docker images
- Start all services
- Show you where to access the app
First Time Setup
1. Configure Environment Variables
Edit the .env file in the project root and add your API keys:
# Required for video transcription
ASSEMBLY_AI_API_KEY=your_assemblyai_key_here
# Choose one AI provider for clip selection
OPENAI_API_KEY=your_openai_key_here
# Configure which AI model to use
LLM=openai:gpt-4
# OR use Ollama locally
# LLM=ollama:gpt-oss:20b
# OLLAMA_BASE_URL=http://localhost:11434/v1
# Optional: Amazon SES for subscription lifecycle emails
# Required if you want hosted billing emails when SELF_HOST=false
# AWS_REGION=us-east-1
# AWS_ACCESS_KEY_ID=your_aws_access_key_id
# AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
# SES_FROM_EMAIL="SupoClip <onboarding@example.com>"
2. Start SupoClip
./start.sh
3. Access the Application
- Frontend: http://localhost:3107
- Backend API: http://localhost:8000
- API Documentation: http://localhost:8000/docs
These URLs assume the copied .env.example, which sets FRONTEND_PORT=3107.
Existing .env files without that setting keep Docker host port 3001.
Preserve your existing port when using a production reverse proxy.
Manual Docker Commands
If you prefer to use Docker commands directly:
# Start all services
docker-compose up -d --build
# View logs
docker-compose logs -f
# Stop all services
docker-compose down
# Rebuild after code changes
docker-compose up -d --build
Environment Configuration
Required Variables
| Variable | Description | Where to Get |
|---|---|---|
ASSEMBLY_AI_API_KEY |
Speech-to-text transcription | https://www.assemblyai.com/ |
LLM |
AI model identifier | e.g., openai:gpt-5.2 or ollama:gpt-oss:20b |
Optional Variables
| Variable | Default | Description |
|---|---|---|
WHISPER_MODEL_SIZE |
medium |
Whisper model size (tiny/base/small/medium/large) |
BETTER_AUTH_SECRET |
dev secret | Auth secret (change in production!) |
GOOGLE_API_KEY |
- | For Google Gemini models |
ANTHROPIC_API_KEY |
- | For Claude models |
OPENROUTER_API_KEY |
- | For openrouter:* models |
OLLAMA_BASE_URL |
http://localhost:11434/v1 |
For local/self-hosted Ollama endpoint |
OLLAMA_API_KEY |
- | Optional, required for Ollama Cloud |
AWS_REGION |
us-east-1 |
Optional in self-host mode, required for hosted billing emails |
AWS_ACCESS_KEY_ID |
- | Optional in self-host mode, required for hosted billing emails |
AWS_SECRET_ACCESS_KEY |
- | Optional in self-host mode, required for hosted billing emails |
SES_FROM_EMAIL |
SupoClip <onboarding@example.com> |
Verified sender for backend subscription emails |
Hosted Billing Email Setup
If you enable hosted monetization with SELF_HOST=false, set these as well:
| Variable | Description |
|---|---|
BACKEND_AUTH_SECRET |
Shared secret used by frontend API routes to call the backend |
STRIPE_SECRET_KEY |
Stripe server-side API key |
STRIPE_WEBHOOK_SECRET |
Stripe webhook signing secret |
STRIPE_PRO_PRICE_ID |
Stripe price ID for the $9.99/month Pro subscription |
STRIPE_SCALE_PRICE_ID |
Stripe price ID for the $24.99/month Creator subscription |
STRIPE_PRO_ANNUAL_PRICE_ID |
Stripe price ID for the $99.90/year Pro subscription |
STRIPE_SCALE_ANNUAL_PRICE_ID |
Stripe price ID for the $249.90/year Creator subscription |
STRIPE_PRICE_ID |
Legacy fallback Stripe price ID for the Pro subscription |
PRO_PLAN_MINUTE_LIMIT |
Pro monthly allowance in minutes of source video, usually 600 |
SCALE_PLAN_MINUTE_LIMIT |
Creator monthly allowance in minutes of source video, usually 1500 |
AWS_REGION |
AWS region used for Amazon SES, default us-east-1 |
AWS_ACCESS_KEY_ID |
AWS access key ID used to send subscription emails via Amazon SES |
AWS_SECRET_ACCESS_KEY |
AWS secret access key used to send subscription emails via Amazon SES |
SES_FROM_EMAIL |
Verified sender address used for subscription emails |
The billing flow sends:
- A thank-you email after
checkout.session.completed - A cancellation email after
customer.subscription.deleted
Supported AI Models
OpenAI (Recommended)
LLM=openai:gpt-4
LLM=openai:gpt-4-turbo
LLM=openai:gpt-3.5-turbo
Anthropic
LLM=anthropic:claude-3-5-sonnet-20241022
LLM=anthropic:claude-3-opus
LLM=anthropic:claude-3-haiku
LLM=google-gla:gemini-3-flash-preview
LLM=google-gla:gemini-3-pro-preview
Ollama
LLM=ollama:gpt-oss:20b
OLLAMA_BASE_URL=http://localhost:11434/v1
Troubleshooting
Services not starting?
Check Docker is running:
docker infoView service logs:
docker-compose logs -fCheck service health:
docker-compose ps
API Keys not working?
- Verify keys are set in
.envfile - Ensure no extra spaces around the
=sign - Restart services after changing
.env:docker-compose down docker-compose up -d
Database issues?
Reset the database:
docker-compose down -v # WARNING: This deletes all data!
docker-compose up -d
Architecture
SupoClip runs 4 Docker containers:
- Frontend (Next.js 15) - Port 3107
- Backend (FastAPI + Python) - Port 8000
- PostgreSQL - Port 5432
- Redis - Port 6379
All services are connected via a Docker network and start automatically with proper health checks.
What Happens When You Run ./start.sh?
- Checks if
.envfile exists with required API keys - Verifies Docker is running
- Builds Docker images (first time: ~5-10 minutes)
- Starts PostgreSQL and waits for it to be healthy
- Starts Redis cache
- Starts backend API server
- Starts frontend web server
- Displays URLs for accessing the application
Production Deployment
For production use:
- Change
BETTER_AUTH_SECRETto a secure random string - Use strong database passwords
- Enable HTTPS with a reverse proxy (nginx/Caddy)
- Set up persistent volumes for data
- Configure backup strategies
Next Steps
- Read the full documentation in
CLAUDE.md - Check out the API docs at http://localhost:8000/docs
- View example clips in the frontend
- Customize fonts by adding TTF files to
backend/fonts/ - Add transition effects by adding MP4 files to
backend/transitions/
Getting Help
- Check logs:
docker-compose logs -f - View API documentation: http://localhost:8000/docs
- Report issues: Create a GitHub issue with logs and error messages