Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.
| Beide kanten vorige revisie Vorige revisie Volgende revisie | Vorige revisie | ||
|
installatie_handleidingen:openclode [2026/03/25 11:32] abel [Software installation] |
installatie_handleidingen:openclode [2026/03/31 10:56] (huidige) abel [start opencode manually] |
||
|---|---|---|---|
| Regel 2: | Regel 2: | ||
| ===== Software installation ===== | ===== Software installation ===== | ||
| - | Set the install | + | ==== install |
| + | The best result is acchieved with an install through npm. install npm: | ||
| < | < | ||
| - | export OPENCODE_INSTALL_DIR=/ | + | sudo apt update |
| + | apt install npm | ||
| </ | </ | ||
| - | Install with the bash script from the opencode | + | ==== install |
| < | < | ||
| - | curl -fsSL https://opencode.ai/install | bash | + | npm install |
| </ | </ | ||
| Regel 20: | Regel 23: | ||
| </ | </ | ||
| - | ===== Auto-Start at Boot time ===== | + | |
| - | ==== Create a systemd Service File ==== | + | |
| + | ===== run the opencode application ===== | ||
| + | |||
| + | ==== start opencode manually ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | ==== Auto-Start at Boot time ==== | ||
| + | |||
| + | Create a systemd Service File | ||
| '' | '' | ||
| add: | add: | ||
| Regel 32: | Regel 44: | ||
| Type=simple | Type=simple | ||
| User=abel | User=abel | ||
| - | WorkingDirectory=%h/ | + | ProtectHome=false |
| - | ExecStart=/usr/local/ | + | WorkingDirectory=/home/abel/ |
| + | ExecStart=/home/abel/ | ||
| Restart=always | Restart=always | ||
| RestartSec=10 | RestartSec=10 | ||
| Regel 43: | Regel 56: | ||
| '' | '' | ||
| - | ==== start and enable ==== | ||
| Start and enable opencode by: | Start and enable opencode by: | ||
| Regel 50: | Regel 62: | ||
| </ | </ | ||
| + | ===== configuration ===== | ||
| + | This systemd unit started a web interface on http:// | ||
| + | |||
| + | ==== connection to an AI ==== | ||
| + | |||
| + | edit the configuration file: '' | ||
| + | |||
| + | and fill it with: | ||
| + | < | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | ===== Connect tools ===== | ||
| + | |||
| + | there is also a VSCodium plugin. how to set this up you can find [[werkinstructies: | ||