Skip to content

v0.0.8 — OpenCode provider + unified SDK architecture

Choose a tag to compare

@gurvinder-dhillon gurvinder-dhillon released this 05 May 05:03
· 18 commits to main since this release
Immutable release. Only release title and notes can be modified.
48790d1

What's new

OpenCode provider (openCode)

A second AI provider powered by @opencode-ai/sdk. Supports any model your OpenCode installation has access to — including GitLab Duo, GitHub Copilot, Anthropic, OpenAI, and Google.

import { runAgent, openCode } from 'openqa';

// GitLab Duo (default)
await runAgent(openCode('gitlab/duo-chat-haiku-4-5'), step, page);

// GitHub Copilot
await runAgent(openCode('github-copilot/gpt-5.4'), step, page);

// Anthropic / OpenAI / Google
await runAgent(openCode('anthropic/claude-sonnet-4-6'), step, page);
await runAgent(openCode('openai/gpt-4o'), step, page);
await runAgent(openCode('google/gemini-2.0-flash'), step, page);

Unified SDK architecture

Both claudeCode and openCode now share the same transport and interface:

  • Shared MCP server — Playwright MCP exposed over HTTP on a random 127.0.0.1 port per runAgent() call. No subprocesses, no temp files, no socket bridges.
  • Shared system prompt — identical agent instructions regardless of which backend runs the step.
  • Uniform provider.run() interface — swapping providers is a one-line change in .openqa/steps/steps.ts.

openqa init wizard updates

  • GitLab Duo (gitlab/duo-chat-haiku-4-5) and GitHub Copilot (github-copilot/gpt-5.4) added as first-class OpenCode model options
  • Next Steps message now shows claude login / opencode auth login as the local auth path — no API key needed for local development

No API key needed locally

claude login          # Claude Code
opencode auth login   # OpenCode (GitLab Duo, GitHub Copilot, Anthropic, OpenAI, Google, …)

Installation

npx openqa init

Or update an existing install:

cd .openqa && npm install openqa@latest

Full changelog

v0.0.7...v0.0.8