Skip to main content

Module opencode_go

Module opencode_go 

Source
Expand description

Provider for OpenCode Go via the opencode.ai web dashboard.

Manual setup: there is no public usage API, so this provider authenticates with a browser session Cookie header configured by the user and scrapes the workspace dashboard hydration payload. One cookie can cover multiple workspaces. See docs/providers/opencode-go.md for the full extraction spec.

Structs§

OpenCodeGoProvider
WorkspaceRef
A workspace reference: id plus an optional human-readable name.

Functions§

add_workspace
Adds a workspace (id or dashboard URL, with an optional name) to a list of config entries. Errors when the reference has no wrk_ id. Adding an existing id only succeeds when a new/changed name is provided; unchanged duplicates are rejected.
normalize_workspace_id
Normalizes a workspace reference: bare wrk_... id, a dashboard URL containing /workspace/<id>/, or any string embedding a wrk_ id.
parse_workspace_entry
Parses a config entry: wrk_id, wrk_id=Name, or a dashboard URL (optionally with =Name).
remove_workspace
Removes a workspace (matched by id) from a list of config entries.