IRedis
$ iredis Community High Riskiredis is an interactive Redis and Valkey CLI featuring command signature hints, syntax highlighting, and history-backed autocompletion. For scripts it accepts positional Redis commands and --raw formatting, though standard redis-cli remains leaner for unattended agent automation.
brew install iredis Direct CLI commands target local or tunnelled Redis instances immediately, though agents should generally prefer redis-cli over iredis in automated pipelines.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Interactive REPL first; supports trailing positional commands and --raw for non-TTY output, but lacks native --json or --csv flags.
- Supports
--rawand positional commands; no native JSON output mode
Supports connection strings via -u and .iredisrc, with confirmation prompts on dangerous commands interactively, but no CLI --read-only or --dry-run flag.
- No
--read-onlyor--dry-runflag; destructive Redis commands execute immediately in non-TTY mode
Distributed via Homebrew, PyPI, and uvx across macOS, Linux, and Windows.
- Available on Homebrew and PyPI (
iredis)
Strong interactive ergonomics for humans inspecting Redis keys, though redis-cli is faster for scripted agent loops.
- Built-in Redis command documentation and signature hints
Well-known community project (laixintao/iredis) under BSD-3-Clause.
- Open-source BSD-3-Clause repository
Documented at iredis.xbin.io and repository README.
- Docs hosted at iredis.xbin.io
Security, Auth & Guardrails
Reads connection profiles from ~/.iredisrc or accepts Redis URIs (-u redis://...) and REDISCLI_AUTH / password prompts.
100% free and BSD-3-Clause open-source.
# IRedis Agent Rules - Always pass an explicit Redis command (e.g. `GET`, `INFO`, `SCAN`) so `iredis` does not enter its interactive REPL. - Use `--raw` for predictable stdout parsing. - NEVER run `FLUSHALL`, `FLUSHDB`, or unbounded `KEYS *` on production instances.
Agent-Ready Command Recipes
Safe Read-Only Queries
iredis -u redis://localhost:6379 --raw GET app:config
Runs a single GET command non-interactively and prints the unformatted reply.
iredis -u redis://localhost:6379 --raw INFO server
Retrieves server metadata non-interactively for diagnostics.
Strengths for Agents
- + Inline command syntax hints and autocomplete reduce human typos during Redis debugging.
- + Automatically switches to
--rawstyle output when piped or called with positional commands.
Caveats & Pitfalls
- ! No native
--jsonor--csvflag; relies on raw Redis protocol text replies. - ! Heavier Python startup than native C
redis-clifor high-frequency agent calls.