The rq command-line interface

Your data stack. One CLI.

Connect sources, inspect schemas, and execute SQL from your terminal. Use rq directly, pipe results into scripts, or give Claude Code the skill and let it do the work.

No credit card·Free plan included

Install rq. Connect your agent.

Install your chosen terminal agent separately. Then install rq, sign in, and check the active workspace:

curl -fsSL rawquery.dev/install.sh | sh
rq login
rq config

Claude Code

rq claude-init

Run in your project directory. Start Claude Code there, invoke /rq, and describe the task.

Codex

rq codex-init

Run in your project directory. Start Codex there, invoke $rq, and describe the task.

Your agent uses rq with your credentials and workspace. Its subscription and usage charges are separate from rawquery.

Ask for the complete result.

With Stripe invoices synced, give either agent this task:

Count my paid invoices by creation month. Show me the query and results. Save the calculation and build a bar chart. Let me review it before publishing.

The agent can carry out that sequence through rq. The query and chart persist in the workspace; you can inspect or edit them later. This website's invoice chart was built and published that way.

The same tools work directly.

Inspect your workspace, then use the column names returned by your source. This query uses a connection named my_stripe:

rq tables
rq describe my_stripe.invoices
rq query "SELECT strftime(created, '%Y-%m') AS month,
  COUNT(*) AS invoice_count FROM my_stripe.invoices
  WHERE paid = true GROUP BY 1 ORDER BY 1"

Sources and syncs

Connect databases and business tools, configure custom APIs, and inspect sync runs.

Read the guide →

Queries and transforms

Save reusable SQL, add parameters, and schedule dependent transformations.

Read the guide →

Charts and dashboards

Create charts from saved queries, assemble pages, and manage public access.

Read the guide →
Full command reference →
Recorded workflows and browser access

For Claude in your browser, follow the connector setup. This earlier recording demonstrates operating rawquery from Claude Desktop.