К основному содержанию
скилл CX Codex

limrun-access-tokens — скилл для Claude Code: установка

Скилл limrun-access-tokens для Claude Code создаёт и отзывает токены доступа Limrun. Агент подключает его, когда нужно выдать клиенту временный доступ к инстансу, ассету или сервису.

MIT 1 300 установок ★ 2 обновлён 2026-10-23

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add limrun-inc/skills --skill limrun-access-tokens -a claude-code
Открыть на GitHub

Что делает limrun-access-tokens

Скилл помогает создавать и отзывать токены доступа Limrun через CLI или TypeScript SDK. Он подбирает разрешения и срок жизни под задачу: например, доступ к потоковой передаче с инстанса или установка приложения на физическое устройство. Создание токена не создаёт инстанс или ассет.

Для CLI нужна авторизация через lim login или переменная LIM_API_KEY; если CLI не установлен, используется npm install --global lim. Вызвавший создание токена пользователь должен иметь разрешение accesstoken:*:all и каждое право, которое он передаёт. Токен не расширяет права создателя.

Срок токена через CLI и SDK можно задать от 1 до 14,400 секунд; по умолчанию токен живёт один час. Отзыв не закрывает уже открытые соединения, а инстансы принимают токен до истечения срока или завершения инстанса.

Какие задачи решает

  • выдать клиенту временный доступ к инстансу
  • ограничить токен разрешением на потоковую передачу
  • объединить права на ассет и установку на устройство
  • отозвать токен по его ID или значению

Примеры запросов агенту

  • Создай токен для потоковой передачи с инстанса $INSTANCE_ID на 900 секунд.
  • Выдай клиенту полный доступ к инстансу и укажи нужные разрешения.
  • Отзови токен Limrun по его ID.

Как установить limrun-access-tokens

1Через Skills CLI (Vercel)

npx skills add limrun-inc/skills --skill limrun-access-tokens -a claude-code

2Вручную: положить файлы

~/.claude/skills/limrun-access-tokens/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/limrun-access-tokens/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о limrun-access-tokens

Как установить limrun-access-tokens в Claude Code?

Выполни npx skills add limrun-inc/skills --skill limrun-access-tokens -a claude-code. Файл скилла устанавливается по пути ~/.claude/skills/limrun-access-tokens/SKILL.md.

Что делает limrun-access-tokens?

Скилл создаёт и отзывает токены Limrun через CLI или TypeScript SDK. Он помогает выбирать разрешения и срок действия для временного доступа.

Что нужно для работы limrun-access-tokens?

Для CLI нужна авторизация через lim login или LIM_API_KEY; при отсутствии CLI его устанавливают командой npm install --global lim. Создателю токена нужны accesstoken:*:all и все разрешения, которые он делегирует.

Исходный текст

SKILL.md · MIT
---
name: limrun-access-tokens
description: "Create and revoke Limrun access tokens through the CLI or TypeScript SDK. Use when delegating temporary instance control, interactive streaming, asset access, device installation, or service access, or choosing permissions and token lifetimes."
---

# Limrun access tokens

Mint an access token to give another client temporary access without sharing an
organization API key. Use the permission and lifetime needed for the requested
task. Creating a token does not create an instance or asset.

## Authentication

Use `lim login` or an existing `LIM_API_KEY`. Install the CLI if needed with
`npm install --global lim`. If a command or flag is unavailable, check
`lim access-token create --help` or `lim access-token revoke --help` and the
installed CLI version.

The caller needs `accesstoken:*:all` and must hold every permission it delegates.
An access token cannot expand the caller's permissions. Permission strings use
`resource:target:action`; the action wildcard is `all`, not `*`.

## Choose permissions

For an existing instance, use its returned ID exactly:

| Instance | Resource and ID prefix | Accepted actions |
| --- | --- | --- |
| iOS simulator | `ios`, `ios_` | `stream`, `all` |
| Android emulator | `android`, `android_` | `stream`, `all` |
| Xcode sandbox | `xcode`, `sandbox_` | `all` |
| Gradle sandbox | `gradle`, `gradle_` | `all` |

`stream` permits interactive streaming, including touch and typing. Give the
client the token and `status.endpointWebSocketUrl`. It cannot install or
explicitly launch apps, use the device API or ADB, or fetch the instance record.

`all` permits full control through the instance's endpoints, including streaming
where supported. Give a device or build client the token and `status.apiUrl`.
Have the trusted backend supply the endpoint URL alongside either token; access
tokens are not a replacement for an API key across all SDK methods.

Instance grants require a concrete ID. They do not grant organization-wide
listing, instance creation, deletion, or role updates. Access-token create
rejects instance `read`, `work`, and `tunnel` actions; the latter two belong to
specialized build and private-tunnel flows.

Other accepted grants include:

| Permission | Purpose |
| --- | --- |
| `asset:<target>:<action>` | Asset access. Targets can be an asset ID, `name/<name-or-pattern>`, or `*`. Actions are `read`, `create`, `upload`, `update`, `delete`, and `all`; `create` requires a name target or `*`. |
| `device:*:install` | Physical-device installation; also needs `asset:<target>:read` for the asset. |
| `applerelay:*:connect` | Apple Account authentication relay access. |
| `remotecache:*:read` or `remotecache:*:all` | Read the organization's Bazel cache, or read and write it. |
| `remoteexecution:*:all` | Execute actions through the organization's Bazel service. |

For asset pattern delegation, organization roles, or workload-role permissions,
consult [Permissions and access tokens](https://docs.limrun.com/docs/reference/permissions).
Workload roles grant asset access from inside an instance; they do not grant
another client control of it.

## Create and revoke with the CLI

```bash
lim access-token create \
  --permission "ios:$INSTANCE_ID:stream" \
  --ttl-seconds 900 \
  --json
```

Use `all` for full instance control. Repeat `--permission` to combine grants,
for example an asset read permission and `device:*:install`.

The JSON response includes `id`, `token`, `permissions`, and `expiresAt`.
Save `id` for revocation and pass `token` to the intended client.
`--quiet` prints only the token; `--quiet --json` keeps the JSON response.

```bash
lim access-token revoke "$TOKEN_ID"
# Or pass the token itself:
lim access-token revoke "$ACCESS_TOKEN"
```

CLI revocation accepts the returned ID or the `lim_st_...` token value. It
extracts the token's JWT `jti` and sends only that ID, authenticated with your
API key or login. Tokens without a `jti`, including `status.token` and
`status.streamToken`, cannot be revoked this way. Output contains the resolved
ID, not the supplied token. Repeating a revoke call is safe. A failed request
is not confirmation of revocation.

## TypeScript SDK

```ts
import Limrun from '@limrun/api';

const lim = new Limrun(); // Reads LIM_API_KEY.
const access = await lim.accessTokens.create({
  permissions: [`xcode:${instance.metadata.id}:all`],
  ttlSeconds: 900,
});

// Give the build client instance.status.apiUrl and access.token.
// When the credential is no longer needed:
await lim.accessTokens.revoke(access.id);
```

The SDK revoke method takes an ID. Use `accessTokens` and `permissions` in new integrations. For REST, the matching
routes are `POST /v1/access_tokens` and `DELETE /v1/access_tokens/{id}`;
authenticate with the API key in the Authorization Bearer header.

## Lifetime and revocation

Tokens created with an API key or CLI login default to one hour.
`--ttl-seconds` and `ttlSeconds` accept integers from 1 through 14,400.

The management and registry APIs check revocation after it propagates. Instance
endpoints verify tokens offline and continue accepting them until expiry or
instance termination. Revocation does not close existing connections or
terminate the instance. Choose the lifetime with these limits in mind.

© limrun-inc · MIT · limrun-inc/skills

Похожие скиллы

Каталог скиллов SKILL.md →
vercel-cli-with-tokens vercel Агент vercel-cli-with-tokens работает с Vercel CLI по access-токену, без vercel login: находит VERCEL_TOKEN, связывает проект, катит preview-деплой и правит переменные окружения. CX Codex +1 160 500установок design-tokens julianoczkowski Скилл design-tokens генерирует файл дизайн-токенов — CSS-переменные или конфиг Tailwind — по выбранной эстетике, со светлой и тёмной темами. CX Codex +1 6 300установок managing-api-tokens celigo Скилл managing-api-tokens для Claude Code помогает управлять API-токенами Celigo: создавать, ограничивать доступ, отзывать и удалять. Подключается при работе с токенами integrator.io и PAT. CX Codex +1 3 800установок vtex-io-auth-tokens-and-context vtex Скилл vtex-io-auth-tokens-and-context помогает решить, какой токен VTEX IO должен стоять за запросом из бэкенд-приложения: приложение, покупатель или админ. CX Codex +1 1 200установок tokens educlopez Скилл tokens для Claude Code и Codex. Сканирует проект, находит дизайн-токены и собирает трёхслойную систему: проверяет, какие категории есть, какие слои присутствуют, настроены ли светлая и тёмная темы. CX Codex +1 992установок swap-tokens circlefin Скилл swap-tokens для Claude Code помогает писать код для обмена токенов через Circle App Kit или Swap Kit. Включается при создании свопа в браузере или на сервере, в том числе между сетями. CX Codex +1 905установок

Из того же набора9

limrun-xcode-bazel Скилл limrun-xcode-bazel для Claude Code собирает Bazel-проекты Apple на удалённых Mac-воркерах Limrun и устанавливает приложение на удалённый симулятор. Работает с проектами, уже использующими lim xcode rbe. CX Codex +1 45 300установок limrun-expo-development Скилл limrun-expo-development готовит и запускает Expo и React Native приложения на Limrun: dev-client сборка, туннель Metro, правки JS и TS без повторных нативных пересборок. CX Codex +1 45 300установок limrun-detox-testing Скилл limrun-detox-testing помогает настроить, запустить и отладить тесты Detox на удалённых симуляторах Limrun iOS. Пригодится при пробросе туннелей к медиатору и инжекции рантайма в приложение. CX Codex +1 45 300установок limrun-xcode Скилл limrun-xcode собирает и тестирует iOS-проекты на удалённом Xcode через lim xcode build, run и test — с Linux, Windows или из контейнера. CX Codex +1 45 300установок limrun-ios-simulator Скилл limrun-ios-simulator управляет iOS-приложением в облачном симуляторе Limrun: запускает, тапает, вводит текст, читает дерево accessibility-элементов, логи и syslog, делает скриншоты и видео. CX Codex +1 45 300установок limrun-gradle Скилл limrun-gradle собирает Android-приложения в удалённой песочнице с помощью команды lim gradle build. Помогает получить APK или подписанный AAB без локального Android SDK и Gradle. CX Codex +1 42 200установок limrun-android-emulator Скилл limrun-android-emulator для Claude Code и Codex, управляющий Android-приложением на облачном эмуляторе Limrun: устанавливайте APK, снимайте скриншоты, нажимайте на элементы, проверяйте логи. CX Codex +1 41 000установок limrun-bazel Скилл limrun-bazel для Claude Code учит агента настраивать и запускать Bazel-сборки iOS и Android на общем сборочном кластере Limrun. Собирает проекты без локального Xcode или Android SDK. CX Codex +1 28 800установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой