Coder Code Server
Conteneur LXC oraad — proxmox-scriptscode-server is a self-hosted Visual Studio Code served over the web, so you can use it from any browser on any device. This script installs the official Debian package n…
Se connecter
Conteneur LXC oraad — proxmox-scripts
http://ADRESSE-IP:4096Remplacez ADRESSE-IP par l'adresse donnée à la fin de l'installation.opencoderoot, connexion automatique sans mot de passe. Le SSH de root n'est ouvert que si vous l'avez demandé à l'installation./root/.config/opencode/config.jsonopencode). A password is auto-generated at install, shown once on screen, and saved to /etc/opencode/opencode.env (mode 0600). Recover/change it there and restart the service (systemctl restart opencode on Debian, rc-service opencode restart on Alpine).opencode attach http://<container-ip>:4096, or run non-interactively with opencode run --attach http://<container-ip>:4096 "<prompt>" (both honor OPENCODE_SERVER_USERNAME/OPENCODE_SERVER_PASSWORD).opencode auth login — stored at /root/.local/share/opencode/auth.json. Use a per-model firewall/proxy or a single deploy key; keys live in the container only.var_opencode_password="your-secret" bash -c "$(curl -fsSL https://raw.githubusercontent.com/oraad/proxmox-scripts/main/ct/opencode.sh)".Valeurs publiques de l'éditeur : changez-les dès la première connexion.
OpenCode is a privacy-first AI coding agent that runs locally with full control over your data, models, and permissions. This script installs the official binary natively in an LXC (no Docker) and runs it as an always-on opencode web server (Debian: systemd, Alpine: OpenRC) with HTTP basic auth on port 4096.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/oraad/proxmox-scripts/main/ct/opencode.sh)"
Configuration : /root/.config/opencode/config.json
bash -c "$(curl -fsSL https://raw.githubusercontent.com/oraad/proxmox-scripts/main/ct/opencode.sh)"
Configuration : /root/.config/opencode/config.json
Dans le shell du nœud Proxmox. Exécutez cette commande dans le shell du nœud Proxmox, pas dans une VM. Lisez le script d'abord.
De l'interface de Proxmox jusqu'à la première connexion, pour OpenCode Server.
Ouvrez l'interface de Proxmox dans votre navigateur et connectez-vous.
Dans l'arbre de gauche, cliquez sur votre nœud, puis sur « Shell ».
Vérifiez que le nœud a la place pour ce conteneur : 2 cœurs, 2 Go de mémoire, 10 Go de disque.
Copiez cette commande, collez-la dans le shell et appuyez sur Entrée.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/oraad/proxmox-scripts/main/ct/opencode.sh)"Attendez la fin de l'installation : le script affiche l'adresse du conteneur.
Ouvrez http://ADRESSE-IP:4096 dans votre navigateur, en remplaçant ADRESSE-IP par l'adresse affichée.
Connectez-vous avec le compte opencode, puis changez tout de suite le mot de passe.
Pour mettre à jour plus tard : tapez update dans la console du conteneur.
Le fichier de configuration se trouve ici : /root/.config/opencode/config.json
update inside the LXC, or pct exec <CTID> -- update from the Proxmox host. Interactive update shows Silent/Verbose/Cancel, then Update (runs opencode upgrade --method curl + base system upgrade + service restart), Remove Unused Packages, or Restart.pveam update, then pveam available --section system | grep alpine-3.24. Download if missing: pveam download local alpine-3.24-default_20260116_amd64.tar.xz (use the exact name from pveam available on your arch). Fallback: var_version=3.22 if 3.24 is not listed on an older Proxmox host.journalctl -u opencode; Alpine /var/log/opencode.log. Upstream project: https://github.com/anomalyco/opencode