redis-cli

redis-cli is a skill for Claude Code, Codex from chaunsin/agent-skills. It costs 143 tokens per session (4,002 once invoked), scanned B, original, Apache-2.0.

A command-line interface for Redis, an in-memory data store commonly used for key-value data and caching. It supports one-off commands and an interactive shell.

In plain words
What is it for?
Use it to read or write keys, scan keyspaces, view server information, monitor activity, and investigate latency.
Why use it?
It lets you inspect, query, monitor, and manage Redis without opening a separate graphical tool.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read or write keys, scan keyspaces, view server information, monitor activity, and investigate latency.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chaunsin/agent-skills/redis-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add chaunsin/agent-skills --skill redis-cli
Clone the repo
git clone --depth 1 https://github.com/chaunsin/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redis-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/chaunsin/agent-skills/redis-cli/github.svg)](https://agentmods.dev/skills/chaunsin/agent-skills/redis-cli)
Your own site
<a href="https://agentmods.dev/skills/chaunsin/agent-skills/redis-cli"><img src="https://agentmods.dev/badge/skills/chaunsin/agent-skills/redis-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for redis-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/chaunsin/agent-skills/redis-cli"><img src="https://agentmods.dev/badge/skills/chaunsin/agent-skills/redis-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,002 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00143 $0.04002
Opus 5.5 $0.00057 $0.01601
Sonnet 5.5 $0.00029 $0.00800
Haiku 4.5 $0.00014 $0.00400

Measured 1mo ago against content hash 269ff0258550, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

redis-cli scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install redis-tools
skills/redis-cli/SKILL.md · 395 lines

How it starts

The opening of the file, as written. The whole thing — 395 lines — stays where its author put it; the contents beside it link to each section on GitHub.

redis-cli — Redis Command Line Interface

redis-cli is the primary command-line tool for interacting with Redis. It supports two modes: command-line execution (run a command and exit) and interactive mode (a REPL with tab completion, history, and hints). It also provides special modes for monitoring, latency analysis, key space scanning, and data import/export.

Official resources: Redis CLI Docs | Commands | Download

Prerequisites

# Check if redis-cli is installed
redis-cli --version

# Install options:

# macOS (Homebrew)
brew install redis

# Ubuntu / Debian
sudo apt install redis-tools

# CentOS / RHEL
sudo yum install redis

# Alpine
apk add redis

# Build from source (binary only)
make redis-cli
# Binary at: src/redis-cli

# Docker (no installation needed)
docker run -it --rm redis redis-cli -h <host> -p <port> PING

Security Considerations

IMPORTANT: Redis provides powerful operations that can irreversibly modify or delete data. Pay close attention to the following safety guidelines:

Examples are reference material, not authorization to execute them. Before running commands, establish the Redis endpoint (or socket), database, key scope, input source, and intended effects covered by the user's request. Reuse existing authorization; resolve missing scope before transferring data or making destructive changes. Use a disposable instance and synthetic data for demonstrations.

  • File and stdin transfers cross a data boundary — -x and -X send input bytes to Redis. Do not read or upload system account files, credentials, private keys, or unrelated local files to reproduce an example. Real transfers must stay within the authorized source and destination.
  • Scripts and command files are executable input — inspect Lua, functions, text command files, and RESP streams (--pipe) and their effects before execution. Do not let untrusted content select files, commands, or destinations; never evaluate Redis values or replies as shell commands.
  • Restore without overwriting by default — omit REPLACE and stop on BUSYKEY; do not automatically retry with REPLACE or delete the destination. Overwriting requires authorization for that destination key and a recovery plan for real data.
  • Exports can contain sensitive values — avoid logging serialized payloads, and protect any local dump or export with private permissions and an appropriate retention policy.
  • Never pass passwords via -a in production — visible in shell history and process listings. Use REDISCLI_AUTH environment variable instead.
  • KEYS * blocks the server on large databases — always use SCAN in production code.
  • MONITOR logs all commands including sensitive data — use cautiously, and never for extended periods on production servers.
  • FLUSHALL / FLUSHDB are irreversible — verify target database with CLIENT LIST or INFO keyspace first.
  • --rdb transfer during write operations may produce inconsistent snapshots on busy servers.

Read the full file on GitHub · 395 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +9 lines 269ff0258550
  2. 2mo ago First seen · 386 lines · 143 tokens per session scan B a6043d739631

Subscribe to this mod's changes

redis-cli is a skill published in the GitHub repository chaunsin/agent-skills (2 stars, last pushed 11d ago), licensed Apache-2.0. It adds 143 tokens to every session and 4,002 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

redis-cli compared with skills from other repositories

redis-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
redis-clichaunsin/agent-skillsSkill211d agoApache-2.0B143Claude Code, Codex
azure-cache-redisMicrosoftDocs/Agent-SkillsSkill82422d agoCC-BY-4.0A115Claude Code
azure-managed-redisMicrosoftDocs/Agent-SkillsSkill82422d agoCC-BY-4.0A86Claude Code
laravel-asyncFoysal50x/skillsSkill121mo agoMITA86Claude Code
upstash-redis-kvintellectronica/agent-skillsSkill3057mo agoCC0-1.0A74Claude Code, Codex
offline-first-expertJosephSanjaya/skillsSkill51mo agoMITA57Claude Code, Codex
elasticache-redisAlexK020908/infra-designerSkill25mo agoMITA0Claude Code