Most integrations in the agentic space connect an agent to something a developer uses. Tickets, repositories, logs, dashboards. Useful tools, but they carry an assumption: the person in the chat is an engineer.
The OpenHands plugin breaks that pattern. Open Assistant is the assistant you talk to. OpenHands is a coding agent that works inside a repository. The plugin connects the two, so a conversation about content can end with a pull request in production.
Two things worth being pleased about
You can build plugins for Open Assistant. A plugin is one JSON file. It declares a base URL, an auth header, config fields and a list of endpoints. There is no MCP server to deploy and no middleware to maintain. Paste the file into the plugin settings and the assistant can call that API.
You can connect it to any of your own secure applications. The plugin points at a URL you control. For this specific setup, we used an OpenHands agent server behind Cloudflare Access, authenticated with a service token. Nothing is exposed publicly, and nothing is relayed through a third party. The credentials stay in your instance configuration.
Both of those matter more than the specific integration. OpenHands is simply the first thing we pointed it at.
Why the OpenHands plugin is different
Every other tool in the assistant's kit assumes the human in the chat is technical. The OpenHands plugin hands the intent of a non-technical conversation to something that writes code, then returns the result for review.
It closes a gap that normally needs a person in the middle:
→ the brief is written in the conversation → the assistant hands it to the coding agent → the agent works on its own branch in the repository → a pull request is opened, reviewed and merged
The assistant never touches the repository. The coding agent does, under its own credentials. The assistant starts it, follows it, answers its questions and reads the result.
What it can do for you
This full walkthrough elaborates on how we update the landing page of Open Assistant itself.
A campaign was approved, the page underneath still said the old thing, and the fix would normally wait in a backlog. Instead: one brief in, one pull request out.
The blog covers the mechanics, and the research layer that produced the brief is documented too.
The landing page is one case, not the whole point. The same shape applies wherever content and code meet:
- a pricing table that has to match a new plan
- structured data and meta tags on a page that was just rewritten
- a landing page variant for a campaign that starts on Monday
- a docs page describing a feature that shipped last week
- a stale date, a broken link, or a typo in a template used on forty pages
None of these are engineering projects. They are content changes that happen to live in a repository, which is exactly the gap the plugin closes.
What the plugin does
Nine endpoints, all against the agent server:
| Endpoint | What it does |
|---|---|
list_workspaces |
Lists repository workspaces with their absolute paths |
find_anchor_conversation |
Finds the anchor conversation for a repository |
start_task |
Starts a coding agent on a brief in that repository |
get_task |
Reads the task status |
get_task_result |
Reads the final answer, usually a summary and a PR URL |
get_task_questions |
Lists questions the task is waiting on |
answer_question |
Answers one, so the task resumes |
follow_up |
Sends another instruction to the same task and branch |
get_pull_request |
Reads PR state, mergeability and CI result |
The loop is deliberately narrow. Start a task, poll it, answer what it asks, read the pull request. Everything that happens inside the repository belongs to the coding agent, not to the assistant.
One anchor per repository
A plugin cannot create a conversation, because that endpoint needs a nested request body and plugin bodies are flat. So you create one conversation per repository by hand, once. That conversation is the anchor, and every task started against it inherits its workspace, tools and secrets.
Two practical consequences. Choosing a repository means choosing an anchor. And if the anchor was created before the ask_user feature was enabled, no task started from it can ask a question, so enable the flag first.
Security and authentication
Running a code repository through an AI system needs boundaries. The plugin keeps them.
- Service token, not a password. The agent server sits behind Cloudflare Access. The plugin authenticates with a Cloudflare service token, scoped to that one application.
- Local storage. The token and the server URL live in your instance configuration. They are never sent anywhere except the server you named.
- Separated permissions. The plugin reads and follows pull requests. The coding agent holds the
GITHUB_TOKENthat pushes code. The plugin never writes to the repository. - No public exposure. An agent server that can execute commands and read files must not be reachable unauthenticated. Cloudflare Access in front of it is the minimum.
Setup
- Run the agent server behind Cloudflare Access and note its public base URL, without a trailing slash. This example uses Cloudflare Access, but you can also connect Open Assistant and Openhands on the same server or network. This will actually make the set-up simpler, more secure and easier.
- Create one anchor conversation per repository, with
ask_useralready enabled. - Install the plugin. Settings, Plugins, Add plugin, paste the JSON below. Set the URL, set the token to the Cloudflare service token, test it, enable it, then assign the tools to the agent that should use them.
The complete JSON schema
Two configuration fields appear once the plugin is pasted: the agent server URL and the token. The token is the Cloudflare service token serialised as JSON, with the client ID and client secret.
{
"id": "openhands",
"display_name": "OpenHands",
"description": "Start coding agents in a repository workspace, follow up on them, and read their results and pull requests.",
"icon": "🛠️",
"base_url": "{openhands_url}",
"auth": {
"type": "header",
"header_name": "Authorization"
},
"config_fields": [
{
"key": "openhands_url",
"display_name": "OpenHands agent-server URL",
"description": "Public base URL of the OpenHands agent server, without a trailing slash. The token is the Cloudflare service token as JSON: {\"cf-access-client-id\": \"<ID>.access\", \"cf-access-client-secret\": \"<SECRET>\"}",
"required": true,
"sensitive": false,
"placeholder": "https://yourinstance.domain.com"
}
],
"endpoints": [
{
"name": "list_workspaces",
"display_name": "List workspaces",
"description": "List the repository workspaces on the OpenHands server with their absolute paths. Use it to map a repository name to the workspace of an anchor conversation.",
"method": "GET",
"path": "/api/workspaces"
},
{
"name": "find_anchor_conversation",
"display_name": "Find anchor conversation",
"description": "List recent conversations with workspace path, title and status. Find the one whose workspace matches the target repository; its id is the conversation_id for start_task.",
"method": "GET",
"path": "/api/conversations/search",
"parameters": [
{
"name": "limit",
"in": "query",
"type": "integer",
"description": "How many conversations to return, newest first.",
"required": false,
"default": 50
},
{
"name": "status",
"in": "query",
"type": "string",
"description": "Filter by execution status, e.g. finished or running.",
"required": false
}
]
},
{
"name": "start_task",
"display_name": "Start coding task",
"description": "Start a coding agent on a feature request in a repository. Pass the anchor conversation's id as conversation_id: children inherit its workspace, tools and secrets. The agent works in its own git worktree. Write task as a self-contained brief: what to build, plus the instruction to branch, commit, push, open a PR with `gh pr create` and report the URL. Returns the conversation_id used by every other tool.",
"method": "POST",
"path": "/api/conversations/{conversation_id}/children",
"parameters": [
{
"name": "conversation_id",
"in": "path",
"type": "string",
"description": "ID of the anchor conversation for the target repository."
},
{
"name": "task",
"in": "body",
"type": "string",
"description": "Self-contained brief for the coding agent, delivered as its first user message. Include the feature request and the instruction to branch, commit, push, open a PR and report the URL."
},
{
"name": "title",
"in": "body",
"type": "string",
"description": "Short title for the task, used to identify it in the OpenHands UI.",
"required": false
},
{
"name": "isolation",
"in": "body",
"type": "string",
"description": "worktree (default) gives the task its own git worktree; shared runs it directly in the anchor's directory.",
"required": false,
"default": "worktree"
}
]
},
{
"name": "get_task",
"display_name": "Get task status",
"description": "Get a task's status and title: idle, running, paused, waiting_for_confirmation, finished, error or stuck. A task that asks a question also reports finished, so on finished always call get_task_questions before reporting a result.",
"method": "GET",
"path": "/api/conversations/{conversation_id}",
"parameters": [
{
"name": "conversation_id",
"in": "path",
"type": "string",
"description": "Task handle returned by start_task."
}
]
},
{
"name": "get_task_result",
"display_name": "Get task result",
"description": "Get the task's final answer once its status is finished. It normally contains the summary of the work and the pull request URL.",
"method": "GET",
"path": "/api/conversations/{conversation_id}/agent_final_response",
"parameters": [
{
"name": "conversation_id",
"in": "path",
"type": "string",
"description": "Task handle returned by start_task."
}
]
},
{
"name": "get_task_questions",
"display_name": "Get pending questions",
"description": "List the task's events to find open questions. A question is an ActionEvent whose action.kind is AskUserAction; it is open when no AskUserAnswerEvent shares its ask_id. Answer it with answer_question.",
"method": "GET",
"path": "/api/conversations/{conversation_id}/events/search",
"parameters": [
{
"name": "conversation_id",
"in": "path",
"type": "string",
"description": "Task handle returned by start_task."
},
{
"name": "limit",
"in": "query",
"type": "integer",
"description": "Maximum number of events to return, newest last.",
"required": false,
"default": 100
}
]
},
{
"name": "answer_question",
"display_name": "Answer a question",
"description": "Answer a question the task asked. Pass option_index to pick an offered choice, or text to reply freely. The task resumes automatically.",
"method": "POST",
"path": "/api/conversations/{conversation_id}/ask_user/answer",
"parameters": [
{
"name": "conversation_id",
"in": "path",
"type": "string",
"description": "Task handle returned by start_task."
},
{
"name": "ask_id",
"in": "body",
"type": "string",
"description": "ID of the question, from get_task_questions."
},
{
"name": "option_index",
"in": "body",
"type": "integer",
"description": "0-based index of the chosen option. Omit when answering with text.",
"required": false
},
{
"name": "text",
"in": "body",
"type": "string",
"description": "Free-text answer. Omit when choosing an option.",
"required": false
}
]
},
{
"name": "follow_up",
"display_name": "Send follow-up instruction",
"description": "Give a waiting or finished task another instruction and let it continue in the same worktree and branch, for example to apply review feedback. Wait for the status to leave running before reading the result.",
"method": "POST",
"path": "/api/conversations/{conversation_id}/goal",
"parameters": [
{
"name": "conversation_id",
"in": "path",
"type": "string",
"description": "Task handle returned by start_task."
},
{
"name": "objective",
"in": "body",
"type": "string",
"description": "What the agent should do next. It can read its own conversation history, so it knows the work so far."
},
{
"name": "max_iterations",
"in": "body",
"type": "integer",
"description": "Optional cap on agent iterations for this follow-up.",
"required": false
}
]
},
{
"name": "get_pull_request",
"display_name": "Get pull request status",
"description": "Get a pull request's title, state (open, closed, merged), mergeability, combined CI result and URL. Use it to follow a PR the task reported.",
"method": "GET",
"path": "/api/git/repositories/{owner}/{repo}/pull-requests/{number}",
"parameters": [
{
"name": "owner",
"in": "path",
"type": "string",
"description": "Repository owner, for example your-org."
},
{
"name": "repo",
"in": "path",
"type": "string",
"description": "Repository name, for example your-repo."
},
{
"name": "number",
"in": "path",
"type": "integer",
"description": "Pull request number."
},
{
"name": "provider",
"in": "query",
"type": "string",
"description": "Git provider: github, gitlab or bitbucket.",
"required": false,
"default": "github"
}
]
}
]
}
Known limits
One anchor per repository, created by hand. No push notifications, since a JSON plugin cannot schedule, so following a pull request means polling while the assistant is active. Each task brief must stand alone, because the agent carries no state between tasks. Follow-up instructions keep context, which is why review feedback belongs there rather than in a new task.
Get started
Build the plugin, point it at your own server, and let the assistant finish what it wrote.
- Self-install Open Assistant: github.com/open-assistant-org/open-assistant
- More information: open-assistant.org
- Plugin schema documentation: docs.open-assistant.org/plugin-schema
