agenticros
ROS plugin for OpenClaw, Claude (Code,Desktop,Dispatch), Google Gemini, MCP, etc.
AgenticROS
This project was inspired by ROSClaw’s hackathon prototype but rewritten as an AI Agent agnostic ROS interface layer.
AgenticROS connects ROS2 robots to AI Agent platforms so you can control and query robots via natural language. It ships with an OpenClaw adapter (plugin) and is structured so additional adapters for other agent platforms can be added later.
Architecture
- Core (
packages/core): Platform-agnostic ROS2 transport (rosbridge, Zenoh, local, WebRTC), config schema, and shared types. No dependency on any specific AI platform. - Adapters (
packages/agenticros, and later others): Implement the contract for each AI platform. The OpenClaw adapter registers tools, commands, and HTTP routes with the OpenClaw gateway and uses the core for all ROS2 communication. packages/agenticros-claude-code— MCP server for Claude Code (terminal), Claude desktop (macOS), and Dispatch (iOS paired to Mac). See packages/agenticros-claude-code/README.md.packages/agenticros-gemini— Gemini CLI: use Google Gemini to chat with your robot from the terminal (same ROS2 tools, no MCP). See packages/agenticros-gemini/README.md.
User (messaging app) → OpenClaw Gateway → AgenticROS OpenClaw plugin → Core → ROS2 robots
Claude (Code / desktop / Dispatch) → agenticros MCP server → Core → ROS2 robots (Zenoh/rosbridge)
Gemini CLI → @agenticros/gemini (function calling) → Core → ROS2 robots
Repository layout
packages/core— Transport, types, config (Zod). Used by all adapters.packages/agenticros— OpenClaw plugin: tools, commands, config page, teleop routes.packages/agenticros-claude-code— MCP server for Claude Code + Claude desktop / Dispatch (tools only; no config UI).packages/agenticros-gemini— Gemini CLI (function calling; no MCP).ros2_ws/— ROS2 workspace:agenticros_msgs,agenticros_discovery,agenticros_agent,agenticros_follow_me.docs/— Architecture, skills, robot setup, Zenoh, teleop.scripts/— Workspace setup, gateway plugin config, run demos.docker/— Docker Compose and Dockerfiles for ROS2 + plugin images.examples/— Example projects.
Requirements
- Node.js >= 20, pnpm >= 9
- ROS2 (Jazzy or compatible) for building and running the ROS2 packages
- OpenClaw gateway for the OpenClaw plugin
Quick start
Install dependencies
pnpm installBuild ROS2 workspace (optional, if you need discovery/agent/follow_me nodes)
cd ros2_ws colcon build --packages-select agenticros_msgs agenticros_discovery agenticros_agent agenticros_follow_me source install/setup.bashType-check packages
pnpm typecheckInstall and test the OpenClaw plugin
Point the OpenClaw gateway at this repo’s
packages/agenticros(or at a built package). Configure the plugin underplugins.entries.agenticros.configin your OpenClaw config file. Run./scripts/setup_gateway_plugin.shfrom the repo root to register the plugin and print next steps. Recommended: OpenClaw 2026.3.11 or later — plugin routes work at http://127.0.0.1:18789/plugins/agenticros/ (config, teleop). For local dev without token auth, runnode scripts/setup-openclaw-local.cjsthen restart the gateway. If URLs don't load (e.g. gateway logs "missing or invalid auth" on older versions): run./scripts/use-openclaw-2026.2.26.shas fallback. See docs/openclaw-releases-and-plugin-routes.md.
With token auth: Run node scripts/agenticros-proxy.cjs 18790 and open http://127.0.0.1:18790/plugins/agenticros/. See docs/teleop.md.
See docs/ for robot setup, skills, teleop, and Docker.
Claude + AgenticROS (MCP)
The same AgenticROS MCP server (@agenticros/claude-code) can drive the robot from Claude Code (terminal) or from the Claude desktop app on macOS (including Claude Dispatch on iPhone when paired to Claude on your Mac). Both use MCP; they use different config files.
Shared setup:
- Build (from repo root):
pnpm install && pnpm build - AgenticROS config:
~/.agenticros/config.json— setzenoh.routerEndpoint,robot.namespace,robot.cameraTopic, etc. (see packages/agenticros-claude-code/README.md). - Zenoh: Run
zenohdwith the remote-api plugin (e.g. port 10000) — seescripts/zenohd-agenticros.json5or docs/zenoh-agenticros.md.
Optional: override robot.namespace per MCP launch with env AGENTICROS_ROBOT_NAMESPACE (must match the robot’s topic namespace exactly; many setups use no dashes in the UUID segment).
Claude Code CLI (terminal)
Register MCP (project scope, from repo root):
claude mcp add --transport stdio --scope project agenticros -- node packages/agenticros-claude-code/dist/index.jsOr add the server via
.mcp.jsonin the repo. To avoid multiple MCP processes, runpnpm mcp:killbefore starting a freshclaudesession after rebuilding.Run:
claude— e.g. “List ROS2 topics”, “What do you see?”, “Publish a stop to cmd_vel.”
Claude desktop app + Dispatch (iOS)
Claude Code stores MCP in ~/.claude.json or project .mcp.json. The Claude desktop app uses a separate file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Copy your agenticros MCP entry from Claude Code /
.mcp.jsonintomcpServersinclaude_desktop_config.json. - Use an absolute path to
packages/agenticros-claude-code/dist/index.js(the desktop app’s working directory is not your repo root, so relativenode packages/...paths will fail). - Fully quit the Claude desktop app (not just close the window) and reopen it. The agenticros tools should appear in the desktop app and in Dispatch when your phone is paired to Claude on the Mac.
Example mcpServers entry (adjust the path and namespace to your machine):
{
"mcpServers": {
"agenticros": {
"command": "sh",
"args": [
"-c",
"node /ABSOLUTE/PATH/TO/agenticros/packages/agenticros-claude-code/dist/index.js 2>>/tmp/agenticros-mcp.log"
],
"env": {
"AGENTICROS_ROBOT_NAMESPACE": "robotYOUR_NAMESPACE_NO_DASHES"
}
}
}
}
Full steps, permissions (mcp__agenticros), and troubleshooting are in packages/agenticros-claude-code/README.md.
Gemini CLI
Use Google Gemini to chat with your robot from the terminal (same ROS2 tools as Claude Code, no MCP).
- Build:
pnpm install && pnpm build - Config: Same as Claude Code —
~/.agenticros/config.jsonwithzenoh.routerEndpoint,robot.namespace, etc. - Run: Set
GEMINI_API_KEY(orGOOGLE_API_KEY) and run:GEMINI_API_KEY=xxx pnpm --filter @agenticros/gemini exec agenticros-gemini "What do you see?"
See packages/agenticros-gemini/README.md for details and tested command examples (camera snapshot/description, depth distance, forward Twist, and stop).
Skills
AgenticROS skills are optional packages that add tools and behaviors to the plugin. They are loaded at gateway start.
AgenticROS Skills is a curated list of skills — use it to discover skills for your robot and to submit your own via pull request.
- Install: In the OpenClaw config file, under
plugins.entries.agenticros.config, setskillPackages(e.g.["agenticros-skill-followme"]) and ensure the package is installed where the gateway runs, or setskillPathsto directories containing skill packages. Restart the gateway after changes. - Config: Each skill reads its options from
config.skills.<skillId>(e.g.config.skills.followme). - Contract and creating a skill: See docs/skills.md for the full contract, install steps, and how to build a third-party skill.
- Reference skill: agenticros-skill-followme — Follow Me (depth + optional Ollama), with tools
follow_robot,follow_me_see, andollama_status. Use its README as a template for new skills.
Running AgenticROS on NemoClaw
NVIDIA NemoClaw runs OpenClaw inside an OpenShell sandbox with policy-enforced egress and inference. AgenticROS uses the same OpenClaw plugin API, so it is compatible—but you must add and configure the plugin inside the sandbox. No code changes are required.
Add the AgenticROS plugin to the NemoClaw sandbox
Make the AgenticROS package available inside the sandbox (bake it into the sandbox image or mount this repo). Ensure the OpenClaw gateway inside the sandbox can load it (e.g.plugins.load.pathsoropenclaw plugins install -lpointing atpackages/agenticros).Configure OpenClaw in the sandbox
In the sandbox’s OpenClaw config (e.g.~/.openclaw/openclaw.json), add the AgenticROS plugin: setplugins.entries.agenticroswith the plugin path andplugins.entries.agenticros.config(transport mode, Zenoh endpoint or rosbridge URL, robot namespace, etc.). Same shape as Quick start step 4.Allow network access to the robot
The sandbox restricts egress. In NemoClaw/OpenShell network policy, allow outbound connections to your robot’s Zenoh router (e.g. WebSocket port) or rosbridge host/port so the plugin can reach the robot.Restart the gateway
Restart the OpenClaw gateway inside the sandbox so it loads both NemoClaw and AgenticROS. Then use the TUI or your channel to chat; the agent can use AgenticROS tools.
See NemoClaw for install, sandbox lifecycle, and network policies.
License
Apache-2.0
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found