Skip to content

Feat/opencode integration#117

Open
jxngrx wants to merge 4 commits into
CoreBunch:mainfrom
jxngrx:feat/opencode-integration
Open

Feat/opencode integration#117
jxngrx wants to merge 4 commits into
CoreBunch:mainfrom
jxngrx:feat/opencode-integration

Conversation

@jxngrx

@jxngrx jxngrx commented Jun 29, 2026

Copy link
Copy Markdown

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.

@jxngrx

jxngrx commented Jun 29, 2026

Copy link
Copy Markdown
Author

@DavidBabinec, please have a look at the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant