shortform-ai
Local-first CLI for short-form video and creator analysis.
Supports local files plus public short-form URLs including Instagram Reels, Xiaohongshu / RedNote notes, TikTok, YouTube Shorts, and X/Twitter when the underlying downloader can access them.
Recommended persistent install for repeated agent use:
pipx install shortform-ai
~/.local/bin/shortform-ai doctor
If the app is already installed with pipx:
pipx upgrade shortform-ai
Homebrew remains a good system install path once a tap is wired:
brew install shortform-ai
For one-off venv tests, use Python 3.12+ explicitly:
python3.12 -m venv .venv-shortform-ai
.venv-shortform-ai/bin/python -m pip install --upgrade pip
.venv-shortform-ai/bin/python -m pip install shortform-ai yt-dlp
Local transcription is installed on first use when no OpenAI key is configured:
shortform-ai setup transcription --local
shortform-ai analyze defaults to --transcribe auto. It uses OpenAI
transcription when OPENAI_API_KEY is configured; otherwise bootstrap analyze
installs local faster-whisper on first use. The default local model is base,
which downloads a model cache on first use. Use --transcribe-model small for
better local accuracy.
Analysis requires a real transcript. If neither OpenAI transcription nor local
faster-whisper is available, analyze stops with setup instructions instead of
producing a transcript-free strategy pass.
Starter Prompt For Codex / Claude Code
Paste this into an agent harness after installing shortform-ai:
Use the shortform-ai skill to analyze this reel:
{instagram-url}
Run the default agent-mode workflow, apply the agent response, and summarize the
final report with the contact sheet inline. Never print Instagram session
values.
CLI Usage
For one-prompt agent workflows, use the bootstrap command after installing the package:
shortform-ai bootstrap analyze {instagram-url-or-file} --instagram-from-chrome
It installs/updates the agent skill when a compatible skill target is detected,
optionally imports the user's own Chrome Instagram session, runs analysis,
fetches Instagram comments when possible, and writes bootstrap.json beside the
analysis artifacts. The analyzer emits progress lines during long-running steps
so the assistant does not appear stuck. When comment fetch succeeds, bootstrap
merges the audience summary back into the root report.md, audience.md, and
comments.json.
The default --ai auto mode is agent mode, designed for Codex, Claude Code, or
another assistant interface. The CLI performs deterministic media work and writes
agent_request.md, agent_schema.json, and agent_response.example.json
instead of shelling out to a nested agent CLI. The active assistant should read
the request, inspect the contact sheet/keyframes/transcript/comments, write
agent_response.json, then run:
shortform-ai agent apply {analysis-dir}
The existing --ai codex and --ai api modes remain available for users who
explicitly want nested Codex CLI execution or API-key automation.
For Instagram reel URLs with local Instagram auth configured, analysis also
writes safe creator, aggregate metrics, and audio attribution metadata to
media.json, reel.json, and report.md, including likes, comments,
plays/views, creator profile fields, and named background music/original-audio
title when Instagram exposes them.
Video analysis also tries to write contact_sheet.jpg and always writes
report.md, a rich Markdown overview that points at the contact sheet when
available. Each analysis includes timeline.md and timeline.json, a
reverse-engineered beat timeline grounded in detected shots and transcript
windows. Caption-heavy reels also get onscreen_text.md; transcript.md is the
audio transcript, so it may contain music lyrics instead of the visible story
text.
Development usage from a source checkout:
python3.12 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install -e .
.venv/bin/shortform-ai doctor
The CLI reads a user's own local Instagram Chrome session only after an
explicit shortform-ai auth instagram --from-chrome command. Session values are
redacted from output and are stored in local secure storage when available.
Metadata
Release files for shortform-ai 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shortform_ai-0.1.16.tar.gz | 49.8 kB | With provenance | Details for shortform_ai-0.1.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shortform_ai-0.1.16-py3-none-any.whl | Python 3 | none | any | Details for shortform_ai-0.1.16-py3-none-any.whl |
Total release size: 95.2 kB
Release files / shortform_ai-0.1.16.tar.gz
| Download URL | shortform_ai-0.1.16.tar.gz |
|---|---|
| Size | 49.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f205716e6e3f0ebb85695f816c2a7e8678ba6132932d4dfc3fa1f2f6b9b8f2a
|
|
BLAKE2b-256 checksum How to use checksums |
8608140309bab64399cd4375952feef34e3ae9fb0ad1a97e517565e3ac505603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 9, 2026.
Transparency logRelease files / shortform_ai-0.1.16-py3-none-any.whl
| Download URL | shortform_ai-0.1.16-py3-none-any.whl |
|---|---|
| Size | 45.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00678b087eddfedbbc8e4d4ea15ca821561e54138efd2026fd3d59ae3f4d3e94
|
|
BLAKE2b-256 checksum How to use checksums |
e2e2f4d74e3c8be73f0c282e4de78a5c13a953f1ccf6942d7de3ff7b0daaa84f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 9, 2026.
Transparency logSecurity for shortform-ai 0.1.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for shortform_ai-0.1.16.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.