English · 简体中文 · 繁體中文 · Agent instructions
Supports macOS Apple Silicon and Linux x86_64 (Ubuntu 24.04 or newer). The bundle includes FFmpeg, ffprobe, and OCR models.
curl -fsSL https://cerul.ai/install.sh | shFollow the installer's PATH instructions or open a new terminal, then run:
cerul --version
cerul index ./demo.mp4
cerul search "A person puts a cup on the table" --save ./clipsOn first use, enter your Gemini API key when prompted. Model processing sends inputs to Gemini and may incur API charges.
You can also download an archive from GitHub Releases.
Keep cerul, cerul-ffmpeg, and cerul-ffprobe together when moving them.
cerul upgradeIt asks GitHub what the newest release is, tells you what it found, and installs
it after you agree. What it runs is the installer that release published, so the
version it names is the version you get. --yes skips the question, --dry-run
only reports, and --json reports without installing anything.
The upgrade replaces cerul, cerul-ffmpeg, and cerul-ffprobe where they are
already installed. Your workspace, saved key, sidecar files, and indexes are
untouched: they are read by the new version exactly as the old one left them.
Re-running the install command above does the same thing, and is the way to
upgrade a build that predates cerul upgrade.
Cerul can print a completion script for your shell.
cerul completions zshFor zsh, save it somewhere on your fpath:
cerul completions zsh > ~/.zfunc/_cerulThen make sure ~/.zfunc is in fpath before compinit runs. For bash:
cerul completions bash > /usr/local/etc/bash_completion.d/cerulThe same command also generates scripts for fish, elvish, and powershell.
The first interactive index, semantic search or analyze using the default
Gemini endpoint prompts for a hidden API key only when remote work is pending,
validates a small text embedding
request, and writes ~/.cerul/credentials.json with mode 0600. This is private
plaintext storage on your computer, not an encrypted vault. Remove the file to
forget saved keys. Credentials are scoped to the service URL and key variable;
changing the service does not forward saved keys to a new provider.
An environment variable such as GEMINI_API_KEY takes precedence. Custom
providers use their configured key environment variables. --json, --yes,
--quiet, --dry-run, and non-terminal calls never prompt. Agents should use
an existing credential or guide the user to enter it in their own terminal,
never ask for the secret in chat. Provider config stores names, not key values.
See configuration for alternative endpoints.
Choose a short video and a search phrase that describes something in it:
cerul --dry-run index ./demo.mp4
cerul index ./demo.mp4 --jobs 1
cerul search "A person puts a cup on the table" --in ./demo.mp4
cerul status ./demo.mp4OCR stays local. Embedding and transcription send sampled media or text to your
configured endpoints and may incur provider charges. Use a video you intend to
process with those endpoints. The default workspace is ~/.cerul; pass
--workspace DIR to use another one consistently across commands.
For a local-only first check without credentials:
cerul index ./demo.mp4 --no-audio --jobs 1
cerul status ./demo.mp4When no model credentials are configured, local OCR can complete and the index command returns 6 (partial) for missing embeddings. This is not a complete semantic-search setup. Configure a key and rerun the same command to finish.
| Symptom | Next step |
|---|---|
| An older Cerul version runs after installation | Run type -a cerul to find competing installations, then put the new installer's directory first on PATH and open a new terminal |
ffmpeg or ffprobe missing/too old |
Processing commands automatically prepare compatible media tools; if download fails, retry with network access or configure compatible local tools below |
Unknown encoder libx264 |
Use a build that includes this encoder |
| Missing model credential | Set the endpoint's configured key environment variable without exposing the value |
| Provider quota or rate limit | Lower --jobs, set an account-appropriate --rpm, and resume after quota is available |
| Exit 6 | Inspect status and the command's error output; rerun to fill incomplete work |
| Workspace busy | Let the other operation finish; do not delete its lock file |
Do not use status --providers as the default installation test: it probes all
configured endpoints, including optional ones that are unnecessary for your
first video. Processing commands probe the endpoints they actually need.
Continue with the video tutorial or the LeRobot tutorial.
Resolution order is CERUL_FFMPEG / CERUL_FFPROBE, then the bundled
cerul-ffmpeg / cerul-ffprobe next to the running CLI, then installed
cerul-ffmpeg / cerul-ffprobe on PATH, then system ffmpeg / ffprobe on PATH.
Overrides select an executable path, not a shell command. Processing commands
validate both versions and a small H.264/AAC encode/probe before media work or
model requests. If selected tools fail, Cerul first tries compatible local tools,
then reuses or installs a verified media bundle in <workspace>/runtime/media
(default ~/.cerul/runtime/media). This selection applies to the current command;
it does not rewrite overrides, Homebrew/Conda installations, or the running CLI.
The original command continues after successful repair. Source-only developers may
use cargo build --release --locked with system FFmpeg/ffprobe 6.0+ and libx264,
or reuse the media tools from an existing Cerul installation on PATH.
Git builds with N-... version names are checked using their loaded libavutil
version; an unfamiliar release label alone does not mean the tools are too old.
The bundled executables intentionally disable FFmpeg network input protocols;
Cerul processes local media files.
Compatible local tools work offline and do not trigger update requests. Automatic repair uses the pinned v0.0.10 media bundle for macOS arm64 or Linux x86_64, verifies its embedded SHA-256, retains dependency licenses, and publishes the tool pair atomically after a codec check. Interrupted downloads can be retried; incomplete installs are never selected. Other platforms need compatible local tools.
--no-auto-deps disables automatic fallback and download for environments that
require the explicitly selected tools. --dry-run checks selected tool versions
without downloading or writing an installation. Help, status, and searches that
do not export or preview clips do not install media tools. This is dependency
repair, not an automatic upgrade of the Cerul CLI itself.
Contributors and users testing an unreleased change can follow the source build guide.