Skip to content
Back to skills

Model Providers

ASecurity

Configure model access via GCP Agent Platform (Vertex), Gemini API, or OpenRouter.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsgogcpgitapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned October 6, 2026

npx -y skills add fmind/dot --skill model-providers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Providers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Providers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fmind-model-providers/badge)](https://www.skillsdirectory.com/skills/fmind-model-providers)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: model-providers
description: "Configure model access via GCP Agent Platform (Vertex), Gemini API, or OpenRouter."
license: MIT
metadata:
  kind: collection
  author: Médéric HURIER (Fmind)
  source: github.com/fmind/dot/tree/main/skills/model-providers
  created: "2026-09-16"
  updated: "2026-10-05"
---

# Model Providers

Configure provider authentication, endpoints, and model selection. Default new integrations to **GCP Agent Platform with ADC**, `global`, `gemini-3.8-flash`, and high thinking. The personal project is `ai-studio-fmind`; explicit project/customer settings take precedence. Preserve OpenCode's OpenRouter default. Use API keys only when explicitly requested or as a last resort after reporting why ADC cannot work; never retry automatically with a key or switch to AI Studio after an error.

## Workflow

1. **Never let a key pick the provider**: resolve the requested provider before inspecting credentials. An available key is not a reason to switch providers. Use the selected guide only; [gcloud](../gcloud/SKILL.md) owns Cloud identity/IAM and [agent-harnesses](../agent-harnesses/SKILL.md) owns coding-host settings.
1. **Establish project, model ID, and capabilities**: the GCP project, the provider-native model ID, and the required capabilities. Check the installed SDK and current provider catalog; model IDs, tool calling, reasoning, structured output, and regional availability vary by provider.
1. **Pin the provider and scope keys**: make the provider explicit in application configuration so ambient Google API keys or SDK backend flags cannot silently select another service. Supply keys only to the process that needs them, through a secret manager or `dot secret run NAME -- COMMAND`; use native credential stores where supported. Never place keys in code or generated configuration.
1. **Probe read-only; never silently fall back**: validate configuration and use a read-only model/auth probe first. Run inference only within the authorized usage scope, with a bounded output and timeout. Report authentication, model access, and successful inference separately; do not silently fall back to another provider or billing project after an error.

## Task guides

<!-- guides:start -->

- [gcp-agent-platform](references/gcp-agent-platform.md): GCP Agent Platform model access with ADC and global location.
- [gemini-api](references/gemini-api.md): Gemini Developer API access with an explicitly requested API key backend.
- [openrouter](references/openrouter.md): OpenRouter model routing, API key authentication, and OpenAI-compatible requests.

<!-- guides:end -->

Files in this skill

  • SKILL.md2.2 KB
  • references/gcp-agent-platform.md2.7 KB
  • references/gemini-api.md2 KB
  • references/openrouter.md2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…