CHouseUI
Automation

CLI command reference

Every chouse command, subcommand and flag — generated from the CLI itself.

Source
Generated from the chouse command tree (src/content/reference/cli.json), so it always matches the code.

Every chouse command and flag, generated from the CLI itself. For installing, signing in, profiles, output formats and exit codes, read the CLI guide first.

Global flags

Every command accepts these. Most can also come from the environment or the active profile.

FlagTypeDefaultDescription
--ca-certstringPEM CA bundle to trust for the server, e.g. an internal CA (env CHOUSE_CA_CERT)
-c, --connectionstringClickHouse connection name or id (env CHOUSE_CONNECTION)
--debugtrace each request (method, path, status, time, request id) on stderr; never prints tokens
--dry-runpreview a change without making it, where supported
--insecure-skip-tls-verifydo not verify the server certificate — debugging only (env CHOUSE_INSECURE_SKIP_TLS_VERIFY)
--no-headersomit the header row in table and csv output
-o, --outputstringoutput format: auto|table|csv|json|yaml (default auto: table on a terminal, json when piped; env CHOUSE_OUTPUT)
--profilestringconfig profile (env CHOUSE_PROFILE)
-q, --quietno notes on stderr (results and errors still print)
--serverstringCHouse UI server URL (env CHOUSE_SERVER)
--timeoutint60request timeout in seconds (1-600)
--tokenstringpersonal access token ch_pat_… (env CH_HOUSE_PAT; prefer the env or auth login)
--widedo not truncate long table cells
--yesapprove changes without a prompt (required without a terminal)

Getting started

chouse auth

Log in with a personal access token.

Manage the personal access token (PAT) this CLI uses. Tokens are stored 0600 in ~/.config/chouse/credentials.yaml and never printed (only a masked form). Log in once per profile; every other command then just works.

bash
chouse auth
bash
chouse auth login --server https://chouse.corp
echo "$TOKEN" | chouse auth login --server https://chouse.corp --token-stdin
chouse auth status
chouse auth whoami

chouse auth login

Validate a token and store it for the profile.

Validate a personal access token against the server and store it (0600) for the profile, remembering --server and --ca-cert so later commands need no flags. The token is read from a hidden prompt, --token-stdin or CH_HOUSE_PAT — never pass it as an argument. Mint it once in the UI: Preferences → Personal access tokens.

bash
chouse auth login [flags]
FlagTypeDefaultDescription
--token-stdinread the token from stdin
bash
chouse auth login --server https://chouse.corp
chouse auth login --server https://chouse.internal --ca-cert corp-ca.pem --profile prod
echo "$TOKEN" | chouse auth login --server https://chouse.corp --token-stdin

chouse auth logout

Remove the stored token for the profile.

Delete the profile's stored token from this machine. The token stays valid on the server — revoke it in the UI to retire it.

bash
chouse auth logout
bash
chouse auth logout
chouse auth logout --profile prod

chouse auth status

Show the effective profile without printing secrets.

Show the resolved profile, server, connection, CA bundle and masked token — fully offline, safe to run any time to check what later commands use.

bash
chouse auth status
bash
chouse auth status
chouse auth status -o json

chouse auth whoami

Show the token's user, roles and permissions.

Ask the server who the token belongs to: user, roles, permissions and data-access rules.

bash
chouse auth whoami
bash
chouse auth whoami
chouse auth whoami -o json | jq .permissions

chouse config

Profiles and their settings.

Profiles hold non-secret defaults — server, connection, output and CA bundle — in ~/.config/chouse/config.yaml. Tokens live separately in credentials.yaml and are set with chouse auth login. --profile (or CHOUSE_PROFILE) picks a profile for one command; use-profile switches the default.

bash
chouse config
bash
chouse config view
chouse config set connection prod
chouse config use-profile staging
chouse config profiles

chouse config delete-profile

Delete a profile and its stored token.

bash
chouse config delete-profile <name>
bash
chouse config delete-profile old --yes

chouse config get

Print one profile setting (server, connection, output, ca_cert).

