The default endpoint pools every machine you run. That is fine until you want a stable pool for real work and a scratch pool for trying things.

One URL per pool

A static endpoint is a named URL such as https://tunnel.tokmine.ai/t/acme-prod that you create in the app. Machines join it with one flag:

tokmine --endpoint acme-prod

Every machine on the same endpoint shares its URL and its load balancing. A machine belongs to one pool at a time, and restarting with a different --endpoint moves it. Pools never mix between workspaces.

A pattern that works

  • prod: the machines your team and tools rely on.
  • dev: the box where you try new models and new runner versions.
  • default: everything else, which keeps working as before.

Clients see one URL per environment. Moving a machine from dev to prod needs no client change, just a restart with the other flag.

Picking endpoints in scripts

The CLI resolves the endpoint from --endpoint, then TOKMINE_ENDPOINT, then the config file. With several endpoints and no flag, an interactive terminal shows a picker, but scripts and services should always set the flag or the variable so nothing depends on a prompt. tokmine endpoints lists every endpoint with its URL and online machine count.

Slug rules worth knowing

Slugs are 3 to 40 lowercase characters, unique across all of Tokmine, and cannot be changed later because clients depend on the URL. Pick names you can keep; rename by creating a new endpoint and moving callers over.

Pinning a request to one machine

To test a specific box inside a pool, add /p/<providerId> after the slug in the URL. Normal routing ignores it only when you do not send it.

Try it

Static endpoints are included with the paid plan, the first one at no extra price. Setup is in the endpoints docs.