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:22] abel |
installatie_handleidingen:openclode [2026/03/31 10:56] (huidige) abel [start opencode manually] |
||
|---|---|---|---|
| Regel 2: | Regel 2: | ||
| ===== Software installation ===== | ===== Software installation ===== | ||
| - | Install | + | ==== install npm installer ==== |
| + | |||
| + | The best result is acchieved | ||
| + | < | ||
| + | sudo apt update | ||
| + | apt install npm | ||
| + | </ | ||
| + | |||
| + | ==== install opencode ==== | ||
| < | < | ||
| - | curl -fsSL https://opencode.ai/install | bash | + | npm install |
| </ | </ | ||
| Regel 14: | 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 26: | 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 37: | Regel 56: | ||
| '' | '' | ||
| - | ==== start and enable ==== | ||
| Start and enable opencode by: | Start and enable opencode by: | ||
| Regel 44: | 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: | ||