/upstash:upstash-clifrom Upstash Redis
Runs the Upstash CLI for CI steps, provisioning scripts, team management, Redis backup restoration, Blob file sync, and connecting coding agents to Upstash. Use when Upstash MCP tools are unavailable.
Ships in Upstash Redis. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
If Upstash MCP tools are in the session, call them instead of shelling out to the CLI. They are
already authenticated and cover the same ground — creating, branching and inspecting Redis databases,
running Redis commands, usage stats and insights, backups, plans and budgets, Vector and Search
indexes, Blob buckets and objects, QStash schedules and messages, the DLQ, logs, and Box. Installing
the Upstash plugin registers the hosted server at https://mcp.upstash.com/mcp.
Use the CLI when there is no MCP in the session, or when the work is inherently shell work — a CI step, a provisioning script, or piping JSON into other commands.
The Upstash CLI (upstash) manages Upstash services via the Upstash Developer API. All commands are non-interactive and emit JSON on stdout. Errors go to stderr as { "error": "..." } with exit code 1.
npm i -g upstash
Or run a single command without installing: npx upstash <command>.
upstash setup connects coding agents to Upstash in one step. Claude Code, Codex, Cursor, and Gemini CLI get the Upstash plugin (the Upstash skills plus the remote MCP server). VS Code, GitHub Copilot CLI, and OpenCode get the remote MCP server (https://mcp.upstash.com/mcp) in their config plus the upstash skill. The MCP server signs in with OAuth on first use, so setup never writes an API key into an agent's config.
A person at a terminal can run npx upstash: with no arguments in a terminal it starts upstash setup and asks which agents to set up. Outside a terminal a bare upstash only prints the help, so from an agent or a script call upstash setup with --yes and the agent flags:
npx -y upstash setup --yes --claude # or --codex, --cursor, --gemini, --vscode, --copilot, --opencode
npx -y upstash setup --yes --cursor --mode mcp # remote MCP server + skill instead of the plugin
npx -y upstash setup --yes --claude --project # this project instead of the user config
npx -y upstash setup --yes --dry-run # show what would change; without agent flags, --yes covers every detected agent
With --project, Claude Code installs the plugin at project scope; Codex, Cursor, and Gemini CLI plugins install per user only, so they get project-level MCP config plus the skill instead. Rerunning setup updates what it installed. Afterwards the agent needs a restart or reload (in Claude Code, /reload-plugins; in Cursor, Developer: Reload Window).
Recommended: run upstash login once per machine. Prompts for email and a Developer API key (create one at https://console.upstash.com/account/api), verifies them, and saves to ~/.config/upstash/config.json.
upstash login
Alternatives — env vars (also auto-loaded from a .env in cwd), or --email / --api-key inline, or --env-path <path> to point at a specific .env:
export [email protected]
export UPSTASH_API_KEY=your_api_key
Precedence: flags > env vars > .env > saved config. Prefer a read-only API key for agents when possible — mutations fail at the API, the same way they would in the console.
| Flag | Products |
|---|---|
--db-id <id> | Redis |
--index-id <id> | Vector, Search |
--qstash-id <id> | QStash |
<bucket> (positional, name or id) | Blob |
--team-id <id> | Team |
upstash redis list
upstash redis get --db-id <id> [--hide-credentials]
upstash redis create --name <name> --region <region> [--read-regions <r1> <r2>]
upstash redis create-branch --db-id <id> --name <branch-name>
upstash redis delete --db-id <id> [--dry-run]
upstash redis rename --db-id <id> --name <new-name>
upstash redis reset-password --db-id <id>
upstash redis stats --db-id <id>
upstash redis enable-tls --db-id <id>
upstash redis {enable,disable}-eviction --db-id <id>
upstash redis {enable,disable}-autoupgrade --db-id <id>
upstash redis change-plan --db-id <id> --plan <free|payg|pro|paid>
upstash redis update-budget --db-id <id> --budget <cents>
upstash redis update-regions --db-id <id> --read-regions <r1> <r2>
upstash redis move-to-team --db-id <id> --team-id <id>
Regions — AWS: us-east-1, us-east-2, us-west-1, us-west-2, ca-central-1, eu-central-1, eu-west-1, eu-west-2, sa-east-1, ap-south-1, ap-northeast-1, ap-southeast-1, ap-southeast-2, af-south-1. GCP: us-central1, us-east4, europe-west1, asia-northeast1.
create-branch makes a branch: a point-in-time copy of a database (or of another branch) with its own endpoint and password, billed as pay-as-you-go. It returns in state creating; poll upstash redis get --db-id <database_id of the branch> until state is active. The other redis commands take a branch's id like any database's. A branch cannot be merged back. To use it from application code, write its credentials to the env file as shown under Redis credentials; the CLI does not write them itself.
upstash redis backup list --db-id <id>
upstash redis backup create --db-id <id> --name <name>
upstash redis backup delete --db-id <id> --backup-id <id> [--dry-run]
upstash redis backup restore --db-id <id> --backup-id <id>
upstash redis backup {enable,disable}-daily --db-id <id>
upstash redis exec --db-url <url> --db-token <token> SET key value
upstash redis exec --db-url <url> --db-token <token> --json '["SET","key","value"]'
--db-url / --db-token fall back to UPSTASH_REDIS_REST_URL / UPSTASH_REDIS_REST_TOKEN, so set those (below) rather than passing the token on the command line.
redis get prints the database password and rest_token, which are bearer secrets for the whole database. Don't read them into the conversation: use --hide-credentials whenever you only need metadata, and when the app needs them, pipe the output straight into its env file:
Before writing, check that .env.local is git-ignored (git check-ignore .env.local prints the name) and doesn't already define these names. The jq output starts with a newline, so the append never joins the last line of a file that lacks a trailing newline:
upstash redis get --db-id <id> \
| jq -r '"\nUPSTASH_REDIS_REST_URL=https://\(.endpoint)\nUPSTASH_REDIS_REST_TOKEN=\(.rest_token)"' \
>> .env.local
To run redis exec against it, load the file into the shell first (set -a; . ./.env.local; set +a).
upstash team list
upstash team create --name <name> [--copy-cc]
upstash team delete --team-id <id> [--dry-run]
upstash team members --team-id <id>
upstash team add-member --team-id <id> --member-email <email> --role <admin|dev|finance>
upstash team remove-member --team-id <id> --member-email <email> [--dry-run]
upstash vector list
upstash vector get --index-id <id>
upstash vector create --name <name> --region <region> --similarity-function <fn> --dimension-count <n> [--type payg] [--index-type <type>] [--embedding-model <m>] [--sparse-embedding-model <m>]
upstash vector delete --index-id <id> [--dry-run]
upstash vector rename --index-id <id> --name <new-name>
upstash vector reset-password --index-id <id>
upstash vector set-plan --index-id <id> --plan <free|payg|fixed>
upstash vector transfer --index-id <id> --target-account <id>
upstash vector stats # aggregate across all indexes
upstash vector index-stats --index-id <id> [--period <1h|3h|12h|1d|3d|7d|30d>]
Regions: eu-west-1, us-east-1, us-central1. Similarity: COSINE, EUCLIDEAN, DOT_PRODUCT. Index types: DENSE, SPARSE, HYBRID. Dense models: BGE_SMALL_EN_V1_5, BGE_BASE_EN_V1_5, BGE_LARGE_EN_V1_5, BGE_M3. Sparse models: BM25, BGE_M3. For HYBRID with managed embeddings, set --dimension-count 0.
upstash search list
upstash search get --index-id <id>
upstash search create --name <name> --region <region> --type <free|payg|fixed>
upstash search delete --index-id <id> [--dry-run]
upstash search rename --index-id <id> --name <new-name>
upstash search reset-password --index-id <id>
upstash search transfer --index-id <id> --target-account <id>
upstash search stats
upstash search index-stats --index-id <id> [--period <1h|3h|12h|1d|3d|7d|30d>]
Regions: eu-west-1, us-central1.
upstash qstash list # run first; maps region → id
upstash qstash get --qstash-id <id>
upstash qstash rotate-token --qstash-id <id>
upstash qstash set-plan --qstash-id <id> --plan <paid|qstash_fixed_1m|qstash_fixed_10m|qstash_fixed_100m>
upstash qstash stats --qstash-id <id> [--period <1h|3h|12h|1d|3d|7d|30d>]
upstash qstash ipv4 # CIDR blocks for allowlisting
upstash qstash move-to-team --qstash-id <id> --target-team-id <id>
upstash qstash update-budget --qstash-id <id> --budget <dollars> # 0 = no limit
upstash qstash {enable,disable}-prodpack --qstash-id <id>
The object commands, bucket names in place of ids, and --write-env need a recent CLI. If upstash blob cp --help fails, run the command with npx -y upstash@latest.
upstash blob ls # buckets; `blob list` is the same
upstash blob get <bucket> [--hide-credentials] [--write-env <path>]
upstash blob create --name <name> [--visibility <private|public>] [--cors <origin> <origin>] [--write-env <path>]
upstash blob delete <bucket> [--dry-run] # empty buckets only
upstash blob rb <bucket> --force # delete every object, then the bucket
upstash blob credentials [<bucket>] [--token <token>]
<bucket> is a bucket name or id. Buckets are private by default. blob get returns the bucket token, which is a bearer secret for the whole bucket: pass --hide-credentials when you only need the metadata, or --write-env .env.local to put it where @upstash/blob reads it. --write-env writes the token to that file as UPSTASH_BLOB_TOKEN (file created if missing, other lines kept, mode 600) and prints the bucket without its tokens. It is not the global --env-path, which reads credentials.
Each --cors origin is http(s)://host[:port] with no path or trailing slash (https://*.example.com works), passed as its own argument; anything else is rejected. Omit --cors to allow all origins.
blob credentials exchanges a bucket token for temporary, bucket-scoped S3 credentials to use with the AWS CLI, rclone, or any S3 SDK. With a bucket it reads the token through the Developer API (and waits for a bucket that was just created to finish provisioning); with --token, or with neither and UPSTASH_BLOB_TOKEN set, it needs no account auth at all. expiresAt is the expiry as a unix timestamp in seconds (multiply by 1000 before comparing with Date.now()) — re-mint before it passes rather than caching.
upstash blob credentials <bucket>
# prints accessKeyId, secretAccessKey, sessionToken, bucket, endpoint and expiresAt
Give the S3 client those values as AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN, then use the printed bucket and endpoint:
aws s3 cp image.png s3://<bucket>/image.png --endpoint-url <endpoint> --region auto
The object commands mirror aws s3, with blob://<bucket>/<key> in place of s3://. For application code use the upstash-blob-js skill.
upstash blob ls <bucket>/images/ [-r] [--summarize]
upstash blob cp ./photo.png blob://<bucket>/images/
upstash blob cp ./assets blob://<bucket>/assets -r [--exclude "*.tmp"]
upstash blob cp blob://<bucket>/images ./images -r # download
upstash blob cp blob://<bucket>/config.json - | jq . # to stdout
upstash blob mv blob://<bucket>/a.txt blob://<other-bucket>/a.txt
upstash blob sync ./site blob://<bucket>/site [-d] [--size-only]
upstash blob rm <bucket>/tmp -r [-n]
upstash blob presign <bucket>/report.pdf [--expires-in <seconds>] # download URL, at most 600 s (the default)
cp, mv and sync need blob:// to tell bucket paths from local ones; ls, rm and presign take <bucket>/<key> without it. Shared flags: -r/--recursive, --exclude / --include (the last match wins), -n/--dryrun, -q/--quiet, --concurrency <1-16>, and for written objects --content-type, --cache-control and --metadata key=value. sync -d deletes destination files that are not in the source. Local symlinks are followed unless --no-follow-symlinks is given. Progress goes to stderr and a JSON summary to stdout; a failed file does not stop the transfer but makes the command exit with an error.
With a bucket token (--token, or UPSTASH_BLOB_TOKEN) these commands need no login, but only reach that token's bucket, addressed by id: upstash blob cp ./assets blob://<bucket-id>/assets -r --token YOUR_BLOB_TOKEN.
jq for field extraction, e.g. upstash redis list | jq '.[].database_id'.--dry-run first on any delete or remove-member.--hide-credentials on redis get and blob get unless you are writing the secret to an env file; never print a token to read it.redis delete, team delete, blob rb --force, reset-password) only on resources the user named, after confirming the id with them.Upstash-Telemetry-* headers (CLI version, runtime, platform). upstash telemetry disable or UPSTASH_DISABLE_TELEMETRY=1 turns them off; upstash telemetry status shows the setting.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub upstash/skills --plugin upstash14 skills in this plugin
/redis-best-practicesRedis best practices and performance rules for production, for any Redis deployment including open source Redis, Valkey, Redis Cloud, AWS ElastiCache, Google Memorystore, Azure Cache, and Upstash. Use when writing, reviewing, or debugging Redis code for performance or scale, when choosing between pipeline and MGET, KEYS and SCAN, or WATCH and Lua, or when the user mentions Redis best practices, Redis performance, slow Redis, Redis latency, high memory use, a high Redis bill, big keys, hot keys, large hashes, HGETALL, cache hit rate, TTL jitter, key expiration, cache stampede, maxmemory and eviction policies, unbounded lists or streams, XACK and consumer groups, pub/sub vs streams, Lua script blocking, key-based locking for Lua scripts, connection pooling, serverless connections, retries and timeouts, replication lag, ACL users, credential rotation, or Redis monitoring. Also explains errors such as OOM command not allowed, BUSY Redis is busy running a script, NOSCRIPT, CROSSSLOT, and Upstash limit errors./upstashWork with any Upstash product, SDK, or tool, including serverless Redis (caching, sessions, leaderboards, key-value storage), Ratelimit (rate limiting and throttling), QStash (message queue, cron schedules, background jobs), Workflow (durable long-running functions), Vector (vector database for embeddings, semantic search, and RAG), Search (full-text and semantic search), Box (sandboxed cloud containers for AI agents, TypeScript/JavaScript and Python), Blob (file storage and user uploads for images, videos and attachments, S3-compatible, with direct browser uploads and a global CDN by default), and the Upstash CLI. Use when the user mentions Upstash or needs any of these capabilities in a serverless, edge, or Node.js app./upstash-blob-jsWork with the @upstash/blob TypeScript/JavaScript SDK for S3-compatible object storage with direct browser uploads, presigned URLs, multipart, and signed reads. Use when storing files or blobs, uploading avatars, images, videos, attachments or user documents, letting a browser upload straight to storage without proxying bytes through a server, generating public or time-limited signed URLs, serving private files, streaming large files with pause and resume, setting cache headers on stored objects, or reaching an S3-compatible bucket from the AWS SDK./upstash-box-cliDrive an Upstash Box (a remote sandboxed workspace) from the terminal with the `box` CLI. Use when asked to run commands, edit files, clone repos, run builds or tests, publish a public URL, browse or screenshot a page, open a pull request or issue with a screenshot attached, schedule recurring work, run an AI agent, or do any work inside a box rather than on this machine./upstash-box-jsWork with the @upstash/box TypeScript/JavaScript SDK for sandboxed cloud containers with AI agents, shell, filesystem, git, cron schedules, snapshots, and a headless browser. Use when building with Upstash Box, creating a sandbox or isolated environment to run untrusted or agent-generated code, running AI coding agents in containers, giving an agent a cloud dev environment with a shell and repository, browser automation from a box, scheduling recurring jobs inside a box, saving and restoring snapshots, or orchestrating parallel boxes./upstash-box-pyWork with the upstash-box Python SDK for sandboxed cloud containers with AI agents, shell, filesystem, git, cron schedules, snapshots, and a headless browser. Use when building with Upstash Box in Python, creating a sandbox or isolated environment to run untrusted or agent-generated code, running AI coding agents in containers, giving an agent a cloud dev environment with a shell and repository, browser automation from a box, scheduling recurring jobs inside a box, saving and restoring snapshots, or orchestrating parallel boxes.Other plugins' skills for the same job