Metadata-Version: 2.4
Name: hebbian-rua
Version: 0.1.9
Requires-Dist: pydantic>=2.11
Requires-Dist: python-dotenv>=1.2.4
Requires-Dist: anthropic>=2.8.0 ; extra == 'anthropic'
Requires-Dist: google-genai>=3.1.0 ; extra == 'gemini'
Requires-Dist: openai>=3.49.0 ; extra == 'openai'
Provides-Extra: anthropic
Provides-Extra: gemini
Provides-Extra: openai
License-File: LICENSE
Summary: Build robot-use agents with your own model and loop
Author: Hebbian Robotics
License-Expression: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://github.com/Hebbian-Robotics/rua#readme
Project-URL: Repository, https://github.com/Hebbian-Robotics/rua

<p align="center">
  <a href="https://hebbianrobotics.com/">
    <img src="https://raw.githubusercontent.com/Hebbian-Robotics/rua/main/examples/typescript/viewer/public/hebbian-logo.svg" alt="Hebbian Robotics" width="128">
  </a>
</p>

<h1 align="center">Hebbian Robot-Use Agents (RUA)</h1>

<p align="center">Build your own robot-use agents.
Prompt an LLM and let it observe and act in the real world.</p>

<p align="center">
  <a href="https://www.ycombinator.com/companies/hebbian-robotics">
    <img src="https://img.shields.io/badge/Y%20Combinator%20-S26-F26522?style=flat-square&amp;logo=ycombinator&amp;logoColor=white" alt="Y Combinator S26">
  </a>
  <a href="https://github.com/Hebbian-Robotics/rua/blob/main/LICENSE">
    <img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT license">
  </a>
  <a href="https://discord.gg/vacepQvjmg">
    <img src="https://img.shields.io/badge/Discord-join%20us-5865F2?style=flat-square&amp;logo=discord&amp;logoColor=white" alt="Join the Discord community">
  </a>
</p>

<p align="center">
  <a href="https://namespace.so/github-actions?utm_source=oss&amp;utm_campaign=rua">
    <img src="https://namespace.so/oss/badge.svg" alt="CI powered by Namespace, RUA's CI sponsor">
  </a>
</p>

## Get started

Start with the [browser viewer example](docs/getting-started.md). Set up your
arm, see its live state and camera feeds, and run your first agent.

## Build an agent

Build your own agent with the [Python](hebbian_rua/client/README.md),
[Rust](sdk/README.md), or [TypeScript](typescript-client/README.md) SDK.
RUA supplies robot tools, camera observations and execution. You bring the model
and the loop.

The [Python agent example](examples/python/agent_quickstart.py) runs this model turn.

```python
from hebbian_rua.client.llm.openai import OpenAIRobotTools

robot_tools = OpenAIRobotTools(robot)
observation = await robot_tools.observe(wait_for_recovery=True)
response = await client.responses.create(
    model=model,
    instructions=instructions,
    tools=robot_tools.tools,
    input=[{"role": "user", "content": "Wave hello"}, observation.message],
    store=True,
)
turn = await robot_tools.execute(
    response, expected_revisions=observation.revisions, include_model_output=False
)
```

The next turn sends `turn.messages` and a fresh observation with
`previous_response_id=response.id`. The
[Python examples](examples/python/README.md) cover setup and continuous loops
for OpenAI, Claude and Gemini.
Choose what reaches the model with [output formatters](docs/model-output.md).

RUA compiles action sequences automatically. The Robot Use Compiler checks and
translates the requested actions. The Robot Use Runtime prepares each step
against live robot state and admits it for execution. Advanced users can
[compile and inspect before running](docs/control-model.md#compile-before-running).
See [how execution works](docs/architecture.md#robot-use-compiler-and-runtime).

See [write your own loop](docs/write-your-own-loop.md) for more on robot tools,
observations and execution.

## In this checkout

- Rust server and media companion
- [Python](hebbian_rua/client/README.md), [TypeScript](typescript-client/README.md) and [Rust](sdk/README.md) SDKs
- [Reference agents](examples/typescript/agent/README.md) and [examples](examples/README.md)
- [CLIs](cli/README.md) for coding agents and shell workflows
- [Browser viewer](examples/typescript/viewer/README.md), manual controls and recording playback
- [LiveKit cameras](docs/cameras.md) and [recordings](docs/recording.md)
- [SO-101 setup](docs/so101-manual-control.md) and [calibration tools](docs/so101-calibration.md)

See the [documentation index](docs/README.md) for the guides, or
[architecture](docs/architecture.md) for component boundaries.

## Python package

The `hebbian-rua` wheel includes the Python SDK, model adapters, station, media
companion, [`hebbian-rua` CLI](cli/README.md), and SO-101 profiles and geometry.
The release includes the SO-101 setup CLI. Install only the model SDK extras you need.
Prebuilt wheels support Linux x86-64
(glibc 2.39+) and macOS 14+ on Apple Silicon; Windows uses
[WSL2](docs/windows-wsl.md). Add RUA to your agent project
with `uv add hebbian-rua`, or choose an extra such as `uv add 'hebbian-rua[openai]'`.
Run `uv run rua serve --help` for station options. The [hardware profile guide](docs/hardware.md)
shows how to configure a station with an existing calibration.

## Robot support

RUA supports single-arm and bimanual SO-101 setups. It also supports
[learned pose control](docs/hardware.md#learned-policies) on a single arm through
a compatible ONNX policy supplied by the user.

Use the [MuJoCo example](docs/simulation.md) when you need to test without hardware.

The API can move a real arm. Run it on a trusted network, verify clearance,
supervise initial motions and keep a physical power cutoff accessible. Support
the arm before disabling it. Follow the [hardware operating guide](docs/so101-manual-control.md).

## Research and related projects

Some reading and projects around robot-use agents:

- [Robot-Use Agents](https://web.mit.edu/phillipi/www/writing/robot-use-agents.html) — Phillip Isola's overview of the idea.
- Anthropic's [robotics evaluations](https://www.anthropic.com/research/claude-plays-robotics) and [Fable 5.2 robot-use examples](https://www.anthropic.com/claude-fable-and-mythos-5-2).
- Google's [Gemini 4 Argon for Robotics](https://developers.googleblog.com/gemini-4-argon-for-robotics) — robot control with a general-purpose model.
- NVIDIA's [Astranomy](https://research.nvidia.com/labs/srl/projects/astranomy/) — studying Astra as a robot policy.
- [PEAR](https://mit-han-lab.github.io/pear-blog/) — training reasoning models for robot use with reinforcement learning in simulation.
- [ASPIRE](https://github.com/NVlabs/ASPIRE) — agentic robot skill discovery.
- [ENPIRE](https://github.com/NVlabs/ENPIRE) — robot policy improvement through physical experiments.
- [RAX](https://robot-agent-exploration.com/) — agents learning robot programs through online exploration.
- [RoboColosseum](https://robocolosseum.ai/) — real-world robot evaluation.

## Community and contributing

- [Join the Hebbian Robotics Discord](https://discord.gg/vacepQvjmg) to ask questions,
  share what you’re building, and discuss contributions.
- [Open a GitHub issue](https://github.com/Hebbian-Robotics/rua/issues) for reproducible
  bugs and focused feature requests.
- See the [contribution guide](CONTRIBUTING.md) for how to get involved.
- Read our [code of conduct](CODE_OF_CONDUCT.md) and use the
  [security policy](SECURITY.md) to report vulnerabilities privately.

## License

RUA is released under the [MIT License](LICENSE). Robot models and dependencies
keep their own licenses, listed in [third-party notices](THIRD_PARTY_NOTICES.md).

