OctoSQL
$ octosql Community Low RiskOctoSQL (octosql) treats local files (CSV, JSON, Parquet) and live stores (PostgreSQL, MySQL, Redis, Kafka) as queryable SQL tables in a single query, emitting json, csv, or batch_table output via -o.
brew install octosql Runs cross-source SQL joins (e.g., local CSV joined with Postgres) in one CLI command (-o json) without writing glue code.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -o json and -o csv for clean machine output, though default live_table mode renders interactive terminal updates if -o is omitted.
- Supports
-o jsonand-o csv - Default
live_tablerequires-ooverride for agents
Read-only SQL query engine across local files and external data plugins without mutation statements.
- Read-only SQL query engine
Single Go binary via Homebrew and GitHub Releases; external data source plugins download automatically on first use unless offline.
- Go binary (
brew install octosql) with plugin system
Uniquely joins across heterogeneous sources (CSV + Redis + Postgres + Kafka), though duckdb is faster for pure local files.
- Cross-source SQL joins across files and databases
Community MPL-2.0 project (cube2222/octosql) whose upstream maintenance has largely stalled.
- Low recent commit/release activity on
cube2222/octosql
Good README tutorials and plugin configuration examples, though older v0.x vs v0.13 syntax differences appear online.
- Documented SQL and
-ooutput options in README
Security, Auth & Guardrails
None for local files; external plugins (Postgres, Redis, Kafka) read connection settings from ~/.octosql/octosql.yml or environment variables.
MPL-2.0 open-source CLI; completely free.
# OctoSQL Agent Rules - Always pass `-o json` or `-o csv` (or `batch_table`); default `live_table` uses terminal redraws unsuitable for headless logs. - Always include `LIMIT` and avoid unbounded streaming Kafka queries without bounds.
Agent-Ready Command Recipes
Safe Read-Only Queries
octosql -o json "SELECT id, name FROM ./users.csv LIMIT 20"
Runs SQL over a local CSV file and prints non-interactive JSON rows via -o json.
octosql -o csv "SELECT u.id, o.total FROM ./users.csv u JOIN ./orders.json o ON u.id = o.user_id LIMIT 20"
Joins heterogeneous local datasets using standard SQL syntax.
Strengths for Agents
- + Joins local CSV/JSON/Parquet directly with Postgres, Redis, or Kafka in one SQL query.
- +
-o jsonand-o csvbypass the interactivelive_tablerenderer cleanly.
Caveats & Pitfalls
- ! Omitting
-odefaults tolive_table, which emits ANSI cursor redraws. - ! Upstream
cube2222/octosqlis minimally maintained; preferduckdborsqfor active long-term projects.