Nightly test data generation, summarisation in a pipeline, an agent in a workflow: CI jobs call models too, and hosted bills for that usage arrive quietly. A machine you already own can take that load.

What CI needs

Three properties, all of which a static endpoint provides:

  • A stable URL. https://tunnel.tokmine.ai/t/acme-ci stays the same as machines join and leave its pool, so the value in your CI config never rots.
  • A token of its own. Give the job its own account token, kept in a CI secret such as TOKMINE_TOKEN. Usage is attributable, and rotating it touches nothing else.
  • A familiar API. The endpoint speaks OpenAI, Anthropic and Gemini dialects, so the job's existing client works by changing the base URL.

Setup

Create a static endpoint (for example acme-ci) in the app, join a machine to it, and hand the job the URL and a token:

tokmine --endpoint acme-ci
from openai import OpenAI

client = OpenAI(
    base_url="https://tunnel.tokmine.ai/t/acme-ci/v1",
    api_key=os.environ["TOKMINE_TOKEN"],
)

Sizing it honestly

CI is bursty. When the pool is saturated, extra requests are refused rather than queued forever, so either join a second machine to the endpoint for headroom or keep the job's parallelism modest. If a run can tolerate it, the marketplace can also serve as fallback when your own pool cannot.

Keep secrets out of it

Send the job's prompts to your own machines, and treat the token like any CI secret: environment variable, never committed. The endpoints docs cover the URL and token side; API compatibility shows the client snippets.

Try it

Pick the noisiest model call in your pipeline, point it at a static endpoint for a week, and compare the dashboard usage with your hosted bill.