Skip to content

feat(stage-ui): add OpenCode Go provider - #2237

Open
insxnsive wants to merge 3 commits into
moeru-ai:mainfrom
insxnsive:insxnsive/feat/opencode-go-provider
Open

feat(stage-ui): add OpenCode Go provider#2237
insxnsive wants to merge 3 commits into
moeru-ai:mainfrom
insxnsive:insxnsive/feat/opencode-go-provider

Conversation

@insxnsive

@insxnsive insxnsive commented Aug 7, 2026

Copy link
Copy Markdown

Adds OpenCode Go as a chat provider. OpenCode Go is a low-cost subscription service for open coding models.

Description

This PR adds support for OpenCode Go across provider settings and first-run onboarding.

The integration includes:

  • API key configuration and provider validation
  • A catalog of models that support OpenAI-compatible Chat Completions

OpenCode Go exposes models through several API formats. AIRI only lists models that support the Chat Completions endpoint used by this provider.

The default OpenCode Go endpoint does not include the required CORS headers on its API responses. Browser requests therefore fail before AIRI can read the response.

Linked Issues

None.

Additional Context

Before

onboarding-provider-selection

After

opencode-go-provider-settings

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

⏳ Approval required for deploying to Cloudflare Workers (Preview) for stage-web.

Name Link
🔭 Waiting for approval For maintainers, approve here

Hey, maintainers, kindly take some time to review and approve this deployment when you are available. Thank you! 🙏

@insxnsive
insxnsive force-pushed the insxnsive/feat/opencode-go-provider branch from b493e98 to 03baa4d Compare August 8, 2026 21:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03baa4dab3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/stage-ui/src/libs/providers/providers/opencode-go/index.ts Outdated
Comment thread packages/stage-ui/src/components/scenarios/dialogs/onboarding/onboarding.vue Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40ba2fed85

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/stage-tamagotchi/src/renderer/main.ts Outdated
Comment thread apps/stage-tamagotchi/src/main/services/airi/provider-proxy.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 22faa78400

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/stage-ui/src/stores/onboarding-provider-catalog.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9dfe4a63f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/stage-ui/src/libs/providers/providers/opencode-go/index.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8cff43e425

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/stage-ui/src/components/scenarios/dialogs/onboarding/onboarding.vue Outdated
@shinohara-rin

Copy link
Copy Markdown
Contributor

#2011

@shinohara-rin shinohara-rin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too broad for a new openai-compatible provider entry

@insxnsive

Copy link
Copy Markdown
Author

too broad for a new openai-compatible provider entry

Didnt notice there was #2011. I'll trim proxy stuff down and commit it later. Sorry for the trouble.

@insxnsive
insxnsive force-pushed the insxnsive/feat/opencode-go-provider branch from 8cff43e to 7f78a5c Compare August 10, 2026 16:25

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7f78a5c81d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/stage-ui/src/components/scenarios/dialogs/onboarding/onboarding.vue Outdated
OpenAI-compatible provider entry for OpenCode Go with onboarding and credential validation. Proxying for openai-compatible providers is handled by moeru-ai#2011.
@insxnsive
insxnsive force-pushed the insxnsive/feat/opencode-go-provider branch from 7f78a5c to c90d6db Compare August 10, 2026 16:55

@insxnsive insxnsive left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for review. Trimmed it down to just the provider entry, proxying is left to #2011. Also, CI runs are waiting for approval, could you approve them so the checks can run? Thanks!

@shinohara-rin

Copy link
Copy Markdown
Contributor

See #1980 for reference. the tests here seem awkward, i believe you can shrink it down further

@insxnsive

Copy link
Copy Markdown
Author

Aye aye captain!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 747575562b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/stage-ui/src/libs/providers/providers/opencode-go/index.ts
@lietblue lietblue added feature Related to feature pr-review/well-informed Pull Request that well described, with screenshots or tests, or explained well, easier to review scope/i18n scope/providers Scope related to providers we support scope/ui Scope related to UI/UX, or interface improve, perf, and bugs and removed pr-review/well-informed Pull Request that well described, with screenshots or tests, or explained well, easier to review labels Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Related to feature scope/i18n scope/providers Scope related to providers we support scope/ui Scope related to UI/UX, or interface improve, perf, and bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants