BetterDB for Valkey
Lightweight Valkey database management for VS Code

Browse keys, edit values, and run commands without leaving your editor.

Features
Multi-Connection Management
Save and manage multiple Valkey/Redis connections. Credentials are stored securely using VS Code's SecretStorage API—never in plaintext config files.

Key Browser
Scan and filter keys by pattern. See key types and TTL at a glance. Supports wildcard patterns like user:*, session:*, or *:cache.

Full CRUD Support
View and edit Valkey data types with type-specific editors:
| Type |
View |
Edit |
Delete |
| String |
✓ |
✓ |
✓ |
| Hash |
✓ |
✓ |
✓ |
| List |
✓ |
✓ |
✓ |
| Set |
✓ |
✓ |
✓ |
| Sorted Set |
✓ |
✓ |
✓ |
| Stream |
✓ |
— |
✓ |

Server Stats
Monitor your Valkey instance health at a glance. View real-time metrics including version, memory usage, connected clients, operations per second, hit rate, and more.
- Auto-refreshes every 5 seconds
- Pauses polling when collapsed to save resources
- Shows version, role, uptime, memory, ops/sec, hit rate, total keys, and evicted keys

Integrated CLI
Execute commands directly with full output formatting. Command history persists across sessions.
- Syntax highlighting for responses
- Up/Down arrow for command history
- Ctrl+A/E/U/K/W editing shortcuts
- Tab completion (coming soon)

Secure by Default
- Passwords stored in VS Code's SecretStorage
- TLS/SSL connection support
- No telemetry or data collection
Quick Start
- Install from the VS Code Marketplace
- Open the BetterDB panel in the Activity Bar (database icon)
- Click + to add a connection
- Enter your connection details and connect
- Start browsing keys
Alternative Installation (Cursor, VSCodium, etc.)
Download the .vsix file from GitHub Releases, then:
- Cursor:
code --install-extension betterdb-for-valkey.vsix
- VSCodium:
codium --install-extension betterdb-for-valkey.vsix
- Or: Open the editor → Extensions →
... menu → "Install from VSIX..."
Connection Settings
| Setting |
Description |
Default |
| Name |
Display name for the connection |
— |
| Host |
Server hostname or IP |
localhost |
| Port |
Server port |
6379 |
| Username |
ACL username (optional) |
— |
| Password |
Authentication password (optional) |
— |
| Database |
Database index |
0 |
| TLS |
Enable TLS/SSL encryption |
false |
Commands
Access commands via the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
| Command |
Description |
BetterDB: Add Connection |
Add a new database connection |
BetterDB: Add Key |
Create a new key |
BetterDB: Filter Keys |
Filter keys by pattern |
BetterDB: Open CLI |
Open the integrated CLI |
BetterDB: Refresh |
Refresh the key list |
BetterDB: Refresh Stats |
Refresh server stats |
BetterDB: Open BetterDB Website |
Visit betterdb.com |
BetterDB: Contribute on GitHub |
Open the GitHub repository |

Additional commands are available via context menus in the sidebar (Connect, Disconnect, Edit Connection, Delete Connection, Delete Key).
Requirements
- VS Code 1.85.0 or higher
- Valkey 7.2+ or Redis 6.0+
Redis compatibility is maintained—BetterDB works with both Valkey and Redis servers.
Telemetry
This extension does not collect any telemetry or usage data.
Development
Want to contribute or run locally? See CONTRIBUTING.md for setup instructions.
Links
License
MIT — See LICENSE for details.