Troubleshooting

No Provider Configured

If Clew doesn't start, set at least one provider API key in your environment:

export ANTHROPIC_API_KEY=sk-ant-...
clew

Or use the /model command inside the REPL to switch providers.

Build Errors on Windows

Remove-Item -Recurse -Force node_modules
bun install
bun run dev

Peer / Peer Discovery Not Working

MCP Server Connection Failures

Context Limit Reached

Use the compact command to compress conversation history:

❯ /compact

This triggers the multi-pass context compaction system.

Permission Denied Errors

Switch to a permissive mode or configure allow rules:

❯ /permissions auto      # auto-approve safe tools
❯ /permissions plan      # full bypass for planning

See Permission Model for details.

Provider Switch Issues

Getting Help