Presets Reference
Looplia includes 24 built-in presets for quickly configuring model providers. Presets bundle provider settings, API endpoints, and model configurations into a single command.
Quick Reference
Section titled “Quick Reference”| Category | Count | Description |
|---|---|---|
| Anthropic Direct | 2 | Direct Anthropic API with your API key |
| Claude Code Subscription | 3 | Use your Claude Code subscription |
| ZenMux Proxy | 15 | Access multiple providers via ZenMux |
| OpenRouter | 2 | Access models via OpenRouter |
| Ollama | 2 | Local Ollama with cloud model routing |
| Total | 24 |
Applying Presets
Section titled “Applying Presets”# Apply a presetlooplia config provider preset <PRESET_NAME>
# Verify configurationlooplia config provider show
# Run workflowlooplia run writing-kit --file article.mdAnthropic Direct
Section titled “Anthropic Direct”Direct connection to Anthropic’s API. Requires ANTHROPIC_API_KEY environment variable.
| Preset | Model | Description |
|---|---|---|
ANTHROPIC_CLAUDE_HAIKU | claude-haiku-4-5-20251001 | Fast, cost-effective |
ANTHROPIC_CLAUDE_SONNET | claude-sonnet-4-5-20250929 | Balanced performance |
# Set API keyexport ANTHROPIC_API_KEY=sk-ant-api03-...
# Apply presetlooplia config provider preset ANTHROPIC_CLAUDE_HAIKU
# Run workflowlooplia run writing-kit --file article.mdClaude Code Subscription
Section titled “Claude Code Subscription”Use your existing Claude Code subscription instead of separate API credits. Requires CLAUDE_CODE_OAUTH_TOKEN environment variable.
| Preset | Model | Description |
|---|---|---|
CLAUDE_CODE_SUBSCRIPTION_HAIKU | claude-haiku-4-5-20251001 | Haiku via subscription |
CLAUDE_CODE_SUBSCRIPTION_SONNET | claude-sonnet-4-5-20250929 | Sonnet via subscription |
CLAUDE_CODE_SUBSCRIPTION_OPUS | claude-opus-4-5-20251101 | Opus via subscription |
# Extract OAuth token from macOS Keychainexport CLAUDE_CODE_OAUTH_TOKEN=$(security find-generic-password -s "Claude Code-credentials" -w | jq -r '.claudeAiOauth.accessToken')
# Or set directly if you have the tokenexport CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-...
# Apply presetlooplia config provider preset CLAUDE_CODE_SUBSCRIPTION_SONNET
# Run workflowlooplia run writing-kit --file article.mdZenMux Proxy
Section titled “ZenMux Proxy”Access multiple AI providers through the ZenMux proxy. Requires ZENMUX_API_KEY environment variable.
| Preset | Model | Provider |
|---|---|---|
ZENMUX_GOOGLE_GEMINI3FLASH | google/gemini-3-flash-preview | |
ZENMUX_GOOGLE_GEMINI3FLASH_FREE | google/gemini-3-flash-preview-free | Google (Free) |
| Preset | Model | Provider |
|---|---|---|
ZENMUX_ZAI_GLM5 | z-ai/glm-5 | Zhipu AI |
ZENMUX_MINIMAX_M25LIGHTNING | minimax/minimax-m2.5-lightning | MiniMax |
ZENMUX_MINIMAX_M25 | minimax/minimax-m2.5 | MiniMax |
ZENMUX_MINIMAX_M21 | minimax/minimax-m2.1 | MiniMax |
ZENMUX_QWEN_QWEN35PLUS | qwen/qwen3.5-plus | Alibaba |
ZENMUX_XAI_GROK41FAST | x-ai/grok-4.1-fast | xAI |
ZENMUX_OPENAI_GPT51CODEXMINI | openai/gpt-5.1-codex-mini | OpenAI |
# Set ZenMux API keyexport ZENMUX_API_KEY=sk-zenmux-...
# Apply preset (example: GLM-4.7)looplia config provider preset ZENMUX_MINIMAX_M21
# Run workflowlooplia run writing-kit --file article.mdAll ZenMux Presets
Section titled “All ZenMux Presets”| Preset | Model | Provider |
|---|---|---|
ZENMUX_ZAI_GLM5 | z-ai/glm-5 | Zhipu AI |
ZENMUX_MINIMAX_M25LIGHTNING | minimax/minimax-m2.5-lightning | MiniMax |
ZENMUX_MINIMAX_M25 | minimax/minimax-m2.5 | MiniMax |
ZENMUX_MINIMAX_M21 | minimax/minimax-m2.1 | MiniMax |
ZENMUX_GOOGLE_GEMINI3FLASH | google/gemini-3-flash-preview | |
ZENMUX_GOOGLE_GEMINI3FLASH_FREE | google/gemini-3-flash-preview-free | Google (Free) |
ZENMUX_QWEN_QWEN35PLUS | qwen/qwen3.5-plus | Alibaba |
ZENMUX_XAI_GROK41FAST | x-ai/grok-4.1-fast | xAI |
ZENMUX_OPENAI_GPT51CODEXMINI | openai/gpt-5.1-codex-mini | OpenAI |
OpenRouter
Section titled “OpenRouter”Access multiple models through OpenRouter with centralized configuration via their dashboard.
| Preset | Model | Description |
|---|---|---|
OPENROUTER_PRESET | @preset/looplia-default | User-configured preset |
-
Create preset in OpenRouter dashboard:
- Visit OpenRouter Presets
- Click “Create Preset”
- Name it exactly
looplia-default - Select your preferred model (Claude, GPT-4, Gemini, etc.)
- Configure routing options (fallbacks, providers, etc.)
- Save the preset
-
Configure looplia:
Terminal window # Set OpenRouter API keyexport OPENROUTER_API_KEY=sk-or-v1-...# Apply presetlooplia config provider preset OPENROUTER_PRESET# Verify configurationlooplia config provider show -
Run workflows:
Terminal window looplia run writing-kit --file article.md
Benefits
Section titled “Benefits”- Access 100+ models through one integration
- Change models via dashboard without reconfiguring looplia
- Use advanced routing (fallbacks, load balancing, cost optimization)
- Centralized billing and usage tracking
Ollama
Section titled “Ollama”Local Ollama installation with cloud model routing. Requires Ollama running locally.
| Preset | Model | Description |
|---|---|---|
OLLAMA_GLM47_CLOUD | glm-4.7:cloud | GLM-4.7 via Ollama cloud routing |
OLLAMA_MINIMAX_M21_CLOUD | minimax-m2.1:cloud | MiniMax-M2.1 via Ollama cloud routing |
# Ensure Ollama is runningollama serve
# Optional: Set API key (defaults to "ollama" if not set)export OLLAMA_API_KEY=ollama
# Apply presetlooplia config provider preset OLLAMA_GLM47_CLOUD
# Run workflowlooplia run writing-kit --file article.mdCustom Configuration
Section titled “Custom Configuration”For advanced use cases, you can set individual provider values:
# Set custom base URLlooplia config provider set base-url https://custom-proxy.example.com
# Set auth tokenlooplia config provider set auth-token sk-custom-xxx
# Set modellooplia config provider set model custom-model-name
# Set provider typelooplia config provider set provider customReset Configuration
Section titled “Reset Configuration”# Reset to defaultslooplia config provider resetEnvironment Variables
Section titled “Environment Variables”Provider settings can also be configured via environment variables:
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key (default provider) |
ZENMUX_API_KEY | ZenMux API key (auto-mapped) |
OPENROUTER_API_KEY | OpenRouter API key (uses ANTHROPIC_AUTH_TOKEN) |
OLLAMA_API_KEY | Ollama API key (defaults to “ollama”) |
CLAUDE_CODE_OAUTH_TOKEN | Claude Code subscription OAuth token |
See Also
Section titled “See Also”- config Command — Manage provider settings
- Environment Variables — Full variable reference
- Installation — Initial setup