Feat/opencode integration#117
Open
jxngrx wants to merge 4 commits into
Open
Conversation
…ent and clarify INSTATIC_SECRET_KEY usage
…/Instatic into feat/opencode-integration
Author
|
@DavidBabinec, please have a look at the changes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add OpenCode Zen as AI provider. Direct HTTP to https://opencode.ai/zen/v1 — no SDK. Same pattern as Anthropic, OpenAI, OpenRouter.
Closes #101.
New opencodeDriver:
• Auth: apiKey (Bearer)
• GET /models — live catalogue (pricing, context, capabilities)
• POST /chat/completions — streaming + tool calls via existing chat-completions adapter and runToolLoop
Also wire opencode through driver registry, server handlers, runtime types, admin Providers tab, client TypeBox schemas. Unit tests for model list + stream mapping.
Docs updated in docs/features/agent.md (provider list + driver tree) and docs/deployment/docker-image.md (encrypted credential examples).
Not included: local opencode serve bridge. No Docker/deploy config changes — credentials stored encrypted in DB via INSTATIC_SECRET_KEY.
Verification
◼ bun run build
◼ bun test
◼ bun run lint
◻ Docker/deployment check, if relevant (N/A — no image/env/config changes)
Checklist
◼ Tests cover behavior changes.
◼ Docs were updated when behavior, config, deployment, or public surfaces changed.
◼ No compatibility shim was added for old pre-release behavior.
◼ No secrets, local databases, uploads, or generated artifacts are included.