- Postiz URL is now required (no built-in host); a key can never be sent to a default instance - /api/postiz/scheduled normalizes scheduled_date and widens the default window - Disabled channels are refused for posting; frontend excludes them from connected platforms - 4xx instead of 500 on missing clip URL / bad schedule date; Postiz error bodies truncated - Add tests/test_postiz.py (24 tests); fix remaining cloud-removal test drift - CLI defaults to localhost:8000; n8n workflows fixed against the real routes - Remove dead media-token auth code, stale copy (download_url/402) and doc drift |
||
|---|---|---|
| .. | ||
| openshorts.egg-info | ||
| openshorts_cli.py | ||
| pyproject.toml | ||
| README.md | ||
OpenShorts CLI
Clip long videos into vertical 9:16 shorts from the terminal. Zero dependencies; talks to the same self-hosted REST API the dashboard uses.
pip install openshorts # or: uvx openshorts / pipx run openshorts
Use it against your own instance
OpenShorts is free, open source under MIT and self-hosted with Docker. There is no hosted edition and no paid plan, so there is no account to create. Point the CLI at your instance:
export OPENSHORTS_API_URL=http://localhost:8000
openshorts process "https://youtube.com/watch?v=..." --wait
openshorts clips <job_id>
openshorts publish <job_id> 0 --platforms tiktok,youtube
openshorts quota
Self-hosted instances are open by default and need no API key. You do need a
Google Gemini key: put it in the server's environment, or send it per call as an
X-Gemini-Key header. If you put your own instance behind a key, the CLI sends
OPENSHORTS_API_KEY (osk_...) as a bearer token.
Publish through Postiz
Publishing goes through your self-hosted Postiz instance. Pass the base URL and
API key with --postiz-url / --postiz-key, or set POSTIZ_URL /
POSTIZ_API_KEY; the CLI forwards them to the server as X-Postiz-Url /
X-Postiz-Key.
openshorts publish <job_id> 0 --platforms tiktok,youtube \
--postiz-url https://postiz.example.com --postiz-key <key>
Quota
openshorts quota prints the instance config it reads from GET /api/config:
the job-retention window, whether YouTube-URL ingest is enabled, and the
local-LLM setting. A self-hosted instance has no minute quota, so none is
reported.
Pipelines and webhooks
Prefer the webhook to --wait: pass --webhook and --webhook-secret and
OpenShorts POSTs once (HMAC-signed, X-OpenShorts-Signature: sha256=<hex>) when
the job ends, with each clip's title and video_url. Set PUBLIC_API_URL on
the server so those links are absolute; otherwise they are relative to your
instance.
The agent-native version of the same surface is the OpenShorts skill in
skills/openshorts/.