- SETUP_API_KEYS.md: Instructions for configuring external API keys (Kimi, Jules, OpenAI, etc.) - scripts/setup-proxmox-env.sh: Automated environment setup for Proxmox nodes and containers
73 lines
2.8 KiB
Bash
Executable file
73 lines
2.8 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# =============================================================================
|
|
# setup-proxmox-env.sh
|
|
# =============================================================================
|
|
# This script prints the exact content that must be appended to /root/.env
|
|
# on Proxmox CT 206 (the Kimi / Jules remote execution container).
|
|
#
|
|
# Usage:
|
|
# 1. Run this script on your workstation:
|
|
# ./scripts/setup-proxmox-env.sh
|
|
#
|
|
# 2. Copy the output block below.
|
|
#
|
|
# 3. SSH into CT 206:
|
|
# ssh root@ssh.portugalfuturista.org -p 22206
|
|
#
|
|
# 4. Paste the block into /root/.env (create it if it does not exist):
|
|
# nano /root/.env
|
|
#
|
|
# 5. Verify the variables are loaded in a new shell:
|
|
# source /root/.env && env | grep -E 'KIMI|JULES|ANTHROPIC|GEMINI|OPENROUTER'
|
|
#
|
|
# IMPORTANT:
|
|
# • NEVER commit real API keys to Git.
|
|
# • /root/.env should have permissions 600 (chmod 600 /root/.env).
|
|
# • These keys are consumed by `uvx kimi-cli` and `uvx jules-cli` dispatches.
|
|
# =============================================================================
|
|
|
|
cat <<'EOF'
|
|
|
|
# =============================================================================
|
|
# CT 206 — Aurelio Remote Execution Environment
|
|
# Added: $(date -Iseconds)
|
|
# =============================================================================
|
|
|
|
# Kimi (Moonshot AI) — https://platform.moonshot.cn/
|
|
# REQUIRED: KIMI_API_KEY must be set for `uvx kimi-cli` remote dispatches.
|
|
KIMI_API_KEY=<PASTE_YOUR_KIMI_API_KEY_HERE>
|
|
|
|
# Jules (Google AI) — https://jules.google.com/
|
|
# REQUIRED: JULES_API_KEY must be set for `uvx jules-cli` remote dispatches.
|
|
JULES_API_KEY=<PASTE_YOUR_JULES_API_KEY_HERE>
|
|
|
|
# Anthropic Claude — https://console.anthropic.com/settings/keys
|
|
# OPTIONAL but recommended for multi-model routing.
|
|
ANTHROPIC_API_KEY=<PASTE_YOUR_ANTHROPIC_API_KEY_HERE>
|
|
|
|
# Gemini / Google Vertex — https://aistudio.google.com/app/apikey
|
|
# OPTIONAL but recommended for multi-model routing.
|
|
GEMINI_API_KEY=<PASTE_YOUR_GEMINI_API_KEY_HERE>
|
|
|
|
# OpenRouter — https://openrouter.ai/settings/keys
|
|
# OPTIONAL: unified gateway for Claude, GPT, Gemini, etc.
|
|
OPENROUTER_API_KEY=<PASTE_YOUR_OPENROUTER_API_KEY_HERE>
|
|
|
|
# Google Application Default Credentials
|
|
# If using Vertex AI on CT 206, set the path to a service-account JSON,
|
|
# or run `gcloud auth application-default login` inside the container.
|
|
GOOGLE_APPLICATION_CREDENTIALS=/root/.config/gcloud/application_default_credentials.json
|
|
|
|
# =============================================================================
|
|
EOF
|
|
|
|
echo ""
|
|
echo "✅ Copy the block above and paste it into /root/.env on CT 206."
|
|
echo ""
|
|
echo "Quick SSH command:"
|
|
echo " ssh root@ssh.portugalfuturista.org -p 22206"
|
|
echo ""
|
|
echo "Then run:"
|
|
echo " nano /root/.env"
|
|
echo " chmod 600 /root/.env"
|
|
echo ""
|