npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@openpets/clickhouse

v1.0.3

Published

ClickHouse Cloud API plugin for managing organizations, services, backups, API keys, and members. Supports service lifecycle management, scaling, and monitoring via Prometheus metrics.

Downloads

90

Readme

ClickHouse Cloud Plugin

Manage ClickHouse Cloud services, organizations, backups, and more through the ClickHouse Cloud API.

Features

  • Organizations - List and manage organizations
  • Services - Create, update, delete, start/stop ClickHouse services
  • Backups - View and manage backup configurations
  • API Keys - Create and manage API keys
  • Members - Manage organization members and invitations
  • ClickPipes - Manage data ingestion pipelines
  • Prometheus Metrics - Access monitoring data

Quick Start

1. Get API Credentials

  1. Go to ClickHouse Cloud Console
  2. Navigate to Settings > API Keys
  3. Create a new API key
  4. Copy both the Key ID and Key Secret

2. Configure Environment

Create a .env file with your credentials:

CLICKHOUSE_API_KEY=your_key_id_here
CLICKHOUSE_API_SECRET=your_key_secret_here

3. Test Connection

opencode run "test clickhouse connection" --print-logs

Available Tools (60 total)

Organization Management

  • clickhouse-organization-get-list - List all organizations
  • clickhouse-organization-get - Get organization details
  • clickhouse-organization-update - Update organization

Service Management

  • clickhouse-instance-get-list - List all services
  • clickhouse-instance-get - Get service details
  • clickhouse-instance-create - Create a new service
  • clickhouse-instance-update - Update service configuration
  • clickhouse-instance-delete - Delete a service
  • clickhouse-instance-state-update - Start/stop a service
  • clickhouse-instance-replica-scaling-update - Scale replicas
  • clickhouse-instance-password-update - Update default password

Backup Management

  • clickhouse-backup-get-list - List backups
  • clickhouse-backup-get - Get backup details
  • clickhouse-backup-configuration-get - Get backup configuration
  • clickhouse-backup-configuration-update - Update backup configuration

API Key Management

  • clickhouse-openapi-key-get-list - List API keys
  • clickhouse-openapi-key-create - Create new API key
  • clickhouse-openapi-key-get - Get API key details
  • clickhouse-openapi-key-delete - Delete API key

Member Management

  • clickhouse-member-get-list - List organization members
  • clickhouse-member-get - Get member details
  • clickhouse-invitation-get-list - List invitations
  • clickhouse-invitation-create - Invite new member

ClickPipes (Data Ingestion)

  • clickhouse-click-pipe-get-list - List ClickPipes
  • clickhouse-click-pipe-create - Create ClickPipe
  • clickhouse-click-pipe-state-update - Start/stop ClickPipe

Monitoring

  • clickhouse-instance-prometheus-get - Get Prometheus metrics
  • clickhouse-organization-prometheus-get - Get org-level metrics

Example Queries

# List organizations
opencode run "list my clickhouse organizations"

# List all services
opencode run "list all clickhouse services in organization abc123"

# Get service details
opencode run "get details for clickhouse service xyz789"

# Start a service
opencode run "start clickhouse service xyz789 in organization abc123"

# Stop a service
opencode run "stop clickhouse service xyz789"

# View service backups
opencode run "list backups for clickhouse service xyz789"

# Get prometheus metrics
opencode run "get prometheus metrics for clickhouse service xyz789"

Authentication

ClickHouse Cloud API uses HTTP Basic Authentication:

  • Username: API Key ID (CLICKHOUSE_API_KEY)
  • Password: API Key Secret (CLICKHOUSE_API_SECRET)

Read-Only Mode

To restrict to read-only operations:

pets read-only clickhouse on

This disables all write operations (create, update, delete, start, stop).

Regenerating Tools

If the ClickHouse Cloud API is updated, regenerate tools:

cd pets/clickhouse
pets generate-openapi --verbose

Resources