Used OpenHands to launch the queries from the Cons...
# success-stories
r
Used OpenHands to launch the queries from the Console using REST API. Outcome: Basically, an agent that is running using API. Everything is hosted locally. Changes required to make that possible: Adjusting a couple of files e.g. fixing some bugs that crashed the runtime. Adjusting timeout to cleanup the 'unresponsive' (e.g. without WebSocket connection) containers. Please refer to
CHANGES.md
if you want to reproduce the same behavior. This is mostly undocumented, and some bugs are hidden, because I don't think someone uses
/api/conversations
locally. OpenHands devs, if you read this, could you please take a look at CHANGES.md and ask Claude/Gemini to fix a couple of issues that are explained in the doc? 🙂 Example Query:
Copy code
curl -X POST "<http://192.168.0.23:34141/api/conversations>" \
  -H "Authorization: Bearer API_KEY_EMPTY" \
  -H "Content-Type: application/json" \
  -d '{
    "initial_user_msg": "Check whether there is any incorrect information in the README.md file and show me the most critical issue if so.",
    "repository": "iSevenDays/WilmerAI"
  }'
🙌 6
w
Nice! Will happily accept PRs that address some of these problems
Or barring that, GitHub issues that describe them 😄
r
Thanks! It took me some days to figure out how the the full flow works 🙂 OpenHands: Increase sandbox close delay in sandbox_config.py to 3600 seconds (may leave it as is to 15 seconds, but please make it configurable via env) https://github.com/All-Hands-AI/OpenHands/pull/8889 mcpm.sh: has to implement fixes too 1. https://github.com/pathintegral-institute/mcpm.sh/pull/162 2. https://github.com/pathintegral-institute/mcpm.sh/pull/163 3. https://github.com/pathintegral-institute/mcpm.sh/pull/164 the fixes should improve stability regarding https://github.com/All-Hands-AI/OpenHands/issues/8859
👍 1