Skip to main content
Version: v2.1.x (v2.1.1)

Installing

This page installs Tubematic on a Linux machine, installs an agent, and checks the result. For the shortest path, use the Quickstart.

You install with onboard.py, a wizard that asks a few questions and sets everything up. To move an existing install to a newer version, see Upgrading.


Ways to install​

WayWhat happensChoose it when
A release (recommended)You download a release, and the wizard pulls ready-built imagesYou want to run Tubematic
From sourceYou clone the repository, and the wizard builds the images on your machineYou want to change Tubematic, or run something not yet released
In Kasm WorkspacesA ready-made desktop session downloads a release and opens the wizardYou already run Kasm Workspaces

The first two differ in one more way. A release install serves the dashboard to this machine only. A source install serves it on every network interface. See Network exposure.

Prerequisites​

Install these before you run the wizard. The wizard checks for them and installs none of them.

WhatVersionCheck it with
LinuxAny current distributionuname -s
Docker Engine29 or newer, running, usable without sudodocker --version, docker info
Docker Compose pluginv2 or newerdocker compose version
Python3.11 or newer, with the venv modulepython3 --version, python3 -c "import ensurepip"
Node.js22.20 or newernode --version
An agent CLICurrentwhich claude, which codex or which opencode
CPU2 cores. 4 or more render fasternproc
Memory4 GB. 8 GB recommendedfree -g
DiskAbout 15 GB freedf -h ~

Four notes on that table:

  • docker-compose with a hyphen is an older tool and does not count. Tubematic needs docker compose.
  • The wizard continues without Node.js and prints a warning. The agent then writes scenes without the Remotion skill that Node installs. Install Node first.
  • An NVIDIA GPU is optional and makes rendering about three times faster. See GPU Rendering.
  • One machine is enough. Once Tubematic is running, other machines can render for it, and they need no Tubematic install of their own. See Remote Renderers.

On Ubuntu, Preparing an Ubuntu machine has the commands for Docker, the venv module and Node.js.

API keys​

ServiceNeededUsed forWhere to get it
ElevenLabsYesThe voiceoverelevenlabs.io → Profile → API Keys
OpenAIYesScene images, and characters in the Illustrated styleplatform.openai.com/api-keys
GeminiNoFinding topics in YouTube videos, and AI reviewaistudio.google.com/app/apikey
youtube-transcript.ioNoScript profilesyoutube-transcript.io
postforme.devNoPublishingpostforme.dev
  • The ElevenLabs key needs four permissions: text-to-speech, voices (read), projects (read) and pronunciation dictionaries (read). Add user (read) if you want the dashboard to show how much of your monthly credit is used.
  • The OpenAI key's project needs billing enabled, and access to the image model you pick. OpenAI grants model access per project.
  • A Gemini chat subscription does not include API access. You need a key from Google AI Studio.

You can add the optional keys later on Settings → API Keys.


Install​

From a release:

curl -LO https://github.com/teja156/tubematic/releases/download/v2.1.1/tubematic-v2.1.1.tar.gz
curl -LO https://github.com/teja156/tubematic/releases/download/v2.1.1/CHECKSUMS.txt
sha256sum -c CHECKSUMS.txt --ignore-missing
tar xzf tubematic-v2.1.1.tar.gz
cd tubematic-v2.1.1
python3 onboard.py

From source:

git clone https://github.com/teja156/tubematic.git tubematic
cd tubematic
python3 onboard.py

The directory you run onboard.py from is the install directory. Every later command in these docs runs from there.

The wizard creates its own Python environment in .venv and then works through eleven steps. It asks for:

  1. A dashboard password, twice. At least 12 characters.
  2. Your API keys. It checks each key with its provider as you enter it, and asks again if the provider rejects one.
  3. Whether to enable publishing. Answer no unless you have a postforme.dev key ready. You can turn it on later.
  4. Whether to enable AI review. It is experimental and needs a Gemini key.
  5. The image model.
  6. The poll interval: how often Tubematic checks for work while idle. The default is 30 minutes.
  7. Which GPU renders, if the machine has a usable NVIDIA GPU.

Press Enter to accept a default. After the last question the wizard pulls or builds the images and starts five containers. A source install takes longer than a release install, because it builds the images.

If the wizard stops part-way, run python3 onboard.py again. It skips the steps that finished.

The Command Reference lists every step, question and flag.

Install an agent​

Tubematic does nothing until an agent is installed. Install the agent's CLI, log it in, and run:

python3 onboard.py --install-agent claude # or: codex, opencode

It asks where to install, and which models the agent may use. The first model you enter is the agent's default. Agents explains each question and how to manage agents afterwards.

Check the install​

python3 scripts/service.py status

Each line should start with ✔. A line that starts with ! names what needs attention and the command that fixes it.

Then open http://localhost:3000 and sign in. The top bar shows the installed version, and SYS ● NOMINAL when the dashboard can reach the rest of Tubematic.

Now make a video: follow Create a video in the Quickstart.


Where things are​

WhatWhere
The database, including your settings and API keys~/.tubematic-data/data/tubematic.db
Rendered videos~/.tubematic-data/output_videos/
Each video's working files~/.tubematic-data/jobs/
Scene code the agent wrote~/.tubematic-data/scenes/generated/
Logs~/.tubematic-data/logs/, and the poller's log at ~/.tubematic-agent/logs/poll.log
The dashboard password and service tokens~/.tubematic-data/secrets/
Each agent's workspace~/.tubematic-agent/<agent>/

The database holds your API keys in plain text. Treat it, and any copy of it, as a secret.

You change settings on the dashboard's Settings page, and they apply to the next piece of work without a restart. A few things are set on the command line instead, such as the poll interval, the GPU and the dashboard password. See the Command Reference.

Network exposure​

PortWhat listensReachable from
3000The dashboard, over plain HTTP, behind your passwordThis machine only on a release install. Every network interface on a source install
4000, 4100The API and the tool server, each behind a tokenThis machine only
4443The render gateway, for renderers on other machinesClosed unless you turn on remote renderers

Over plain HTTP your password crosses the network unencrypted. Use a source install's dashboard on a network you trust, and see Remote Access to reach the dashboard from another machine safely.


Install problems​

Problems with a running install are in Troubleshooting.

The wizard stops at ensurepip is not available​

Python's venv module is missing its pip part. On Debian and Ubuntu it is a separate package:

sudo apt install -y python3-venv
python3 onboard.py

--install-agent warns that the Remotion skills were skipped​

Node.js is missing or older than 22.20. Install Node 22 (Node.js), then run python3 onboard.py --install-agent <agent> again.

The image pull fails on a release install​

The images are public, so you do not need to log in. The wizard prints Docker's own reason. The usual cause is that this machine cannot reach ghcr.io. Fix that, then run:

python3 onboard.py --step renderer --force
python3 onboard.py --step dashboard --force

A container does not start​

python3 scripts/service.py status
python3 scripts/service.py logs tubematic-api

tubematic-api, tubematic-mcp, tubematic-worker and tubematic-renderer run the same image. On a source install, rebuild it with python3 onboard.py --step renderer --force.

The wizard says Docker is installed but not running​

Either the Docker service is stopped, or your user cannot use it. See Run Docker without sudo.

A step fails​

The wizard saysRun
The dependency install failed.venv/bin/python -m pip install -r scripts/requirements.txt, then python3 onboard.py
A database error, such as "no such table"python3 onboard.py --step database

Nothing happens after the install​

Read ~/.tubematic-agent/logs/poll.log. No agent installed means you have not run --install-agent yet. For anything else, see Troubleshooting.


Installing in Kasm Workspaces​

