# Agyn

Prepare the gateway URL and API token that let Sandcovery run sandboxes on your own Agyn platform, then choose an organization and environment.

Sandcovery runs sandboxes on an Agyn platform you install on your own Kubernetes cluster. Agyn bills nothing, and your cluster's provider bills its compute.

- **Gateway URL**: the https address of your Agyn Gateway, the one you pass to `agyn profile set default --gateway-url`, such as `https://gateway.agyn.example.com`.
- **API token**: a token you create under your avatar, **API tokens**, and **New token** in the Agyn Console, which starts with `agyn_`. A token acts with its user's full access, so create it under a user that can create sandboxes in the environment, such as a service user kept for automation.
- **Organization**: your organization, which Sandcovery lists from your Agyn Gateway once you enter the token.
- **Environment**: the environment each sandbox starts in, which Sandcovery lists for that organization.

The environment's flavor sets each sandbox's size, so Agyn runs only the size that matches the flavor's CPU and memory limits, such as 2x4 for a `2` CPU limit and a `4Gi` memory limit, and Sandcovery routes a create of any other size to your next provider. The environment also sets each sandbox's image, variables, volumes, and egress rules, so Sandcovery sends only creates that ask for none of those and allow all egress. Agyn stops a sandbox that stays idle for its idle timeout, from 1 minute to 24 hours, Sandcovery deletes it at its TTL, at most 24 hours, and files at relative paths land under `/workspace`.
