Skip to main content
Use Auriko as your LLM provider in LlamaIndex. This integration is Python-only. For TypeScript, use the Vercel AI SDK integration.

Prerequisites

Install

Use SDK adapter

Use the AurikoLlamaIndexLLM adapter:
AurikoLlamaIndexLLM supports chat, completion, streaming, async, per-call routing overrides, and Auriko error mapping.

Configure options

ParameterTypeDefaultDescription
modelstr(required)Model ID
api_keystr | NoneAURIKO_API_KEY envAPI key
routingRoutingOptions | NoneNoneDefault routing configuration
api_basestr"https://api.auriko.ai/v1"API base URL
**kwargsPassed through to LlamaIndex’s OpenAI (e.g., temperature, max_tokens)

Configure routing

Pass a RoutingOptions instance to set default routing:
Per-call routing overrides the instance default:
Access routing metadata from the response:

Configure manually

If you prefer to use LlamaIndex’s OpenAI class directly:
For routing options, per-call overrides, and Auriko error mapping, use AurikoLlamaIndexLLM.

Use AurikoAsyncOpenAI (experimental)

If your project pins a different llama-index-llms-openai version, pass AurikoAsyncOpenAI as the async_openai_client:
LlamaIndex’s OpenAI requires an api_key for construction. Pass any placeholder value.
Read client.last_routing_metadata after each call. See AurikoAsyncOpenAI for the full class reference.