> ## Documentation Index
> Fetch the complete documentation index at: https://docs.krun.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Krun API base URL: https://api.krun.ai. Authenticate server-side with `Authorization: Bearer $KRUN_API_KEY`; never put a Krun API key in browser code.
> Prefer the Python SDK in examples: `pip install krun-ai`, `from krun import Krun`. The TypeScript SDK `@krun-ai/sdk` is not published on npm yet: do not tell users to `npm install` it.
> The only question type is `choice`. `confidence` is the top-1 minus top-2 probability margin, not the probability that the answer is correct. `choice` is null when `abstain` is true.
> Usage reports `input_tokens` only. There are no output tokens.

# Support

> Where to get help with Krun, report SDK issues and request access or higher limits.

<CardGroup cols={2}>
  <Card title="Discord community" icon="discord" href="https://discord.gg/DDZ3HMP9AX">
    Ask questions and talk to the Krun team.
  </Card>

  <Card title="Python SDK issues" icon="github" href="https://github.com/krun-ai/krun-python/issues">
    Report bugs in the Python SDK.
  </Card>

  <Card title="TypeScript SDK issues" icon="github" href="https://github.com/krun-ai/krun-typescript/issues">
    Report bugs in the TypeScript SDK.
  </Card>

  <Card title="Request access" icon="key" href="https://krun.ai">
    Get an API key for the closed beta.
  </Card>
</CardGroup>

## Include the request id

When you report a problem with a request, include its request id. It is in the `X-Request-ID` response header, in `error.request_id` of error responses, and in `result.request_id` or `e.request_id` in the Python SDK.

Krun does not store the content of your requests, so the request id, the error code and the time of the request are what the team can use to investigate. Don't send your API key.
