Added custom Open WebUI function for SSH/SFTP file operations: **New Function: save_to_disk.py** - save_file(): Write generated code to local filesystem via SFTP - read_file(): Read files from local disk - list_files(): List directory contents - Configurable via Valves (host, port, username, paths) **Custom Dockerfile (Dockerfile.webui)** - Based on ghcr.io/open-webui/open-webui:main - Installs paramiko library for SSH/SFTP support - Creates .ssh directory for key storage **Configuration Updates** - Mount SSH private key from host (/root/.ssh/id_rsa) - Mount functions directory for custom tools - Build custom image with SFTP capabilities **Usage in Open WebUI** Claude can now use these tools to: - Generate code and save it directly to your local disk - Read existing files for context - List project directories - Create new files in any project Default base path: /home/valknar/Projects Authentication: SSH key-based (passwordless) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
8 lines
194 B
Docker
8 lines
194 B
Docker
FROM ghcr.io/open-webui/open-webui:main
|
|
|
|
# Install paramiko for SFTP functionality
|
|
RUN pip install --no-cache-dir paramiko
|
|
|
|
# Create .ssh directory
|
|
RUN mkdir -p /app/.ssh && chmod 700 /app/.ssh
|