Answer: To call an opencode RPC method over HTTP, create the Effect client with OpenCode.make and then create the RPC subclient via client.rpc(Acme), calling methods like acme.search. From another plugin, create a local subclient from its context with ctx.rpc(Acme). Status: Confirmed Entry: tool/opencode/integrations/call-rpc-method Revision: 2 Digest: sha256:87d5473b63fb499d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:55:47Z Last changed: 2026-11-19T13:34:46Z (Plugin method call: — → acme.search({ query: "hello" })) Last verified: 2026-11-20T13:44:35Z Next check: 2026-11-21T13:44:35Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of HTTP client creation | OpenCode .make ({ baseUrl : "http://localhost:4096" }) | [1] | 2026-11-20 HTTP RPC subclient | client .rpc (Acme) | [1] | 2026-11-20 HTTP method call | acme .search ({ query : "hello" }) | [1] | 2026-11-20 Plugin RPC subclient | ctx.rpc(Acme) | [1] | 2026-11-20 Plugin method call | acme.search({ query: "hello" }) | [1] | 2026-11-20 Sources: [1] opencode. "Effect plugin RPC | OpenCode". https://opencode.ai/docs/build/plugins/effect/rpc/ Role: primary. Accessed: 2026-11-20T13:44:35Z Quote: "const client = yield* OpenCode .make ({ baseUrl : "http://localhost:4096" })" (Supports: HTTP client creation) Quote: "const acme = client .rpc (Acme)" (Supports: HTTP RPC subclient) Quote: "return yield* acme .search ({ query : "hello" })" (Supports: HTTP method call) Quote: "const acme = ctx.rpc(Acme)" (Supports: Plugin RPC subclient) Quote: "const result = yield* acme.search({ query: "hello" })" (Supports: Plugin method call) Snapshot SHA-256: 0577808d0e0cd3b820a826d4693b1850e6dded5f4a76ba0d7a1cb585fc71dd7c (captured 2026-11-18T13:38:10Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:38:13Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:44:35Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:44:35Z Last attempt: 2026-11-20T13:44:35Z Notes and limitations: Extracted automatically from a single official source (section "Call"). Related: https://latestn.com/tool/opencode/integrations/client-headers-requests How do I pass authentication headers or a custom fetch to the opencode client? https://latestn.com/tool/opencode/integrations/close-host-resources How do I release or close an opencode host's resources? https://latestn.com/tool/opencode/integrations/cloudflare-durable-object-sdk How do I use the opencode SDK inside a Cloudflare Durable Object? https://latestn.com/tool/opencode/integrations/build-gui-plugin-bundle How do I build the opencode GUI plugin bundle? https://latestn.com/tool/opencode/integrations/call-provider-directly How do I call an opencode Console provider directly from my own tools? https://latestn.com/tool/opencode/integrations/call-rpc How do I call an opencode plugin RPC over HTTP or from another plugin? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:34:46Z | changed | Plugin method call: — → acme.search({ query: "hello" }) | [1] 2026-11-19T13:34:46Z | changed | HTTP method call: — → acme .search ({ query : "hello" }) | [1] 2026-11-19T13:34:46Z | changed | Example call: acme .search ({ query : "hello" }) → — | [1] 2026-11-13T03:55:47Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/integrations/call-rpc-method/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/integrations/call-rpc-method POST: https://latestn.com/dispute/tool/opencode/integrations/call-rpc-method with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/integrations/call-rpc-method?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I call an opencode RPC method over HTTP or from a plugin? Revision 2, last verified 2026-11-20T13:44:35Z. https://latestn.com/tool/opencode/integrations/call-rpc-method (accessed 2026-11-21T09:50:41Z). @misc{LatestN_tool_opencode_integrations_call_rpc_method_r2, title = {How do I call an opencode RPC method over HTTP or from a plugin?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/integrations/call-rpc-method}}, note = {Revision 2; digest sha256:87d5473b63fb499d; last verified 2026-11-20T13:44:35Z; accessed 2026-11-21T09:50:41Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/integrations/call-rpc-method