Skip to main content
Switch providers by changing one line — your agent definition stays the same.

Supported Providers

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:
  1. Environment config model_override — from config/<env>.yaml
  2. CLI flag --model provider:model-id — passed at runtime
  3. agent.yaml model.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 in agent.yaml.
Compatible endpoints: Ollama (:11434), LM Studio (:1234), vLLM (:8000), LiteLLM (:4000), Lyzr AI Studio, and any other OpenAI-compatible proxy.

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 flaggitagent --model "lyzr:<AGENT_ID>@https://agent-prod.studio.lyzr.ai/v4" --dir ~/assistant
  • Via SDK — Use the query() function with a lyzr: 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