Files
oh-my-opencode-free-fork/start.sh
Oussama Douhou 6b68c0a926 feat(logging): log full content - prompts, responses, tool I/O
- Log full message content instead of just hash
- Log full tool input arguments
- Log full tool output/results
- Add model info to session and token events

No privacy restrictions for internal monitoring.
2026-01-10 15:34:21 +01:00

46 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
set -e
echo "🚀 Starting Oh My OpenCode Free - Custom Fork (Todo+Codebase Compaction)..."
if command -v docker &> /dev/null; then
CONTAINER_CMD="docker"
elif command -v podman &> /dev/null; then
CONTAINER_CMD="podman"
else
echo "❌ Neither Docker nor Podman found. Please install one of them."
exit 1
fi
echo "📦 Using $CONTAINER_CMD"
cd "$(dirname "$0")"
echo "🏗️ Building and starting OpenCode server container..."
$CONTAINER_CMD compose -f docker/docker-compose.yml up -d --build
echo "⏳ Waiting for server to start..."
sleep 5
# Check if server is running
if $CONTAINER_CMD ps | grep -q leader; then
echo "✅ OpenCode server is running!"
echo ""
echo "🌐 Server URL: http://localhost:8080"
echo ""
echo "📋 To attach from another terminal:"
echo " opencode attach http://localhost:8080"
echo ""
echo "🔍 To check server logs:"
echo " $CONTAINER_CMD logs leader"
echo ""
echo "🛑 To stop the server:"
echo " $CONTAINER_CMD compose -f docker/docker-compose.yml down"
echo ""
echo "🎯 Custom server is ready - Todo+Codebase compaction active!"
else
echo "❌ Failed to start server. Check logs:"
echo " docker logs leader"
exit 1
fi