Valkey — Open Source Distributed Key-Value Database
Valkey is a community-driven fork of Redis (post-license change) maintained by the Linux Foundation. Fully compatible with Redis APIs and data formats. The open-source successor for Redis workloads including caching, sessions, queues, and pub/sub.
What it is
Valkey is a community-driven fork of Redis created after Redis changed its license. Maintained by the Linux Foundation, Valkey is fully compatible with Redis APIs, commands, and data formats. It serves as the open-source successor for Redis workloads including caching, session storage, message queues, and pub/sub.
Valkey targets teams that relied on Redis under its original open-source license and want to continue with a permissively licensed alternative. Existing Redis applications connect to Valkey without code changes.
How it saves time or tokens
This workflow provides installation commands for macOS, Linux, and Docker. Instead of evaluating Redis alternatives and testing compatibility, you get a drop-in replacement that uses the same protocol. Your existing redis-cli, client libraries, and configuration files work as-is.
How to use
- Install Valkey:
# macOS
brew install valkey
# Debian/Ubuntu
sudo apt install valkey-server
# Docker
docker run -d --name valkey -p 6379:6379 valkey/valkey:8
- Connect with standard Redis tools:
redis-cli -h 127.0.0.1 -p 6379
> PING
PONG
> SET mykey myvalue
OK
> GET mykey
"myvalue"
- Point your application's Redis connection string to the Valkey instance. No client library changes needed.
Example
# Python - standard redis-py works with Valkey
import redis
r = redis.Redis(host='localhost', port=6379, decode_responses=True)
# Caching
r.setex('cache:user:42', 3600, '{"name": "Alice"}')
# Pub/Sub
pubsub = r.pubsub()
pubsub.subscribe('notifications')
r.publish('notifications', 'New deployment completed')
# Sorted sets for leaderboard
r.zadd('leaderboard', {'player_a': 100, 'player_b': 85})
top = r.zrevrange('leaderboard', 0, 9, withscores=True)
print(top)
Related on TokRepo
- Database tools -- Explore database solutions for AI workflows
- Self-hosted tools -- Run your own infrastructure
Common pitfalls
- Valkey 8 diverges from Redis in some cluster management commands. Review the Valkey release notes before upgrading a Redis cluster in place.
- Persistence configuration (RDB snapshots, AOF) uses the same format as Redis. Existing RDB files can be loaded directly by Valkey.
- Some Redis-specific cloud integrations (AWS ElastiCache Redis mode) may not support Valkey directly. Check your cloud provider's compatibility.
Frequently Asked Questions
Yes. Valkey implements the Redis protocol and supports the same commands, data structures, and persistence formats. Client libraries like redis-py, Jedis, and ioredis connect without changes. Some newer Redis features may diverge over time as projects evolve independently.
Valkey was created after Redis Labs changed Redis from a BSD license to a dual-license model (RSALv2/SSPLv1) in 2024. The Linux Foundation forked the last open-source version to maintain a permissively licensed alternative.
Valkey is maintained under the Linux Foundation with contributions from companies including AWS, Google, Oracle, Ericsson, and Snap. The governance is community-driven with an open contribution process.
Yes. Copy your Redis RDB or AOF persistence files to the Valkey data directory. Start Valkey and it loads them natively. For live migration, configure Valkey as a replica of Redis, sync, then promote.
Valkey uses the BSD 3-clause license, the same permissive license Redis used before its license change. You can use Valkey in commercial applications without licensing restrictions.
Citations (3)
- Valkey GitHub— Valkey is a Linux Foundation fork of Redis
- Valkey Official Site— Community-driven with contributions from AWS, Google, Oracle
- Valkey License— BSD 3-clause license
Related on TokRepo
Discussion
Related Assets
HumHub — Open-Source Enterprise Social Network
A flexible, open-source social networking platform built on Yii2 for creating private communities, intranets, and collaboration spaces within organizations.
Dolibarr — Open-Source ERP & CRM for Business Management
A modular open-source ERP and CRM application written in PHP for managing contacts, invoices, orders, inventory, accounting, and more from a single web interface.
PrestaShop — Open-Source PHP E-Commerce Platform
A widely adopted open-source e-commerce platform written in PHP with a rich module marketplace, multi-language support, and a strong European user base.