0408c27e6e
Includes agents, skills, scripts, container launch scripts, and project configuration files (opencode.json, crush.json, Dockerfile). Add repo reference for skill container Add workspace for persist container, used for testing cli aa
45 lines
1.5 KiB
Bash
Executable File
45 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
[ ! -f .env ] || export $(grep -v '^#' .env | xargs)
|
|
|
|
WORKDIR=~/git/git.cleverthis.com/cleveragents/cleveragents-core
|
|
|
|
git clone \
|
|
https://$FORGEJO_PAT@git.cleverthis.com/cleveragents/cleveragents-core.git \
|
|
$WORKDIR || true
|
|
|
|
cd $WORKDIR
|
|
git fetch origin
|
|
git reset --hard origin/master
|
|
|
|
docker stop cleveragents_dev_persist || true
|
|
docker rm -f cleveragents_dev_persist || true
|
|
|
|
docker run -it --rm \
|
|
--network=host \
|
|
--cpus="12" \
|
|
--name "cleveragents_dev_persist" \
|
|
--user $(id -u):$(id -g) \
|
|
--volume "${WORKDIR}:/app" \
|
|
--volume "/home/skyblond/cleverthis/cleveragents/workspace:/workspace" \
|
|
--volume "/home/skyblond/opencode/agents:/home/devuser/.config/opencode/agents:ro" \
|
|
--volume "/home/skyblond/opencode/skills:/home/devuser/.config/opencode/skills:ro" \
|
|
--volume "/home/skyblond/opencode/scripts:/external/opencode/scripts:ro" \
|
|
--env "OPENROUTER_API_KEY=${OPENROUTER_API_KEY}" \
|
|
--env "OPENAI_API_KEY=${OPENAI_API_KEY}" \
|
|
--env "ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}" \
|
|
--env "GOOGLE_API_KEY=${GOOGLE_API_KEY}" \
|
|
--env "GEMINI_API_KEY=${GEMINI_API_KEY}" \
|
|
--env "HF_TOKEN=${HF_TOKEN}" \
|
|
--env "FORGEJO_PAT=${FORGEJO_PAT}" \
|
|
cleveragents-dev zsh -c "/home/devuser/.opencode/bin/opencode upgrade && /home/devuser/.opencode/bin/opencode -m anthropic/claude-opus-4.6"
|
|
|
|
# anthropic/claude-opus-4.6
|
|
# openrouter/anthropic/claude-opus-4.6
|
|
# openai/gpt-5.3-codex
|
|
|
|
# server: opencode serve --hostname 0.0.0.0 --print-logs --log-level WARN
|
|
# tui: opencode -m anthropic/claude-opus-4.6
|