Print one setting stored in the profile (not the flag or environment override).

bash
chouse config get <key>
bash
chouse config get server

chouse config profiles

List profiles.

bash
chouse config profiles
bash
chouse config profiles

chouse config set

Set a profile setting (server, connection, output, ca_cert).

Store a non-secret setting in the profile (current, or --profile). connection takes a name or an id; output takes auto, table, csv, json or yaml; ca_cert is stored as an absolute path. Tokens are not settable here — use chouse auth login.

bash
chouse config set <key> <value>
bash
chouse config set server https://chouse.corp
chouse config set connection prod
chouse config set output json --profile ci

chouse config unset

Clear a profile setting.

bash
chouse config unset <key>
bash
chouse config unset connection

chouse config use-profile

Make a profile the default.

Switch the default profile. It must already exist (create one with chouse auth login --profile NAME).

bash
chouse config use-profile <name>
bash
chouse config use-profile prod

chouse config view

Show the effective settings and where each comes from.

Show the settings this invocation resolves to (flags > environment > profile), with the token masked.

bash
chouse config view
bash
chouse config view
chouse config view --profile prod -o yaml

chouse connection

ClickHouse connections you can use.

List, inspect and check the ClickHouse connections your token can use. Every command takes -c with a connection name or id; set a default with chouse config set connection NAME. Creating and deleting connections stores or removes credentials, so it stays in the UI (Admin › Connections).

bash
chouse connection

Aliases: conn, connections

bash
chouse connection list
chouse connection get prod
chouse connection can-i analytics events -c prod

chouse connection can-i

Check whether you may read a database or table.

Ask the server whether your token may read a database, or one table, on the -c connection. Run it before scripting anything that assumes access.

bash
chouse connection can-i <database> [table]
bash
chouse connection can-i analytics -c prod
chouse connection can-i analytics events -c prod -o json

chouse connection get

Show one connection (no password).

bash
chouse connection get <name|id>
bash
chouse connection get prod -o yaml

chouse connection list

List the connections you can use (no passwords).

bash
chouse connection list [flags]
FlagTypeDefaultDescription
--limitint0max rows (0: all)
--searchstringfilter by name or host
bash
chouse connection list
chouse connection list --search prod -o json

chouse connection test

Check that a connection is reachable.

Dial a saved connection and report reachability and the server version. Nothing is stored or changed. Testing ad-hoc credentials stays in the UI.

bash
chouse connection test <name|id>
bash
chouse connection test prod

chouse status

Server health, version, compatibility and migration status.

Probe the configured server: health, version and whether this CLI supports it, plus (with a token) the RBAC migration state. Run it before debugging anything else.

bash
chouse status
bash
chouse status
chouse status -o json

chouse version

Print the CLI version (server version: chouse status).

Print the CLI version, build commit and date. Always offline — it never contacts a server, so it doubles as the install check. chouse status shows the server version and whether this CLI supports it.

bash
chouse version
bash
chouse version
chouse version -o json

Query and explore

chouse query

Run SQL: read-only by default, writes with --raw.

Run SQL on the -c connection. SELECT, WITH, SHOW, DESCRIBE and EXPLAIN run directly and print as a table (or -o csv/json/yaml). Anything else needs --raw, and then a confirmation or --yes; --dry-run estimates it without running it. Give SQL as arguments, -f FILE (- for stdin) or --stdin. --out FILE writes the result to a file (format from the extension).

bash
chouse query [sql] [flags]
FlagTypeDefaultDescription
--explainstringshow the plan instead of running: plan|ast|syntax|pipeline|estimate
-f, --filestringread SQL from a file (- for stdin)
--formatstringJSONwith --raw: the server result format (JSON, JSONEachRow, CSV, TabSeparated)
--limitint1000max result rows (1-100000)
--outstringwrite the result to a file (.csv, .json, .yaml)
--rawallow any SQL (writes need confirmation or --yes)
--stdinread SQL from stdin
bash
chouse query "SELECT name, engine FROM system.tables LIMIT 5"
chouse query -f report.sql --out report.csv
chouse query "SELECT * FROM events LIMIT 1000" -o csv > events.csv
chouse query --explain plan "SELECT * FROM big WHERE day = today()"
chouse query --raw --dry-run "ALTER TABLE t DELETE WHERE id = 2"
chouse query --raw --yes "ALTER TABLE t DELETE WHERE id = 2"

chouse saved

Saved queries: list, show, run, create, delete.

Named queries shared with the UI. run executes one through the read-only path (saved writes are refused — use query --raw); delete asks first (or needs --yes).

bash
chouse saved

Aliases: saved-queries

bash
chouse saved list
chouse saved run 3f2a… -o csv > out.csv
chouse saved create --name daily-orders -f orders.sql

chouse saved create

Save a query (SQL as arguments, -f FILE or --stdin).

bash
chouse saved create [sql] [flags]
FlagTypeDefaultDescription
--descriptionstringdescription
-f, --filestringread SQL from a file (- for stdin)
--namestringname (required)
--publicshare with everyone
--stdinread SQL from stdin
bash
chouse saved create --name six-seven "SELECT 6*7 AS x"
chouse saved create --name daily -f daily.sql --public -c prod

chouse saved delete

Delete a saved query.

bash
chouse saved delete <id>
bash
chouse saved delete 3f2a… --yes

chouse saved get

Show one saved query and its SQL.

bash
chouse saved get <id>
bash
chouse saved get 3f2a… -o yaml

chouse saved list

List saved queries (scoped to -c when given).

bash
chouse saved list [flags]
FlagTypeDefaultDescription
--limitint0max rows (0: all)
bash
chouse saved list -c prod

chouse saved run

Run a saved query (read-only).

bash
chouse saved run <id> [flags]
FlagTypeDefaultDescription
--limitint1000max result rows
--outstringwrite the result to a file (.csv, .json, .yaml)
bash
chouse saved run 3f2a…
chouse saved run 3f2a… --out result.csv

chouse table

Databases, tables, schemas and samples (read-only).

Explore what your token can see on the -c connection: databases and tables, a table's columns and CREATE statement, and sample rows. All read-only; run DDL with chouse query --raw.

bash
chouse table

Aliases: tables, explorer

bash
chouse table list
chouse table list analytics
chouse table schema analytics.events
chouse table sample analytics.events --limit 20

chouse table list

List tables (optionally in one database).

bash
chouse table list [database]
bash
chouse table list -c prod
chouse table list analytics -o csv

chouse table sample

Show sample rows.

bash
chouse table sample <db.table | db table> [flags]
FlagTypeDefaultDescription
--limitint20rows (max 1000)
bash
chouse table sample analytics.events --limit 20
chouse table sample analytics.events -o csv

chouse table schema

Show a table's engine, columns and CREATE statement.

bash
chouse table schema <db.table | db table>
bash
chouse table schema analytics.events
chouse table schema analytics.events -o json

chouse upload

Check how a CSV/TSV/JSON file would import.

Send the first megabyte of a file for column inference — names, types, nullability and sample values. Nothing is stored. Importing the file stays in the UI (Explorer › Upload), or use chouse query --raw with INSERT.

bash
chouse upload
bash
chouse upload preview rows.csv
chouse upload preview rows.tsv --format TSV --header=false -o json

chouse upload preview

Infer columns from a file.

bash
chouse upload preview <file> [flags]
FlagTypeDefaultDescription
--formatstringCSVfile format: CSV, TSV or JSON
--headertruethe first row is a header
bash
chouse upload preview rows.csv

Operate

chouse alert

Alert channels, rules and deliveries.

Inspect alerting: channels (secrets masked), rules and recent deliveries. test sends a real notification, so it asks first (or needs --yes). Editing rules and channels stays in the UI.

bash
chouse alert
bash
chouse alert channels
chouse alert events --limit 10
chouse alert test 51b0… --yes

chouse alert channels

Notification channels (secrets masked).

bash
chouse alert channels
bash
chouse alert channels

chouse alert events

Recent alert deliveries, newest first.

bash
chouse alert events [flags]
FlagTypeDefaultDescription
--limitint50max events
bash
chouse alert events --limit 10

chouse alert rules

Alert rules.

bash
chouse alert rules
bash
chouse alert rules

chouse alert test

Send a test notification through a channel.

bash
chouse alert test <channelId>
bash
chouse alert test 51b0… --yes

chouse audit

Audit log: list and export.

Who did what, when and from where. You see your own entries unless you hold audit:view. export writes CSV (audit:export). Pruning stays in the UI.

bash
chouse audit
bash
chouse audit list --limit 20
chouse audit list --action mcp.tool_call --status failed
chouse audit export --limit 5000 > audit.csv

chouse audit export

Export entries as CSV (up to 10000).

Write audit entries as CSV to stdout (always CSV; -o does not apply). Same filters as list.

bash
chouse audit export [flags]
FlagTypeDefaultDescription
--actionstringonly this action, e.g. mcp.tool_call
--limitint1000max rows
--statusstringsuccess or failed
--userstringonly this user id
bash
chouse audit export --limit 1000 > audit.csv

chouse audit list

List entries, newest first.

bash
chouse audit list [flags]
FlagTypeDefaultDescription
--actionstringonly this action, e.g. mcp.tool_call
--limitint50max rows
--statusstringsuccess or failed
--userstringonly this user id
bash
chouse audit list --limit 20

chouse fleet

Every connection at once: health snapshots and history.

The latest health snapshot of every connection you can see, their history, and fixed server-side metrics (no ad-hoc SQL).

bash
chouse fleet
bash
chouse fleet list
chouse fleet history --metric summary --from 2026-10-01T00:00:00Z

chouse fleet history

Snapshot history in an RFC3339 window.

bash
chouse fleet history [flags]
FlagTypeDefaultDescription
--fromstringRFC3339 start
--limitint100max rows
--metricstringsummarymetric name
--tostringRFC3339 end
bash
chouse fleet history --metric summary --limit 50

chouse fleet list

Latest snapshot per connection.

bash
chouse fleet list
bash
chouse fleet list

chouse fleet query

One fixed server-side metric for the -c connection.

bash
chouse fleet query <metric>
bash
chouse fleet query summary -c prod

chouse live

Running queries: list, and kill runaways.

See what is running on the -c connection and kill runaways. You see your own queries unless you hold live_queries:kill_all. kill changes things, so it asks first (or needs --yes).

bash
chouse live
bash
chouse live list
chouse live kill 8f1c… --yes

chouse live kill

Kill a running query.

bash
chouse live kill <queryId>
bash
chouse live kill 8f1c2d… --yes

chouse live list

List running queries.

bash
chouse live list
bash
chouse live list -o json | jq -r '.queries[].query_id'

chouse logs

Recent queries from system.query_log.

The most recent queries in ClickHouse's query log on the -c connection, newest first: when, how long, and whether they finished or failed. Filter by ClickHouse user with --user.

bash
chouse logs [flags]
FlagTypeDefaultDescription
--limitint20max rows (1-100)
--userstringonly this ClickHouse user
bash
chouse logs
chouse logs --user etl --limit 50 -o csv

chouse metrics

ClickHouse server metrics (read-only).

Server stats, the largest tables, recent errors, part pressure, your own SELECT as a metric, and the impact of an ALTER UPDATE/DELETE — which is estimated, never run.

bash
chouse metrics
bash
chouse metrics overview
chouse metrics top-tables --limit 5
chouse metrics simulate "ALTER TABLE t DELETE WHERE day < today() - 30"

chouse metrics custom

Run your own SELECT as a metric.

bash
chouse metrics custom [flags]
FlagTypeDefaultDescription
--querystringSELECT … (required)
bash
chouse metrics custom --query "SELECT count() FROM system.query_log"

chouse metrics errors

Server errors in the last --interval minutes.

bash
chouse metrics errors
bash
chouse metrics errors --interval 60

chouse metrics overview

Server stats and resource use.

bash
chouse metrics overview
bash
chouse metrics overview

chouse metrics parts-pressure

Tables with too many parts or slow merges.

bash
chouse metrics parts-pressure
bash
chouse metrics parts-pressure

chouse metrics simulate

Estimate the rows an ALTER UPDATE/DELETE would touch (never runs it).

bash
chouse metrics simulate <ALTER …>
bash
chouse metrics simulate "ALTER TABLE t UPDATE x = 1 WHERE id = 2"

chouse metrics top-tables

Largest tables.

bash
chouse metrics top-tables
bash
chouse metrics top-tables --limit 5

chouse scheduled

Scheduled queries: jobs, runs, run now.

Scheduled query jobs and their runs. preview checks a SELECT without creating anything; run and delete ask first (or need --yes). Creating and editing jobs stays in the UI.

bash
chouse scheduled

Aliases: jobs

bash
chouse scheduled list -c prod
chouse scheduled runs 4d2e… --limit 5
chouse scheduled run 4d2e… --yes

chouse scheduled delete

Delete a job.

bash
chouse scheduled delete <id>
bash
chouse scheduled delete 4d2e… --yes

chouse scheduled get

Show one job.

bash
chouse scheduled get <id>
bash
chouse scheduled get 4d2e… -o yaml

chouse scheduled list

List jobs (scoped to -c when given).

bash
chouse scheduled list
bash
chouse scheduled list -c prod

chouse scheduled preview

Check a SELECT as a job body without creating anything.

bash
chouse scheduled preview [flags]
FlagTypeDefaultDescription
-f, --filestringread the SELECT from a file (- for stdin)
--querystringSELECT to check
bash
chouse scheduled preview -c prod --query "SELECT count() FROM events"
chouse scheduled preview -c prod -f job.sql

chouse scheduled run

Run a job now.

bash
chouse scheduled run <id>
bash
chouse scheduled run 4d2e… --yes

chouse scheduled runs

A job's runs, newest first.

bash
chouse scheduled runs <id> [flags]
FlagTypeDefaultDescription
--limitint20max runs
bash
chouse scheduled runs 4d2e… --limit 5

Data observability

chouse health

Data health: promises, incidents, dataset trust.

Data health promises and their incidents, one table's trust state, and the actions to re-run checks or acknowledge an incident (both ask first, or need --yes).

bash
chouse health
bash
chouse health list -c prod
chouse health incidents
chouse health dataset shop.orders -c prod
chouse health ack 9a1f… --yes

chouse health ack

Acknowledge an incident.

bash
chouse health ack <incidentId>
bash
chouse health ack 9a1f… --yes

chouse health dataset

One table's trust state, freshness and open incidents.

How far to trust one table right now: trust state, freshness, volume baseline, open incidents, owners and recent writers.

bash
chouse health dataset <database.table>
bash
chouse health dataset shop.orders -c prod

chouse health incidents

Data health incidents, newest first.

bash
chouse health incidents [flags]
FlagTypeDefaultDescription
--limitint50max rows
bash
chouse health incidents --limit 10

chouse health list

List promises (scoped to -c when given).

bash
chouse health list
bash
chouse health list -c prod

chouse health run

Run a promise's checks now.

bash
chouse health run <promiseId>
bash
chouse health run 2b7c… --yes

chouse health timeline

A promise's check history.

bash
chouse health timeline <promiseId> [flags]
FlagTypeDefaultDescription
--limitint50max samples
bash
chouse health timeline 2b7c… --limit 10

chouse incidents

Data and pipeline incidents with their root cause.

Incidents from Data Health promises and the observability platform (pipelines, freshness, volume, parts, replication) with severity, subject and root cause. Active only unless --all; scoped to -c when given.

bash
chouse incidents [flags]
FlagTypeDefaultDescription
--allinclude recovered incidents
--limitint50max rows
bash
chouse incidents
chouse incidents --all --limit 20 -o json

chouse lineage

