The Node.js SDK for the Ceph RADOS Gateway Admin Ops API. Manage users, buckets, quotas, rate limits and more — from Rook-Ceph to bare metal. Modern TypeScript support included.


Everything you need to manage Ceph RGW at scale, nothing you don't.
No runtime deps. AWS SigV4 signing uses only node:crypto. Minimal attack surface, minimal bundle.
Create users, transfer bucket ownership, revoke access keys — every Admin Ops endpoint covered across 8 modules.
Set per-user and per-bucket quotas, rate limits, and global policies — all programmatically.
Catch RGWNotFoundError, RGWAuthError, RGWConflictError — not generic HTTP status codes.
Works with Rook-Ceph, OpenShift Data Foundation, and bare-metal Ceph clusters (Pacific through Squid).
Strict types everywhere — no any. Autocomplete every method, param, and response field.
Every module follows the same pattern. Autocomplete guides you through every method and parameter.
import { RadosGWAdminClient } from 'radosgw-admin';
const rgw = new RadosGWAdminClient({
host: 'https://ceph-rgw.example.com',
accessKey: process.env.RGW_ACCESS_KEY,
secretKey: process.env.RGW_SECRET_KEY,
});
// Create a user
const user = await rgw.users.create({
uid: 'alice',
displayName: 'Alice',
});
// Set a 10 GB quota
await rgw.quota.setUserQuota({
uid: 'alice',
maxSize: '10G',
maxObjects: 50000,
enabled: true,
});
// List all buckets
const buckets = await rgw.buckets.list();
8 modules covering every RGW Admin Ops endpoint.
The Ceph RADOS Gateway (RGW) Admin Ops API is a REST interface built into Ceph that lets administrators manage users, access keys, buckets, quotas, and rate limits programmatically. It is separate from the S3-compatible data API — it is specifically for cluster administration.
Install radosgw-admin (npm install radosgw-admin), create a RadosGWAdminClient with your RGW host and admin credentials, then call rgw.users.create(), rgw.users.get(), rgw.users.suspend(), and other methods. The SDK covers the full user lifecycle.
Yes. radosgw-admin works with any Ceph RGW instance including Rook-Ceph on Kubernetes. Point the host to your RGW service endpoint (e.g. http://rook-ceph-rgw-my-store.rook-ceph.svc) and provide admin credentials from the Kubernetes secret.
Yes. OpenShift Data Foundation uses Ceph RGW internally. radosgw-admin connects to the ODF RGW endpoint the same way as any other Ceph cluster.
No. radosgw-admin has zero runtime dependencies. AWS SigV4 request signing is implemented using only the built-in node:crypto module.
Node.js 18 or later. The SDK uses native fetch and node:crypto which are stable from Node.js 18 onwards. It also works with Bun.
Install in seconds. Ship your first RGW integration in minutes.