GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add openai-compatible endpoint support for google-vertex provider by leehack · Pull Request #10303 · anomalyco/opencode

Conversation

@leehack

@leehack leehack commented Jan 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

Adds a new google-vertex-openapi provider that enables using third-party models (like GLM-4.7) on Google Vertex AI through the OpenAPI-compatible endpoint.

Fixes #10304

Changes

Provider Implementation (src/provider/provider.ts):

  • Replaced gcloud CLI subprocess approach with Application Default Credentials (ADC) using google-auth-library
    • No subprocess overhead (performance improvement)
    • Automatic token refresh (handled by library)
    • Supports multiple credential sources (gcloud ADC, service account, etc.)
  • Added getModel function for consistency with other providers

Test Infrastructure (test/provider/provider.test.ts):

  • Mocked google-auth-library for testing support

  • Configuration:

    • Environment variables: GOOGLE_CLOUD_PROJECT, GCP_PROJECT, GCLOUD_PROJECT (project)
    • Environment variables: GOOGLE_CLOUD_LOCATION, VERTEX_LOCATION (location)
    • Config options: provider.options.project, provider.options.location
  • Authentication:

    • Works with gcloud auth application-default login (easiest for development)
    • Supports GOOGLE_APPLICATION_CREDENTIALS for service accounts (production)

Verification

  • Typecheck: Passed
  • Tests: All passing (pre-existing failures unaffected)
  • Manual testing: Can configure provider and make requests to Vertex AI OpenAPI endpoint

Usage

{
  "provider": {
    "google-vertex-openapi": {
      "name": "Google Vertex AI (OpenAPI)",
      "npm": "@ai-sdk/openai-compatible",
      "api": "https://aiplatform.googleapis.com/v1beta1",
      "options": {
        "project": "my-project-id",
        "location": "global"
      },
      "models": {
        "glm-4.7": {
          "name": "GLM-4.7",
          "tool_call": true,
          "reasoning": true,
          "limit": {"context": 128000, "output": 8192}
        }
      }
    }
  }
}

Setup

# Using gcloud ADC (recommended for development)
gcloud auth application-default login
export GOOGLE_CLOUD_PROJECT=my-project-id

# OR using service account (recommended for production)
export GOOGLE_APPLICATION_CREDENTIALS=~/.config/google/vertex-ai-service-account.json
export GOOGLE_CLOUD_PROJECT=my-project-id

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lukas-unity, NimaAra, pdanysz, and yifeng-chen reacted with thumbs up emoji
All reactions
  • 👍 4 reactions
@github-actions github-actions Bot added the needs:issue label Jan 23, 2026
@github-actions

github-actions Bot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

  • PR feat: add Google Vertex AI service account JSON authentication #6287: "feat: add Google Vertex AI service account JSON authentication"
    • feat: add Google Vertex AI service account JSON authentication #6287
    • This PR is also related to Google Vertex AI authentication. It may address similar functionality for service account authentication, which overlaps with the ADC authentication approach in PR feat: add openai-compatible endpoint support for google-vertex provider #10303.