Where a table's data comes from and where it goes.

Lineage around one table, built from ClickHouse metadata, query logs and scheduled jobs. --impact lists everything downstream that a change to the table would affect (what schema preflight checks before DDL).

bash
chouse lineage <database.table> [flags]
FlagTypeDefaultDescription
--depthint3hops to follow (1-8)
--directionstringbothup, down or both
--impactlist what a change to the table would affect
bash
chouse lineage shop.orders -c prod
chouse lineage shop.orders --direction up --depth 2
chouse lineage shop.orders --impact

chouse remediation

Review, approve or reject proposed fixes.

Fixes proposed for incidents (by people, Chouse AI or MCP agents) from the remediation catalog. Approving is how a fix gets to run. The server enforces who may approve: a person may approve their own low-risk fix, but high-risk fixes need two approvers other than the proposer, and a fix proposed by Chouse AI or an agent always needs someone else. approve and reject ask first (or need --yes).

bash
chouse remediation

Aliases: fixes

bash
chouse remediation list -c prod --status proposed
chouse remediation get 6e0b…
chouse remediation approve 6e0b… --comment "checked the plan" --yes

chouse remediation approve

Approve a proposed action.

Approve one proposed action — review it with get first. The server enforces the approval rules and records the decision with channel=cli.

bash
chouse remediation approve <actionId> [flags]
FlagTypeDefaultDescription
--commentstringdecision comment
bash
chouse remediation approve 6e0b… --comment "reviewed" --yes

chouse remediation get

One action: statements, approvals, executions.

bash
chouse remediation get <actionId>
bash
chouse remediation get 6e0b… -o yaml

chouse remediation list

Actions on the -c connection, newest first.

bash
chouse remediation list [flags]
FlagTypeDefaultDescription
--limitint50max rows
--statusstringcomma-separated: proposed, approved, executing, executed, verified, failed_verification, failed, rolled_back, rejected
bash
chouse remediation list -c prod --status proposed,approved

chouse remediation reject

Reject a proposed action.

Reject one proposed action — review it with get first. The server enforces the approval rules and records the decision with channel=cli.

bash
chouse remediation reject <actionId> [flags]
FlagTypeDefaultDescription
--commentstringdecision comment
bash
chouse remediation reject 6e0b… --comment "reviewed" --yes

AI and agents

chouse agents

Agent activity: sessions, queries, budgets (agents:view).

What agents connected over MCP or with personal access tokens did: sessions with their queries, bytes read and policy outcomes, and the budget policies that apply. Read-only; policies and the pause switch stay in the UI.

bash
chouse agents
bash
chouse agents summary
chouse agents sessions --days 7
chouse agents session <sessionId>
chouse agents policies

chouse agents policies

Budget policies (per token, per role, default).

Budget policies checked with EXPLAIN ESTIMATE before agent queries run: per-query and daily read limits, partition-filter thresholds and what happens on tables with an open incident. The most specific policy wins: token, then role, then the default.

bash
chouse agents policies
bash
chouse agents policies

chouse agents session

One session with every tool call (replay).

Replay one session: every tool call with its arguments, outcome, policy notices and bytes read. Arguments of other people's sessions need query:history:view:all.

bash
chouse agents session <sessionId>
bash
chouse agents session pat-123:1790000000000

chouse agents sessions

Agent sessions in the last --days (1-30).

Every MCP and personal-access-token session in the window, newest first, with its queries, bytes read and how many calls were warned or blocked. A session is consecutive calls from one token with gaps under 30 minutes.

bash
chouse agents sessions [flags]
FlagTypeDefaultDescription
--daysint1window in days (1-30)
bash
chouse agents sessions --days 7

chouse agents summary

Last 24 hours: active agents, queries, warnings, blocks, pause state.

Agent activity over the last 24 hours: active agents and sessions, queries and bytes read, results that carried a health warning, queries blocked by a budget policy, and whether agent access is paused.

bash
chouse agents summary
bash
chouse agents summary

chouse ai

Chouse AI on SQL: optimize and diagnose (LLM cost).

