Preface¶
When integrating Gemini into DeepSeek Harness (DSH), the common approaches are to provide your own API key or go through a third-party gateway. If you are already running Vertex AI on Google Cloud and billing through a personal or work Google account, you may prefer the harness to directly use the Google login already available on your machine rather than storing keys in configuration long-term. For that, you need an inference route based on “Application Default Credentials (ADC) + a specified GCP project.”
Below we introduce the community plugin dsh-vertex-gemini (maintainer mn288, category: model inference): it loads on the official npx @deepseek-ai/dsh, calls Gemini via Vertex AI’s OpenAI-compatible chat-completions endpoint in streaming mode, obtains credentials from gcloud auth application-default login, and bills to the Google Cloud project you configured.
What This Is¶
dsh-vertex-gemini is a DeepSeek Harness plugin: it uses Gemini on Google Cloud Vertex AI with Application Default Credentials for authentication, and does not create or store API keys in the plugin or DSH.
Repository: https://github.com/mn288/dsh-vertex-gemini
Community directory: https://www.skillhub.cn/plugins/mn288/dsh-vertex-gemini
The plugin registers the provider route vertex-ai and connects to the harness’s LLM layer. The README states that it has been verified on @deepseek-ai/dsh 0.1.5-rc.2; the harness API is still in a pre-stable phase, and later versions may require the plugin to be updated accordingly.
Core Features¶
Credentials and Billing¶
- Uses
google-auth-libraryto resolve credentials in Google’s standard order (includingGOOGLE_APPLICATION_CREDENTIALS, gcloud user login, metadata server, etc.). - Defaults to
auth: adc, i.e. local ADC; it can also be set toauth: access-tokento read a Bearer token from an environment variable (defaultGOOGLE_OAUTH_ACCESS_TOKEN), which is convenient for CI to self-sign tokens. - The project actually called is determined by
projector the environment variablesGOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT, and billing is attributed to that GCP project.
Models and Endpoints¶
- By default, the model selector displays Gemini 3.8 Flash; entries can be added or removed under
llm-vertex.modelsinsettings.yaml. Any Gemini model id your project is authorized to call can be used; the list mainly affects selector display. locationdefaults toglobaland can be changed to a region (such aseurope-west1) to use the corresponding endpoint.- Supports reasoning levels Low / Medium / High; defaults to
reasoningEffort: high. If other vendors’xhigh/maxremain in settings,UNSUPPORTED_REASONING_EFFORTmay be triggered, so the level needs to be changed in the UI or configuration.
Agents and Tool Calls¶
Gemini 3 attaches an opaque thought signature to tool calls, and subsequent requests must return it verbatim; otherwise they will be rejected. The plugin writes the signature into the session log and replays it in subsequent requests, so multi-step tool calls can continue after a restart or session resume; history from other models/vendors is sent with the skip marker documented by Google.
Capability Boundaries¶
- Text only: attaching images will trigger
UNSUPPORTED_CONTENT; it will not be silently dropped. - No dedicated settings page: Settings → Models lists the provider, but there is no separate configuration card, so configuration must be done via environment variables or
~/.dsh/settings.yaml. - The current release package version is 0.1.0 (the tarball filename in the installation example); license MIT.
Pre-installation Preparation¶
The README lists the following dependencies:
- Node.js 22.19+ or 24+.
- gcloud CLI.
- pnpm on PATH (
npm install -g pnpm);dsh plugininvokes pnpm inside the profile. - Read access to the GitHub repository, and login to GitHub CLI (
gh auth login), used to download the release. - A GCP project with the Vertex AI API enabled and permission to call it for your account (such as
roles/aiplatform.user).
The DSH community plugin directory (SkillHub) has no official affiliation with DeepSeek / High-Flyer; the plugin runs with the permissions of the current dsh process. It is recommended to review the source code and LICENSE yourself before installing.
Installation and Activation¶
1. Log in to Google (ADC)¶
Store a Google login on this machine that the plugin can automatically refresh:
gcloud auth application-default login
2. Download the release and install it into the profile¶
The profile records the absolute path of the tarball; if the file is deleted, the next installation will fail. The README recommends placing it in ~/.dsh/plugins:
mkdir -p ~/.dsh/plugins
gh release download --repo mn288/dsh-vertex-gemini --pattern '*.tgz' --dir ~/.dsh/plugins
npx @deepseek-ai/dsh plugin --profile web add ~/.dsh/plugins/dsh-vertex-gemini-0.1.0.tgz
When pnpm finishes, there may be a batch of missing peer @deepseek-ai/... warnings; the README explains this is expected (peers are resolved by the runtime at a higher level in the profile tree). Take the appearance of + dsh-vertex-gemini in the dependency list as the success criterion.
For terminal headless scenarios, you can additionally run:
npx @deepseek-ai/dsh plugin --profile headless add ~/.dsh/plugins/dsh-vertex-gemini-0.1.0.tgz
To update: download the new release to the same directory and run add again on the new tarball.
Uninstall:
npx @deepseek-ai/dsh plugin --profile web remove dsh-vertex-gemini
3. Specify a GCP project¶
Export in the shell that launches dsh:
export GOOGLE_CLOUD_PROJECT=my-gcp-project
Or write it into the default $DSH_HOME/settings.yaml (usually ~/.dsh/settings.yaml):
llm-vertex:
project: my-gcp-project
If no project is configured, Settings → Models shows the provider, but no Vertex models appear in the selector. This is expected behavior.
4. Start the Web UI and select a model¶
npx @deepseek-ai/dsh web
The plugin loads at process startup; if dsh web is already running, you need to restart it before opening. In the model selector, choose Google Vertex AI → Gemini 3.8 Flash; new sessions will use this as the default.
Typical Configuration¶
The optional fields in settings.yaml are all under llm-vertex:. Changes take effect for the next request; no restart is needed. Common options:
| Field | Default | Meaning |
|---|---|---|
project |
environment variable | The project called and billed |
location |
global |
Vertex region |
reasoningEffort |
high |
low / medium / high |
maxTokens |
65536 |
Output cap when not specified in a model entry |
publisher |
google |
Prefix sent with bare model ids |
streamIdleTimeoutMs |
300000 |
Idle timeout for streaming responses |
Example of adding a second model:
llm-vertex:
project: my-gcp-project
models:
- id: gemini-3.8-flash
name: Gemini 3.8 Flash
- id: another-gemini-model-id
name: Shown in the picker
The README notes: Gemini 3.8 Flash counts thinking tokens toward the output cap; if maxTokens is too small, the request may end with max-tokens and no body text. It is recommended to keep the default 65536 or at least several thousand.
Troubleshooting (excerpt)¶
| Symptom | Direction |
|---|---|
MISSING_CREDENTIAL |
Run gcloud auth application-default login |
AUTH |
Log in again; confirm the account has roles/aiplatform.user for the project |
NOT_FOUND |
Check the model id, location, and whether the Vertex AI API is enabled |
QUOTA / RATE_LIMIT |
The harness will retry; if persistent, request more quota in the Cloud console |
| No Vertex models in the selector | Configure project |
UNSUPPORTED_CONTENT |
The plugin does not support image input |
Use Cases and Notes¶
Suitable for: Those who have already enabled Vertex AI on GCP and want DSH Web or headless sessions to default to Gemini; who need multi-turn tool calls and rely on thought signature replay; who do not want to write Gemini API keys in DSH configuration and prefer to use organization-wide ADC or gcloud user login.
Notes:
- You are responsible for GCP usage and quotas; the plugin sends requests to the project/location you specify.
- Supports text-only conversations and toolchains; not suitable for multimodal image input.
- Installation relies on
gh release download, not commands likedsh plugin add github:owner/repo; follow the README as written. - The README records that on 2026-09-21 it was verified against the real Vertex API (Gemini 3.8 Flash,
location: global); after changing the harness or plugin version, maintainers can re-run E2E according to the instructions in the repository.
Conclusion¶
dsh-vertex-gemini connects DSH model inference to Vertex AI Gemini: ADC login, project-level billing, streaming OpenAI-compatible interfaces, and handling of the signature replay required by Gemini 3 tool calls. If your agent stack is already on Google Cloud, this path reduces key maintenance, leaving “who logs in and which project pays” in the familiar flow on the GCP side.
- Directory page: https://www.skillhub.cn/plugins/mn288/dsh-vertex-gemini
- GitHub: https://github.com/mn288/dsh-vertex-gemini