External AI Providers
Your models. Your workspace. Your workflow.
Connect OpenAI or NVIDIA NIM to Visual Studio Code and GitHub Codespaces. Ask questions, explore your codebase, plan changes, coordinate specialized agents, and run longer development objectives with explicit permissions.
External AI Providers is an independent, bring-your-own-key (BYOK) extension. It is not affiliated with OpenAI, NVIDIA, Microsoft, or GitHub. The extension is free under the MIT license; API usage, hosted infrastructure and model access are provided and billed separately by their respective services.
What you can do
| Capability |
What it means for you |
| AI chat |
Stream answers from your chosen provider and switch models. |
| Ask and Plan |
Explore the workspace and prepare a plan without enabling writes. |
| Agent and Autonomous |
Delegate coding tasks and review proposed changes with permission controls. |
| Goal mode |
Continue working toward an objective across model calls, with checklists and recoverable checkpoints. |
| Agent teams |
Configure specialists, independent histories, task dependencies and directed messages. |
| Context tools |
Mention files, folders and agent reports; use workspace search and optional NVIDIA semantic retrieval. |
| Headless runtime and CLI |
Start, monitor and resume authorized objectives from a Linux/Codespaces terminal. |
| Isolated worktrees |
Run independent objectives on separate Git branches through the CLI; review before fast-forward integration. |
| Developer integrations |
Optional editor assistance, MCP, NVIDIA vision, Android ADB and VS Code Gradle integrations. |
| Activity and performance |
Follow plain-language progress and available provider-reported usage metrics. |
Features depend on provider/model compatibility, the host platform, enabled capabilities, and any external tools you install. Some advanced features are experimental.
Get started
- Install External AI Providers and open a trusted, filesystem-backed project in VS Code or GitHub Codespaces.
- Open External AI in the Activity Bar.
- Open the Command Palette and run External AI: Configure OpenAI API Key or External AI: Configure NVIDIA NIM API Key. Use your own provider key. For a trusted self-hosted NIM endpoint, authentication can be configured separately.
- Select your provider in the sidebar. Open the models screen and choose a model available to your account. Model availability changes; the configured defaults are not an entitlement or a guarantee of availability.
- Start in Chat or Ask mode. Try:
Explain the structure of this project and identify the main components.
- When you are ready for code changes, review the capabilities and grant only the permissions needed for that task.
Provider accounts and keys: OpenAI API platform and NVIDIA API catalog.
Work at your own pace
| Mode |
Intended use |
| Chat |
Questions and conversation. |
| Ask |
Read-only workspace investigation. |
| Plan |
Read-only planning before implementation. |
| Agent |
Tool-assisted development with the configured capabilities and approvals. |
| Autonomous |
Extended execution with explicit task authorization. |
| Goal |
Objective-driven execution without a fixed model-call count ceiling; completion, cancellation, loops, infrastructure and provider limits still apply. |
Goal is not a guarantee of completion or cost control. Review results, track provider usage, and cancel if needed.
CLI and headless workflows
On a trusted Linux/Codespaces workspace, open the Command Palette and run External AI: Open CLI. Use Node.js 22.13+ for the recommended CLI environment. The command opens a shell with an eai helper; it does not export keys from VS Code SecretStorage.
eai --help
eai status
eai goal "Review the project architecture" --detach --yes
eai attach
eai stop
The CLI requires its own provider credentials through environment variables, unless the selected endpoint is configured to allow unauthenticated requests. Never paste credentials into source files or shell command arguments. Headless tasks may continue after the UI closes while the remote host remains running. They cannot prevent a Codespace from being suspended or stopped. Git worktrees isolate files and branches, not OS privileges. Commands and writes require explicit authorization.
Privacy and permissions
- Provider credentials entered through VS Code commands are stored in VS Code SecretStorage; the webview is not given those keys.
- Prompts, history, approved workspace content, tool results, images or diagnostics may be sent to the selected provider. Optional retrieval and vision can send data to NVIDIA services; MCP sends permitted inputs to the configured endpoint.
- Local histories, reports, checkpoints, metrics and caches can persist without encryption. Avoid including secrets in prompts, files or command output.
- Interactive file edits require approval. Headless execution uses an explicitly granted scope and optional approved command presets. Terminal execution is not a security sandbox; scripts may access files, credentials and the network with the host user's privileges.
- Use
.aiignore to exclude sensitive project content from supported workspace tools. It is not a substitute for OS-level isolation or a data-loss prevention system.
OpenAI and NVIDIA process requests under their own terms and privacy policies. This extension does not provide a zero-retention guarantee. See the included PRIVACY.md and SECURITY.md for details. Provider policies: OpenAI API data controls and NVIDIA privacy policy.
Requirements and limitations
- VS Code 1.100 or newer; a Node.js workspace extension host. A browser-only VS Code session without a remote extension host is not supported.
- A trusted project and access to a compatible AI provider/model. Agent tools require compatible function calling.
- CLI, daemon, and headless features are designed for Linux/Codespaces with a single filesystem workspace root; Node.js 22.13+ is recommended for the CLI and SQLite journal. Git is required for worktrees; optional tools such as ripgrep, ast-grep, ADB and Gradle require separate installation.
- This is the initial public preview. Validate changes in a disposable project before using unattended execution on important code. Windows/macOS and live provider combinations are not comprehensively certified.
Support
Use the extension's Marketplace Q&A for general feedback. Include the extension version, VS Code version, operating system and a sanitized error message. Do not share API keys, proprietary code, full checkpoints or other secrets. Report security concerns privately through the publisher's verified contact channel when available; never publish exploit details in public Q&A.
Português (Brasil)
Seus modelos. Seu workspace. Seu fluxo de trabalho.
A extensão conecta OpenAI e NVIDIA NIM ao VS Code e ao GitHub Codespaces, com chat, agentes especializados, modo Goal, tarefas persistentes, permissões de edição e CLI. A interface utiliza português do Brasil; o modelo pode responder no idioma solicitado.
Para começar, abra a barra External AI, configure sua chave pelo menu de comandos, selecione um modelo disponível e teste o modo Chat. Os modos Ask e Plan permitem explorar o projeto sem habilitar escrita. Autorize edição e terminal somente quando necessário. O modo Goal não garante conclusão nem impede custos ou suspensão do Codespace.
A extensão é gratuita; o uso dos provedores e da infraestrutura pode ser cobrado. Consulte PRIVACY.md, SECURITY.md e README-TECHNICAL.md no pacote de código-fonte para documentação detalhada.
License
MIT. Third-party UI bundle license notices are included in media/ui.LICENSES.txt in the installed package.