clickhouse-install-auth

Featured

Install @clickhouse/client and configure authentication to ClickHouse Cloud or self-hosted. Use when setting up a new ClickHouse project, configuring connection strings, or initializing the official Node.js client. Trigger: "install clickhouse", "setup clickhouse client", "clickhouse auth", "connect to clickhouse", "clickhouse credentials".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ClickHouse Install & Auth ## Overview Set up the official ClickHouse client for Node.js or Python and configure authentication to ClickHouse Cloud or a self-hosted instance. ## Prerequisites - Node.js 18+ or Python 3.8+ - A running ClickHouse instance (Cloud or self-hosted) - Connection credentials (host, port, user, password) ## Instructions ### Step 1: Install the Official Client ```bash # Node.js — official client (HTTP-based, supports streaming) npm install @clickhouse/client # Python — official client pip install clickhouse-connect ``` ### Step 2: Configure Environment Variables ```bash # .env (NEVER commit — add to .gitignore) CLICKHOUSE_HOST=https://abc123.us-east-1.aws.clickhouse.cloud:8443 CLICKHOUSE_USER=default CLICKHOUSE_PASSWORD=your-password-here # Self-hosted (HTTP interface on port 8123, native on 9000) # CLICKHOUSE_HOST=http://localhost:8123 ``` ### Step 3: Create the Client (Node.js) ```typescript import { createClient } from '@clickhouse/client'; // ClickHouse Cloud const client = createClient({ url: process.env.CLICKHOUSE_HOST, // https://<host>:8443 username: process.env.CLICKHOUSE_USER, // default password: process.env.CLICKHOUSE_PASSWORD, // ClickHouse Cloud requires TLS — the client handles it via https:// URL }); // Self-hosted (no TLS) const localClient = createClient({ url: 'http://localhost:8123', username: 'default', password: '', }); ``` ### Step 4: Verify Connection ```typescript async function ve...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category