> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-staging.joytokens.ai/llms.txt.

# Environments

> Documentation and API domains for JoyToken

This documentation is for the JoyToken production environment. Use the website, documentation domain, API base URL, and API keys together for a given application or run.

## Domains

| Service               | URL                                 |
| --------------------- | ----------------------------------- |
| Website               | `https://staging.joytokens.ai`      |
| Documentation         | `https://docs-staging.joytokens.ai` |
| JoyToken API base URL | `https://api-staging.joytokens.ai`  |

## Environment Variables

```bash
export JOY_TOKEN_API_KEY="sk-xxx"
export JOY_TOKEN_API_BASE_URL="https://api-staging.joytokens.ai"
```

| Variable                       | Use                                             |
| ------------------------------ | ----------------------------------------------- |
| `JOY_TOKEN_API_KEY`            | SDK request authentication                      |
| `JOY_TOKEN_API_BASE_URL`       | Model, pricing, and default compatible API base |
| `JOY_TOKEN_OPENAI_BASE_URL`    | Optional OpenAI-compatible Base URL override    |
| `JOY_TOKEN_ANTHROPIC_BASE_URL` | Optional Anthropic-compatible Base URL override |

The SDKs derive protocol URLs from `JOY_TOKEN_API_BASE_URL` when protocol-specific variables are not set. All model requests use `auto`; there is no SDK model environment variable.

## Choose a Protocol

#### OpenAI

Base URL: `https://api-staging.joytokens.ai/openai/v1`

```bash
export JOY_TOKEN_OPENAI_BASE_URL="https://api-staging.joytokens.ai/openai/v1"
```

#### Anthropic

Base URL: `https://api-staging.joytokens.ai/anthropic/v1`

```bash
export JOY_TOKEN_ANTHROPIC_BASE_URL="https://api-staging.joytokens.ai/anthropic/v1"
```

Keep API keys separate across environments. Use small budgets and explicit policies for testing and agent workflows.