> For the complete documentation index, see [llms.txt](https://docs.bito.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bito.ai/ai-architect/installation/install-ai-architect-self-hosted/custom-llm-configuration.md).

# Custom LLM configuration

By default, AI Architect uses Bito's LLM, covered by your Bito API key. To bring your own key (BYOK), point AI Architect at a supported provider.

Configure a provider during installation, or at any time with:

```shellscript
bitoarch update-llm-config
```

## Supported providers

<table data-search="false"><thead><tr><th>Provider</th><th>Credentials required</th><th>Model</th></tr></thead><tbody><tr><td><a href="https://console.anthropic.com/settings/keys">Anthropic</a></td><td>API key</td><td>Provider default</td></tr><tr><td><a href="https://platform.openai.com/api-keys">OpenAI</a></td><td>API key</td><td>Provider default</td></tr><tr><td><a href="https://aistudio.google.com/apikey">Google Gemini</a></td><td>API key</td><td>Optional (workspace default if omitted)</td></tr><tr><td><a href="https://portal.azure.com">Azure AI</a></td><td>API key + endpoint URL</td><td>Deployment name</td></tr><tr><td><a href="https://console.aws.amazon.com/iam/">AWS Bedrock</a></td><td>Access key ID + secret + region</td><td>Provider default</td></tr><tr><td><a href="https://console.cloud.google.com/iam-admin/serviceaccounts">Google Vertex AI</a></td><td>Service-account JSON + project ID + region</td><td>Optional (workspace default if omitted)</td></tr><tr><td><a href="https://app.portkey.ai">Portkey</a></td><td>API token (+ optional gateway URL)</td><td>Required, as <code>@provider/model</code></td></tr></tbody></table>

* **Portkey is an exclusive gateway.** When configured, it routes all requests, and other providers are not used.
* Where the model is optional, leaving it blank uses the current workspace default managed by AI Architect.
* With an Anthropic key, indexing costs approximately **$1 per MB** of indexable code.

{% hint style="info" %}
**Model format notes.** Portkey requires the `@provider/model-name` format (for example `@openai/gpt-4o`). Azure AI uses your **deployment name** rather than a base model name. Vertex AI and Gemini accept an optional model; leave it blank to use the workspace default.
{% endhint %}

## Change the provider later

```shellscript
bitoarch update-llm-config   # reconfigure the provider or model
bitoarch show-config         # confirm the active configuration
```

Changing the provider or model does not re-index automatically. Run `bitoarch index-repos` if you want existing repositories re-indexed with the new model.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bito.ai/ai-architect/installation/install-ai-architect-self-hosted/custom-llm-configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
