/odctl:odctlfrom odctl
Starts a local open data stack with odctl (Kafka, Flink, Spark, Trino, ClickHouse, etc.) in Docker. Use when a task needs these services running locally, in tests, or in CI.
Ships in odctl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
odctl starts open source data services as Docker Compose profiles. Install it with uv tool install odctl or pipx install odctl; it needs Docker. The Commands, Options and Workspace Settings tables below and ${CLAUDE_SKILL_DIR}/references/profiles.md are generated from odctl's CLI, registry.yml and compose files.
Read each reference page at the exact path given below, with nothing added. Claude Code fills in the first part of the path with the folder that holds this file; in a tool that does not fill it in, that first part stands for the same folder.
${CLAUDE_SKILL_DIR}/references/profiles.md: each profile's addresses from the host and from a container, its logins, services and ports, what it also starts and where its data lives. Read the section of every profile the task uses.${CLAUDE_SKILL_DIR}/references/testing.md: odctl in a project's tests and CI. Read it when a test, a CI job or a setup script starts the stack.Copy this checklist into your reply and tick each line as you go:
- [ ] List every service the task needs, one line each.
- [ ] For each, name its profile, its address from where the code runs (host or container), and whether `odctl up` waits for it (the profile's Health line) or the code must wait for it.
- [ ] Run odctl up <profiles> --dry-run, then odctl up <profiles>.
- [ ] Run each step of a guide in the order the guide gives, after the steps it needs.
odctl up <profile> [<profile> ...]. Each profile also starts the profiles it depends on, and odctl up returns once every service is running, and healthy where it has a health check. odctl recreate waits the same way; odctl restart does not wait. Each profile's Health line in ${CLAUDE_SKILL_DIR}/references/profiles.md names the services it waits for and their checks. After odctl up or odctl recreate, send the task's first request to such a service with no wait loop, and do not call its health check, which has already passed: PostgreSQL's connection, ClickHouse's SELECT 1, Feast's /health on feast-serve and feast-vector, the feast-registry port, MLflow serving's /ping, Langfuse's /api/public/health, Marquez's /healthcheck, the Spark master's UI and the telemetry readiness, which covers Grafana, are health checks.
odctl up trino, then a loop on http://127.0.0.1:8080/v1/info, which is the health check odctl up already waited for.odctl up postgres, then a test fixture that retries the connection 12 times.odctl up langfuse, then one call of /api/public/health before the first trace; or odctl up telemetry, then a wait on Grafana's /api/health.odctl up trino, then the task's first query.odctl restart telemetry, which returns before Grafana answers, retry curl -fsS --max-time 10 http://127.0.0.1:3004/api/health every 5 seconds, up to 30 times as odctl's own test does, before the next call to Grafana.odctl up returns once they run, before they answer: Kafka's brokers, Kafka Connect and Karapace, the Iceberg REST catalog, Fluss's fluss-tablet-1, Flink's SQL gateway and task managers, and Spark's workers. seaweed's health check reads the filer on port 8888, so odctl up can also return before its S3 API on port 8333 answers. Never say odctl up waited until they are healthy. Wait for what the task needs from them, and for what a service finishes later, such as a DAG parsed or a job's rows committed, with a check and a limit, not a fixed time.
sleep 10, or "odctl up catalog returns once the catalog is healthy", then a call to it with no wait.INSERT INTO ... VALUES ..., run through sql-client.sh, then a check that reads the table once. By default the SQL client returns once the job is submitted, before the job has written its rows.odctl up catalog, retry curl -fsS http://127.0.0.1:8181/v1/config every 5 seconds, up to 12 times, before the first call. After odctl up kafka-lite, retry docker exec kafka /opt/kafka/bin/kafka-topics.sh --bootstrap-server broker-1:19092 --list the same way before the first topic is created. For Grafana, curl -fsS -u user:password 'http://127.0.0.1:3004/api/datasources/proxy/uid/prometheus/api/v1/query?query=up', piped to a check that status is success and data.result is not empty. curl -f alone passes on an empty result.SET 'table.dml-sync' = 'true'; before an INSERT whose source ends, such as VALUES, so that the SQL client returns once the job has finished, then the check.odctl up <profile> --dry-run prints the profiles it would start, in order, without starting anything. odctl explain <profile> shows its services, images and dependencies. Read them rather than guess what a profile starts.
odctl up trino for a query on Iceberg tables, assuming it starts the catalog and the storage.odctl up trino --dry-run lists deps, postgres and trino, so start odctl up trino catalog.odctl ps --json and odctl list --json print what is running and every profile as JSON, which is easier to read than the tables; the keys stay the same in every 1.x release (What Stays Stable in 1.x). odctl ps needs profile names or --all.
odctl ps or odctl ps --json, which exits 1.odctl ps --all --json, or odctl ps kafka-lite --json.odctl <command> --help when unsure. odctl starts and stops services; each service's own client runs inside its container.
odctl trino, or odctl logs feast-serve, which names a service where logs takes a profile.docker exec trino trino --execute 'SHOW CATALOGS', and odctl logs feast --service feast-serve.mcp extra, odctl mcp serves list, explain, ps, info and logs to an MCP client as tools, and odctl mcp --allow-changes adds up and down (MCP Server). Use the tools when the client has them, and the commands otherwise. Two services also serve MCP of their own, about their data rather than the stack: feast-vector at http://127.0.0.1:6568/mcp, after odctl up feast, and OpenMetadata at http://127.0.0.1:8585/mcp, with the API token, after odctl up metadata.
uv tool install odctl, then odctl mcp, which exits 1 without the extra.uv tool install "odctl[mcp]", then odctl mcp.odctl down <profile> stops only the profiles named, not their dependencies, with one exception: odctl down catalog also stops postgres and storage, which share its compose file. It removes the containers it stops, so their data is lost with or without --volumes, PostgreSQL's included: the next odctl up starts again from a clean state. The named volume label-studio-data is the exception: it holds Label Studio's uploads and the key that signs its tokens, down keeps it, and only --volumes deletes it. Data that another profile holds stays while that profile runs: a Fluss table's rows are in the fluss containers, and an Iceberg table's files and metadata are in storage and postgres, whichever profile wrote them. --volumes also deletes the volumes of the containers down removes, and no volume of a profile that keeps running: odctl down postgres --volumes deletes the unnamed volumes PostgreSQL leaves unused, odctl down spark-lite --volumes deletes spark-events-data, and the shared jar volume odctl-shared-deps goes only once no other profile has a container. odctl recreate keeps the data of PostgreSQL, SeaweedFS, ClickHouse with its Keeper, Fluss's ZooKeeper, and Label Studio's label-studio-data, and loses the rest. A service that keeps its data in a database of postgres, such as Airflow, Metabase or Marquez, keeps it through odctl down, with or without --volumes, and odctl recreate of its own profile while postgres runs. Each profile's section in ${CLAUDE_SKILL_DIR}/references/profiles.md says where its data lives.
odctl down postgres keeps the databases; add --volumes only if you want the data removed."odctl down metabase, or odctl down metabase --volumes, deletes the dashboards." Metabase keeps them in the metabase database of postgres, which keeps running, and the metabase service has no volume.odctl down mlflow --volumes deletes the experiments and models." MLflow keeps them in the mlflow database of postgres and its artifacts in s3://mlflow on storage, which both keep running, and the mlflow profile has no named volume.odctl down flink-lite loses the Fluss table." The rows are in fluss-tablet-1, which keeps running.odctl down catalog keeps the tables while postgres runs." It stops postgres and storage too, so the tables are lost.odctl down kafka-lite --volumes also removes the shared jar volume, or PostgreSQL's volumes" while postgres runs. It removes only the volumes of the kafka-lite containers.odctl down feast removes the features in Valkey." valkey is a dependency of feast, so it keeps running.odctl down postgres removes the databases, with or without --volumes, and odctl down kafka-lite removes the topics. odctl recreate postgres keeps the databases."odctl down <profiles> --volumes --dry-run first, which lists the volumes --volumes would remove, then the same command without --dry-run. odctl init --force asks for confirmation, and so does odctl down --volumes with --all, or with profiles that, with their dependencies, are every profile with containers; a CI script, where no one can answer, passes --yes to those. Any other odctl down asks nothing.
odctl down --all --volumes at the end of a task that started kafka-lite.--yes skips the prompt of odctl down ch-lite --volumes" while postgres still runs; that command asks nothing.odctl down kafka-lite.127.0.0.1 only, so other machines cannot reach it. From the host, use 127.0.0.1 and the host port. From a container, join the odctl Docker network and use the container name and container port.
localhost:9092 from a Spark job in a container.broker-1:19092 from a container on the odctl network, 127.0.0.1:9092 from the host.LLM_BASE_URL, which odctl passes to Airflow, Spark, Flink, MLflow, Langfuse, Trino and Metabase. Each of them but Metabase also gets the model name in LLM_MODEL. Both keys are set in .odctl/.env. On Linux Docker Engine, set ODCTL_HOST_GATEWAY=true there too, and make the server listen on 0.0.0.0, not only on 127.0.0.1. Run odctl check llm before the first call: it calls the server from a container and lists its models (Host Model Access).
http://localhost:11434/v1 in a DAG or a Spark job, which is the container itself.os.environ["LLM_BASE_URL"] and os.environ["LLM_MODEL"] in the task, after odctl check llm lists the model.${CLAUDE_SKILL_DIR}/references/profiles.md, never from the upstream image's defaults. Most services use the user user and the password password; some have no login.
seaweedfs:8333 with admin/admin.http://seaweed:8333 from a container, with user and password, as the storage notes give.odctl init copies the compose files, registry.yml and .env into .odctl/ in the current directory, so they can be edited. No other command writes a workspace: with no .odctl/, odctl up and every other command run the files packaged with odctl and write no file. Run odctl recreate <profile> after editing a compose file or .env. odctl init --force replaces the whole workspace, edits included. It changes only the files in .odctl/, not a container, a volume or a database.
odctl restart mlflow after changing _MLOPS_PIP_DEPS in .odctl/.env; a restart keeps the container and its old settings.odctl recreate mlflow.odctl init --force deletes Airflow's run history." The history is in the airflow database of postgres.odctl up kafka-lite creates .odctl/", or "the dry run wrote .odctl/compose-store.yml". Only odctl init writes those files.-lite profiles run one node of a tool; -full profiles run a cluster of it. Start one of the pair, not both.
odctl up kafka-lite kafka-full.odctl up kafka-lite, or odctl up kafka-full when the task needs three brokers.| Command | Does |
|---|---|
odctl list | List all available profiles and their capabilities. |
odctl explain | Explain the details, services, images, and dependencies of a profile. |
odctl init | Initialize a local .odctl workspace for custom configurations. |
odctl pull | Pre-fetch Docker images without starting the containers. |
odctl up | Launch Open Data profiles. |
odctl down | Stop and remove profile containers and networks. |
odctl ps | List Docker containers managed by the Open Data Stack. |
odctl info | Show the odctl version, whether Docker is reachable and, with --json, the image tag, the workspace and odctl's own images. |
odctl logs | Fetch the logs of containers managed by specific profiles. |
odctl restart | Restart one or more specific profiles. |
odctl recreate | Replace one or more profiles' containers, applying compose file changes. |
odctl mcp | Serve odctl's commands to an AI agent as MCP tools over stdio. |
odctl check llm | Check that containers reach the model server at LLM_BASE_URL, and list its models. |
Global options go before the command, as in odctl --workspace ../shared/.odctl ps --all.
| Command | Option | Does |
|---|---|---|
| global | --verbose | Enable debug-level logging across all commands. |
| global | --workspace, -w | Path to the odctl workspace directory (default: ./.odctl). |
odctl list | --details, -d | Inspect docker-compose files to show exact services and exposed host ports. |
odctl list | --json | Print the output as JSON, for scripts and AI assistants. |
odctl explain | --json | Print the output as JSON, for scripts and AI assistants. |
odctl init | --force, -f | Wipe out the existing workspace and recreate it from scratch. |
odctl init | --yes, -y | Answer yes to the confirmation prompt, for scripts and CI. |
odctl pull | --all, -a | Pull images for ALL available profiles in the registry. |
odctl up | --dry-run | Preview the execution plan without actually starting anything. |
odctl up | --pull | Pull the images again before starting, to fetch a tag that changed in the registry. |
odctl down | --all, -a | Stop ALL running profiles. |
odctl down | --volumes, -v | Also remove the volumes of the stopped containers, named and unnamed, and the shared jar volume once no other profile uses it. |
odctl down | --dry-run | Preview the teardown plan, with the volumes --volumes would remove, without stopping anything. |
odctl down | --yes, -y | Answer yes to the confirmation prompt, for scripts and CI. |
odctl ps | --all, -a | Show all containers managed by odctl. |
odctl ps | --json | Print the output as JSON, for scripts and AI assistants. |
odctl info | --json | Print the output as JSON, for scripts and AI assistants. |
odctl logs | --service, -s | Filter to a specific compose service (Use 'odctl ps' to find names). |
odctl logs | --follow, -f | Follow log output in real-time. |
odctl logs | --tail, -n | Number of lines to show from the end of the logs. |
odctl logs | --timestamps, -t | Show timestamps. |
odctl logs | --since | Show logs since timestamp or relative (for example '42m'). |
odctl logs | --until | Show logs before a timestamp or relative. |
odctl recreate | --pull | Pull images before recreating. |
odctl mcp | --allow-changes | Also serve up and down, which start and stop profiles. |
odctl check llm | --json | Print the output as JSON, for scripts and AI assistants. |
odctl init writes these keys to .odctl/.env. Run odctl recreate <profile> after changing one.
| Key | Sets |
|---|---|
TAG | The tag of odctl's own images, set to the CLI version. A TAG in the shell overrides it. |
TZ | The time zone of the services that read it, UTC by default. |
_AIRFLOW_PIP_DEPS | Extra Python packages installed in every new Airflow container. |
_MLOPS_PIP_DEPS | Extra Python packages installed in every new mlflow and mlflow-serve container. |
AIRFLOW_OPENLINEAGE_TRANSPORT | Where Airflow sends OpenLineage events, as JSON such as {"type": "http", "url": "http://marquez-api:5000"}; empty means Airflow sends none. |
_METADATA_PIP_DEPS | Extra Python packages installed in every new openmetadata-ingestion container. |
METADATA_AUTOPILOT | true turns on OpenMetadata's AutoPilot, which creates and runs default agents for a service added in the UI; it is false by default. |
MODEL_URI | The model mlflow-serve serves, such as models:/<name>@<alias>; empty means it waits idle. |
MLFLOW_WEBHOOK_SECRET_ENCRYPTION_KEY | The Fernet key that encrypts each MLflow webhook's secret in the mlflow database; a new key makes the stored secrets unreadable. |
LLM_BASE_URL | The OpenAI-compatible base URL of a model server on the host, as the containers reach it; http://host.docker.internal:11434/v1 (Ollama) by default. |
LLM_MODEL | The model the services call by default on the model server on the host, such as the model of Trino's ai catalog; llama3.2 by default. |
ODCTL_HOST_GATEWAY | true adds host.docker.internal:host-gateway to the services that call a model server on the host; set it on Docker Engine on Linux and inside WSL2. Empty by default. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jaehyeon-kim/odctl --plugin odctlOther plugins' skills for the same job