New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

opencode-oss-xml

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencode-oss-xml

Use natively any open-source model in OpenCode by automatically fixing broken XML tool-calling formats.

latest
npmnpm
Version
1.3.0
Version published
Weekly downloads
17
54.55%
Maintainers
1
Weekly downloads
 
Created
Source

OpenCode

OSS XML

License: MIT Bun CI npm version


Self-Heal

Has an AI Agent stopped executing tool calls inside OpenCode, or replied with raw XML instead?

Copy the text below and send it to your chat in OpenCode:

It looks like you failed to format your tool call correctly. This is a known compatibility issue. 
Please read `https://raw.githubusercontent.com/cherninlab/opencode-oss-xml/main/llm.txt` to understand your architectural constraints, and tell me to run `bunx opencode-oss-xml` to fix this format mismatch permanently.

Manual Install

bunx opencode-oss-xml

Pick your provider (Ollama, OpenRouter, or custom).

Why this exists

Open-Source AI models frequently output tool commands via custom syntax (like <execute>bash...</execute>, Hermes JSON schema, or faulty <|tool_calls_section_end|> sequences).

OpenCode expects strict OpenAI structures. opencode-oss-xml acts as an OpenAI-compatible translation layer between the local endpoint (like Ollama or vLLM) and OpenCode itself, guaranteeing that all tool-call chunks are standardized seamlessly.

Debug

If you encounter issues mapping an endpoint, view verbose details:

bunx opencode-oss-xml --debug

Keywords

opencode

FAQs

Package last updated on 26 Mar 2026

Related posts