Answer: Use `await using` to release the host's router, Location services, fibers, and scoped plugin registrations, or call `await opencode.close()` explicitly when explicit resource management is not available. Status: Confirmed Entry: tool/opencode/integrations/close-host-resources Revision: 2 Digest: sha256:827c08938621ad5c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:00Z Last changed: 2026-11-19T13:34:58Z (resources released: — → router, Location services, fibers, and scoped plugin registrations) Last verified: 2026-11-20T13:44:48Z Next check: 2026-11-21T13:44:48Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of release method | await using | [1] | 2026-11-20 explicit close method | await opencode.close() | [1] | 2026-11-20 resources released | router, Location services, fibers, and scoped plugin registrations | [1] | 2026-11-20 Sources: [1] opencode. "SDK overview | OpenCode". https://opencode.ai/docs/build/sdk/ Role: primary. Accessed: 2026-11-20T13:44:48Z Quote: "Use await using to release its router, Location services, fibers, and scoped plugin registrations" (Supports: release method) Quote: "Call await opencode.close() explicitly when explicit resource management is not available." (Supports: explicit close method) Quote: "release its router, Location services, fibers, and scoped plugin registrations" (Supports: resources released) Snapshot SHA-256: f8a24d569bb59d5a1656b6cc138f2477ce09d9c79cdbf890ca0763a50cdc83a5 (captured 2026-11-18T13:38:26Z) 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:26Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:44:48Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:44:48Z Last attempt: 2026-11-20T13:44:48Z Notes and limitations: Extracted automatically from a single official source (section "Create a host"). Related: 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/cloudflare-route-outbound-requests How do I route outbound requests with the opencode Cloudflare SDK? https://latestn.com/tool/opencode/integrations/configure-console-provider-in-codex How do I configure opencode Console as a model provider in Codex? 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/opencode/integrations/call-rpc-method How do I call an opencode RPC method over HTTP or from a plugin? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:34:58Z | changed | resources released: — → router, Location services, fibers, and scoped plugin registrations | [1] 2026-11-13T03:56:00Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/integrations/close-host-resources/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/close-host-resources POST: https://latestn.com/dispute/tool/opencode/integrations/close-host-resources with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/integrations/close-host-resources?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I release or close an opencode host's resources? Revision 2, last verified 2026-11-20T13:44:48Z. https://latestn.com/tool/opencode/integrations/close-host-resources (accessed 2026-11-21T09:50:47Z). @misc{LatestN_tool_opencode_integrations_close_host_resources_r2, title = {How do I release or close an opencode host's resources?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/integrations/close-host-resources}}, note = {Revision 2; digest sha256:827c08938621ad5c; last verified 2026-11-20T13:44:48Z; accessed 2026-11-21T09:50:47Z} } 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/close-host-resources