intro.mdx 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. ---
  2. sidebar_position: 1
  3. ---
  4. # 💻 OpenHands
  5. OpenHands est un **ingénieur logiciel IA autonome** capable d'exécuter des tâches d'ingénierie complexes et de collaborer activement avec les utilisateurs sur des projets de développement logiciel.
  6. Ce projet est entièrement open-source, vous pouvez donc l'utiliser et le modifier comme bon vous semble.
  7. :::tip
  8. Explorez le code source d'OpenHands sur [GitHub](https://github.com/All-Hands-AI/OpenHands) ou rejoignez l'une de nos communautés !
  9. <a href="https://github.com/All-Hands-AI/OpenHands/graphs/contributors">
  10. <img
  11. src="https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge"
  12. alt="Contributors"
  13. />
  14. </a>
  15. <a href="https://github.com/All-Hands-AI/OpenHands/network/members">
  16. <img
  17. src="https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge"
  18. alt="Forks"
  19. />
  20. </a>
  21. <a href="https://github.com/All-Hands-AI/OpenHands/stargazers">
  22. <img
  23. src="https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge"
  24. alt="Stargazers"
  25. />
  26. </a>
  27. <a href="https://github.com/All-Hands-AI/OpenHands/issues">
  28. <img
  29. src="https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge"
  30. alt="Issues"
  31. />
  32. </a>
  33. <br></br>
  34. <a href="https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE">
  35. <img
  36. src="https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge"
  37. alt="MIT License"
  38. />
  39. </a>
  40. <br></br>
  41. <a href="https://join.slack.com/t/openhands/shared_invite/zt-2ngejmfw6-9gW4APWOC9XUp1n~SiQ6iw">
  42. <img
  43. src="https://img.shields.io/badge/Slack-Join%20Us-red?logo=slack&logoColor=white&style=for-the-badge"
  44. alt="Join our Slack community"
  45. />
  46. </a>
  47. <a href="https://discord.gg/ESHStjSjD4">
  48. <img
  49. src="https://img.shields.io/badge/Discord-Join%20Us-purple?logo=discord&logoColor=white&style=for-the-badge"
  50. alt="Join our Discord community"
  51. />
  52. </a>
  53. :::
  54. ## 🛠️ Pour commencer
  55. La manière la plus simple d'exécuter OpenHands est à l'intérieur d'un conteneur Docker. Il fonctionne mieux avec la version la plus récente de Docker, `26.0.0`.
  56. Vous devez utiliser Linux, Mac OS ou WSL sur Windows.
  57. Pour démarrer OpenHands dans un conteneur docker, exécutez les commandes suivantes dans votre terminal :
  58. :::warning
  59. Lorsque vous exécutez la commande suivante, les fichiers dans `./workspace` peuvent être modifiés ou supprimés.
  60. :::
  61. ```bash
  62. WORKSPACE_BASE=$(pwd)/workspace
  63. docker run -it \
  64. --pull=always \
  65. -e SANDBOX_USER_ID=$(id -u) \
  66. -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \
  67. -v $WORKSPACE_BASE:/opt/workspace_base \
  68. -v /var/run/docker.sock:/var/run/docker.sock \
  69. -p 3000:3000 \
  70. --add-host host.docker.internal:host-gateway \
  71. --name openhands-app-$(date +%Y%m%d%H%M%S) \
  72. ghcr.io/all-hands-ai/openhands:main
  73. ```
  74. Vous trouverez OpenHands fonctionnant à l'adresse [http://localhost:3000](http://localhost:3000) avec accès à `./workspace`. Pour qu'OpenHands fonctionne sur votre code, placez-le dans `./workspace`.
  75. OpenHands n'aura accès qu'à ce dossier de workspace. Le reste de votre système ne sera pas affecté car il s'exécute dans un bac à sable sécurisé de docker.
  76. :::tip
  77. Si vous souhaitez utiliser la version **(instable !)** la plus récente, vous pouvez utiliser `ghcr.io/all-hands-ai/openhands:main` comme image (dernière ligne).
  78. :::
  79. Pour le workflow de développement, consultez [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md).
  80. Avez-vous des problèmes ? Consultez notre [Guide de dépannage](https://docs.all-hands.dev/modules/usage/troubleshooting).
  81. :::warning
  82. OpenHands est actuellement en cours de développement, mais vous pouvez déjà exécuter la version alpha pour voir le système de bout en bout en action.
  83. :::
  84. [contributors-shield]: https://img.shields.io/github/contributors/All-Hands-AI/OpenHands?style=for-the-badge
  85. [contributors-url]: https://github.com/All-Hands-AI/OpenHands/graphs/contributors
  86. [forks-shield]: https://img.shields.io/github/forks/All-Hands-AI/OpenHands?style=for-the-badge
  87. [forks-url]: https://github.com/All-Hands-AI/OpenHands/network/members
  88. [stars-shield]: https://img.shields.io/github/stars/All-Hands-AI/OpenHands?style=for-the-badge
  89. [stars-url]: https://github.com/All-Hands-AI/OpenHands/stargazers
  90. [issues-shield]: https://img.shields.io/github/issues/All-Hands-AI/OpenHands?style=for-the-badge
  91. [issues-url]: https://github.com/All-Hands-AI/OpenHands/issues
  92. [license-shield]: https://img.shields.io/github/license/All-Hands-AI/OpenHands?style=for-the-badge
  93. [license-url]: https://github.com/All-Hands-AI/OpenHands/blob/main/LICENSE