Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsMay 13, 2026·2 min de lecture

ros2ai — ROS 2 CLI Extension with LLMs

ros2ai is a ROS 2 CLI extension that answers ros2 questions and runs common tasks using OpenAI-compatible APIs or Ollama (local).

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Stage only · 17/100Stage only
Surface agent
Tout agent MCP/CLI
Type
CLI Tool
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
Asset
Commande CLI universelle
npx tokrepo install 5faa5805-bd60-5326-9aea-41a5d5c75bf3
Introduction

ros2ai is a ROS 2 CLI extension that answers ros2 questions and runs common tasks using OpenAI-compatible APIs or Ollama (local).

Best for: ROS 2 learners who want a command-first assistant for ros2cli

Works with: ROS 2, Docker (optional), OpenAI API or Ollama (OpenAI-compatible endpoint)

Setup time: 8-20 minutes

Key facts (verified)

  • GitHub: 319 stars · 23 forks · pushed 2026-04-13.
  • License: Apache-2.0 · owner avatar + repo URL verified via GitHub API.
  • README-verified entrypoint: pip install openai ollama validators --break-system-packages --ignore-installed.

Main

  • Use it as a ros2cli copilot: ask questions, generate commands, and run common ROS 2 tasks without switching contexts.

  • Prefer Ollama for local-first experimentation: set OPENAI_ENDPOINT to the local OpenAI-compatible endpoint and unset the API key.

  • Validate configuration with ros2 ai status -v before relying on it in tutorials or live robot sessions.

Source-backed notes

  • README calls ros2ai a ROS 2 CLI extension that works with OpenAI and Ollama via the OpenAI Python API.
  • README lists supported ROS distributions (Rolling, Jazzy, Humble, etc.) and provides an apt-based install for some distros.
  • README includes a Docker quickstart and documents env vars like OPENAI_API_KEY, OPENAI_ENDPOINT, and model selection.

FAQ

  • Do I need OpenAI?: No — README notes Ollama works via an OpenAI-compatible endpoint; the API key can be unset.
  • Is it production-safe?: Treat it as an assistant; validate commands before running on real hardware.
  • How do I pick a model?: README documents OPENAI_MODEL_NAME; choose a smaller local model first for fast iteration.
🙏

Source et remerciements

Source: https://github.com/fujitatomoya/ros2ai > License: Apache-2.0 > GitHub stars: 319 · forks: 23

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires