looplia config
The config command manages your Looplia settings, including user profile and model provider configuration.
looplia config <subcommand> [options]Subcommands
Section titled “Subcommands”| Subcommand | Description |
|---|---|
show | Display current configuration |
topics | Set topics of interest |
style | Set writing style preferences |
provider | Manage model provider settings |
User Profile Commands
Section titled “User Profile Commands”Show Configuration
Section titled “Show Configuration”looplia config showDisplays your current profile:
{ "topics": ["AI", "productivity", "technology"], "style": { "tone": "expert", "wordCount": 1500, "voice": "first-person" }}Set Topics
Section titled “Set Topics”looplia config topics "AI, productivity, writing"Topics influence content generation and idea synthesis.
Set Style
Section titled “Set Style”looplia config style --tone expert --word-count 1500 --voice first-person| Option | Values | Description |
|---|---|---|
--tone | casual, professional, expert | Writing tone |
--word-count | number | Target word count |
--voice | first-person, third-person | Narrative voice |
Provider Command
Section titled “Provider Command”Configure which AI provider and model to use for workflow execution.
Show Provider Config
Section titled “Show Provider Config”looplia config provider showOutput:
Current Provider Configuration──────────────────────────────Provider: anthropicModel: claude-sonnet-4-20250514Base URL: https://api.anthropic.comAuth Token: sk-ant-***...***
Available Presets: ANTHROPIC_CLAUDE_HAIKU ANTHROPIC_CLAUDE_SONNET ZENMUX_ZAI_GLM47 ZENMUX_GOOGLE_GEMINI3FLASH ... (16 total)Apply a Preset
Section titled “Apply a Preset”looplia config provider preset <PRESET_NAME>Available presets:
| Preset | Model | Description |
|---|---|---|
ANTHROPIC_CLAUDE_HAIKU | claude-haiku-4-20250514 | Fast, cost-effective |
ANTHROPIC_CLAUDE_SONNET | claude-sonnet-4-20250514 | Balanced performance |
| Preset | Model | Provider |
|---|---|---|
ZENMUX_ZAI_GLM47 | glm-4.7 | Zhipu AI |
ZENMUX_GOOGLE_GEMINI3FLASH | gemini-3-flash | |
ZENMUX_OPENAI_GPT51MINI | gpt-5.1-codex-mini | OpenAI |
ZENMUX_XAI_GROK41FAST | grok-4.1-fast | xAI |
ZENMUX_DEEPSEEK_REASONER | deepseek-reasoner | DeepSeek |
ZENMUX_MINIMAX_M21 | minimax-m21 | MiniMax |
| … | … | … |
Example:
# Use Claude Haiku for faster, cheaper runslooplia config provider preset ANTHROPIC_CLAUDE_HAIKU
# Use ZenMux with GLM-4.7looplia config provider preset ZENMUX_ZAI_GLM47Set Individual Values
Section titled “Set Individual Values”looplia config provider set <key> <value>| Key | Description |
|---|---|
auth-token | API key for the provider |
model | Model identifier |
base-url | API endpoint URL |
provider | Provider name (anthropic, zenmux) |
Examples:
# Set ZenMux API keylooplia config provider set auth-token sk-zenmux-xxx
# Override modellooplia config provider set model claude-opus-4-20250514
# Custom endpointlooplia config provider set base-url https://custom-proxy.example.comReset Provider Config
Section titled “Reset Provider Config”looplia config provider resetClears all provider settings, reverting to defaults (Anthropic with ANTHROPIC_API_KEY environment variable).
Configuration Files
Section titled “Configuration Files”Settings are stored in ~/.looplia/:
| File | Purpose |
|---|---|
user-profile.json | Topics, style preferences |
looplia.setting.json | Provider configuration |
user-profile.json
Section titled “user-profile.json”{ "topics": ["AI", "productivity"], "style": { "tone": "expert", "wordCount": 1500, "voice": "first-person" }}looplia.setting.json
Section titled “looplia.setting.json”{ "provider": "zenmux", "model": "glm-4.7", "baseUrl": "https://api.zenmux.ai/v1", "authToken": "sk-zenmux-..."}Dual-Strategy Execution
Section titled “Dual-Strategy Execution”Looplia uses different execution strategies based on provider:
| Provider | Strategy | Agent Registration |
|---|---|---|
| Anthropic Direct | Task subagents | Full skill-executor registration |
| ZenMux Proxy | Inline execution | No subagent registration |
This is handled automatically based on your provider configuration.
Environment Variables
Section titled “Environment Variables”Provider settings can also be set via environment variables:
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key (default) |
ZENMUX_API_KEY | ZenMux API key (auto-mapped) |
LOOPLIA_AGENT_MODEL_MAIN | Override main agent model |
LOOPLIA_AGENT_MODEL_EXECUTOR | Override executor model |
Environment variables take precedence over config file settings.
See Also
Section titled “See Also”- Installation — Initial setup
- Environment Variables — Full reference
- run — Execute workflows with configured provider