flocks-driver-opencode wraps the upstream CLI and exposes it on the mesh under the driver id opencode. Roosts that have the opencode binary on $PATH advertise it; the gateway dispatches matching /v1/execute requests to them.

Enable

[drivers]
enabled = ["opencode"]

Dispatch

curl -sf https://gateway.flocks.local/v1/execute \
  -H 'Content-Type: application/json' \
  -d '{
    "idempotency_key": "demo",
    "task": "Hello, Opencode.",
    "driver": "opencode",
    "auth_token": "ops"
  }'

Upstream

Open Code →