Troubleshooting
This page covers common issues you might encounter when using Looplia and how to resolve them.
Installation Issues
Section titled “Installation Issues””Command not found: looplia”
Section titled “”Command not found: looplia””The CLI isn’t in your PATH or not installed globally.
Solution:
# Use bunx/npx instead of bare commandbunx looplia run writing-kit --file article.md
# Or install globallycd looplia-corebun linklooplia --help“Permission denied” during init
Section titled ““Permission denied” during init”Can’t write to ~/.looplia/ directory.
Solution:
# Check permissionsls -la ~/.looplia/
# Fix ownershipsudo chown -R $(whoami) ~/.looplia/
# Retrylooplia init --yesPlugin load errors after init
Section titled “Plugin load errors after init”Plugins fail to load or register.
Solution:
# Remove and reinitializerm -rf ~/.looplia/looplia-core ~/.looplia/looplia-writerlooplia init --yesAPI Key Issues
Section titled “API Key Issues””Missing API key” or “Authentication failed”
Section titled “”Missing API key” or “Authentication failed””API key not set or invalid.
Solution:
-
Verify the key is set:
Terminal window echo $ANTHROPIC_API_KEY -
If empty, set it:
Terminal window export ANTHROPIC_API_KEY=sk-ant-api03-... -
For ZenMux, verify provider config:
Terminal window looplia config provider show -
Set ZenMux key if needed:
Terminal window looplia config provider set auth-token sk-zenmux-...
“Invalid API key format”
Section titled ““Invalid API key format””API key doesn’t match expected format.
Solution:
- Anthropic keys start with
sk-ant- - ZenMux keys start with
sk-zenmux-(or provider-specific prefix) - Check for extra whitespace or quotes
# Correctexport ANTHROPIC_API_KEY=sk-ant-api03-xxxxx
# Wrong (quotes included in value)export ANTHROPIC_API_KEY="sk-ant-api03-xxxxx"Workflow Execution Issues
Section titled “Workflow Execution Issues””Workflow not found”
Section titled “”Workflow not found””The specified workflow doesn’t exist.
Solution:
# List available workflowsls ~/.looplia/workflows/
# Check exact name (without .md extension)looplia run writing-kit --file article.md # Correctlooplia run writing-kit.md --file article.md # Wrong“File not found” for —file
Section titled ““File not found” for —file”Input file path is incorrect.
Solution:
# Use absolute pathlooplia run writing-kit --file /Users/you/Documents/article.md
# Or relative to current directorylooplia run writing-kit --file ./article.md
# Check file existsls -la ./article.mdStep validation failures
Section titled “Step validation failures”A step’s output doesn’t meet validation criteria.
Solution:
-
Check the output file:
Terminal window cat ~/.looplia/sandbox/*/outputs/summary.json | jq -
View validation requirements in workflow:
Terminal window cat ~/.looplia/workflows/writing-kit.md -
Resume after fixing:
Terminal window looplia run writing-kit --sandbox-id your-sandbox-id
Workflow hangs or takes too long
Section titled “Workflow hangs or takes too long”Network issues or complex content.
Solution:
- Check your internet connection
- Try with simpler content first
- Use
--no-streamingfor batch mode:Terminal window looplia run writing-kit --file article.md --no-streaming - Check API status at status.anthropic.com
Sandbox Issues
Section titled “Sandbox Issues””Sandbox not found” when resuming
Section titled “”Sandbox not found” when resuming”Invalid or deleted sandbox ID.
Solution:
# List available sandboxesls ~/.looplia/sandbox/
# Use correct ID (full name)looplia run writing-kit --sandbox-id my-article-2025-12-28-x7kmOutputs missing or incomplete
Section titled “Outputs missing or incomplete”Workflow interrupted before completion.
Solution:
-
Check validation state:
Terminal window cat ~/.looplia/sandbox/*/validation.json -
Resume from last validated step:
Terminal window looplia run writing-kit --sandbox-id your-sandbox-id
Sandbox directory full
Section titled “Sandbox directory full”Many old sandboxes consuming disk space.
Solution:
# View sandbox sizesdu -sh ~/.looplia/sandbox/*
# Remove old sandboxes (careful!)rm -rf ~/.looplia/sandbox/old-sandbox-*
# Keep only recent (last 7 days)find ~/.looplia/sandbox -maxdepth 1 -type d -mtime +7 -exec rm -rf {} \;Provider Issues
Section titled “Provider Issues”ZenMux connection errors
Section titled “ZenMux connection errors”Can’t connect to ZenMux proxy.
Solution:
-
Verify preset is applied:
Terminal window looplia config provider show -
Check API key is set:
Terminal window looplia config provider set auth-token sk-zenmux-... -
Try Anthropic direct as fallback:
Terminal window looplia config provider preset ANTHROPIC_CLAUDE_SONNETexport ANTHROPIC_API_KEY=sk-ant-...
Model not available
Section titled “Model not available”Specified model doesn’t exist for provider.
Solution:
# Reset to defaultlooplia config provider reset
# Use a known-working presetlooplia config provider preset ANTHROPIC_CLAUDE_SONNETDevelopment Mode Issues
Section titled “Development Mode Issues””Dev mode enabled but plugins not found”
Section titled “”Dev mode enabled but plugins not found””LOOPLIA_DEV_ROOT not set correctly.
Solution:
# Verify path existsls -la $LOOPLIA_DEV_ROOT/plugins/
# Set correct pathexport LOOPLIA_DEV_ROOT=/full/path/to/looplia-core
# Verify both variablesecho "DEV=$LOOPLIA_DEV, ROOT=$LOOPLIA_DEV_ROOT"Changes not taking effect in dev mode
Section titled “Changes not taking effect in dev mode”Cached state from previous runs.
Solution:
# Ensure dev mode is enabledexport LOOPLIA_DEV=true
# Clear any cached staterm -rf ~/.looplia/looplia-core ~/.looplia/looplia-writer
# Run againlooplia run writing-kit --file test.mdGetting Help
Section titled “Getting Help”Debug Logging
Section titled “Debug Logging”Enable verbose output:
export LOOPLIA_DEBUG=1looplia run writing-kit --file test.mdCheck logs:
cat ~/.looplia/sandbox/*/logs/session.logls ~/.looplia/logs/Report an Issue
Section titled “Report an Issue”If you can’t resolve the issue:
-
Gather diagnostic info:
Terminal window looplia --versioncat ~/.looplia/looplia.setting.jsonls ~/.looplia/ -
Open an issue at GitHub Issues
-
Include:
- Command you ran
- Error message
- Relevant logs
- Environment (OS, Node/Bun version)
See Also
Section titled “See Also”- Installation — Setup guide
- Environment Variables — Configuration reference
- CLI Commands — Command reference