Skip to content

feat: register opencode-go in the provider env registry - #1183

Open
dansigma wants to merge 1 commit into
jayminwest:mainfrom
dansigma:feat/opencode-go-provider
Open

feat: register opencode-go in the provider env registry#1183
dansigma wants to merge 1 commit into
jayminwest:mainfrom
dansigma:feat/opencode-go-provider

Conversation

@dansigma

Copy link
Copy Markdown

Summary

  • Register Pi's opencode-go provider in PROVIDER_ENV_REGISTRY so OPENCODE_API_KEY is forwarded into the sandbox (local/docker) and mapped to an optional warren-opencode-go-key Secret on K8s.
  • Pi already knows this provider id. Without the registry row, dispatch accepts provider: opencode-go and the run dies at auth because the key never enters the allowlist — the same class of miss as warren-81e0 for OpenRouter.

Test plan

  • bun test src/core/providers.test.ts src/runtime/local/profile.test.ts
  • Dispatch a Pi run with provider: opencode-go and OPENCODE_API_KEY set; confirm the sandbox sees the key and the agent authenticates.

Made with Cursor

Pi already authenticates OpenCode Go with OPENCODE_API_KEY. Without a
registry row the key never reaches the sandbox, so dispatch succeeds
and the run dies at auth.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dansigma
dansigma requested a review from jayminwest as a code owner August 29, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant