# Clickhouse

> ClickHouse integration for AI agents via ClawLink — browser login, no API key setup. Connect ClickHouse through ClawLink's hosted setup to list databases, inspect schemas, and run read-only SQL queries. Use this skill when the user wants to work with ClickHouse (Storage & Databases) — connect ClickHouse, read or update ClickHouse data, or take actions in ClickHouse from chat instead of saying you cannot access it.

- Skill: `clawlink-hq/clickhouse` (Agent Skill)
- Install (CLI): `npx skillmds@latest add clawlink-hq/clickhouse`
- Raw SKILL.md: https://api.skillmd.com/api/skills/clawlink-hq/clickhouse/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: clawlink-hq (https://skillmd.com/u/clawlink-hq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/clawlink-hq/clickhouse

---


# ClickHouse

Use **ClickHouse** from your AI agent through [ClawLink](https://claw-link.dev) — browser login, no API key to paste, no config to edit. Connect ClickHouse once and the agent can read and act on it. Works in any agent that can run shell commands (Claude Code, Cursor, Codex, Cline, and more).

## Setup

Run these once — the agent can run them for you:

```bash
npx @useclawlink/cli login              # opens browser → approve (mints + stores a key)
npx @useclawlink/cli connect clickhouse   # opens browser → authorize ClickHouse
```

No API key to create or paste — `login` stores the credential at `~/.clawlink/credentials.json`.

## Using ClickHouse

```bash
npx @useclawlink/cli actions clickhouse "<what you want to do>"   # find an action
npx @useclawlink/cli describe clickhouse <action-id>             # see its inputs (before writes)
npx @useclawlink/cli run clickhouse <action-id> --input '<json>' # execute
```

Reads first; confirm with the user before any write.

## Available actions

| Action | Description |
|--------|-------------|
| `clickhouse_list_databases` | List available ClickHouse databases |
| `clickhouse_list_tables` | List tables in ClickHouse databases |
| `clickhouse_get_database_schema` | Get a full schema overview for a ClickHouse database |
| `clickhouse_get_table_schema` | Get detailed schema information for a ClickHouse table |
| `clickhouse_execute_query` | Run a read-only SQL query in ClickHouse |
| `clickhouse_get_play_interface` | Open the ClickHouse Play interface for interactive querying |

## Notes

- **No API key for ClickHouse itself** — ClawLink holds the OAuth token; the agent only holds your ClawLink credential.
- Not connected yet, or access expired? Re-run `npx @useclawlink/cli connect clickhouse`.
- The action list above is a snapshot; `npx @useclawlink/cli actions clickhouse` is always current.

## Resources

- ClawLink: https://claw-link.dev
- Docs: https://docs.claw-link.dev
- CLI: https://www.npmjs.com/package/@useclawlink/cli

---

**Powered by [ClawLink](https://claw-link.dev)** — connect 90+ apps to any AI agent.

