Spaces:
Paused
Paused
Download start.sh from ken-q/opencode-home: direct link, hf CLI and curl.
- Browser
- Download file 609 Bytes
-
https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/start.sh
- Command line
-
hf download hf://spaces/ken-q/opencode-home/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/start.sh
609 Bytes
| set -e | |
| mkdir -p /home/node/.config/opencode | |
| cat > /home/node/.config/opencode/opencode.json << 'CONFIG' | |
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "model": "nvidia/meta/llama-3.1-8b-instruct", | |
| "provider": { | |
| "nvidia": { | |
| "npm": "@ai-sdk/openai-compatible", | |
| "name": "NVIDIA NIM", | |
| "options": { | |
| "baseURL": "https://integrate.api.nvidia.com/v1", | |
| "apiKey": "{env:NVIDIA_API_KEY}" | |
| } | |
| } | |
| }, | |
| "instructions": ["AGENTS.md"], | |
| "server": { | |
| "port": 7860, | |
| "hostname": "0.0.0.0" | |
| } | |
| } | |
| CONFIG | |
| exec opencode web --port 7860 --hostname 0.0.0.0 | |