Loading...
Loading...
Configure LLM models and providers for Letta agents and servers. Use when setting model handles, adjusting temperature/tokens, configuring provider-specific settings, setting up BYOK providers, or configuring self-hosted deployments with environment variables.
npx skill4agent add letta-ai/skills letta-configurationagent-developmentprovider/model-name| Provider | Handle Prefix | Example |
|---|---|---|
| OpenAI | | |
| Anthropic | | |
| Google AI | | |
| Azure OpenAI | | |
| AWS Bedrock | | |
| Groq | | |
| Together | | |
| OpenRouter | | |
| Ollama (local) | | |
from letta_client import Letta
client = Letta(api_key="your-api-key")
agent = client.agents.create(
model="openai/gpt-4o",
model_settings={
"provider_type": "openai", # Required - must match model provider
"temperature": 0.7,
"max_output_tokens": 4096,
},
context_window_limit=128000
)| Setting | Type | Description |
|---|---|---|
| string | Required. Must match model provider ( |
| float | Controls randomness (0.0-2.0). Lower = more deterministic. |
| int | Maximum tokens in the response. |
client.agents.update(
agent_id=agent.id,
model="anthropic/claude-sonnet-4-5-20250929",
model_settings={"provider_type": "anthropic", "temperature": 0.5},
context_window_limit=64000
)references/provider-settings.md# Add provider via API
python scripts/setup_provider.py --type openai --api-key sk-...
# Generate .env for Docker
python scripts/generate_env.py --providers openai,anthropic,ollama
# Validate credentials
python scripts/validate_provider.py --provider-id provider-xxx# Via REST API
curl -X POST http://localhost:8283/v1/providers \
-H "Content-Type: application/json" \
-d '{
"name": "My OpenAI",
"provider_type": "openai",
"api_key": "sk-your-key-here"
}'openaianthropicazuregoogle_aigoogle_vertexollamagroqdeepseekxaitogethermistralcerebrasbedrockvllmsglanghugging_facelmstudio_openaireferences/common_providers.mdreferences/self_hosted_providers.mdreferences/all_providers.mdreferences/environment_variables.mdprovider/model-namemodel_settingsprovider_typecontext_window_limitmodel_settingsscripts/basic_config.pyscripts/basic_config.tsscripts/change_model.pyscripts/provider_specific.pyscripts/setup_provider.pyscripts/validate_provider.pyscripts/generate_env.py