Install
openclaw skills install warehouse-uiUniversal database IDE CLI — query PostgreSQL, MySQL, SQLite, BigQuery, MongoDB with cost projection
openclaw skills install warehouse-uiUse this skill to connect to databases, explore schemas, run queries, estimate costs, and generate SQL from natural language.
Download from GitHub Releases: https://github.com/olegnazarov23/warehouse-ui/releases
ln -s /Applications/warehouse-ui.app/Contents/MacOS/warehouse-ui /usr/local/bin/warehouse-uiBefore running queries, establish a connection:
# From a connection URL
warehouse-ui connect --url "postgres://user:pass@localhost:5432/mydb"
# With explicit parameters
warehouse-ui connect --type postgres --host localhost:5432 --database mydb --user admin --password secret
# SQLite (local file)
warehouse-ui connect --type sqlite --database /path/to/data.db
# BigQuery (service account)
warehouse-ui connect --type bigquery --database my-gcp-project --option sa_json_path=/path/to/sa.json
# MySQL
warehouse-ui connect --url "mysql://user:pass@localhost:3306/mydb"
warehouse-ui status
# List all databases
warehouse-ui schema list-databases
# List tables in a database
warehouse-ui schema list-tables --database mydb
# Describe a table (columns, types, nullability)
warehouse-ui schema describe users --database mydb
# SQL as argument
warehouse-ui query "SELECT * FROM users LIMIT 10"
# With explicit limit
warehouse-ui query --sql "SELECT count(*) FROM orders WHERE created_at > '2024-01-01'" --limit 1000
# From a SQL file
warehouse-ui query --file path/to/report.sql
Output is JSON with columns, rows, row count, duration, and (for BigQuery) bytes processed and cost.
Check query cost before executing — especially useful for BigQuery:
warehouse-ui dry-run "SELECT * FROM big_dataset.events WHERE date > '2024-01-01'"
Returns: estimated bytes, estimated cost (USD), statement type, referenced tables, and warnings.
Generate SQL from natural language using a configured AI provider (set OPENAI_API_KEY or ANTHROPIC_API_KEY):
# Generate SQL only
warehouse-ui ai "show me the top 10 customers by total revenue"
# Generate and execute
warehouse-ui ai "find all orders from last week that were cancelled" --execute
warehouse-ui connections
warehouse-ui history --limit 10
warehouse-ui history --search "SELECT"
warehouse-ui disconnect
All commands output JSON to stdout by default. Add --format table for human-readable output. Errors are JSON on stderr with exit code 1.
DATABASE_URL — Auto-connect without explicit connect step (supports postgres://, mysql://, sqlite://, mongodb://)OPENAI_API_KEY — Required for ai command with OpenAIANTHROPIC_API_KEY — Required for ai command with AnthropicDATABASE_URL to skip the connect step entirelyschema describe <table> to understand table structure before queryingdry-run on BigQuery to check costs before executing expensive queries--limit to control result size for large tablesconnections to see databases already configured in the desktop app