# Start here (no key)

2 endpoints at `https://api.kosa8.com`, sent with `Authorization: Bearer $KOSA8_API_KEY`. Generated from the API's own [OpenAPI description](https://api.kosa8.com/openapi.json), which a test holds to the router.

## Start here with no key: run a small snippet in a kosa8 sandbox (no account, no browser, no CAPTCHA)[#]

POST`/v1/try/agent`public

The first operation for an AI agent that has no API key: it proves kosa8 runs code before anyone signs up. No Authorization header, never a Turnstile check. Each run: a fresh sandbox with no network, at most 60 s and 8 KiB of code (16 KiB of each output back), deleted after the run. Per network (an IPv4 address or IPv6 /64): 5 minutes of run time per 24 hours, 10 runs an hour, 100 a day; across all agents a daily cap. The answer is the same as POST /v1/try's: the run's output, a public run card (view_url) and a claim token the person can use on sign-up. When this network's free budget is used: 402 signup_required with {code, message, limit, upgrade_url, agent_message}; relay agent_message to the person word for word. When the daily cap across all agents is reached: 503 no_capacity with Retry-After (not a limit on you). To get a key with no CLI: POST /v1/auth/device {"client": "agent"}, give the person the link, poll POST /v1/auth/device/token (see that operation). After sign-up (free Starter, no card: that, `kosa8 login` or https://app.kosa8.com/signup), use the API key with POST /v1/run or POST /v1/sandboxes.

JSON body

`language`"python" | "node" | "bash"

The interpreter Default `"python"`.

`code`requiredstring

The source to run, e.g. print(1+1) Max length 8192.

Responses

200400402413429503

```
curl -s -X POST https://api.kosa8.com/v1/try/agent \
  -H 'Content-Type: application/json' -d @body.json
```

## How to call POST /v1/try/agent: method, body, limits, an example curl, and this network's budget left[#]

GET`/v1/try/agent`public

No key needed. Fetch it first if unsure: it answers {method, url, body (JSON Schema), limits, errors, example, quota}.

Responses

200

```
curl -s -X GET https://api.kosa8.com/v1/try/agent
```

---
Source: https://docs.kosa8.com/api/start-here-no-key/
