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

# Any OpenAI Client

> Use Kyma with any tool that supports OpenAI-compatible APIs.

Kyma works with **any tool, framework, or agent** that supports OpenAI-compatible APIs. Just change two values:

```
Base URL: https://kymaapi.com/v1
API Key:  ky-your-api-key
```

## Environment Variables

Most tools read these env vars:

```bash theme={null}
export OPENAI_API_KEY="ky-your-api-key"
export OPENAI_BASE_URL="https://kymaapi.com/v1"
```

## Python (OpenAI SDK)

```python theme={null}
from openai import OpenAI

client = OpenAI(
    base_url="https://kymaapi.com/v1",
    api_key="ky-your-api-key",
)
```

## JavaScript (OpenAI SDK)

```typescript theme={null}
import OpenAI from "openai";

const client = new OpenAI({
    baseURL: "https://kymaapi.com/v1",
    apiKey: "ky-your-api-key",
});
```

## Anthropic SDK

Kyma also supports the Anthropic Messages API:

```python theme={null}
import anthropic

client = anthropic.Anthropic(
    base_url="https://kymaapi.com",
    api_key="ky-your-api-key",
)
```

See the [Anthropic SDK guide](/guides/anthropic) for full details.

## Works With

Any tool that supports "OpenAI Compatible" or custom base URL:

* **IDE agents**: Cursor, Cline, Roo Code, Kilo Code, Continue.dev, Windsurf
* **Frameworks**: LangChain, LlamaIndex, Vercel AI SDK, CrewAI
* **Automation**: n8n, Make, Zapier (via HTTP)
* **Agents**: OpenClaw, Hermes Agent, any OpenAI-based agent
* **CLI tools**: aider, shell-gpt, any tool reading `OPENAI_BASE_URL`
