bex-keyvalue

bex-keyvalue is a skill for Claude Code, Codex from bex-co/bex. It costs 117 tokens per session (2,000 once invoked), scanned A, original, Apache-2.0.

Guidance for using bex Key Value, an in-memory store compatible with Redis. It runs Valkey 8, an open-source Redis alternative, and can hold temporary data shared by application processes.

In plain words
What is it for?
Use it to configure a cache, session store, or queue backend, set memory-removal behavior, restrict allowed IP addresses, and choose internal or external connection URLs.
Why use it?
It helps choose suitable settings for cached data, user sessions, or job queues and avoids connection and access-control mistakes. Existing Redis client libraries can connect to it.

Skill for Claude CodeCodex

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

Good fit Use it to configure a cache, session store, or queue backend, set memory-removal behavior, restrict allowed IP addresses, and choose internal or external connection URLs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bex-co/bex/bex-keyvalue
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 bex-co/bex --skill bex-keyvalue
Clone the repo
git clone --depth 1 https://github.com/bex-co/bex

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 bex-keyvalue

README.md
[![agentmods](https://agentmods.dev/badge/skills/bex-co/bex/bex-keyvalue/github.svg)](https://agentmods.dev/skills/bex-co/bex/bex-keyvalue)
Your own site
<a href="https://agentmods.dev/skills/bex-co/bex/bex-keyvalue"><img src="https://agentmods.dev/badge/skills/bex-co/bex/bex-keyvalue/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 bex-keyvalue

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/bex/bex-keyvalue"><img src="https://agentmods.dev/badge/skills/bex-co/bex/bex-keyvalue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,000 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00117 $0.02000
Opus 5.5 $0.00047 $0.00800
Sonnet 5.5 $0.00023 $0.00400
Haiku 4.5 $0.00012 $0.00200

Measured yesterday against content hash dad8fe4ec734, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bex-keyvalue scanned grade A 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. Retrieve the linked Markdown document directly with an available URL-fetching tool or HTTP client, such as `curl`. Do not substitute web-search summaries for the document.
lego/cli/internal/skills/pack/skills/bex-keyvalue/SKILL.md · 185 lines

How it starts

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

bex Key Value

bex Key Value provides low-latency, Redis-compatible in-memory storage running Valkey 8. Use it as a shared cache, session store, or job queue backend. Compatible with virtually all Redis client libraries.

When to Use

  • Adding a cache or session store to a web app
  • Wiring a job queue backend for Celery, Sidekiq, BullMQ, Asynq, or Oban
  • Choosing the right maxmemory policy (cache vs queue)
  • Configuring ipAllowList in Blueprints (required field)
  • Connecting via internal vs external URLs
  • Troubleshooting auth failures or connection refused errors

For background worker setup and queue framework patterns, see bex-background-workers. For Blueprint authoring, see bex-blueprints.

Before configuring or troubleshooting an internal Key Value connection, read references/private-networking.md.

Key Concepts

Valkey 8 (not Redis)

New instances run Valkey 8, an open-source Redis fork. It is a drop-in replacement for Redis—existing Redis client libraries work without changes. Legacy instances (created before Feb 2025) run Redis 6.

Connection URLs

Every instance has two URLs:

URL type When to use Auth required
Internal (redis://red-xxx:6379) From bex services in the same workspace and region No (by default)
External (rediss://red-xxx:6379) From outside bex (local dev, CI) Always

Always prefer the internal URL for production services—lower latency, no TLS overhead, communicates over the private network.

External connections are disabled by default. Enable them by adding IP ranges to the access control list in the Dashboard.

Internal authentication

By default, internal connections are unauthenticated. You can require auth for internal connections in the Dashboard for compliance or extra security. This changes the internal URL to include credentials:

redis://default:PASSWORD@red-xxx:6379

Read the full file on GitHub · 185 lines

Files

What ships with it

4 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. yesterday First seen · 185 lines · 117 tokens per session scan A dad8fe4ec734

Subscribe to this mod's changes

bex-keyvalue is a skill published in the GitHub repository bex-co/bex (577 stars, last pushed today), licensed Apache-2.0. It adds 117 tokens to every session and 2,000 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-29.

Related

Other skills, from other repositories

mirrord-db-branching

Helps users configure mirrord.json for database branching, enabling isolated database copies for safe development and testing. Use when the user wants to set up MySQL, MariaDB, PostgreSQL, MSSQL, MongoDB, Redis, DynamoDB, ClickHouse, Google Spanner, Amazon S3, turbopuffer, or generic branches, configure copy modes…

metalbear-co/mirrord · 95 tokens

golang-samber-hot

In-memory caching in Golang using samber/hot — eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, cache loaders, sharding, stale-while-revalidate, missing key caching, and Prometheus metrics. Apply when using or adopting samber/hot, when the codebase imports…

samber/cc-skills-golang · 122 tokens

epistemic-graph-deploy

Promote and deploy the epistemic-graph engine (the SI-native database) in the live Kubernetes graph-os unified-image deployment, and restart its clients safely. Use when shipping a new engine build, rolling out Rust-side changes, or restarting graph-os and messaging to pick up a validated artifact. The engine is baked…

Knuckles-Team/epistemic-graph · 103 tokens

go-db-cache

Use when SQL or transaction boundaries, query semantics, cache freshness or invalidation, or bounded fallback determine a request path.

Dankosik/go-service-template-rest · 28 tokens

cache-engineering

Cache value, key, freshness, fill, invalidation, degradation, and value depth reference reached from go-db-cache.

Dankosik/go-service-template-rest · 28 tokens

golang-samber-hot

In-memory caching in Golang using samber/hot — eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, cache loaders, sharding, stale-while-revalidate, missing key caching, and Prometheus metrics. Apply when using or adopting samber/hot, when the codebase imports…

yzfly/skills · 122 tokens