Lai Setup logo

Lai Setup

Organization
lattifai
lai-setup

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.

Overview

Publisherlattifai
Repositorylattifai-skills
Skill namelai-setup
Stars
32
Forks
1
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by lattifai on GitHub. Read the source before you install it.

Installation

Install the Lai Setup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/lattifai/lattifai-skills/tree/main/skills/lai-setup
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lattifai/lattifai-skills.git /tmp/lattifai-skills
mkdir -p .claude/skills
cp -r /tmp/lattifai-skills/skills/lai-setup .claude/skills/lai-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lai Setup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Lai Setup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Lai Setup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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)

bash
# One-time: install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh   # or: brew install uv / pip install uv

# Install lattifai
uv pip install lattifai --extra-index-url https://lattifai.github.io/pypi/simple/

# Workaround for a known entry-point name conflict — re-install lattifai
# last so its `lai` console script wins. Without this, `lai --version`
# may fail with "No such option: --version" (an upstream `lattifai-run`
# package also claims the `lai` script name).
uv pip install --reinstall-package lattifai lattifai \
    --extra-index-url https://lattifai.github.io/pypi/simple/

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

bash
pip install lattifai --extra-index-url https://lattifai.github.io/pypi/simple/

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 no lai login command — it's lai auth trial (new user) or lai auth login (existing paid account).

bash
lai auth trial

The output shows your credits and expiry. You're ready.

API key is user-level, not env-level. The credentials live in ~/.lattifai/config.toml and are shared across every Python / conda env on the same machine. Switching to a fresh env does not require re-authenticating; running lai auth trial in a new env on a machine that already has an active trial returns "You already have an active trial (expires …)". To rotate, run lai auth logout first.

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 align run. The warning lifts itself once the prefetch completes.
  • Package version: outdated → run lai update to grab the latest CLI. Recommended monthly, or whenever a feature you need is in a newer release.

Common Issues

ProblemFix
pip can't find lattifai or its dependency lattifai-coreRe-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 installEntry-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 429Trial 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 startupStale 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 todayTrial key expired — re-run lai auth trial (new key)
Outdated packagelai 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

Frequently asked questions

What does the Lai Setup AI skill do?

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.

Why use Lai Setup on TypingMind?

Because you install it once and use it with any model. Lai Setup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Lai Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lattifai/lattifai-skills/tree/main/skills/lai-setup. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Lai Setup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Lai Setup?

As many as you like. As long as a model supports skills, you can use Lai Setup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Lai Setup AI skill free?

Yes. It is published on GitHub by lattifai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