Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion skills/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"skills": [
{
"name": "opencode-api",
"version": "0.3.0",
"version": "0.3.1",
"files": [
"ERRATA.md",
"SKILL.md",
Expand Down
14 changes: 10 additions & 4 deletions skills/opencode-api/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license: MIT
metadata:
author: Robert Stone
source: https://github.com/rjstone/opencode-dev-plugin
version: "0.3.0"
version: "0.3.1"
---

# opencode server API (v2)
Expand Down Expand Up @@ -70,9 +70,15 @@ disagree, `ERRATA.md` wins.
argument: body `{"input": <value>}` → `{"output": <value>}`. `rpcID` is the
id in the plugin's `Rpc.define`. A bare argument as the body →
`rpc.invalid_input` "Expected object".
- **Throwaway server** (tests, sandboxes): `opencode serve --hostname
127.0.0.1 --port <n> --print-logs` prints `server password <value>` at
startup; point `XDG_CONFIG_HOME`, `XDG_DATA_HOME`, `XDG_CACHE_HOME` and
- **Throwaway server** (tests, sandboxes): choose the password yourself, so
you never have to read one: `export OPENCODE_PASSWORD="$(openssl rand -hex 24)"`,
then `opencode serve --hostname 127.0.0.1 --port <n> > serve.log 2>&1 &`
and call it with `curl -u "opencode:$OPENCODE_PASSWORD" ...`. With the
variable set the server prints no password (checked 2026-11-28 against
opencode 2.4.2). Without it, the server makes one up and prints
`server password <value>` at startup: don't start it that way, and never
read that line into the conversation. Send the server's output to a file
either way. Point `XDG_CONFIG_HOME`, `XDG_DATA_HOME`, `XDG_CACHE_HOME` and
`XDG_STATE_HOME` at a temp folder to keep it off your real setup. A
location's plugins load in the background after its first request, so
plugin-provided agents, skills, references and MCP servers appear a few
Expand Down