Skip to content

Conversation

@enyst
Copy link
Collaborator

@enyst enyst commented Dec 17, 2025

This PR adds a new guide that explains how to:

  1. Run the OpenHands V1 app-server while spawning a local agent-server process from software-agent-sdk (no Docker, no remote runtime)
  2. Build a custom agent using the SDK and integrate it with the app-server running locally

The guide is grounded in source code with inline links to the relevant modules and functions.
Key references include:

  • app-server V1 routing and enablement
  • process-based sandbox that launches python -m openhands.agent_server
  • AsyncRemoteWorkspace used by the app-server to talk to the agent-server
  • agent-server health endpoints and bootstrap
  • building Agent for StartConversationRequest in the V1 service

Co-authored-by: openhands openhands@all-hands.dev

@enyst can click here to continue refining the PR

… integrating custom agents

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
@enyst enyst changed the title Add guide: OpenHands V1 app-server with local SDK agent-server + custom agent integration Dec 17, 2025
@enyst enyst changed the title Add guide: OpenHands V1 app-server custom agent integration Dec 17, 2025
@enyst enyst marked this pull request as ready for review December 17, 2025 15:05
@enyst enyst requested a review from mamoodi as a code owner December 17, 2025 15:05
@mamoodi
Copy link
Collaborator

mamoodi commented Dec 17, 2025

I really don't know how to review this. Can you add someone that you think would be better to review this please?

@enyst
Copy link
Collaborator Author

enyst commented Dec 17, 2025

@OpenHands This is a markdown doc!

  • add it to the json so we can see it on the left side when mintlify deploys
  • review and fix formatting with some styles, headings, section bold, that stuff so that it is more readable. Like other docs nearby are.
@openhands-ai
Copy link

openhands-ai bot commented Dec 17, 2025

I'm on it! enyst can track my progress at all-hands.dev

… readability\n\n- Add openhands/usage/developers/v1-local-agent-server to Web tab under Developers\n- Improve headings, styled notes, and code block labels in the guide\n\nCo-authored-by: openhands <openhands@all-hands.dev>
@openhands-ai
Copy link

openhands-ai bot commented Dec 17, 2025

Summary of changes pushed to branch docs/v1-local-agent-server-guide (updates PR #194)

What I changed

  • Navigation: Added the new page to Mintlify sidebar
    • docs.json: Added openhands/usage/developers/v1-local-agent-server under Web → Developers so it appears in the left nav when deployed.
  • Formatting: Polished the guide for readability and consistency
    • openhands/usage/developers/v1-local-agent-server.mdx:
      • Title Case headings and clear H2/H3 structure
      • Added a top Note for quick context
      • Applied inline code styling for env vars, paths, and endpoints
      • Added descriptive labels to code blocks (e.g., “Build”, “Full App (Backend + Frontend)”, “Separate Servers”, “Skill: security_expert.md”)
      • Emphasized key sections (“Example: Add a User Skill”, “Advanced: Add a New Agent Type to OpenHands”)
      • Kept authoritative GitHub links and absolute internal links

Checklist against request

  • Add it to the json so we can see it on the left side when mintlify deploys: Done
  • Review and fix formatting with styles, headings, section bold: Done (aligned with DOC_STYLE_GUIDE and nearby docs)

Conciseness

  • Only two files changed, focused strictly on the requested updates:
    • docs/docs.json
    • openhands/usage/developers/v1-local-agent-server.mdx

Commit

  • Message: docs: add developers guide to docs.json nav and polish formatting for readability
  • Includes: Co-authored-by: openhands openhands@all-hands.dev
  • Pushed to: docs/v1-local-agent-server-guide

Notes

  • Mintlify’s CI “Check Broken Links” will validate link integrity on the PR. If anything fails, I can follow up with fixes immediately.

View full conversation

@OpenHands OpenHands deleted a comment from openhands-ai bot Dec 17, 2025
…de> expressions in inline literals\n\n- Switch to backticked inline code for {agent_server_url} examples\n\nCo-authored-by: openhands <openhands@all-hands.dev>
…ration and remove new Developers group\n\n- Place openhands/usage/developers/v1-local-agent-server at end of Advanced Configuration pages\n\nCo-authored-by: openhands <openhands@all-hands.dev>
@openhands-ai
Copy link

openhands-ai bot commented Dec 17, 2025

Looks like there are a few issues preventing this PR from being merged!

  • GitHub Actions are failing:
    • Check Broken Links

If you'd like me to help, just leave a comment, like

@OpenHands please fix the failing actions on PR #194 at branch `docs/v1-local-agent-server-guide`

Feel free to include any additional details that might help me get this PR into a better state.

You can manage your notification settings

@enyst enyst marked this pull request as draft December 17, 2025 18:11
@enyst
Copy link
Collaborator Author

enyst commented Dec 17, 2025

@OpenHands read this PR. It's actually attempting to talk about 2 different things. Separate them:

  • running fully local with Web GUI
  • customizing an agent in the SDK and loading it in GUI

Split them. Look around and decide if any of them is redundant, then drop it. If both are useful, figure out where they fit, maybe the second belongs in the SDK, and fix the json for them. When you are done, push and wait for CI, see if it's green. We have the habit to break mintlify :P

@openhands-ai
Copy link

openhands-ai bot commented Dec 17, 2025

I'm on it! enyst can track my progress at all-hands.dev

…1-local-agent-server.mdx to fully local app-server + local SDK agent-server flow\n- Add new SDK guide: sdk/guides/agent-server/app-integration (how GUI composes/loads SDK Agents)\n- Wire new page into Mintlify nav (docs.json)\n\nCo-authored-by: openhands <openhands@all-hands.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants