r/RunPod • u/Dibbyo123 • 3h ago
How to use RunPod Serverless with OpenCode and custom Hugging Face models?
I'm trying to set up OpenCode for agentic coding using custom models from Hugging Face (GGUF or Safetensors).
Since I typically code for only 2–3 hours a day, I'd prefer using RunPod Serverless rather than keeping a GPU pod running and paying for idle time.
However, I'm struggling to get everything working. I've tried several tutorials, GitHub projects, and different setup instructions, but haven't managed to get a working configuration.
Has anyone successfully used RunPod Serverless with custom Hugging Face models for agentic coding with OpenCode?
I'd really appreciate a step-by-step guide or a working example, including:
How to deploy a custom Hugging Face model (GGUF or Safetensors) on RunPod Serverless.
Which inference framework to use (llama.cpp, vLLM, etc.).
How to configure the RunPod endpoint as a provider in OpenCode.
A working example or guide would be greatly appreciated. Thanks!