Onequery cli

From wordbricks/onequery · View interactive version

Onequery cli is an AI agent skill from the GitHub repository wordbricks/onequery. Use OpenClaw's exec tool to inspect orgs, sources, and run bounded read-only SQL through the OneQuery CLI directly.

How to use this skill

Skill file

Use this skill when the user wants company or customer data that should be read

through OneQuery-managed access, or when you need to resolve org and source

context before a bounded query.

Use OpenClaw's exec tool to run the onequery CLI directly.

Use these commands in this order:

  1. onequery auth whoami
  2. onequery org current or onequery org list --page-size 25
  3. onequery source list --org <org> --page-size 25
  4. onequery source show <source> --org <org>
  5. onequery query validate --org <org> --source <source> --sql '<sql>' --max-rows 100 --max-bytes 1048576 --cell-max-chars 2000 --timeout-ms 60000
  6. onequery query exec --org <org> --source <source> --sql '<sql>' --max-rows 100 --max-bytes 1048576 --cell-max-chars 2000 --timeout-ms 60000

Rules:

dialects.

dumps.

--cell-max-chars, and small page sizes.

query validate does not.

executing them.

operators, command substitution, or chained commands.

--file <path> instead of forcing brittle shell escaping.

PATH.

operator to allow the resolved onequery binary or enable skill-bin

auto-allow.

the CLI.

Recovery:

OneQuery CLI session if needed.

onequery source show <source> --org <org>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.