Ask Chouse AI to optimize or diagnose SQL. Advisory only — it never runs anything — but it calls the AI model (LLM cost), so it asks first (or needs --yes). Listing capabilities and models is free.

bash
chouse ai
bash
chouse ai optimize -f slow.sql --yes
chouse ai optimize --capability debug-query "SELECT …" --yes
chouse ai models

chouse ai capabilities

What Chouse AI can do for your token.

bash
chouse ai capabilities
bash
chouse ai capabilities

chouse ai models

Active AI models.

bash
chouse ai models
bash
chouse ai models

chouse ai optimize

Optimize or diagnose SQL (LLM cost).

bash
chouse ai optimize [sql] [flags]
FlagTypeDefaultDescription
--capabilitystringoptimize-queryoptimize-query|debug-query|diagnose-error|diagnose-parts|diagnose-schema
-f, --filestringread SQL from a file (- for stdin)
--modelstringAI model id
--stdinread SQL from stdin
bash
chouse ai optimize -f slow.sql --yes -o json

chouse doctor

Chouse AI Doctor: fleet health reports.

Read past Doctor reports for free. A new scan calls the AI model (LLM cost) and stores a report, so it asks first (or needs --yes). Advisory only — it never changes data.

bash
chouse doctor
bash
chouse doctor reports
chouse doctor get 7c1e…
chouse doctor scan --hours 24 --yes

chouse doctor get

Show one report.

bash
chouse doctor get <reportId>
bash
chouse doctor get 7c1e… -o yaml

chouse doctor reports

List reports.

bash
chouse doctor reports
bash
chouse doctor reports

chouse doctor scan

Run a scan (LLM cost).

bash
chouse doctor scan [flags]
FlagTypeDefaultDescription
--connectionsstringSliceonly these connection ids
--hoursint24look back 1-72 hours
--modelstringAI model id (default: the server's)
bash
chouse doctor scan --hours 12 --yes

chouse doctor schedule

Show the scan schedule.

bash
chouse doctor schedule
bash
chouse doctor schedule

chouse mcp

The MCP endpoint for AI agents: status, tools, client setup.

The server's MCP endpoint (ADR 0013, ADR 0017) is served at /mcp on the same address as the UI. An administrator turns it on and picks the tools in the UI (AI Governance › MCP); these commands show what your token gets there and print setup for agent hosts. They never change the server's MCP settings.

bash
chouse mcp
bash
chouse mcp status
chouse mcp tools
chouse mcp config claude-code | sh

chouse mcp config

Print agent host setup for this server's MCP endpoint.

Print ready-to-use setup that points an agent host at this profile's server. The token is read from CH_HOUSE_PAT (VS Code prompts for it), so no secret is written into a config file. Output is the raw snippet (it bypasses -o): a shell command for claude-code/codex, JSON for the others.

bash
chouse mcp config <claude-code|codex|cursor|vscode|opencode>
bash
chouse mcp config claude-code | sh
chouse mcp config cursor > .cursor/mcp.json
chouse mcp config vscode > .vscode/mcp.json

chouse mcp settings

The server's MCP settings and every tool's state (agents:view).

Show what an administrator configured in AI Governance › MCP: whether the endpoint is on, allowed origins, the tool call timeout, and every tool with its access level, required permissions and whether it is on (-o yaml for everything). Changing them stays in the UI.

bash
chouse mcp settings
bash
chouse mcp settings -o yaml

chouse mcp status

Whether MCP is on, its endpoint, and how many tools your token gets.

Report whether an administrator turned the MCP endpoint on, the URL agents connect to (this server's address plus /mcp), and — when it is on and a token is configured — how many tools that token gets.

bash
chouse mcp status
bash
chouse mcp status
chouse mcp status -o json

chouse mcp tools

The MCP tools your token gets.

List the tools an agent using your token sees: the ones an administrator turned on in AI Governance › MCP that your permissions allow.

bash
chouse mcp tools
bash
chouse mcp tools
chouse mcp tools -o yaml