Movatterモバイル変換


[0]ホーム

URL:


Run OpenHands on Your Own

OpenHands GitHub Action

This guide explains how to use the OpenHands GitHub Action in your own projects.

Using the Action in the OpenHands Repository

To use the OpenHands GitHub Action in a repository, you can:

  1. Create an issue in the repository.
  2. Add thefix-me label to the issue or leave a comment on the issue starting with@openhands-agent.

The action will automatically trigger and attempt to resolve the issue.

Installing the Action in a New Repository

To install the OpenHands GitHub Action in your own repository, followtheREADME for the OpenHands Resolver.

Usage Tips

Iterative resolution

  1. Create an issue in the repository.
  2. Add thefix-me label to the issue, or leave a comment starting with@openhands-agent.
  3. Review the attempt to resolve the issue by checking the pull request.
  4. Follow up with feedback through general comments, review comments, or inline thread comments.
  5. Add thefix-me label to the pull request, or address a specific comment by starting with@openhands-agent.

Label versus Macro

  • Label (fix-me): Requests OpenHands to address theentire issue or pull request.
  • Macro (@openhands-agent): Requests OpenHands to consider only the issue/pull request description andthe specific comment.

Advanced Settings

Add custom repository settings

You can provide custom directions for OpenHands by following theREADME for the resolver.

Custom configurations

GitHub resolver will automatically check for validrepository secrets orrepository variables to customize its behavior.The customization options you can set are:

Attribute nameTypePurposeExample
LLM_MODELVariableSet the LLM to use with OpenHandsLLM_MODEL="anthropic/claude-3-5-sonnet-20241022"
OPENHANDS_MAX_ITERVariableSet max limit for agent iterationsOPENHANDS_MAX_ITER=10
OPENHANDS_MACROVariableCustomize default macro for invoking the resolverOPENHANDS_MACRO=@resolveit
OPENHANDS_BASE_CONTAINER_IMAGEVariableCustom Sandbox (learn more)OPENHANDS_BASE_CONTAINER_IMAGE="custom_image"
TARGET_BRANCHVariableMerge to branch other thanmainTARGET_BRANCH="dev"
TARGET_RUNNERVariableTarget runner to execute the agent workflow (default ubuntu-latest)TARGET_RUNNER="custom-runner"

[8]ページ先頭

©2009-2025 Movatter.jp