Aller au contenu
Se connecter

Accès par défaut

Adresse
http://ADRESSE-IP:4096Remplacez ADRESSE-IP par l'adresse donnée à la fin de l'installation.
Compte
opencode
Console et SSH
Console du conteneur dans l'interface Proxmox : compte root, connexion automatique sans mot de passe. Le SSH de root n'est ouvert que si vous l'avez demandé à l'installation.
Configuration
/root/.config/opencode/config.json
  • The web UI binds to 0.0.0.0:4096 with HTTP basic auth enabled by default (username opencode). 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).
  • Web UI: http://<container-ip>:4096. OpenAPI spec for API access: http://<container-ip>:4096/doc. Attach the CLI/TUI: 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).
  • Config file: /root/.config/opencode/config.json (port, hostname, autoupdate, default model). Configure provider API keys inside the container with 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.
  • Unattended install with a custom password: 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.

Site ↗ Documentation ↗ Voir le code du script ↗

Installer

Cœurs
2
Mémoire
2 Go
Disque
10 Go
Système
Debian 13
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.

Tutoriel pas à pas

De l'interface de Proxmox jusqu'à la première connexion, pour OpenCode Server.

  1. Ouvrez l'interface de Proxmox dans votre navigateur et connectez-vous.

  2. Dans l'arbre de gauche, cliquez sur votre nœud, puis sur « Shell ».

  3. Vérifiez que le nœud a la place pour ce conteneur : 2 cœurs, 2 Go de mémoire, 10 Go de disque.

  4. 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)"
  5. Attendez la fin de l'installation : le script affiche l'adresse du conteneur.

  6. Ouvrez http://ADRESSE-IP:4096 dans votre navigateur, en remplaçant ADRESSE-IP par l'adresse affichée.

  7. Connectez-vous avec le compte opencode, puis changez tout de suite le mot de passe.

  8. Pour mettre à jour plus tard : tapez update dans la console du conteneur.

  9. Le fichier de configuration se trouve ici : /root/.config/opencode/config.json

À savoir

  • Update an existing container: run 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.
  • Alpine template: run 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.
  • Service logs: Debian journalctl -u opencode; Alpine /var/log/opencode.log. Upstream project: https://github.com/anomalyco/opencode
Dans la même catégorie

Coder Code Server

Conteneur LXC oraad — proxmox-scripts

code-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…

Mise à jour Port 8680