Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

OctoSQL

$ octosql Community Low Risk
Jakub Martin · Database & Data · MPL-2.0 · macos / linux / windows

OctoSQL (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.

FCRS-1.0 Score
79 /100
Good
Medium Confidence
Zero-Friction Install
brew install octosql
CLI vs MCP Decision CLI Preferred vs MCP

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

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

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 json and -o csv
  • Default live_table requires -o override for agents
Trust & Safety 22 / 25

Read-only SQL query engine across local files and external data plugins without mutation statements.

  • Read-only SQL query engine
Setup & Portability 14 / 15

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
Utility & Efficiency 11 / 15

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
Maintenance & Lineage 5 / 10

Community MPL-2.0 project (cube2222/octosql) whose upstream maintenance has largely stalled.

  • Low recent commit/release activity on cube2222/octosql
Docs & Verifiability 7 / 10

Good README tutorials and plugin configuration examples, though older v0.x vs v0.13 syntax differences appear online.

  • Documented SQL and -o output options in README

Security, Auth & Guardrails

Auth Modes
No Auth Config File Env API Key
Credential Storage

None for local files; external plugins (Postgres, Redis, Kafka) read connection settings from ~/.octosql/octosql.yml or environment variables.

Side Effects
Read-Only
Cost & Quotas

MPL-2.0 open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Query local JSON or CSV with JSON output
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.

Join a CSV file with a JSON Lines file
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 json and -o csv bypass the interactive live_table renderer cleanly.

Caveats & Pitfalls

  • ! Omitting -o defaults to live_table, which emits ANSI cursor redraws.
  • ! Upstream cube2222/octosql is minimally maintained; prefer duckdb or sq for active long-term projects.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI