Skip to main content
Everything that talks to the central server uses a token. There are two kinds: Each token is shown once, when it’s made. The central server keeps only a SHA-256 of it. Every token belongs to your account, and sees and stops only your account’s sandboxes.

Make an API token

In the dashboard, under Tokens, give it a name and, if you like, limits, then Make token. Copy it then: it isn’t shown again.

Use it in CI

Set two variables, and ephemera run needs no login:
They override any saved login. In GitHub Actions, keep the token as a secret:
On a long-lived machine, EPHEMERA_STRICT_HOSTS=1 refuses any host it hasn’t pinned yet, so a host key can’t be trusted silently. A fresh CI runner has pinned nothing, so it would refuse every host; leave it off there. The CLI still checks each host’s key against the central server’s record either way. To save a token on a machine instead, pipe it in:

Limits

A token can have two limits, set when it’s made: Over a limit, new sandboxes are refused with a message saying which. A new sandbox’s lifetime is capped at the minutes left today, and running ones are stopped when the day’s minutes run out. ephemera usage shows a token’s use and limits:
Give each CI system and agent a token of its own, with limits, so a runaway job stops at its limit and you can revoke one without touching the others.

Revoke a token

In the dashboard, under Tokens, choose Revoke. It stops working at once. ephemera logout removes the saved login from a machine, but the token itself still works until it’s revoked: revoke it too if the machine is gone.