Troubleshooting¶
Common issues and solutions when using Cloister.
Installation Issues¶
"cloister: command not found" after install¶
The install directory (~/.local/bin) is not in your PATH.
Solution:
Add to your shell configuration:
# bash (~/.bashrc or ~/.bash_profile)
export PATH="$HOME/.local/bin:$PATH"
# zsh (~/.zshrc)
export PATH="$HOME/.local/bin:$PATH"
# fish (~/.config/fish/config.fish)
fish_add_path ~/.local/bin
Then restart your shell or run source ~/.bashrc (or equivalent).
Download failed during install¶
The install script couldn't reach GitHub.
Solutions:
- Check your internet connection
- If behind a proxy, ensure curl is configured to use it
- Download manually from GitHub Releases
"docker: command not found"¶
Docker is not installed.
Solution: - macOS: Install Docker Desktop or OrbStack - Linux: Install Docker Engine per official docs
Startup Issues¶
"Cannot connect to the Docker daemon"¶
Docker is installed but not running.
Solution:
"Guardian failed to start"¶
The guardian container couldn't be created.
Check:
1. Docker is running: docker info
2. Ports aren't in use: lsof -i :9997 and lsof -i :9999
3. Network exists: docker network ls | grep cloister
Reset if needed:
"Project not detected"¶
Not in a git repository, or git isn't initialized.
Solution:
Network Issues¶
"Domain not in allowlist"¶
The container tried to reach a domain that isn't allowed.
Solutions:
-
Add to project config:
-
Add to global config for all projects:
-
Enable approval mode for unlisted domains:
-
Domains approved via the web UI are stored in
~/.config/cloister/decisions/and merged automatically with static config. Check these files if a previously-approved domain stops working.
"Connection refused" inside container¶
Proxy isn't reachable.
Check:
# Inside cloister
echo $HTTPS_PROXY
# Should show http://token:TOKEN@cloister-guardian:3128
# Test proxy connectivity
curl -v https://api.anthropic.com/v1/models
If proxy URL is empty: Container wasn't started correctly. Exit and restart:
Package installation fails¶
The package registry domain might not be allowlisted.
Common registries to allowlist:
proxy:
allow:
# npm
- domain: registry.npmjs.org
- domain: registry.yarnpkg.com
# Python
- domain: pypi.org
- domain: files.pythonhosted.org
# Go
- domain: proxy.golang.org
- domain: sum.golang.org
# Rust
- domain: crates.io
- domain: static.crates.io
Credential Issues¶
Claude: Prompts for login inside container¶
Credentials weren't injected properly.
Solution:
1. Re-run setup: cloister setup claude
2. Restart the cloister:
Claude: "Authentication failed"¶
Token may have expired.
Solution: 1. Get a fresh token:
2. Update Cloister: 3. Restart the cloisterClaude: OAuth token expired¶
OAuth tokens last about a year. If expired:
claude setup-token # Get new token (Claude Code CLI command)
cloister setup claude # Update config
cloister stop && cloister start # Restart
Codex: Prompts for API key inside container¶
Credentials weren't injected properly.
Solution:
1. Re-run setup: cloister setup codex
2. Restart the cloister:
Codex: "Authentication failed"¶
API key may be invalid or revoked.
Solution: 1. Verify key at platform.openai.com/api-keys 2. Update Cloister:
3. Restart the cloisterHostexec Issues¶
Request not appearing in approval UI¶
Check:
1. Guardian is running: cloister guardian status
2. UI is accessible: Open http://localhost:9999
3. Browser console for errors (SSE connection issues)
Try:
- Refresh the approval UI page
- Restart guardian: cloister guardian stop && cloister guardian start
Command denied unexpectedly¶
Commands not matching any pattern are denied by default.
Check patterns:
Look at hostexec.auto_approve and hostexec.manual_approve patterns.
Hostexec timeout¶
Requests timeout after 5 minutes without approval.
Solutions: - Approve faster - Add frequently-used commands to auto-approve:
Container Issues¶
Container won't start¶
Check Docker logs:
Common causes: - Port conflict - Volume mount failure - Image not found
Reset:
Files missing in /work¶
Bind mount may have failed.
Verify mount:
If empty: Container needs restart with correct mount.
Permission denied on files¶
Container user may differ from host user.
Check:
Performance Issues¶
Slow container startup¶
First run downloads the image. Subsequent starts should be faster.
Check image exists:
Slow network inside container¶
Proxy overhead is minimal but DNS resolution may add latency.
Getting Help¶
Checking versions¶
Reporting issues¶
- GitHub Issues — Report bugs and request features
- GitHub Discussions — Ask questions and share tips
When filing an issue, include: - Cloister version - OS and Docker version - Steps to reproduce - Error messages - Relevant config (redact credentials)
Next Steps¶
- Configuration — Config file reference
- Command Reference — All CLI commands