Metadata-Version: 2.4
Name: hebbian-rua
Version: 0.1.0
Summary: Build robot-use agents with your own model and loop
License-Expression: MIT
License-File: LICENSE
Requires-Dist: httpx2>=2.16.0
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'
Requires-Python: >=3.12
Project-URL: Repository, https://github.com/Hebbian-Robotics/rua
Project-URL: Documentation, https://github.com/Hebbian-Robotics/rua#readme
Provides-Extra: anthropic
Provides-Extra: gemini
Provides-Extra: openai
Description-Content-Type: text/markdown

# Hebbian Robot-Use Agents (RUA)

Build your own robot-use agents. Give an LLM a goal, camera views
and robot tools, and let it observe, act and adjust. We're open sourcing the
parts of our stack that make that loop easy to build. More coming soon.

## Included

- Rust server
- Python SDK and a small agent loop
- [LiveKit camera preview](https://hebbian-robotics.github.io/livekit-cameras/)

Start a project with [uv](https://docs.astral.sh/uv/):

```sh
uv init my-robot-agent
cd my-robot-agent
uv add "hebbian-rua[openai,anthropic,gemini]"
uv run rua serve --profile ./robot.toml
```

Already have a uv project? Start with `uv add`. Choose just the extras you need.

See [getting started](docs/getting-started.md) and the [Python examples](examples/python/README.md) to try it.

See [connecting a simulator](docs/simulators.md) to try in simulation.

## Build an agent

RUA supplies robot tools, camera observations and execution. You bring the model
and the loop.

Here's an example agent loop. The [complete example](examples/python/agent_quickstart.py)
includes the connection, lease and arm setup, plus loops for Claude and Gemini:

```python
from hebbian_rua.openai import OpenAIRobotTools

robot_tools = OpenAIRobotTools(robot)
messages = [{"role": "user", "content": "Wave hello"}]
while True:
    messages.append(await robot_tools.observe())
    response = await client.responses.create(
        model=model,
        instructions=instructions,
        tools=robot_tools.tools,
        input=messages,
    )
    turn = await robot_tools.execute(response)
    messages.extend(turn.messages)
    if turn.should_stop or not turn.results:
        break
```

The model chooses tools, RUA executes them, and fresh camera frames and robot
state come back for the next turn. You can change the prompt, model and loop.
Use `AnthropicRobotTools` from `hebbian_rua.anthropic` or `GeminiRobotTools` from
`hebbian_rua.gemini` with the corresponding SDK. See the
[Python examples](examples/python/README.md).

## Coming soon

- TypeScript and Rust SDKs
- CLIs
- Browser viewer and manual controls
- More agents
- More examples and integrations
- Recording playback and analysis
- Policy and training tools

## 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.

## Contributing and license

See [contributing](CONTRIBUTING.md). Code is [MIT](LICENSE); models and dependencies
keep their own licenses. See [third-party notices](THIRD_PARTY_NOTICES.md).
