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

# LlamaIndex

> Use authsome with LlamaIndex data loaders, LLM clients, and retrievers.

[LlamaIndex](https://www.llamaindex.ai) connects LLMs to your data through loaders, indexes, and retrievers. Each of those typically needs a credential (LLM API key, data-source token). Run the script under authsome's proxy and the loaders just work.

## Run the whole script under the proxy

```bash theme={null}
authsome login openai
authsome login github
authsome run -- python my_index.py
```

LlamaIndex's HTTP clients see `OPENAI_API_KEY=authsome-proxy-managed` and similar placeholders. The proxy injects the real value for outbound requests to matched provider hosts. No code changes needed in your script.

## Data-loader credentials

LlamaIndex's data readers cover dozens of services (Notion, Confluence, Slack, Google Drive, etc.). For each one:

* Check `authsome list` for the matching provider name.
* If bundled, log in: `authsome login <provider>`.
* Run your script under `authsome run --`. The reader picks the credential up from its standard env var.

For services not bundled, see [Custom providers](/guides/custom-providers).

## Export when the proxy is not enough

```bash theme={null}
eval "$(authsome export openai --format env)"
eval "$(authsome export github --format env)"
python my_index.py
```

LlamaIndex clients read the exported env vars as usual.

## Multi-account

```bash theme={null}
eval "$(authsome export github --connection personal --format env)"
eval "$(authsome export github --connection work --format env)"
```

See [Multiple connections per provider](/guides/multiple-connections).

## What's next

<Columns cols={2}>
  <Card title="Python library" icon="code" href="/reference/python-library">
    the CLI export path or the daemon HTTP API.
  </Card>

  <Card title="Custom providers" icon="puzzle-piece" href="/guides/custom-providers">
    Add a data-source provider authsome doesn't ship.
  </Card>
</Columns>
