The error indicates that the ollama launch opencode command is failing because it cannot create a backup file in /tmp/ollama-backups/ due to permission denied on the target directory or file.
/tmp Permissions/tmp is typically world-writable, but sometimes restrictions apply (e.g., on shared systems or custom configurations).bashls -ld /tmp
/tmp is not writable by your user, contact your system administrator.bashmkdir -p /tmp/ollama-backups/ chmod 755 /tmp/ollama-backups/
ollama launch opencode command./tmp is restricted, specify a different directory for backups.TMPDIR environment variable to a writable location:
bashexport TMPDIR=$HOME/tmp mkdir -p $TMPDIR ollama launch opencode --model qwen3.6
bashsudo ollama launch opencode --model qwen3.6
/tmp/ollama-backups/ already exists but is owned by another user, either:
bashsudo rm -rf /tmp/ollama-backups/
bashsudo chown -R $USER:$USER /tmp/ollama-backups/
Try option 2 or 3 first. If the issue persists, check the exact permissions of /tmp and the backup directory.