lattifai/lattifai-skills/lai-setup
Claude Code and agent skill by lattifai/lattifai-skills
- community
Checking that the SKILL.md file is still in the repository.
Install LattifAI and get a free trial API key. Trigger on first mention of LattifAI / `lai`, authentication errors, trial requests, or "how do I get started with alignment" / "我想做字幕对齐" before `lai --version` is verified. Do NOT trigger when already authenticated — route to `/lai-align`, `/lai-transcribe`, etc.
Install
npx vskill@latest install lattifai/lattifai-skills/lai-setupSKILL.md
LattifAI Setup
LattifAI aligns captions to audio at word-level precision. Two steps to get started.
1. Install
Requires Python 3.10+. Choose either installer:
Recommended — uv (≈10–15× faster)
Typical end-to-end runtime on broadband: ~1 minute. uv parallelizes downloads and resolves the dependency graph in Rust; it also dedupes wheels across envs via a global cache, so subsequent installs in fresh envs are near-instant.
Standard — pip
First pip install takes 5–15 minutes on broadband — torch (~80 MB), onnxruntime, scipy, transformers are all sizeable wheels. pip's serialized download + sequential install order happens to land on the right lai script automatically, so no workaround needed.
You may see a cosmetic WARNING: No metadata found ... Can't uninstall 'setuptools' line during install — known anaconda + pip interop quirk, safe to ignore.
2. Get a Free Trial Key — lai auth trial
For new users this is the only command you need. It claims a no-sign-up trial (2 hours of alignment credits, valid 14 days). There is nolai logincommand — it'slai auth trial(new user) orlai auth login(existing paid account).
The output shows your credits and expiry. You're ready.
API key is user-level, not env-level. The credentials live in~/.lattifai/config.tomland are shared across every Python / conda env on the same machine. Switching to a fresh env does not require re-authenticating; runninglai auth trialin a new env on a machine that already has an active trial returns "You already have an active trial (expires …)". To rotate, runlai auth logoutfirst.
To double-check the environment any time: lai doctor (FAIL rows include a fix suggestion).
On `lai doctor` warnings:
- Model cache: Stale – update needed → not actionable; the alignment models are auto-prefetched on first
lai alignment/lai youtube alignrun. The warning lifts itself once the prefetch completes. - Package version: outdated → run
lai updateto grab the latest CLI. Recommended monthly, or whenever a feature you need is in a newer release.
Common Issues
| Problem | Fix | |
|---|---|---|
pip can't find lattifai or its dependency lattifai-core | Re-run with --extra-index-url https://lattifai.github.io/pypi/simple/ (lattifai-core ships only on the LattifAI mirror) | |
lai --version returns No such option: --version after uv pip install | Entry-point name conflict — lattifai-run also claims the lai script. Run uv pip install --reinstall-package lattifai lattifai --extra-index-url https://lattifai.github.io/pypi/simple/ to re-install lattifai last. | |
lai auth trial returns 429 | Trial already used on this device — run lai auth login for a full account | |
| API key invalid / expired (trial expires after 14 days) | lai auth logout, then lai auth trial (new device) or lai auth login (paid account) | |
Couldn't load entrypoint <name>: No module named 'lattifai' on lai startup | Stale editable install — pip show lattifai reveals Editable project location: /path/that/no-longer-exists. Run pip uninstall -y lattifai lattifai-core lattifai-run k2py then reinstall non-editable per Step 1 | |
lai command runs but outputs EXPIRES_AT warning past today | Trial key expired — re-run lai auth trial (new key) | |
| Outdated package | lai update |
Related Skills
Once authenticated, jump straight to the feature you need:
/lai-align— align audio + existing captions/lai-transcribe— transcribe audio/video from scratch (also covers Gemini API key setup)/lai-youtube— process a YouTube video end-to-end
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lai-setup/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lattifai/lattifai-skills/lai-setup)