The other Google Vertex-related PRs (#9568, #6860, #5422, #5166) appear to be focused on different aspects (model resolution, token stats, cache configuration, naming conventions) rather than authentication implementation.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot removed the needs:issue label Jan 23, 2026
This was referenced Jan 26, 2026
feat(provider): add google-vertex-openai for Vertex AI partner models #10742
Closed
feat: added Google OAuth #11116
Closed
leehack added 3 commits January 29, 2026 09:51
@leehack
fix(provider): add google-vertex-openapi provider for GLM-4 model sup…
f8d1fc3
…port
@leehack
refactor: use ADC with google-auth-library instead of gcloud subprocess
c4e4b33
@leehack
Consolidate the provider into google-vertex
5aba6e0
@leehack
leehack force-pushed the fix/vertex-glm-openapi branch from 377d80e to 5aba6e0 Compare January 29, 2026 18:46
@NimaAra NimaAra mentioned this pull request Jan 29, 2026
Unable to access GLM 4.7 on Google Vertex AI #9909
Closed
@NimaAra

NimaAra commented Jan 29, 2026

Copy link
Copy Markdown

Can we get this merged please?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thdxr
thdxr force-pushed the dev branch from cbab81f to 2d3c7a0 Compare January 30, 2026 04:49
@bluet

bluet commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

Hey @leehack, great work on this! I was working on a similar solution (now closed #10742) and your approach of extending the existing google-vertex provider with protocol: "openapi" is cleaner than creating a separate provider.

I've also been coordinating with @rekram1-node on models.dev PR #716 for the model definitions. He mentioned consolidating all google-vertex models under a single provider, which aligns perfectly with your implementation here.

Happy to help test this PR if needed - I have a GCP project with GLM-4.7 access via Vertex AI Model Garden.

One small observation: The baseURL uses v1beta1 - just confirming this works with the OpenAPI-compatible endpoint? In my testing, I was using v1 for partner models. Let me know if you'd like me to verify.

leehack reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leehack

leehack commented Jan 30, 2026

Copy link
Copy Markdown
Contributor Author

Hey @leehack, great work on this! I was working on a similar solution (now closed #10742) and your approach of extending the existing google-vertex provider with protocol: "openapi" is cleaner than creating a separate provider.

I've also been coordinating with @rekram1-node on models.dev PR #716 for the model definitions. He mentioned consolidating all google-vertex models under a single provider, which aligns perfectly with your implementation here.

Happy to help test this PR if needed - I have a GCP project with GLM-4.7 access via Vertex AI Model Garden.

One small observation: The baseURL uses v1beta1 - just confirming this works with the OpenAPI-compatible endpoint? In my testing, I was using v1 for partner models. Let me know if you'd like me to verify.

Awesome!
Yes, I'm testing with the glm 4.7 model with the Vertex AI model Garden. I've only tested glm 4.7 with the v1beta1 endpoint. Feel free to test and let me know if you think we should better use the v1 endpoint.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent
opencode-agent Bot force-pushed the dev branch from 00637c0 to 71e0ba2 Compare January 30, 2026 14:32
@thdxr
thdxr force-pushed the dev branch 4 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
@bluet

bluet commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Test Results: v1 vs v1beta1 Endpoints

I tested both API versions with GLM-4.7. Both work!

Results

Endpoint Status
/v1/.../openapi/chat/completions ✅ Works
/v1beta1/.../openapi/chat/completions ✅ Works

Conclusion

Your current implementation using v1beta1 is fine - both versions work identically for the OpenAPI-compatible endpoint. No changes needed.

The correct model ID format is <publisher>/<model-id>, e.g., zai-org/glm-4.7-maas.

Documentation Reference

  • GLM 4.7 Model Card
  • Model ID: glm-4.7-maas
  • Publisher: zai-org
  • Region: global only
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bluet

bluet commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Follow-up: Recommendation to use /v1/ instead of /v1beta1/

After researching Google's API versioning policy, I'd suggest using /v1/ instead of /v1beta1/ for better production stability.

Why /v1/ is preferable:

Aspect /v1/ (Stable) /v1beta1/ (Beta)
SLA ✅ Covered ❌ No guarantees
Breaking Changes ❌ Not allowed ⚠️ Allowed after deprecation
Deprecation Notice Min 1 year ~180 days (not guaranteed)
Production Use ✅ Recommended ⚠️ Test environments

Reference: Google's Official Policy

From AIP-181 and Google Cloud Launch Stages:

  • Beta: No SLAs or technical support obligations unless specified
  • Stable (v1): Fully-supported, covered by SLA, no breaking changes

Suggested Change

In the loader's baseURL construction:

- `https://${location}-aiplatform.googleapis.com/v1beta1/projects/...`
+ `https://${location}-aiplatform.googleapis.com/v1/projects/...`

Both work identically for the OpenAPI-compatible endpoint (I tested both), but /v1/ provides stronger stability guarantees for production use.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bluet
bluet reviewed Feb 2, 2026
View reviewed changes

@bluet bluet left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

according to google vertex docs, /v1beta1/ url path is for beta testing purpose. better to use /v1/ for stability.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/opencode/src/provider/provider.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/opencode/src/provider/provider.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@leehack @bluet
Apply suggestions from code review
7b520a0
Co-authored-by: BlueT - Matthew Lien - 練喆明 <[email protected]>
@leehack

leehack commented Feb 3, 2026

Copy link
Copy Markdown
Contributor Author

according to google vertex docs, /v1beta1/ url path is for beta testing purpose. better to use /v1/ for stability.

Thanks @bluet for the test and suggestion. I updated the url as you suggested.

bluet reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

leehack and others added 2 commits February 3, 2026 08:43
@leehack
Merge branch 'dev' into fix/vertex-glm-openapi
3d0268d
@leehack
fix(provider): surgically sanitize Google SDK options to restore Gemi…
2bd9b14
…ni in production while allowing custom proxies and localhost testing
@leehack

leehack commented Feb 3, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the test failures and ensured compatibility with proxy servers.

pdanysz and Micpol reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@NimaAra

NimaAra commented Feb 5, 2026

Copy link
Copy Markdown

Is this ever going to be merged?

pdanysz, Micpol, leehack, and bluet reacted with thumbs up emoji
All reactions
  • 👍 4 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leehack

leehack commented Feb 6, 2026

Copy link
Copy Markdown
Contributor Author

Is this ever going to be merged?

I'm also waiting; I'm currently running my own local build just for this. lol

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

leehack added 2 commits February 12, 2026 08:34
@leehack
clean up
da72b60
@leehack
test clean up
690266a
@leehack

leehack commented Feb 12, 2026

Copy link
Copy Markdown
Contributor Author

@rekram1-node cleaned up the PR. removed all useless codes, mocks, tests and comments. rebased dev branch. Hope this is good now.

pdanysz and NimaAra reacted with thumbs up emoji KuzonCode and ddesmond reacted with heart emoji
All reactions
  • 👍 2 reactions
  • ❤️ 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ddesmond

ddesmond commented Feb 13, 2026

Copy link
Copy Markdown

merge train hype cho cho cho! thumbs up and thanks for this work! :) 🚂

pdanysz, NimaAra, bluet, KuzonCode, vibe-trogo, and rodman80 reacted with thumbs up emoji KuzonCode reacted with hooray emoji KuzonCode reacted with heart emoji KuzonCode reacted with rocket emoji
All reactions
  • 👍 6 reactions
  • 🎉 1 reaction
  • ❤️ 1 reaction
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bluet bluet mentioned this pull request Feb 14, 2026
feat: add google-vertex-openai provider for Vertex AI partner models anomalyco/models.dev#716
Merged
@rekram1-node
Merge branch 'dev' into fix/vertex-glm-openapi
39441f9
rekram1-node
rekram1-node reviewed Feb 16, 2026
View reviewed changes
Comment thread packages/opencode/src/provider/provider.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
some tweaks
4507995
@rekram1-node

rekram1-node commented Feb 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This is also gonna be combined w/ changes in models.dev we will have things like this:

"google-vertex": {
      "options": {},
      "models": {
        "zai-org/glm-5-maas": {
          "provider": {
            "npm": "@ai-sdk/openai-compatible",
            "api": "https://${GOOGLE_VERTEX_ENDPOINT}/v1/projects/${GOOGLE_CLOUD_PROJECT}/locations/${GOOGLE_VERTEX_LOCATION}/endpoints/openapi",
          },
        },
      },
    },

Note that this is existing we just have to introduce this env var resolution pattern, and this ofc could be cleaned up a bit but the idea here is that models dont have to be tied to the provider base url, models can have their own package and own api = "base url"

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node merged commit f7708ef into anomalyco:dev Feb 16, 2026
6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

sergiu-svinarciuc pushed a commit to sergiu-svinarciuc/opencode that referenced this pull request Feb 16, 2026
Sergiu Svinarciuc
Merge branch 'dev' into fork
6ac1df0
* dev: (1474 commits)
  fixing merge issue
  fix: google vertex var priority (anomalyco#13816)
  chore: generate
  feat: add openai-compatible endpoint support for google-vertex provider (anomalyco#10303)
  fix(desktop): normalize Linux Wayland/X11 backend and decoration policy (anomalyco#13143)
  feat(opencode): Add Venice support in temperature, topP, topK and smallOption (anomalyco#13553)
  desktop: use process-wrap instead of manual job object (anomalyco#13431)
  chore: generate
  fix(website): correct zh-CN translation of proprietary terms in zen.mdx (anomalyco#13734)
  feat(opencode): add `cljfmt` formatter support for Clojure files (anomalyco#13426)
  release: v1.2.5
  feat(app): localize "free usage exceeded" error & "Add credits" clickable link (anomalyco#13652)
  fix(desktop): issue viewing new files opened from the file tree (anomalyco#13689)
  fix(app): only navigate prompt history at input boundaries (anomalyco#13690)
  fix(app): keybind [shift+tab] (anomalyco#13695)
  docs: add Ukrainian README translation (anomalyco#13697)
  fix(desktop): focus window after update/relaunch (anomalyco#13701)
  feat: Add GeistMono Nerd Font to available mono font options (anomalyco#13720)
  fix: ensure sqlite migration logs to stderr instead of stdout (anomalyco#13691)
  release: v1.2.4
  ...
@NimaAra

NimaAra commented Feb 16, 2026

Copy link
Copy Markdown

I am trying to use this in v1.2.6 with the following config:

"google-vertex": {
      "models": {
        "zai-org/glm-4.7-maas": {
            "name": "GLM-4.7",
            "provider": { 
                "npm": "@ai-sdk/openai-compatible",
                "api": "https://${GOOGLE_VERTEX_ENDPOINT}/v1/projects/${GOOGLE_VERTEX_PROJECT}/locations/${GOOGLE_VERTEX_LOCATION}/endpoints/openapi"
            },
            "limit": { "context": 204800, "output": 131072 },
            "cost": { "input": 0.6, "output": 2.2 },
            "interleaved": {
                "field": "reasoning_content"
            },
            "attachment": false,
            "reasoning": true,
            "family": "glm",
            "temperature": true,
            "tool_call": true,
            "modalities": {
                "input": [ "text" ],
                "output": [ "text" ]
            },
            "release_date": "2025-12-22",
        },

But getting the error:

Error: invalid_scope: Invalid OAuth scope or ID token audience provided.

Gemini methods under same google-vertex provider work fine (via the GOOGLE_APPLICATION_CREDENTIALS pointing to the service.account.json)

I can manually try to do this which works:

"google-vertex-custom": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Google Vertex Custom",
      "options": {
        "baseURL": "https://${GOOGLE_VERTEX_ENDPOINT}/v1/projects/${GOOGLE_VERTEX_PROJECT}/locations/${GOOGLE_VERTEX_LOCATION}/endpoints/openapi",
        "apiKey": "{file:./google-vertex-ai/api.key}"
      },

But I will have to manually refresh the key since gcloud apis are valid for 1 hour only.

What am I missing?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leehack

leehack commented Feb 16, 2026

Copy link
Copy Markdown
Contributor Author

@NimaAra I haven't tested version 1.2.6 yet, but I have tested on the dev branch. I copy-pasted your configuration, and it worked.

I suspect that you may not have properly logged in using gcloud.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@NimaAra

NimaAra commented Feb 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

@leehack Do you also use GOOGLE_APPLICATION_CREDENTIALS pointing to your service.account.json or do you use another method?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leehack

leehack commented Feb 16, 2026

Copy link
Copy Markdown
Contributor Author

@NimaAra For my configuration, I am not utilizing the JSON key. Instead, it should authenticate using the account I used when logging in with gcloud. I don't see any reason why the GAC is not functioning.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@NimaAra

NimaAra commented Feb 16, 2026

Copy link
Copy Markdown

Got it, had to run gcloud auth application-default login I was running gcloud auth login instead.

Works great. Once again, thank you for the PR.

leehack and djdembeck reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node

rekram1-node commented Feb 16, 2026

Copy link
Copy Markdown
Member

Yes big thanks to @leehack this was a failure on our part. The google vertex ux through opencode is poor. We will improve.

ddesmond reacted with heart emoji leehack and ddesmond reacted with rocket emoji
All reactions
  • ❤️ 1 reaction
  • 🚀 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leehack

leehack commented Feb 17, 2026

Copy link
Copy Markdown
Contributor Author

@rekram1-node One question: are we going to consolidate the Vertex-Anthropic provider into this one as well? I can technically work on that, but I don't have Anthropic model access on my GCP account, so I can't test it myself.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

schneiderlo pushed a commit to schneiderlo/opencode that referenced this pull request Feb 17, 2026
@leehack @bluet
@rekram1-node @schneiderlo
feat: add openai-compatible endpoint support for google-vertex provid…
33217c1
…er (anomalyco#10303)

Co-authored-by: BlueT - Matthew Lien - 練喆明 <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
randomm added a commit to randomm/opencode that referenced this pull request Feb 17, 2026
@randomm opencode
@adamdotdevin @opencode-agent @fwang @neriousy @github-actions @OpeOginni @thdxr @rekram1-node @lightsofapollo @ariane-emory @Brendonovich @webwww123 @Seungjun0906 @MrMushrooooom @taroj1205 @kitlangton @kommander @Hona @selimerunkut @dpuyosa @K-Mistele @claude @R44VC0RP @dtfiedler @gitRasheed @amankalra172 amankalra172 @smitchaudhary @ASidorenkoCode @spoons-and-mirrors @BlankParticle @ysm-dev @annopick @eytans @G36maid @yanhao98 严浩 @niushuai1991 @0xK3vin 0xK3vin @actions-user @albertov @brandon-julio-t @zerone0x @dector @nexxeln @shanebishop1 @alexyaroshuk @finalfantasia @pkx07 @bnema @leehack @bluet @hobostay @rmk40 @imanolmzd-svg @vglafirov @burner @zhzy0077 @ImmuneFOMO @jlongster @goniz @ganeshdole @vynnlee @chenmijiang @hmu332233 Janni Turunen
fix(tool): remove spurious validateDirectory introduced during sync (#…
2a1122c
…192)

* release: v1.1.55

* fix(docs): locale translations

* fix(app): don't scroll code search input

* chore: generate

* fix(app): don't close sidebar on session change (anomalyco#13013)

* zen: log error

* fix(desktop): open apps with executables on Windows (anomalyco#13022)

* fix(docs): invalid markdown

* fix(app): task tool rendering

* release: v1.1.56

* chore: update website stats

* wip: zen

* fix(docs): locale translations

* wip: zen

* wip: zen

* wip: zen

* wip: zen

* wip: zen

* Update VOUCHED list

anomalyco#12841 (comment)

* fix(tui): improve amazon-bedrock check to include container credentials (anomalyco#13037)

* fix(tui): default session sidebar to auto (anomalyco#13046)

* tweak: /review prompt to look for behavior changes more explicitly (anomalyco#13049)

* fix(core): ensure compaction is more reliable, add reserve token buffer to ensure that input window has enough room to compact (anomalyco#12924)

Co-authored-by: James Lal <[email protected]>

* chore: generate

* docs: remove 'Migrating to 1.0' documentation section (anomalyco#13076)

* wip: zen

* fix: add additional context overflow cases, remove overcorrecting ones (anomalyco#13077)

* feat(desktop): add WSL backend mode (anomalyco#12914)

* fix(desktop): read wayland preference from store (anomalyco#13081)

* fix(desktop): server spawn resilience (anomalyco#13028)

Co-authored-by: Brendan Allan <[email protected]>

* fix(docs): avoid footer language selector truncation (anomalyco#13124)

* docs(ko): improve translations for intro, cli, and commands (anomalyco#13094)

* chore: generate

* feat(desktop): enhance Windows app resolution and UI loading states (anomalyco#13084)

* fix: encode non-ASCII directory paths in v1 SDK HTTP headers (anomalyco#13131)

* desktop: use tracing for logging (anomalyco#13135)

* fix(web): prevent language select label truncation (anomalyco#13100)

* fix(app): copy path button styles

* fix(app): terminal copy/paste

* release: v1.1.57

* fix(tui): prevent home wordmark corruption in height-constrained terminals (anomalyco#13069)

* feat(prompt): mode-specific input placeholders (anomalyco#12388)

* fix(tui): keep /share available to copy existing link (anomalyco#12532)

* fix(tui): dismiss dialogs with ctrl+c (anomalyco#12884)

* fix(app): terminal resize

* fix(console): translations

* fix(app): terminal PTY buffer carryover

* fix(app): notifications on child sessions

* Revert "feat(desktop): add WSL backend mode (anomalyco#12914)"

This reverts commit 213a872.

* release: v1.1.58

* fix(app): sidebar remount

* test(app): more e2e tests (anomalyco#13162)

* Fix/reverception (anomalyco#13166)

Co-authored-by: Adam <[email protected]>

* fix(app): translations

* release: v1.1.59

* chore: generate

* fix(app):workspace reset (anomalyco#13170)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>

* chore: generate

* fix(app): translations

* chore: update docs sync workflow

* add square logo variants to brand page

* feat: adjust read tool so that it can handle dirs too (anomalyco#13090)

* tweak: make read tool offset 1 indexed instead of 0 to avoid confusion that could be caused by line #s being 1 based (anomalyco#13198)

* Update VOUCHED list

anomalyco#13204 (comment)

* tweak: compaction check (anomalyco#13214)

* upgrade opentui to 0.1.79 (anomalyco#13036)

* chore: update nix node_modules hashes

* chore: upgrade bun to 1.3.9 (anomalyco#13223)

* chore: update nix node_modules hashes

* tweak: use promise all for mcp listTools calls (anomalyco#13229)

* docs(ar): second-pass localization cleanup

* fix(docs): locale translations for nav elements and headings

* fix(app): guard randomUUID in insecure browser contexts (anomalyco#13237)

Co-authored-by: Selim <[email protected]>

* feat(opencode): Venice Add automatic variant generation for Venice models (anomalyco#12106)

* feat(tui): add toggle to hide session header (anomalyco#13244)

* Update VOUCHED list

anomalyco#13076 (comment)

* support custom api url per model

* chore: generate

* feat: support claude agent SDK-style structured outputs in the OpenCode SDK  (anomalyco#8161)

Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Dax Raad <[email protected]>

* chore: generate

* fix(win32): use ffi to get around bun raw input/ctrl+c issues (anomalyco#13052)

* release: v1.1.60

* zen: return cost

* tweak: tool outputs to be more llm friendly (anomalyco#13269)

* desktop: sqlite migration progress bar (anomalyco#13294)

* Testing SignPath Integration (anomalyco#13308)

* ci: move test-sigining policy

* chore: style loading screen

* wip(ui): diff virtualization (anomalyco#12693)

* chore: update nix node_modules hashes

* feat: update to not post comment on workflows when no duplicates found (anomalyco#13238)

* wip: zen

* core: allow model configurations without npm/api provider details

Makes npm and api fields optional in the provider schema so model definitions

can be more flexible when provider package details aren't needed.

* release: v1.1.61

* chore: generate

* wip: zen

* core: expose tool arguments in shell hook for plugin visibility

* chore: refactor packages/app files (anomalyco#13236)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Frank <[email protected]>

* fix(app): more defensive session context metrics

* fix(app): more defensive code component

* zen: minimax m2.5

* wip: zen

* fix(docs): correct `format` attribute in `StructuredOutputs` (anomalyco#13340)

* fix: downgrade bun to 1.3.5 (anomalyco#13347)

* chore: update nix node_modules hashes

* feat(tool): return image attachments from webfetch (anomalyco#13331)

* ignore: document test fixtures for agents

* chore(app): refactor for better solidjs hygiene (anomalyco#13344)

* fix(app): preserve undo history for plain-text paste (anomalyco#13351)

* fix(app): project icons unloading

* release: v1.1.62

* improve codex model list

* release: v1.1.63

* test: add more test cases for project.test.ts (anomalyco#13355)

* fix(app): remote http server connections

* fix(app): suggestion active state broken

* chore: cleanup

* chore: cleanup

* chore: cleanup

* chore: cleanup

* chore: cleanup

* fix(app): normalize oauth error messages

* feat(app): option to turn off sound effects

* fix(app): terminal pty isolation

* docs: update STACKIT provider documentation with typo fix (anomalyco#13357)

Co-authored-by: amankalra172 <[email protected]>

* chore: generate

* do not open console on error (anomalyco#13374)

* feat: windows selection behavior, manual ctrl+c (anomalyco#13315)

* fix: baseline CPU detection (anomalyco#13371)

* chore: update nix node_modules hashes

* fix: look for recent model in fallback in cli (anomalyco#12582)

* chore: generate

* chore: cleanup flag code (anomalyco#13389)

* fix: token substitution in OPENCODE_CONFIG_CONTENT (anomalyco#13384)

* release: v1.1.64

* fix: resolve ACP hanging indefinitely in thinking state on Windows (anomalyco#13222)

Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: LukeParkerDev <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>

* desktop: only show loading window if sqlite migration is necessary

* fix(app): failed to create store

* fix(app): worktree delete

* chore: cleanup

* fix(app): prompt input quirks

* fix(app): notification should navigate to session

* fix(app): emoji as avatar

* cleanup desktop loading page

* feat(app): toggle all provider models

* fix(app): reconnect event stream on disconnect

* ci: remove signpath policy

* feat(hook): add tool.definition hook for plugins to modify tool description and parameters (anomalyco#4956)

* fix: ensure @-ing a dir uses the read tool instead of dead list tool (anomalyco#13428)

* Revert "fix: token substitution in OPENCODE_CONFIG_CONTENT" (anomalyco#13429)

* release: v1.1.65

* feat: update some ai sdk packages and uuse adaptive reasoning for opus 4.6 on vertex/bedrock/anthropic (anomalyco#13439)

* feat(cli): add --dir option to run command (anomalyco#12443)

* chore: update nix node_modules hashes

* fix(desktop): performance optimization for showing large diff & files  (anomalyco#13460)

* fix(web): sync docs locale cookie on alias redirects (anomalyco#13109)

* fix(app): remount SDK/sync tree when server URL changes (anomalyco#13437)

* docs: Fix zh-cn translation mistake in tools.mdx (anomalyco#13407)

* chore: generate

* fix(web): use prompt_async endpoint to avoid timeout over VPN/tunnel (anomalyco#12749)

* fix(app): terminal resize

* chore: cleanup

* docs(ko): polish Korean phrasing in acp, agents, config, and custom-tools docs (anomalyco#13446)

* docs: add pacman installation option for Arch Linux alongside AUR (anomalyco#13293)

* fix(test): move timeout config to CLI flag (anomalyco#13494)

Co-authored-by: 严浩 <[email protected]>

* fix: standardize zh-CN docs character set and terminology (anomalyco#13500)

* fix(ui): support cmd-click links in inline code (anomalyco#12552)

* fix: prevent opencode run crash on malformed tool inputs (anomalyco#13051)

Co-authored-by: 0xK3vin <[email protected]>

* sqlite again (anomalyco#10597)

Co-authored-by: Github Action <[email protected]>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Brendan Allan <[email protected]>

* chore: generate

* desktop: remote OPENCODE_SQLITE env (anomalyco#13545)

* chore: update nix node_modules hashes

* desktop: fix rust

* release: v1.2.0

* zen: minimax m2.5 & glm5

* fix: tweak websearch tool description date info to avoid cache busts (anomalyco#13559)

* tui: show all project sessions from any working directory

Previously sessions were only listed if they were created in the current
working directory or its subdirectories. Users can now view and switch
to any session in the project regardless of which directory they're in.

* release: v1.2.1

* ci: test-signing signpath policy

* ci: move signpath policy

* bump vertex ai packages (anomalyco#13625)

* fix vercel gateway variants (anomalyco#13541)

Co-authored-by: Benjamin Woodruff <[email protected]>"

* chore: update nix node_modules hashes

* core: filter sessions at database level to improve session list loading performance

* core: add comprehensive test coverage for Session.list() filters

Adds test cases for filtering sessions by directory, root sessions only,

start time, search terms, and result limits to ensure the listing

functionality works correctly for all filter combinations.

* release: v1.2.2

* fix: ensure vercel variants pass amazon models under bedrock key (anomalyco#13631)

* chore: bump nixpkgs to get bun 1.3.9 (anomalyco#13302)

* fix: add WAL checkpoint on database open (anomalyco#13633)

* fix: ensure anthropic models on OR also have variant support (anomalyco#13498)

* chore: update nix node_modules hashes

* release: v1.2.3

* fix(app): stack overflow in filetree (anomalyco#13667)

Co-authored-by: adamelmore <[email protected]>

* feat(app): clear notifications action (anomalyco#13668)

Co-authored-by: adamelmore <[email protected]>

* fix: derive all IDs from file paths during json migration

Earlier migrations moved data to new directories without updating JSON
fields. Now consistently derives all IDs from file paths:

- Projects: id from filename
- Sessions: id from filename, projectID from parent directory
- Messages: id from filename, sessionID from parent directory
- Parts: id from filename, messageID from parent directory

This ensures migrated data matches the actual file layout regardless of
stale values in JSON content.

* test: add tests for path-derived IDs in json migration

Tests verify that file paths are used for IDs even when JSON contains
different values - ensuring robustness against stale JSON content.

* core: add db command for database inspection and querying

* release: v1.2.4

* fix: ensure sqlite migration logs to stderr instead of stdout (anomalyco#13691)

* feat: Add GeistMono Nerd Font to available mono font options (anomalyco#13720)

* fix(desktop): focus window after update/relaunch (anomalyco#13701)

* docs: add Ukrainian README translation (anomalyco#13697)

* fix(app): keybind [shift+tab] (anomalyco#13695)

* fix(app): only navigate prompt history at input boundaries (anomalyco#13690)

* fix(desktop): issue viewing new files opened from the file tree (anomalyco#13689)

* feat(app): localize "free usage exceeded" error & "Add credits" clickable link (anomalyco#13652)

* release: v1.2.5

* feat(opencode): add `cljfmt` formatter support for Clojure files (anomalyco#13426)

* fix(website): correct zh-CN translation of proprietary terms in zen.mdx (anomalyco#13734)

Co-authored-by: Copilot <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>

* chore: generate

* desktop: use process-wrap instead of manual job object (anomalyco#13431)

* feat(opencode): Add Venice support in temperature, topP, topK and smallOption (anomalyco#13553)

* fix(desktop): normalize Linux Wayland/X11 backend and decoration policy (anomalyco#13143)

Co-authored-by: Brendan Allan <[email protected]>

* feat: add openai-compatible endpoint support for google-vertex provider (anomalyco#10303)

Co-authored-by: BlueT - Matthew Lien - 練喆明 <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>

* chore: generate

* fix: google vertex var priority (anomalyco#13816)

* fix(docs): correct critical translation errors in Russian zen page (anomalyco#13830)

* fix(core): remove unnecessary per-message title LLM calls (anomalyco#13804)

* chore: cleanup

* fix (tui): Inaccurate tips (anomalyco#13845)

* fix: bump GitLab provider and auth plugin for mid-session token refresh (anomalyco#13850)

* chore: update nix node_modules hashes

* feat(cli): add --continue and --fork flags to attach command (anomalyco#13879)

* feat(cli): add db migrate command for JSON to SQLite migration (anomalyco#13874)

* ignore: rm random comment on opencode.jsonc

* fix(tui): make use of server dir path for file references in prompts (anomalyco#13781)

* feat(opencode): add `dfmt` formatter support for D language files (anomalyco#13867)

* release: v1.2.6

* feat(cli): add session delete command (anomalyco#13571)

* fix(opencode): ACP sessions never get LLM-generated titles (anomalyco#13095)

* feat(acp): add opt-in flag for question tool (anomalyco#13562)

Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>

* tweak: drop ids from attachments in tools, assign them in prompt.ts instead (anomalyco#13890)

* fix(website): fix site in safari 18 (anomalyco#13894)

* ci: fixed apt cache not working in publish.yml (anomalyco#13897)

* ci: use `useblacksmith/stickydisk` on linux runners only (anomalyco#13909)

* core: keep message part order stable when files resolve asynchronously (anomalyco#13915)

* ci: fixed Rust cache for 'cargo install' in publish.yml (anomalyco#13907)

* ci: fixed missing if condition (anomalyco#13934)

* Hide server CLI on windows (anomalyco#13936)

* zen: glm 5 free

* wip: zen

* ci: update triage workflow (anomalyco#13944)

* fix(app): keep Escape handling local to prompt input on macOS desktop (anomalyco#13963)

* docs(ko): improve Korean translation accuracy and clarity in Zen docs (anomalyco#13951)

* docs: improve zh-cn and zh-tw documentation translations (anomalyco#13942)

* fix(docs): correct reversed meaning in Korean plugins logging section (anomalyco#13945)

* chore: generate

* fix(opencode): resolve conflicts from upstream sync

* fix(tool): remove spurious validateDirectory introduced during sync (#191)

---------

Co-authored-by: opencode <[email protected]>
Co-authored-by: Adam <[email protected]>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Frank <[email protected]>
Co-authored-by: Filip <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: OpeOginni <[email protected]>
Co-authored-by: Dax <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: James Lal <[email protected]>
Co-authored-by: Ariane Emory <[email protected]>
Co-authored-by: Brendan Allan <[email protected]>
Co-authored-by: Brendan Allan <[email protected]>
Co-authored-by: webwww123 <[email protected]>
Co-authored-by: Jun <[email protected]>
Co-authored-by: Jack <[email protected]>
Co-authored-by: Shintaro Jokagi <[email protected]>
Co-authored-by: Kit Langton <[email protected]>
Co-authored-by: Dax Raad <[email protected]>
Co-authored-by: Sebastian <[email protected]>
Co-authored-by: Luke Parker <[email protected]>
Co-authored-by: Selim <[email protected]>
Co-authored-by: dpuyosa <[email protected]>
Co-authored-by: Kyle Mistele <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Ryan Vogel <[email protected]>
Co-authored-by: Dylan Fiedler <[email protected]>
Co-authored-by: Rasheed <[email protected]>
Co-authored-by: Aman Kalra <[email protected]>
Co-authored-by: amankalra172 <[email protected]>
Co-authored-by: Smit Chaudhary <[email protected]>
Co-authored-by: projectArtur <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Spoon <[email protected]>
Co-authored-by: Rahul Mishra <[email protected]>
Co-authored-by: Chris Yang <[email protected]>
Co-authored-by: Annopick <[email protected]>
Co-authored-by: eytans <[email protected]>
Co-authored-by: G36maid <[email protected]>
Co-authored-by: 严浩 <[email protected]>
Co-authored-by: 严浩 <[email protected]>
Co-authored-by: Niu Shuai <[email protected]>
Co-authored-by: Kevin <[email protected]>
Co-authored-by: 0xK3vin <[email protected]>
Co-authored-by: Github Action <[email protected]>
Co-authored-by: Alberto Valverde <[email protected]>
Co-authored-by: adamelmore <[email protected]>
Co-authored-by: Brandon Julio Thenaro <[email protected]>
Co-authored-by: zerone0x <[email protected]>
Co-authored-by: Denys <[email protected]>
Co-authored-by: Shoubhit Dash <[email protected]>
Co-authored-by: Shane Bishop <[email protected]>
Co-authored-by: Alex Yaroshuk <[email protected]>
Co-authored-by: Salam Elbilig <[email protected]>
Co-authored-by: Pan Kaixin <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: bnema <[email protected]>
Co-authored-by: Jhin Lee <[email protected]>
Co-authored-by: BlueT - Matthew Lien - 練喆明 <[email protected]>
Co-authored-by: Chujiang <[email protected]>
Co-authored-by: Rafi Khardalian <[email protected]>
Co-authored-by: Imanol Maiztegui <[email protected]>
Co-authored-by: Vladimir Glafirov <[email protected]>
Co-authored-by: Robert Schadek <[email protected]>
Co-authored-by: Zhiyuan Zheng <[email protected]>
Co-authored-by: ImmuneFOMO <[email protected]>
Co-authored-by: James Long <[email protected]>
Co-authored-by: Goni Zahavy <[email protected]>
Co-authored-by: Ganesh <[email protected]>
Co-authored-by: vynn <[email protected]>
Co-authored-by: chenmi <[email protected]>
Co-authored-by: Minung Han <[email protected]>
Co-authored-by: Janni Turunen <[email protected]>
@rekram1-node

rekram1-node commented Feb 18, 2026

Copy link
Copy Markdown
Member

I think it's basically the same pattern, we update models.dev and then in here any configs and things we remap them.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
@leehack @bluet @rekram1-node
feat: add openai-compatible endpoint support for google-vertex provid…
0272824
…er (anomalyco#10303)

Co-authored-by: BlueT - Matthew Lien - 練喆明 <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
@leehack @bluet @rekram1-node
feat: add openai-compatible endpoint support for google-vertex provid…
2e82217
…er (anomalyco#10303)

Co-authored-by: BlueT - Matthew Lien - 練喆明 <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
@leehack @bluet @rekram1-node
feat: add openai-compatible endpoint support for google-vertex provid…
b9a9092
…er (anomalyco#10303)

Co-authored-by: BlueT - Matthew Lien - 練喆明 <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@leehack @bluet @rekram1-node
feat: add openai-compatible endpoint support for google-vertex provid…
4f3edb2
…er (#10303)

Co-authored-by: BlueT - Matthew Lien - 練喆明 <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
@leehack @bluet @rekram1-node
feat: add openai-compatible endpoint support for google-vertex provid…
8e239cd
…er (anomalyco#10303)

Co-authored-by: BlueT - Matthew Lien - 練喆明 <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@rekram1-node rekram1-node rekram1-node left review comments
+1 more reviewer
@bluet bluet bluet left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add google-vertex-openapi provider for third-party models (GLM)

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@leehack @NimaAra @bluet @rekram1-node @ddesmond @KuzonCode @klinki
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.