Answer: You call opencode plugin RPC methods by passing the shared contract to client.rpc, e.g. const acme = client.rpc(Acme), then invoking methods like acme.search({ query: "hello" }, { location: { directory: "/workspace" } }). Method arguments and results are inferred from the contract, and RPC events are typed Streams. Status: Confirmed Entry: tool/opencode/integrations/effect-plugin-rpc Revision: 2 Digest: sha256:d9a42d1391f531f9 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:55:38Z Last changed: 2026-11-18T13:38:04Z (Event type prefix example: — → rpc.acme.updated) Last verified: 2026-11-20T13:44:26Z Next check: 2026-11-21T13:44:26Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of RPC client call | client .rpc (Acme) | [1] | 2026-11-20 Method call example | acme .search ({ query : "hello" } , { location : { directory : "/workspace" } }) | [1] | 2026-11-20 Optional argument contents | location , signal , and headers | [1] | 2026-11-20 Event subscription example | acme .events .subscribe ( "updated" ) | [1] | 2026-11-20 Event type prefix example | rpc.acme.updated | [1] | 2026-11-20 Sources: [1] opencode. "Effect client | OpenCode". https://opencode.ai/docs/build/client/effect/ Role: primary. Accessed: 2026-11-20T13:44:26Z Quote: "const acme = client .rpc (Acme)" (Supports: RPC client call) Quote: "const result = yield* acme .search ({ query : "hello" } , { location : { directory : "/workspace" } })" (Supports: Method call example) Quote: "The second optional argument holds location , signal , and headers" (Supports: Optional argument contents) Quote: "yield* acme .events .subscribe ( "updated" )" (Supports: Event subscription example) Quote: "a normal prefixed type such as rpc.acme.updated" (Supports: Event type prefix example) Snapshot SHA-256: 01fc331726cb2783a625e6d34b525da2a10e27439fc762d42b6078b5dc4ed08d (captured 2026-11-18T13:38:02Z) 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:04Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:44:26Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:44:26Z Last attempt: 2026-11-20T13:44:26Z Notes and limitations: Extracted automatically from a single official source (section "Plugin RPC"). Related: https://latestn.com/tool/opencode/integrations/effect-stream-events How do I stream events from opencode using the Effect client? https://latestn.com/tool/opencode/integrations/find-provider-url Where do I find the provider URL for the opencode Console Providers API? https://latestn.com/tool/opencode/integrations/host-apis-prompt-model How do I read and write the prompt or choose the model from an opencode GUI plugin? https://latestn.com/tool/opencode/integrations/define-rpc-methods-errors-events How do I define RPC methods, errors, and events in an opencode plugin? https://latestn.com/tool/opencode/integrations/define-rpc-methods-events How do I define an RPC with methods and events in an opencode Effect plugin? https://latestn.com/tool/opencode/integrations/effect-client-headers How do I add custom headers to requests with the opencode Effect client? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:38:04Z | changed | Event type prefix example: — → rpc.acme.updated | [1] 2026-11-18T13:38:04Z | changed | Event subscription example: — → acme .events .subscribe ( "updated" ) | [1] 2026-11-18T13:38:04Z | changed | Method call example: — → acme .search ({ query : "hello" } , { location : { directory : "/workspace" } }) | [1] 2026-11-18T13:38:04Z | changed | RPC client call: — → client .rpc (Acme) | [1] 2026-11-18T13:38:04Z | changed | Events type: typed Streams → — | [1] 2026-11-18T13:38:04Z | changed | Import source: opencode-acme-plugin/rpc → — | [1] 2026-11-18T13:38:04Z | changed | Example method call: acme .search ({ query : "hello" } , { location : { directory : "/workspace" } }) → — | [1] 2026-11-18T13:38:04Z | changed | RPC call pattern: client .rpc (Acme) → — | [1] 2026-11-13T03:55:38Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/integrations/effect-plugin-rpc/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/effect-plugin-rpc POST: https://latestn.com/dispute/tool/opencode/integrations/effect-plugin-rpc with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/integrations/effect-plugin-rpc?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I call opencode plugin RPC methods from the Effect client? Revision 2, last verified 2026-11-20T13:44:26Z. https://latestn.com/tool/opencode/integrations/effect-plugin-rpc (accessed 2026-11-21T09:50:33Z). @misc{LatestN_tool_opencode_integrations_effect_plugin_rpc_r2, title = {How do I call opencode plugin RPC methods from the Effect client?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/integrations/effect-plugin-rpc}}, note = {Revision 2; digest sha256:d9a42d1391f531f9; last verified 2026-11-20T13:44:26Z; accessed 2026-11-21T09:50:33Z} } 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/effect-plugin-rpc