Supported Providers
| Provider | Example | Env Var |
|---|---|---|
| Anthropic | anthropic:claude-sonnet-4-6 | ANTHROPIC_API_KEY |
| OpenAI | openai:gpt-4o | OPENAI_API_KEY |
google:gemini-2.0-flash-001 | GOOGLE_API_KEY | |
| Groq | groq:llama-3.3-70b-versatile | GROQ_API_KEY |
| xAI | xai:grok-2-1212 | XAI_API_KEY |
| Mistral | mistral:mistral-large-latest | MISTRAL_API_KEY |
| OpenRouter | openrouter:anthropic/claude-3.5-sonnet | OPENROUTER_API_KEY |
| Cerebras | cerebras:llama3.1-70b | CEREBRAS_API_KEY |
| DeepSeek | deepseek:deepseek-chat | DEEPSEEK_API_KEY |
| Amazon Bedrock | amazon-bedrock:anthropic.claude-3-sonnet | AWS credentials |
| Google Vertex | google-vertex:gemini-2.5-flash | GCP ADC |
| Azure OpenAI | azure-openai-responses:gpt-4o | AZURE_OPENAI_API_KEY |
For provider-specific credentials — Azure OpenAI, Amazon Bedrock, Google Vertex AI, and Cloudflare Workers AI all take extra environment variables beyond a single API key. See Environment Variables for the full list.
Model Resolution Order
When multiple model sources are configured, GitAgent resolves the active model in this priority order:- Environment config
model_override— fromconfig/<env>.yaml - CLI flag
--model provider:model-id— passed at runtime agent.yamlmodel.preferred— defined in the agent repo
Custom / OpenAI-Compatible Endpoints
Any OpenAI-compatible endpoint works — point GitAgent at it inline, via an environment variable, or inagent.yaml.
Lyzr AI Studio Integration
Connect to Lyzr’s managed agent infrastructure. Your agent runs on Lyzr’s servers with full observability.- Via installer (easiest) — Run the interactive installer and select Lyzr when prompted
- Via CLI flag —
gitagent --model "lyzr:<AGENT_ID>@https://agent-prod.studio.lyzr.ai/v4" --dir ~/assistant - Via SDK — Use the
query()function with alyzr:model string (see example below)
Environment Variables
Full list of provider API keys and runtime config variables
Overview
See how model configuration fits into the wider GitAgent architecture
SDK Reference
Pass model strings and constraints to query()
Observability
Track token usage and cost per model via OpenTelemetry