Skip to content

looplia config

The config command manages your Looplia settings, including user profile and model provider configuration.

Terminal window
looplia config <subcommand> [options]
SubcommandDescription
showDisplay current configuration
topicsSet topics of interest
styleSet writing style preferences
providerManage model provider settings

Terminal window
looplia config show

Displays your current profile:

{
"topics": ["AI", "productivity", "technology"],
"style": {
"tone": "expert",
"wordCount": 1500,
"voice": "first-person"
}
}
Terminal window
looplia config topics "AI, productivity, writing"

Topics influence content generation and idea synthesis.

Terminal window
looplia config style --tone expert --word-count 1500 --voice first-person
OptionValuesDescription
--tonecasual, professional, expertWriting tone
--word-countnumberTarget word count
--voicefirst-person, third-personNarrative voice

Configure which AI provider and model to use for workflow execution.

Terminal window
looplia config provider show

Output:

Current Provider Configuration
──────────────────────────────
Provider: anthropic
Model: claude-sonnet-4-20250514
Base URL: https://api.anthropic.com
Auth Token: sk-ant-***...***
Available Presets:
ANTHROPIC_CLAUDE_HAIKU
ANTHROPIC_CLAUDE_SONNET
ZENMUX_ZAI_GLM47
ZENMUX_GOOGLE_GEMINI3FLASH
... (16 total)
Terminal window
looplia config provider preset <PRESET_NAME>

Available presets:

PresetModelDescription
ANTHROPIC_CLAUDE_HAIKUclaude-haiku-4-20250514Fast, cost-effective
ANTHROPIC_CLAUDE_SONNETclaude-sonnet-4-20250514Balanced performance

Example:

Terminal window
# Use Claude Haiku for faster, cheaper runs
looplia config provider preset ANTHROPIC_CLAUDE_HAIKU
# Use ZenMux with GLM-4.7
looplia config provider preset ZENMUX_ZAI_GLM47
Terminal window
looplia config provider set <key> <value>
KeyDescription
auth-tokenAPI key for the provider
modelModel identifier
base-urlAPI endpoint URL
providerProvider name (anthropic, zenmux)

Examples:

Terminal window
# Set ZenMux API key
looplia config provider set auth-token sk-zenmux-xxx
# Override model
looplia config provider set model claude-opus-4-20250514
# Custom endpoint
looplia config provider set base-url https://custom-proxy.example.com
Terminal window
looplia config provider reset

Clears all provider settings, reverting to defaults (Anthropic with ANTHROPIC_API_KEY environment variable).


Settings are stored in ~/.looplia/:

FilePurpose
user-profile.jsonTopics, style preferences
looplia.setting.jsonProvider configuration
{
"topics": ["AI", "productivity"],
"style": {
"tone": "expert",
"wordCount": 1500,
"voice": "first-person"
}
}
{
"provider": "zenmux",
"model": "glm-4.7",
"baseUrl": "https://api.zenmux.ai/v1",
"authToken": "sk-zenmux-..."
}

Looplia uses different execution strategies based on provider:

ProviderStrategyAgent Registration
Anthropic DirectTask subagentsFull skill-executor registration
ZenMux ProxyInline executionNo subagent registration

This is handled automatically based on your provider configuration.


Provider settings can also be set via environment variables:

VariableDescription
ANTHROPIC_API_KEYAnthropic API key (default)
ZENMUX_API_KEYZenMux API key (auto-mapped)
LOOPLIA_AGENT_MODEL_MAINOverride main agent model
LOOPLIA_AGENT_MODEL_EXECUTOROverride executor model

Environment variables take precedence over config file settings.