• Stefy Lanza (nextime / spora )'s avatar
    host backend: a capability image on a machine you already have · 8310821e
    Stefy Lanza (nextime / spora ) authored
    The capability images are ordinary containers; nothing about them needs RunPod.
    The same image can run on a box you own, a server rented by the month, a second
    GPU in the next room — and coderai should use it the way it uses a pod: per
    model, with an endpoint and a token, and nothing else.
    
      always on:  {"backend": "host", "host": {"url": ..., "api_key": ...}}
      on demand:  add start_cmd (+ optional stop_cmd, boot_timeout_s, idle_timeout_s)
    
    start_cmd is whatever starts the thing — docker run, ssh box docker start, a
    systemd unit. coderai runs it, waits for /healthz, uses the host, and runs
    stop_cmd after idle_timeout_s with nothing in flight. It only ever stops a host
    it started itself; one that was already up is never touched.
    
    Deliberately absent: GPU search, price ranking, budgets, spot, capacity
    fallback, the orphan reaper. Those exist because a cloud rents an anonymous
    card by the second and can lose it. A host is a named machine you are
    responsible for — the machinery would be wrong, not just unnecessary.
    
    Verified for real: a capability container started by command from a cold
    state, healthy in 6s, used, and stopped by the idle timer.
    
    Also fixed on the way: a plain service_url carried no token, so a hand-run
    capability image behind one answered 401 to everything. service_token travels
    now. Neither host nor service_* is seeded to a pod: they say where a model runs
    from HERE, and would make a pod try to forward to itself.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0182DhR1eFNPQyGmDrpHbedY
    8310821e
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
REQUEST-geoclip-embeddings.md Loading commit data...
REQUEST-vpr-embeddings.md Loading commit data...
amdgpu-coredump-05000.bin Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-melotts.txt Loading commit data...
requirements-nemo.txt Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-ocr-paddle.txt Loading commit data...
requirements-ocr.txt Loading commit data...
requirements-pyannote.txt Loading commit data...
requirements-surya.txt Loading commit data...
requirements-vllm.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...
video_editor.config.json Loading commit data...