label-studio
БесплатноБез исполняемых скриптовНе проверенOpen-source data labeling and annotation platform for ML projects. Supports text, image, audio, video, and time-series data. Features configurable labeling…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Label Studio
Overview
Label Studio (HumanSignal, Apache-2.0) is a web app for labeling data and exporting the result as training data. A project has a labeling config (an XML template that defines the annotation UI), tasks (the data items), annotations (human labels) and optionally predictions (model suggestions used for pre-labeling). You can drive it from the browser, the REST API or the Python SDK (label-studio-sdk 2.x). Versions checked: label-studio 1.23.2 and label-studio-sdk 2.1.2 (September 2026). The open-source edition has no role-based access control or review workflows; those are in the paid Enterprise and Cloud editions.
Instructions
1. Install and start
python -m venv .venv && source .venv/bin/activate
pip install label-studio # needs Python 3.10+
label-studio start --port 8080 # opens http://localhost:8080; create the first account there
Headless start with a ready account (useful in scripts): label-studio start -b --internal-host 127.0.0.1 -p 8080 --username [email protected] --password "$LS_PASSWORD". Data (SQLite database, uploads) is stored in the data directory printed at startup; set LABEL_STUDIO_BASE_DATA_DIR to choose it. Use --internal-host 127.0.0.1 unless you really want other machines to reach it.
2. Docker with PostgreSQL
# docker-compose.yml
services:
label-studio:
image: heartexlabs/label-studio:1.23.2 # pin a version instead of :latest
ports:
- "127.0.0.1:8080:8080"
environment:
DJANGO_DB: default
POSTGRE_NAME: labelstudio
POSTGRE_USER: labelstudio
POSTGRE_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRE_HOST: db
POSTGRE_PORT: 5432
LABEL_STUDIO_HOST: https://labels.northwind.dev # public URL, if behind a proxy
volumes:
- ./ls-data:/label-studio/data
depends_on:
- db
db:
image: postgres:17
environment:
POSTGRES_DB: labelstudio
POSTGRES_USER: labelstudio
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- pg-data:/var/lib/postgresql/data
volumes:
pg-data:
Put POSTGRES_PASSWORD in an untracked .env file. The repository's own docker-compose.yml adds an nginx front end and runs the app with label-studio-uwsgi; use it for larger production setups. Environment variables can be written with or without the LABEL_STUDIO_ prefix. Local-file serving is off by default (LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true and LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=/label-studio/files enable it), and only for files you really need.
3. Labeling configs
<!-- text classification -->
<View>
<Header value="Classify the sentiment of this review:"/>
<Text name="text" value="$text"/>
<Choices name="sentiment" toName="text" choice="single" showInline="true">
<Choice value="Positive"/>
<Choice value="Negative"/>
<Choice value="Neutral"/>
</Choices>
</View>
<!-- named entity recognition -->
<View>
<Labels name="label" toName="text">
<Label value="Person" background="#d9480f"/>
<Label value="Organization" background="#1c7ed6"/>
<Label value="Location" background="#2f9e44"/>
</Labels>
<Text name="text" value="$text"/>
</View>
<!-- bounding boxes -->
<View>
<Image name="image" value="$image"/>
<RectangleLabels name="label" toName="image">
<Label value="Car"/><Label value="Person"/><Label value="Bicycle"/>
</RectangleLabels>
</View>
$text and $image refer to keys in each task's data. toName must match the name of the data tag, and the control name (sentiment, label) is what appears as from_name in results.
4. Authentication for the API
Current releases disable the old Authorization: Token ... header by default (the server answers 401 "legacy token authentication has been disabled"). Use a Personal Access Token: create it under Account & Settings, then give it to the SDK as api_key. For plain HTTP, exchange it for a short-lived access token:
ACCESS=$(curl -s -X POST http://localhost:8080/api/token/refresh \
-H "Content-Type: application/json" \
-d "{\"refresh\": \"$LABEL_STUDIO_API_KEY\"}" | python -c "import sys,json; print(json.load(sys.stdin)['access'])")
curl -s http://localhost:8080/api/projects -H "Authorization: Bearer $ACCESS"
Access tokens expire after a few minutes, so refresh again when you get a 401. An admin can re-enable legacy tokens (--enable-legacy-api-token or LABEL_STUDIO_ENABLE_LEGACY_API_TOKEN=true) for old scripts.
5. Python SDK 2.x
The old from label_studio_sdk import Client / ls.start_project API belongs to SDK 1.x. In 2.x:
import os
from label_studio_sdk.client import LabelStudio
ls = LabelStudio(base_url="http://localhost:8080", api_key=os.environ["LABEL_STUDIO_API_KEY"])
project = ls.projects.create(title="Customer Reviews", label_config=open("sentiment.xml").read())
ls.projects.import_tasks(
id=project.id,
request
Установить label-studio в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл label-studio?
Open-source data labeling and annotation platform for ML projects. Supports text, image, audio, video, and time-series data. Features configurable labeling interfaces, ML-assisted labeling, team collaboration, and API integration for automated workflows. Use when the user asks to "label data", "annotate images or text", "set up Label Studio", "export annotations for training", or "pre-label with a model".
Как установить скилл label-studio?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл label-studio запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic