{"id":46880337,"url":"https://github.com/strawpot/strawpot_openhands_cli","last_synced_at":"2026-03-10T21:04:01.042Z","repository":{"id":342152742,"uuid":"1171081210","full_name":"strawpot/strawpot_openhands_cli","owner":"strawpot","description":"StrawPot OpenHands agent CLI","archived":false,"fork":false,"pushed_at":"2026-03-05T00:27:56.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-05T06:16:42.690Z","etag":null,"topics":["agent","cli","openhands","strawpot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strawpot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-02T21:16:30.000Z","updated_at":"2026-03-05T00:27:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/strawpot/strawpot_openhands_cli","commit_stats":null,"previous_names":["strawpot/strawpot_openhands_cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/strawpot/strawpot_openhands_cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_openhands_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_openhands_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_openhands_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_openhands_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strawpot","download_url":"https://codeload.github.com/strawpot/strawpot_openhands_cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_openhands_cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30355223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","cli","openhands","strawpot"],"created_at":"2026-03-10T21:04:00.469Z","updated_at":"2026-03-10T21:04:01.032Z","avatar_url":"https://github.com/strawpot.png","language":"Go","readme":"# StrawPot OpenHands CLI\n\nA Go wrapper that translates [StrawPot](https://github.com/strawpot) protocol arguments into [OpenHands CLI](https://github.com/OpenHands/OpenHands-CLI) flags. It acts as a pure translation layer — process management, sessions, and infrastructure are handled by StrawPot core.\n\n## Prerequisites\n\n- [OpenHands CLI](https://github.com/OpenHands/OpenHands-CLI) (`pip install openhands-ai`)\n- An LLM API key for your chosen model provider\n\n## Installation\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/strawpot/strawpot_openhands_cli/main/strawpot_openhands/install.sh | sh\n```\n\nThis downloads a pre-built binary for your platform (macOS/Linux, amd64/arm64) to `/usr/local/bin`. Override the install directory with `INSTALL_DIR`:\n\n```sh\nINSTALL_DIR=~/.local/bin curl -fsSL ... | sh\n```\n\n## Usage\n\nThe wrapper exposes two subcommands:\n\n### `setup`\n\nRuns `openhands login` to authenticate.\n\n```sh\nstrawpot_openhands setup\n```\n\n### `build`\n\nTranslates StrawPot protocol flags into an OpenHands CLI command and outputs it as JSON.\n\n```sh\nstrawpot_openhands build \\\n  --agent-workspace-dir /path/to/workspace \\\n  --working-dir /path/to/project \\\n  --task \"fix the bug\" \\\n  --config '{\"model\":\"gpt-4o\"}'\n```\n\nOutput:\n\n```json\n{\n  \"cmd\": [\"openhands\", \"--headless\", \"--json\", \"-t\", \"fix the bug\", \"--override-with-envs\"],\n  \"cwd\": \"/path/to/project\",\n  \"env\": {\"LLM_MODEL\": \"gpt-4o\"}\n}\n```\n\n#### Build flags\n\n| Flag | Required | Description |\n|---|---|---|\n| `--agent-workspace-dir` | Yes | Workspace directory for instructions and symlinks |\n| `--working-dir` | No | Working directory for the command (`cwd` in output) |\n| `--task` | No | Task prompt (passed as `-t`, or combined into instructions file when prompts are present) |\n| `--config` | No | JSON config object (default: `{}`) |\n| `--role-prompt` | No | Role prompt text (written to `instructions.md`) |\n| `--memory-prompt` | No | Memory/context prompt (appended to `instructions.md`) |\n| `--skills-dir` | No | Directory with skill subdirectories (symlinked to `skills/`) |\n| `--roles-dir` | No | Directory with role subdirectories (repeatable, symlinked to `roles/`) |\n| `--agent-id` | No | Agent identifier |\n\n## Configuration\n\n### Config JSON\n\nPass via `--config`:\n\n| Key | Type | Default | Description |\n|---|---|---|---|\n| `model` | string | _(none)_ | Model override (passed via `LLM_MODEL` env var with `--override-with-envs`) |\n\n### Environment variables\n\n| Variable | Description |\n|---|---|\n| `LLM_API_KEY` | LLM API key for the configured model provider |\n\n### Notes\n\n- OpenHands headless mode always runs in auto-approve mode — there is no opt-out.\n- Since OpenHands CLI does not support a separate `--system-prompt` flag, role/memory prompts and task are combined into a single `instructions.md` file and passed via `-f`. When only a task is provided (no prompts), it is passed directly via `-t`.\n- Model selection uses the `LLM_MODEL` environment variable (returned in the `env` field of the JSON output) rather than a CLI flag.\n\n## Development\n\n```sh\ncd openhands/wrapper\ngo test -v ./...\n```\n\nReleases are built with [GoReleaser](https://goreleaser.com/) and published automatically via GitHub Actions.\n\n## License\n\nSee [LICENSE](LICENSE) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrawpot%2Fstrawpot_openhands_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrawpot%2Fstrawpot_openhands_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrawpot%2Fstrawpot_openhands_cli/lists"}