Esc

Coding agents

Ask Claude Code or Codex data questions. They work through the arris CLI: the agent reads your schema, writes the query, and puts it in an Arris console tab where you see the same result.

Install

Run this once in a terminal:

sh
npx arris

It installs the arris binary to ~/.arris/bin/arris and thearris skill to one folder per agent:

AgentReads the skill fromInvoke it with
Claude Code~/.claude/skills/arris/arris
Codex~/.agents/skills/arris$arris

Restart your agent after installing. Run npx arris again to upgrade; the previous copy is moved to ~/.arris/skill-backups. npx arris --project installs the skill into the current project's .claude/skills and .agents/skillsinstead. It runs on macOS and Linux.

How it works

The agent never talks to your databases directly. It runs arris commands, which print JSON. The first command starts a small Arris server on your machine (bound to127.0.0.1 and protected by a login token). The same server serves the Arris UI in your browser, and the desktop app follows it too, so whatever the agent does shows up in the Arris window you have open.

Type /arris ($arris in Codex) with an optional first word:

CommandWhat it does
/arrisOpens the project's Arris UI in the browser.
/arris init-connectionSets up a new connection.
/arris <question>Answers a data question with a query. /arris query <question> is the same.
/arris dbt, /arris sqlmeshWorks with the project's models, lineage, and commands.

You can also just ask in plain words, for example "how many orders shipped last week?"; the agent picks up the skill on its own.

Connect a database

/arris init-connection opens the connection form in your browser. You fill it in there, including the password; the agent only learns the connection's name. If you give it a connection URI, the form opens with host, port, user, database, and options filled in, and you type the password yourself. To change a saved connection, ask the agent to edit it: the same form opens with the saved values.

Keychain prompt
After you save, macOS may ask whether arris can use the Keychain. ClickAlways Allow; the command waits until you do.

Ask a question

The agent lists your connections, reads the schema, and writes the query. Every query from one agent session goes to that session's console tab for the connection, under a comment saying what it answers. Ask for a separate tab if you want one. The tab is named after the agent:

Changing data

The agent does not run INSERT, UPDATE, DELETE, DDL, or MongoDB writes unless you asked for that change:

Arris decides what counts as a read per database. A statement it cannot prove read-only is treated as a write.

Point at what you see

The agent can read what the Arris window shows: the active tab, its text, and your selection. So you can say "explain this query" or "why is the selected part slow?" without pasting anything. It can also list the open tabs and close them, for example "close every tab but this one".

Canvases

Ask for a dashboard, or to put a result on a canvas. The agent runs the query, then adds it to a new or existing board, with a chart when you asked for one. The open Arris tab switches to the board, which runs its read queries and draws the chart. It can also redraw a chart with another type or axes, remove an object, or delete a whole canvas when you ask.

dbt and SQLMesh

In a dbt or SQLMeshproject, the agent reads models, their SQL and columns, and model or column lineage. It runs tool commands as arris dbt cli -- <args> (or arris sqlmesh cli), so each run is logged and shows up in Arris. It asks before commands that write to the warehouse unless you asked for them. To query a model's table without a connection yet, it creates one from the dbt profile target or SQLMesh gateway through the same browser form.

Security

CLI reference

Every command prints JSON on stdout (--pretty indents it) and takes--project <path>, which defaults to the current directory. History, pins, and canvases are kept per project. <conn> is a connection id or name.

CommandWhat it does
connection list | new | edit | test | removeManage saved connections. new and edit open the browser form and wait for it; new --url prefills it from a URI.
schema <conn> [--schema S]Databases, schemas, tables, and columns.
query <conn> --sql SQL | --file PATHRuns a query (default --limit 1000). --open also puts it in this session's console tab, with --note as the comment above it and--new-tab for a separate tab. With --open, a write waits for Run unless --allow-write is given.
result <run-id> [--offset N]Rows of an earlier run, read from its saved result.
history, pin, unpin, pinsRecent runs and pinned queries, shared with the app.
canvas new | list | show | add | chart | remove | deleteBuild and fix canvases. add --run ID --chart KIND --x COL --y COL adds a query and a chart bound to it.
contextThe UI's active tab, its text, and the selection.
tab list, tab close <id>... | --all-except <id>The UI's open tabs, and closing them.
dbt | sqlmesh models | model | lineage | sync | cliModels, lineage (--column for column lineage), a connection from the profile or gateway, and logged tool runs.
ui [--open], servePrint or open the UI URL; run the server in the foreground to see why it fails to start.

Exit codes: 0 success, 1 an API error (printed as anerror object with a code and a message), 2 the server could not start, 3 a connection form was cancelled or timed out. dbt cli andsqlmesh cli exit with the tool's own code, or 127 when it is not installed. ARRIS_DATA_DIR moves where Arris keeps its data.