Connecting to Valkey on Layerbase Cloud

Valkey is Redis-compatible for common commands and clients, with a permissive open-source license.

Best for: Caching, queues, ephemeral state, rate limits, and teams replacing Redis with a BSD-licensed engine.

1

Open your database in the dashboard

Go to /cloud, click the database you just created, and the connection panel shows the host, port, username, password, and a ready-to-paste connection string for the engine.

Use the generated password and host from the Quick Connect panel.

2

TLS is required, on by default

Use rediss:// URLs or enable TLS in your Redis-compatible client.

Redis-compatible protocol over TLS on port 6379

3

Use any standard client

Valkey works with the normal client family for that engine. Start with the dashboard snippet, then move the same URL and credentials into your app environment.

If your client has separate direct, pooled, TLS, or HTTP options, prefer the exact variant shown in Quick Connect.

bashValkey
redis-cli -u "rediss://default:password@your-host.cloud.layerbase.dev:6379" ping

Valkey notes

  • Most Redis client libraries work with Valkey without code changes.
  • If you are migrating from Redis, test module-specific commands before cutting over.