Self-host OneQuery to connect databases, analytics tools, and APIs, manage credentials centrally, and run safe, auditable queries from a CLI and web UI.
One interface for your whole data stack, with built-in safeguards and a simpler workflow for your team.
| Self-Host | Cloud / Enterprise | |
|---|---|---|
| Safe querying | Read-only validation, single-statement enforcement | ✓ |
| Query cost limit | Budget caps for BigQuery, Athena, etc. | ✓ |
| Audit log | Full query history and tracking | ✓ |
| Auth / Org / RBAC | Organization-level access control | SSO, SAML |
| Connection vault | Centralized credential management | ✓ |
| Connectors | 15+ sources | ✓ |
| NL → SQL | — | ✓ |
| Insights | — | ✓ |
| SLA / Compliance | — | ✓ |
curl -fsSL https://onequery.dev/install.sh | shOr use a package manager:
brew install wordbricks/tap/onequery # Homebrew
npm install -g @onequery/cli # npm
bun add -g @onequery/cli # BunWithout a global install: npx @onequery/cli --help or bunx @onequery/cli --help.
onequery gateway start
onequery auth loginAdd a source and run a query:
onequery source connect --source postgres \
--input '{"name":"warehouse","credentials":{"host":"db.example.com","database":"app","username":"onequery","password":"secret"}}'
onequery query execute --source warehouse --sql "select 1"onequery config set server https://onequery.example.com
onequery auth login
onequery source list
onequery query execute --source <source-key> --sql "select 1"PostgreSQL · Supabase · MySQL · MongoDB · BigQuery · AWS Athena · Google Analytics · Amplitude · Mixpanel · PostHog · Sentry · GitHub · Linear · Laminar
Run onequery source connect --help for provider-specific setup.
| Document | Description |
|---|---|
| Self-Hosting Guide | Install, proxy, SMTP, storage, backup, restore, upgrade |
| Architecture | System design, monorepo structure, runtime surfaces |
| CLI Reference | CLI workspace, config, and runtime behavior |
| Env & Secrets | Managed local config flow for the web/server workspace |
The onequery Claude Code plugin ships from the Wordbricks marketplace:
/plugin marketplace add wordbricks/skills
/plugin install onequery@wordbricksFor skills-compatible agents, install the onequery-cli skill:
npx skills add https://github.com/wordbricks/skills --skill onequery-cli -yFrom npm:
openclaw plugins install @onequery/openclaw-plugin
openclaw plugins enable onequeryFrom a checkout of this repository:
openclaw plugins install -l ./packages/openclaw-plugin
openclaw plugins enable onequeryThen enable the plugin in openclaw.json:
{
plugins: {
entries: {
onequery: { enabled: true },
},
}
}For plugin-free Hermes Agent usage, install the standalone onequery-cli
skill:
hermes skills install skills-sh/wordbricks/skills/onequery-cli --yes --forceThen start Hermes with the skill preloaded:
hermes chat --skills onequery-cliOr load it inside an existing Hermes session:
Load skill onequery-cli.
Two libraries that make OneQuery more reliable:
- better-result: Forces every failure to be handled explicitly, so errors never silently slip through.
- antiox: Keeps concurrent queries, timeouts, and cancellations predictable, with no leaked tasks or hanging connections.
We welcome data source integration contributions. See CONTRIBUTING.md for structure and PR process.
Apache 2.0. See LICENSE.