upstash-redis-start — скилл для Claude Code
Скилл поднимает временную базу Upstash Redis без регистрации и ключей. Один POST возвращает endpoint и токен — хватит на прототип, демо или память агента между вызовами.
npx skills add upstash/skills --skill upstash-redis-start -a claude-codeЧто делает upstash-redis-start
Агент генерирует UUIDv4 и отправляет его в заголовке Idempotency-Key на https://upstash.com/start-redis. В ответ приходит markdown с Database ID, Endpoint, Token, ссылкой на метрики, датой Expires и Console URL. Разбирать отдельный JSON не нужно — значения берутся прямо из текста ответа. Повторный POST с тем же ключом вернёт те же данные, а не создаст вторую базу, поэтому потерянный ответ можно спокойно перезапросить. Заголовок необязателен: без него база получит серверный id, и его потом можно передавать как ключ идемпотентности. Принимается только UUIDv4.
Запросы к базе идут через Upstash Redis REST API. Скилл советует body-style форму: команда кладётся в тело как JSON-массив, и URL-кодировать её не надо. Для SET с TTL и GET в README есть готовые примеры curl. Те же endpoint и токен работают с официальными SDK — @upstash/redis для TS/JS и upstash-redis для Python.
База живёт 3 дня, если пользователь её не заберёт. Она неаутентифицирована до момента Claim, поэтому PII, секреты и боевые ключи туда класть нельзя. После создания скилл просит показать пользователю Console URL: там видно расход, и там же кнопка **Claim**, чтобы сохранить базу.
Какие задачи решает
- поднять Redis для агента, когда пользователь не дал доступов
- сохранить состояние между вызовами инструментов в одном запуске
- сложить очередь задач для субагентов по схеме producer/consumer
- вести лог реплик диалога и читать последние записи
- собрать ранжированную память с сортировкой по свежести или счёту
Примеры запросов агенту
- Подними временный Redis через upstash-redis-start и сохрани в нём шаг пайплайна
- Сделай очередь задач для субагентов в Upstash Redis и разбери её через RPOP
- Заведи ранжированную память в Redis и покажи десять последних записей
Как установить upstash-redis-start
1Через Skills CLI (Vercel)
npx skills add upstash/skills --skill upstash-redis-start -a claude-code2Вручную: положить файлы
~/.claude/skills/upstash-redis-start/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/upstash-redis-start/
1Через Skills CLI (Vercel)
npx skills add upstash/skills --skill upstash-redis-start -a codex2Вручную: положить файлы
.agents/skills/upstash-redis-start/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add upstash/skills --skill upstash-redis-start -a cursor2Вручную: положить файлы
.cursor/skills/upstash-redis-start/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install upstash/skills upstash-redis-start2Вручную: положить файлы
.github/skills/upstash-redis-start/SKILL.md1Через Skills CLI (Vercel)
npx skills add upstash/skills --skill upstash-redis-start -a gemini-cli2Командой платформы
gemini skills install https://github.com/upstash/skills --path skills/upstash-redis-startВручную: положить файлы
.devin/skills/upstash-redis-start/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add upstash/skills --skill upstash-redis-start -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о upstash-redis-start
Как установить upstash-redis-start в Claude Code?
Выполните npx skills add upstash/skills --skill upstash-redis-start -a claude-code. Скилл окажется в ~/.claude/skills/upstash-redis-start/SKILL.md.
Что делает upstash-redis-start?
Создаёт временную базу Upstash Redis одним POST на https://upstash.com/start-redis и отдаёт endpoint с токеном. Аккаунт, API-ключ и настройка SDK не нужны.
Сколько живёт такая база и можно ли её сохранить?
3 дня, если её не забрать. В ответе приходит Console URL: там пользователь смотрит расход и нажимает **Claim**, чтобы оставить базу себе.
Исходный текст
SKILL.md · MIT
---
name: upstash-redis-start
description: Provision a zero-config, no-signup, temporary Upstash Redis database for an AI agent with a single POST to https://upstash.com/start-redis, with no account, API key, or SDK setup required. Use when an agent needs scratch Redis right now and the user has not provided credentials, for short-term memory across tool calls, conversation history, a sub-agent work queue, ranked recall, or a quick prototype or demo. Covers idempotent creation and re-fetching credentials, calling the database through the body-style REST API or the official SDKs, and telling the user how to claim it. The database lives 3 days unless the user claims it; not for production data, PII, or secrets.
license: MIT
metadata:
author: Upstash
homepage: https://upstash.com
---
# Upstash Redis for Agents (`start-redis`)
A zero-config Redis database for AI agents — **no signup, no UI, no SDK setup**. One HTTP request returns a working endpoint + token. Databases live for **3 days** unless the user claims them.
Use this when:
- The agent needs Redis right now and the user has not given you credentials.
- You want short-term memory across tool calls, conversation history, a sub-agent work queue, or recent-first ranked recall.
This is built for quick experiments, prototypes, and demos rather than production workloads or anything tied to a real user account — the database is temporary and unauthenticated until claimed, so keep PII, secrets, and production credentials out of it.
## Create or re-fetch a database
```bash
# Generate a fresh UUIDv4 yourself, then POST it as the Idempotency-Key.
# The UUIDv4 you send becomes the database id.
curl -X POST -H "Idempotency-Key: <uuidv4>" https://upstash.com/start-redis
```
- Sending your own UUIDv4 makes the first call **retry-safe** — if the response is lost, retrying with the same UUID returns the same database instead of minting a duplicate.
- Re-POST with the same `Idempotency-Key` to **re-fetch credentials** for an existing database.
- The header is optional. Omit it to mint a new database with a server-generated id (returned in the response — re-fetch later by passing that id back as `Idempotency-Key`). Only UUIDv4 is accepted.
The response is markdown containing:
- `Database ID`, `Endpoint`, `Token`
- `Metrics` URL (JSON: uptime, commands, keys, throughput, memory, bandwidth)
- `Expires` date
- `Console URL` to share with the user (where they view usage and click **Claim** to keep the database)
- An inline quickstart for the body-style REST API
Parse these out of the markdown response and use them directly — there is no separate JSON envelope.
## Calling the database (body-style REST)
The returned endpoint speaks the Upstash Redis REST API. Prefer the **body-style** form: POST a JSON array as the body so you don't have to URL-encode the command.
```bash
# SET with TTL
curl https://<endpoint> \
-H "Authorization: Bearer <token>" \
-d '["SET","session:abc","{\"step\":2}","EX","3600"]'
# GET
curl https://<endpoint> \
-H "Authorization: Bearer <token>" \
-d '["GET","session:abc"]'
```
You can also use the official SDKs against the same endpoint + token (`@upstash/redis` for TS/JS, `upstash-redis` for Python).
## Common agent patterns
| Need | Commands |
|------|----------|
| Short-term memory across tool calls in one run | `SET key value EX <ttl>` / `GET key` |
| Conversation / turn-by-turn log | `LPUSH chat:<user> <json>` / `LRANGE chat:<user> 0 20` |
| Sub-agent work queue (producer/consumer) | `LPUSH jobs <json>` / `RPOP jobs` |
| Ranked memory (recent-first or score-first) | `ZADD memories <score> <member>` / `ZREVRANGE memories 0 9` |
## Tell the user
After provisioning, surface the **console URL** from the response to the user. Make clear that:
- The database expires in 3 days.
- They can view usage at the console URL and click **Claim** to keep it.
- This is unauthenticated scratch storage — don't put secrets or PII in it.
## Reference
- Service entry point (also serves the `GET` doc): https://upstash.com/start-redis
- Full REST API: https://upstash.com/docs/redis/features/restapi
- TS/JS SDK: https://upstash.com/docs/redis/sdks/ts
- Python SDK: https://upstash.com/docs/redis/sdks/py
© Upstash · MIT · upstash/skills