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_MINIMAX_M21
ZENMUX_GOOGLE_GEMINI3FLASH
... (17 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 MiniMax-M2.1
looplia config provider preset ZENMUX_MINIMAX_M21
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, openrouter, ollama, custom)

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-..."
}

All providers use the same execution pattern for workflow steps:

ComponentDescription
Skill ExecutorConceptual name for the step execution mechanism
ImplementationBuilt-in general-purpose subagent from Claude Agent SDK
Context OffloadEach workflow step runs in a separate context window

The workflow-executor skill provides the execution protocol that teaches the subagent how to invoke other skills. This unified strategy works across all providers (Anthropic, ZenMux, and custom endpoints).


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

API Key Priority (v0.6.9+): Config file authToken takes precedence over environment variables when explicitly set via looplia config provider set auth-token. Environment variables serve as fallback when no authToken is configured.