Commit Graph

3 Commits

Author SHA1 Message Date
Spacehunterz
93f294265f fix(launcher): auto-create Ollama profile and auth on first run
The embedded agent requires an auth-profiles.json with the Ollama API key.
Now the launcher automatically creates:
- ~/.clawdbot-ollama/clawdbot.json (gateway config)
- ~/.clawdbot-ollama/agents/main/agent/auth-profiles.json (Ollama API key)

This makes the desktop launcher work out of the box without manual setup.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 14:19:15 -06:00
Spacehunterz
02226d6bea fix(launcher): use separate profile and tokenized dashboard URL
- Use --profile ollama to fully isolate from installed clawdbot
- Run on port 19001 (installed uses 18789)
- Open dashboard via clawdbot dashboard command for proper auth token
- Check if gateway already running before starting

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 14:17:27 -06:00
Spacehunterz
fa2b77230b feat(ollama): add auto-discovery with Anthropic API and security hardening
- Auto-detect Ollama without requiring API key configuration
- Switch to Anthropic Messages API for better Claude compatibility
- Add security checks to prevent network exposure (0.0.0.0 binding)
- Add desktop launcher with security validation
- Hardcode localhost-only connections (127.0.0.1:11434)

Security features:
- Launch script forces OLLAMA_HOST=127.0.0.1:11434
- Warns if Ollama is exposed to network interfaces
- Checks .bashrc/.profile for dangerous OLLAMA_HOST settings
- ollama-security.ts module for URL validation

New files:
- scripts/launch-clawdbot-ollama.sh - Secure launcher script
- scripts/install-desktop-launcher.sh - Desktop entry installer
- assets/clawdbot-ollama.desktop - Linux desktop entry
- src/agents/ollama-security.ts - Security utilities

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 14:05:12 -06:00