AI providers

Choose your AI for VBA.
Cloud or local models.

VBAi connects the provider you choose to your VBE workflow. Provider authentication is separate from the GitHub account used to version your sources.

AI providers
ConnectionWhat you provide
Codex · defaultNative Codex CLI and its ChatGPT sign-in. This integration does not require an OpenAI API key.
GitHub CopilotNative Copilot CLI and its own sign-in flow; separate from source-control authentication.
OpenAI API, Claude, Gemini and other APIsThe selected provider's credentials and account. Service usage and billing remain with that provider.
Ollama or LM StudioA separately installed local server and a model that supports the required operations.
Custom, Azure OpenAI or Amazon BedrockEndpoint, supported authentication and explicit model identifiers as described in the provider reference.

Configure the connection in settings

Choose the provider in VBAi settings. The relevant authentication and endpoint controls depend on that choice. Saved keys are protected with Windows DPAPI for the current user.

Codex and Copilot use isolated VBAi provider directories. Being signed in through another application's CLI directory does not establish this connection automatically.

The real VBAi provider settings form configured for Codex
Provider-specific settings: the Codex connection uses ChatGPT authentication, not an API-key field. Select the image to enlarge it.

Choose the model in the conversation

Select a model and any supported reasoning effort in the chat. Available choices depend on the provider catalog; custom, Azure and Bedrock connections use configured identifiers.

A listed model may not support tools. Start with an explanation and a harmless inspection before asking it to change the project. Local quality, latency and tool support depend on your model and server.

Detailed transport and model limits

Understand cost and data boundaries

The add-in is open source, but it does not supply an AI subscription, API credits or a usage entitlement. A provider may charge for the account or requests you use.

Remote providers receive the conversation and permitted context. Local storage and provider-side retention are separate concerns. Choose the context deliberately, and follow your organisation's rules before sharing professional code.

Read the privacy guide