Kasm Workspaces serves desktop sessions in a browser. If you run it, the Tubematic workspace gives you a session with Docker, the three agent CLIs and every other prerequisite already installed.

  1. In the Kasm admin UI, open Workspaces → Workspace Registry → Add new and enter https://registry.tejaswaroop.com/.
  2. Install the Tubematic workspace from that registry. Check three things in its settings first:
    • It runs privileged, because Tubematic's containers run inside the session.
    • It needs about 15 GB for its image and about 15 GB more inside the session.
    • Give it a Persistent Profile Path. Without one, your install and your videos are deleted when the session ends.
  3. Launch a session. The launch form asks for the Tubematic version and the install method. Keep Release (recommended).
  4. A terminal named Tubematic installer opens in the session, downloads Tubematic into ~/tubematic-v<version>/ and starts the wizard. Answer its questions as described under Install.
  5. When the wizard finishes, log your agent CLI in and install an agent from the same terminal.

If you close the terminal, the Tubematic installer icon on the desktop opens it again, as does running tubematic-installer in any terminal. Its log is ~/.tubematic-workspace.log.

Things that differ in a Kasm session:

  • The workspace must not have a GPU attached, so GPU rendering is not available.
  • The session's clock is UTC, so the dashboard shows times in UTC.
  • When you launch again with a persistent profile, the session finds your install and leaves it as it is. If you pick a different version on the launch form, the session downloads nothing. To move to a new version, follow Upgrading inside the session.

Preparing an Ubuntu machine​

These commands are for Ubuntu. On another distribution, install the same things with its own package manager, then use the two Docker checks below, which are the same everywhere.

Installing Docker on Ubuntu​

Check what you have:

docker --version
docker compose version
You seeDo this
Docker 29 or newer, and a Compose versionSkip to Run Docker without sudo
Docker 29 or newer, and docker compose version failsInstall the plugin: sudo apt install -y docker-compose-plugin. If apt cannot find it, use sudo apt install -y docker-compose-v2
command not found, or a version below 29Follow the steps below

The steps install Docker from Docker's own repository, as in Docker's Install Docker Engine on Ubuntu. Ubuntu's own docker.io package can be older than 29.

Remove Ubuntu's Docker packages, which conflict with Docker's. Your images, containers and volumes stay:

sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc docker-buildx podman-docker containerd runc | cut -f1)

Add Docker's repository:

sudo apt update
sudo apt install -y ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF

sudo apt update

Install Docker and the Compose plugin:

sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Docker starts now and at every boot. If it is not running, start it with sudo systemctl enable --now docker.

Run Docker without sudo​

Tubematic runs docker as your user, so your user must be in the docker group:

sudo usermod -aG docker $USER

Log out and back in for it to take effect. newgrp docker applies it to the current shell only.

Anyone in the docker group can become root on this machine. Add only the account that runs Tubematic.

Check Docker​

docker --version # 29 or newer
docker compose version # v2 or newer
docker run --rm hello-world

All three must work without sudo.

Python's venv module​

sudo apt install -y python3-venv
python3 -c "import ensurepip" # prints nothing when it is installed

Node.js​

Ubuntu's own nodejs package can be too old. Ubuntu 24.04 ships version 18. Install Node 22 from NodeSource:

sudo apt remove -y nodejs npm # only if Ubuntu's nodejs is installed
sudo apt install -y curl ca-certificates
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
node --version # v22.20 or newer

Avoid nvm on a server. It installs Node for interactive shells only, and scripts then find the older system Node.


Uninstalling​

python3 uninstall.py

The uninstaller works through nine steps and asks before each one. It asks separately before it deletes your database, your videos' working files and your rendered videos, and the answer to each of those defaults to no. The Command Reference lists every step and what the uninstaller leaves behind.

While Tubematic is installed, each successful upgrade removes the previous version's images. To finish removing Tubematic after the uninstaller:

docker images | grep tubematic # then: docker rmi <each image>
cd .. && rm -rf <install directory>

To stop Tubematic and keep everything, run python3 scripts/service.py stop.

To remove one agent and keep Tubematic, see Agents.