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

# Python

> Use MESH from Python with OpenAI or meshrouter clients.

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

client = OpenAI(
    api_key="mesh_live_...",
    base_url="https://api.meshrouter.app/v1",
)

response = client.chat.completions.create(
    model="auto",
    messages=[{"role": "user", "content": "hello MESH"}],
)
```

Use `meshrouter.MeshClient` when you want helpers for receipts, token counting, API keys, payments,
and attestation.
