Metadata-Version: 2.5
Name: aisquare-cli
Version: 0.10.1
Summary: rlx is a manager for your AI coding agents. Tell it the goal: it runs Claude Code and Codex on accounts with room. Then relax.
Project-URL: Homepage, https://aisquare.studio/rlx
Project-URL: Documentation, https://docs.aisquare.studio/docs/rlx/overview/
Project-URL: Repository, https://github.com/AISquare-Studio/rlx
Project-URL: Issues, https://github.com/AISquare-Studio/rlx/issues
Project-URL: Changelog, https://github.com/AISquare-Studio/rlx/blob/main/CHANGELOG.md
Author-email: AISquare <anmol@aisquare.studio>
License-Expression: MIT
License-File: LICENSE
Keywords: agent-memory,agent-orchestration,ai-agents,claude-code,coding-agents,developer-tools,multi-agent,relax,rlx,terminal,tmux,tui
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: certifi>=2024.7.4
Requires-Dist: cryptography>=42
Requires-Dist: ngrok>=1.4; sys_platform == 'darwin' or (sys_platform == 'win32' and (platform_machine != 'ARM64' or python_version >= '3.12')) or (sys_platform == 'linux' and (platform_machine == 'x86_64' or platform_machine == 'aarch64' or platform_machine == 'armv7l'))
Requires-Dist: pydantic>=2.13.4
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=14.3
Requires-Dist: segno>=1.6
Requires-Dist: starlette>=0.40
Requires-Dist: textual<9,>=8.2
Requires-Dist: tomli-w>=1.2.0
Requires-Dist: truststore>=0.10
Requires-Dist: typer<0.29,>=0.26.8
Requires-Dist: tzdata; sys_platform == 'win32'
Requires-Dist: uvicorn>=0.30
Requires-Dist: websockets>=12
Provides-Extra: code
Requires-Dist: tree-sitter-javascript>=0.25; extra == 'code'
Requires-Dist: tree-sitter-typescript>=0.23; extra == 'code'
Requires-Dist: tree-sitter>=0.25; extra == 'code'
Provides-Extra: dev
Requires-Dist: anthropic>=1; extra == 'dev'
Requires-Dist: hatchling>=1.30.1; extra == 'dev'
Requires-Dist: httpx>=0.27; extra == 'dev'
Requires-Dist: jsonschema>=4.18; extra == 'dev'
Requires-Dist: mcp<3,>=2.1; extra == 'dev'
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: pyotp>=2.9; extra == 'dev'
Requires-Dist: pytest-cov>=7.0; extra == 'dev'
Requires-Dist: pytest-split>=0.11; extra == 'dev'
Requires-Dist: pytest-xdist>=3.6; extra == 'dev'
Requires-Dist: pytest>=9.1.1; extra == 'dev'
Requires-Dist: ruff>=0.5; extra == 'dev'
Requires-Dist: textual<9,>=8.2; extra == 'dev'
Requires-Dist: tree-sitter-javascript>=0.25; extra == 'dev'
Requires-Dist: tree-sitter-typescript>=0.23; extra == 'dev'
Requires-Dist: tree-sitter>=0.25; extra == 'dev'
Requires-Dist: types-jsonschema>=4.18; extra == 'dev'
Requires-Dist: types-pyyaml>=6.0; extra == 'dev'
Provides-Extra: experiment
Provides-Extra: explainability
Requires-Dist: aisquare[explainability]>=1.1; extra == 'explainability'
Provides-Extra: gate
Requires-Dist: pyotp>=2.9; extra == 'gate'
Provides-Extra: llm
Requires-Dist: anthropic>=1; extra == 'llm'
Provides-Extra: remote
Provides-Extra: serve
Requires-Dist: mcp<3,>=2.1; extra == 'serve'
Provides-Extra: tui
Requires-Dist: textual<9,>=8.2; extra == 'tui'
Provides-Extra: voice
Requires-Dist: faster-whisper>=1.0; extra == 'voice'
Requires-Dist: segno>=1.6; extra == 'voice'
Requires-Dist: starlette>=0.37; extra == 'voice'
Requires-Dist: uvicorn>=0.30; extra == 'voice'
Requires-Dist: websockets>=12; extra == 'voice'
Description-Content-Type: text/markdown

# ![rlx](https://raw.githubusercontent.com/AISquare-Studio/rlx/main/docs/assets/rlx-logo.svg)

[![PyPI](https://img.shields.io/pypi/v/aisquare-cli.svg)](https://pypi.org/project/aisquare-cli/)
[![Python versions](https://img.shields.io/pypi/pyversions/aisquare-cli.svg)](https://pypi.org/project/aisquare-cli/)
[![CI](https://github.com/AISquare-Studio/rlx/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/AISquare-Studio/rlx/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/AISquare-Studio/rlx/blob/main/LICENSE)

**Tell the manager the goal. Then relax.**

[rlx](https://aisquare.studio/rlx) is a manager for your AI coding agents: Claude Code and Codex.

```sh
curl -fsSL https://aisquare.studio/rlx/install.sh | sh
```

- **One place for your coding agents.** Claude Code and Codex, across all your
  projects. Click an agent and you are in its *real* session, typing
  at it directly; nothing is relayed or re-rendered as a chat.
- **Talk to the manager; it does the rest.** Tell it the goal in plain words.
  It plans the work, starts the coders, testers and reviewers, and keeps going
  until the goal is met. It never writes code or pushes, and merges a PR only
  once a person approved it on GitHub and every CI check on its head is green.
- **Account usage, managed for you.** Sign in several accounts per agent. Each
  new agent starts on an account with room left; one that hits its limit moves
  to another and carries on. Plans with only a weekly limit count too.
- **Memory that carries across sessions.** Your preferences and each project's
  conventions reach every new session, so it starts oriented, not cold.
- **Everything is also a command**, for your scripts and for the agents.
- **Local-first.** Your memory, boards and fleet live in a SQLite store under
  `~/.aisquare` on your machine. rlx runs no daemon (the agents run in a tmux
  server) and needs no cloud service of its own.

## Install

On macOS, Linux and WSL2, the line above installs only what your machine is
missing: uv, a Python of its own, rlx, tmux, gh, git and Claude Code, and Node for
browser tools if you want them. It registers the git repo you run it from, wires
your agent's hooks so every session gets its memory, and offers to open rlx.
Running it again is a no-op. For Codex too, end the line with `| sh -s -- --agent both` instead of
`| sh` (`| sh -s -- --agent codex` for Codex alone). To read it first, it is
`install.sh` at the root of this repository.

That installs the latest release. To pin a release, run the `install.sh` attached to it
on [Releases](https://github.com/AISquare-Studio/rlx/releases) (recent releases carry one): `curl -fsSL https://github.com/AISquare-Studio/rlx/releases/download/vX.Y.Z/install.sh | sh`.

On Windows, run `irm https://aisquare.studio/rlx/install.ps1 | iex`
in PowerShell: it runs that installer inside your WSL2 distribution, or prints the
command that installs WSL2 if you have none.

The package is `aisquare-cli`. Its command is `rlx`; `relax`, `asq` and
`aisquare` start it too.

## Get started

`rlx` opens on Welcome, three steps to a running fleet:

1. **Project:** use the folder you are in, or choose another.
2. **Coding agent:** Claude Code or Codex. Connect it: Welcome links its
   install page if it is missing, and offers the sign-in if it is signed out.
3. **Fleet:** press *Start manager*, then *Open the manager* and answer the
   agent's one-time question about trusting the folder, then *Start the
   coders*: a manager and two coders, each a real session. **Type your goal to
   the manager in plain words.**

Click an agent to drive its session. **Press `F12`** to hand focus back to the
sidebar, where `w` returns to Welcome and `q` quits. **The agents keep
running**; open `rlx` again and it re-attaches to what it finds. To stop them
spending tokens without losing them, *⚙ Settings ▸ Fleet ▸ Pause all…* exits
each one and keeps its task, worktree and session; *Resume all…* brings each
back where it was.

## Accounts

Each account signs in through its agent's own login, and *⚙ Settings ▸
Accounts* shows them all with their usage:

```sh
rlx accounts add                  # a Claude Code account
rlx accounts add --agent codex    # a Codex account, signed in with a device code
rlx accounts order 2 1            # the order a new agent's account is picked in
rlx accounts usage                # each account's five-hour and weekly use
```

A new agent starts on the first account in that order that is under 85% used,
or on the one with the most room when none is. An agent that hits a limit moves
to the first such account and resumes its session there, unless the limit
lifts within 15 minutes. When all of its own agent's accounts are full, it can
start fresh on the other agent's, with a brief of the work.

## Over SSH

You can open `rlx` over SSH into the same Mac while the Mac's own is open: both
show the same fleet, and the sidebar says where each one runs. If your fleet
runs Claude Code, start its first agent at the Mac: Claude Code's login is in
the macOS Keychain, which an agent in a tmux server started over SSH cannot
read. Codex's login is a file, so Codex agents can start over SSH, and
`rlx accounts add --agent codex` signs in there with a device code: open the
link it prints on any device and enter the code (`--browser` uses this
machine's browser instead).
[Running more than one rlx](https://github.com/AISquare-Studio/rlx/blob/main/docs/multi-instance.md)
has the rest, including when the two run different releases.

## Memory on its own

Memory works without the fleet. It needs [uv](https://docs.astral.sh/uv/) and
[Claude Code](https://claude.com/claude-code); no installer, no tmux. Run `init`
inside your repo:

```sh
UV_PYTHON_DOWNLOADS=automatic uv tool install --python 3.13 aisquare-cli
cd path/to/your/repo
rlx init --local --agent claude-code
rlx remember --user "prefer pytest over unittest"
```

`init` registers the repo you run it in and wires Claude Code's hooks, so every
new session starts with what you told it to remember. `rlx context list` shows
what is in scope. To install from inside Codex instead, see
[the Codex plugin](https://github.com/AISquare-Studio/rlx/blob/main/plugins/codex/README.md).

## Everything is also a command

Everything rlx shows you is also a plain command, and every one takes `--json`;
`rlx --help` lists them:

```sh
rlx fleet ls                         # this project's agents and their live state
rlx fleet top                        # what each live agent consumes: CPU, memory, tokens
rlx fleet relabel coder-1 login fix  # give an agent a name you chose: login-fix
rlx fleet pause --all                # every project's agents stop, kept for resume
rlx fleet resume --all               # ...and come back where they were
rlx fleet attach                     # the same session in raw tmux, full fidelity
rlx instances                        # every rlx open on this home: at the Mac, over SSH
rlx outcomes                         # what the agents got done this week, and who steered
rlx doctor                           # is everything wired? (and how to fix anything)
```

## Requirements

- macOS, Linux, or Windows through WSL2.
- Python 3.11+ if you install by hand (the one-liner brings its own 3.13).
- [Claude Code](https://claude.com/claude-code) or
  [Codex](https://learn.chatgpt.com/docs/codex/cli) (0.164.0 or newer, tested
  on 0.164.0, 0.166.0 and 0.167.0) for the agents, either or both, and
  tmux 3.2+ for the fleet.
- Node 22.12+, optional, for browser tools like the Chrome DevTools MCP; the one-liner
  offers both, Node and the MCP registered with Claude Code (`--with chrome-devtools`
  installs them without asking). rlx itself never runs Node.
- The symbol index (`rlx code find|refs|similar`) needs nothing extra for Python.

## Documentation

| Page | What is in it |
| --- | --- |
| [Usage sharing](https://github.com/AISquare-Studio/rlx/blob/main/docs/usage-telemetry.md) | Opt-in, anonymous daily counts of how rlx is used: what is collected, what never is, how to see exactly what would be sent, and how to turn it off |

## Community

Questions and ideas go to
[Discussions](https://github.com/AISquare-Studio/rlx/discussions), bugs
to [issues](https://github.com/AISquare-Studio/rlx/issues). Pull
requests are welcome:
[CONTRIBUTING](https://github.com/AISquare-Studio/rlx/blob/main/CONTRIBUTING.md)
has the setup and the one command CI runs. Releases are in the
[changelog](https://github.com/AISquare-Studio/rlx/blob/main/CHANGELOG.md);
to report a vulnerability, see
[SECURITY](https://github.com/AISquare-Studio/rlx/blob/main/SECURITY.md).

## License

[MIT](https://github.com/AISquare-Studio/rlx/blob/main/LICENSE)
