vertex— Google Cloud’s Vertex AI, authenticated via Application Default Credentials (ADC) or a service-account JSON. Requires a GCP project id and region. Best for workloads that run inside GCP or that need IAM-based access control.gemini— Google AI Studio (Gemini API), authenticated with a simple API key. No GCP project needed. Best for quick experimentation or environments outside GCP.
Vertex AI
Quick start
~/.cynative/config.yaml file is required, but Vertex always needs project_id and region — there is no single-key fallback for Vertex. A bare CYNATIVE_LLM_API_KEY alone is not sufficient and fails at load with a clear error.
YAML configuration
Flat form (equivalent to the env-var quick start):keys[] form (for IAM-role auth, explicit service-account content, etc.):
Authentication
Vertex authenticates via thevertex config block, not via a key value. Two credential modes:
- Application Default Credentials (ADC). Leave
auth_credentialsempty (or unset). The Google SDK resolves credentials automatically — fromGOOGLE_APPLICATION_CREDENTIALS(path to a service-account JSON file), Workload Identity on GKE, or the gcloud CLI credentials. This is the recommended path for production and CI. - Inline service-account JSON. Set
auth_credentialsto the content of the service-account JSON (not a file path). Useful when you need to embed credentials without filesystem access.
GOOGLE_APPLICATION_CREDENTIALS is read by the Google SDK at request time — Cynative does not treat it as a generic API-key fallback.
Environment variable reference
Gemini (AI Studio)
Quick start
~/.cynative/config.yaml file is required.
YAML configuration
Authentication
Get a Gemini API key from aistudio.google.com/app/apikey. No GCP project or IAM configuration is required. Cynative resolves the key fromllm.api_key, CYNATIVE_LLM_API_KEY, or GEMINI_API_KEY, in that order.
This is the AI Studio–flavored Gemini API, separate from Vertex AI. Use the
vertex provider above for Google Cloud / IAM-authenticated access to Gemini models.Environment variable reference
Prompt caching
Claude models served through Vertex AI participate in Cynative’s automatic prompt-caching (cache breakpoints on tool schemas, system prompt, and recent turns). Native Gemini models on bothvertex and gemini apply server-side caching automatically — Cynative’s cache markers are stripped or ignored by Bifrost’s Gemini converter. See the prompt caching section in the overview for full details.

