rlx is pre-1.0 and releases often. Only the latest release of its package,
aisquare-cli, on PyPI gets security
fixes, so please check rlx --version against it before you report.
Please do not report a security problem in a public issue, pull request or discussion.
Report it privately, either way:
- GitHub: on the Security tab, choose Report a vulnerability. This is GitHub's private vulnerability reporting: only you and the maintainers see the report.
- Email: anmol@aisquare.studio.
Include the version (rlx --version), your OS, how you installed it, and
the steps to reproduce. We aim to acknowledge a report within 3 business days.
An inventory, to help you judge the surface. Each item names the command or setting it comes from.
Stored under ~/.aisquare/, or $AISQUARE_HOME if set:
context.dbholds your memory entries, the board, and every prompt you submit, verbatim. Claude Code'sUserPromptSubmithook captures them. It also holds the board's work briefs (rlx brief): their text, and for each recorded check the artifact's SHA-256 and where it was.briefs/<project>/<brief>/holds a copy of every artifact a brief check recorded (rlx brief evidence|finding --artifact, up to 16 MiB each), restricted to your user. A screenshot of a secret is kept here until the project is purged (rlx project forget <id> --purge).credentials(fromaisquare login,aisquare init --api-keyandrlx serve) and the Explainability keys (explainability-key,projects/<id>/explainability-key) are restricted to your user. rlx warns when it cannot restrict them.claude-accounts/<n>/is one per account added withrlx accounts add. Claude Code keeps that account's sign-in there on Linux and Windows (.credentials.json), and in the Keychain on macOS.rlx accounts removerenames the directory and signs nothing out, so run/logoutin the account first (rlx accounts run <n>).reports/holds whatrlx execsaved: each command's argv, working directory, the first 1 MiB of its standard output and error (more with--max-output-bytes), and with--projecta hash of each source file. Readable by your user only on Linux and macOS; kept 14 days, newest 64.rlx reports prune --keep 0 --days 0removes them, except the reports that recorded brief evidence cites: those stay until the project's briefs are purged (rlx project forget <id> --purge), and prune says how many it kept.- Everything else gets your umask's default permissions. To restrict the whole
tree to your user, run
chmod 700 "${AISQUARE_HOME:-$HOME/.aisquare}".
The Claude Code plugin, where it runs rlx through uvx, keeps whether uv
has a Python rlx is tested on in
${XDG_CACHE_HOME:-~/.cache}/aisquare/plugin-tested-python, with your umask's
default permissions. Each of its lines (eight at most) holds an answer, when it
was asked, the path of the uv asked, the Python range, the nine UV_* settings
that change the answer, and the session's whole $PATH.
The Collective Intelligence test bed, while on, keeps each prompt's uncommitted
tracked changes as git objects under refs/aisquare/wip/ in your repository. It
prunes them only while it is on. To delete them, run
git for-each-ref --format='delete %(refname)' refs/aisquare/wip/ | git update-ref --stdin.
Changed in Claude Code's settings: these commands install hooks that run on every session and capture your prompts:
rlx init --agent claude-code;- the one-line installer, unless you pass
--no-agent; rlx agents connect claude-code;- each
rlx accounts add, into that account's own settings; rlx upgrade, and rlx's Update, which rewrite them for the new version in every directory this machine connected (agents.json), throughrlx agents refresh-hooks.
rlx agents disconnect claude-code removes them from one config directory:
$CLAUDE_CONFIG_DIR or ~/.claude, or the one --config-dir names.
rlx uninstall, and rlx's Uninstall, remove them from every Claude Code
directory they find: the connected ones, $CLAUDE_CONFIG_DIR, each ~/.claude*
that holds them, and the account slots, removed ones included. With --purge,
~/.aisquare, its account slots and the plugin's plugin-tested-python are
deleted too; on macOS the slots' sign-in tokens stay in the Keychain. That file
is looked for under $XDG_CACHE_HOME, ~/.cache and each Flatpak app's cache;
one a Claude Code kept under any other XDG_CACHE_HOME is yours to delete.
Fleet agents (started in rlx or with rlx fleet spawn) start with
--permission-mode auto unless their role or the command says otherwise. In
that mode, Claude Code's classifier, not you, approves each tool call.
Sent:
- Upgrades.
rlx upgrade --check, andrlx upgradewithout--versionon an install it runs, ask PyPI for the latest release (https://pypi.org/pypi/aisquare-cli/json), with aUser-Agentthat names the installed version. When the install's uv receipt records its own index, or another setting that can hold a release back (a cutoff alone is still compared), or cannot be read, nothing is asked and--checksays it cannot tell.rlx upgradethen runsuv tool install --python <version>(the Python its uv receipt records, else the running interpreter's version), which downloads from PyPI, or from the index the install was made from. If that Python is neither on the PATH nor among uv's managed Pythons, uv first downloads a CPython build from Astral (python-build-standalone). The run setsUV_PYTHON_DOWNLOADS=automatic, so apython-downloadssetting in uv.toml (Fedora shipsmanual) does not stop that download. AUV_PYTHON_DOWNLOADSyou exported is kept, soneverormanualset there does. - The Claude Code plugin. With no
aisquarecommand installed, its hooks runuvx --from aisquare-cli==<version>, which downloads that release from PyPI on the first session. If no Python 3.11 to 3.13 is installed, uv first downloads a CPython build from Astral (python-build-standalone), unless uv'spython-downloadssetting (UV_PYTHON_DOWNLOADS) ismanualornever. - Plan usage. Wherever rlx shows or checks a Claude account's plan usage, or picks an account by headroom, it reads that usage from Anthropic with the account's own sign-in.
- Signing in. After
aisquare login, which sends this machine's hostname, rlx calls the AISquare API with your session. Choosing where a project's traces go mints an ingest key named after this machine and the project. - Explainability, when on. Your sessions go to its gateway. Through
AISquare's hosted proxy, Claude Code's requests, with its Anthropic
credential, and the responses pass through AISquare's server. Through the
default local proxy (
127.0.0.1:9090), requests go to Anthropic as usual, and only the traces go to the gateway. Note thataisquare explainability doctor --fix --target <name>turns Explainability on without asking. - The Collective Intelligence test bed, when on (
AISQUARE_CI=1, orenabledunder[experiment]). Each prompt goes to the server you configure, scrubbed at yourredactionlevel, with the repository, branch, session ids and a commit id.AISQUARE_CI_KEYgoes with it as a bearer token, in cleartext if the URL ishttp://. rlx serveon a non-loopback address. Its bearer token travels over plain HTTP.