← Docs

Run a self-hosted agent

Overview

A Keikaku agent is a small worker you run on your own machine. It connects out to your Keikaku cloud, claims tasks, and runs them against a local model on your GPU — your code and models never leave your hardware.

Architecture

Three pieces: your server (your own machine, with the GPU), the Docker agents you run on it, and Keikaku Cloud. Ollama runs natively on your server and is shared by every agent — the model loads into your GPU once. The agents make outbound HTTPS calls to Keikaku Cloud to claim tasks and report results; nothing reaches in, and your code and models never leave your server.

Most setups run a single agent against one large model — that's the sweet spot. Add more agents only if your GPU has headroom for the extra concurrent load; they all share the one model in VRAM.

Prerequisites

Three things on the machine that will run the agent:

macOS isn't supported yet.

Model sizing

Pick the largest model that still fits entirely in your GPU's VRAM — once Ollama has to offload part of a model to the CPU, throughput drops sharply. Two ways to choose:

Setup guides

The detailed install steps live in the platform guides. Each one is written for someone starting from a blank machine: minimum versions, how to check and update your GPU driver, install + verify each piece, and what to do if you're not on an NVIDIA card. They take you all the way to an agent showing online in the app.