页面简介
Eclipse Theia is an open-source, vendor-neutral project for building custom cloud and desktop IDEs and tools, including Theia AI and the ready-to-use Theia IDE.
正文摘录
Professional Support →Become a Sponsor →Ctrl+KOverviewGetting StartedProject GoalsTheia FAQUsing the Theia IDEGetting StartedInstalling VS Code ExtensionsUsing AI FeaturesTheia Coder (AI assistant)Environment VariablesUsing the dynamic ToolbarWorkspace TrustData Usage & TelemetryDownloadAdopting the Theia PlatformBuild your own IDE/ToolExtending the Theia IDEExtensions and PluginsAuthoring Theia ExtensionsAuthoring VS Code ExtensionsConsuming Theia fixes without upgradingTheia API DocumentationPlatform Concepts & APIsServices and ContributionsArchitecture OverviewCommands/Menus/KeybindingsWidgetsPerspectivesCustom EditorsPreferencesTheia AILabel ProviderMessage ServiceProperty ViewTree WidgetEventsFrontend Application ContributionsBackend Application ContributionsCommunication via JSON-RPCExternal APITelemetryTasksInternationalizationLanguage SupportDynamic ToolbarBreadcrumbsEnhanced Tab Bar PreviewContribution FilterAdvanced TipsUsing the AI Features in the Theia IDE as an End User This section documents how to use AI features in the Theia IDE (available since version 1.54, see also this introduction). These features are based on Theia AI, a framework for building AI assistants in tools and IDEs. Theia AI is part of the Theia platform. If you're interested in building your own custom tool or IDE with Theia AI, please refer to the corresponding documentation. Please note that using your own LLM might incur costs that you need to monitor closely. We welcome any feedback, suggestions, and contributions! Theia AI features within the Theia IDE are currently disabled by default. See the next section on how to enable them. Learn more about the AI-powered Theia IDE: 👉 Introducing the AI-powered Theia IDE: AI-driven coding with full Control 👉 Watch the video: AI-Native Tools with Full Control: Theia AI & The AI-Powered Theia IDE In Action 👉 Download the AI-powered Theia IDE Table of Contents Set-Up Setting API Keys Model Discovery LLM Providers Overview Proxy Configuration GitHub Copilot ChatGPT Subscription OpenAI (Hosted by OpenAI) OpenAI Compatible Models (e.g. via VLLM) Mistral Azure Anthropic Google AI Ollama Hugging Face LlamaFile Models Custom Request Settings Reasoning Current Agents in the Theia IDE Theia Coder (Chat Agent) Universal (Chat Agent) Orchestrator (Chat Agent) Command (Chat Agent) Architect (Chat Agent) Code Completion (Agent) Terminal Assistance (Agent) Commit Message (Agent) App Tester (Chat Agent) Claude Code (Chat Agent) AgentsMd (Chat Agent) CreateSkill (Chat Agent) GitHub (Chat Agent) PR Reviewer (Chat Agent) Chat Chat Session History Sessions View AI First Perspective Agent Notifications Starting Chat from the Editor Agent Pinning Mode Selection Model Selection Agent Capabilities Image Support Context Variables Editing Chat Requests Searching in a Chat Session Token Usage (Experimental) Mermaid Diagrams External Content in Chat Responses Warning Banner for Session Overrides Task Context Set-up for Task Context Manually creating a Task Context File Planning with the Architect Agent Implementing with the Coder Agent AI Configuration View and Modify Prompts Prompt Template and Fragment Locations Prompt Fragments Slash Commands Custom Agents Agent-to-Agent Delegation Agent Skills (Alpha) What are Skills? Using Skills Creating Skills Skill Directories CreateSkill Agent MCP Integration Configuring MCP Servers Starting and Stopping MCP Servers Using MCP Server Functions MCP Apps MCP Configuration View AI Registry Tool Call Confirmation UI Workspace Handling Multi-Root Workspaces and AI Agents Allowing AI Tools to Read Files Outside the Workspace Shell Execution Tool (Alpha) SCANOSS Configure SCANOSS in the Theia IDE Manual Scanning Automatic Scanning Understanding SCANOSS Results AI History Learn more Set-Up The quickest way through the set-up is the Get started with AI walkthrough. It is listed on the welcome page, can be started from the chat view or with the Get Started with AI command, and takes you through the seven things that have to be in place: what the AI features are and what using them costs, turning them on, connecting a language model, choosing a default agent, sending a first request, deciding how much agents may do on their own, and where to go from there. Each step ticks itself off once you have actually done it, so if you configured something earlier, you will find it already completed. The walkthrough disappears from the welcome page once you are through it and stays reachable via Help: Open Walkthrough. The rest of this section describes the same set-up in detail. To activate AI support in the Theia IDE, go to Preferences and enable the setting “AI-features => AI Enable.” To use Theia AI within the Theia IDE, you need to provide access to at least one LLM. Theia IDE comes with preinstalled support for several LLM providers (including OpenAI API-compatible models and Anthropic). Additionally, Theia IDE supports connecting to models via Ollama. See the the LLM Provider Overview and the corresponding sections below on how to configure these providers. If you do not have access to an LLM, yet, here is an easy way to try it out: 👉 Testing the AI-Powered Theia IDE and Theia AI Applications for Free Using GitHub Models Other LLM providers, including local models, can be added easily. If you would like to see support for a specific LLM, please provide feedback or consider contributing. For the major providers, the list of available models is determined automatically, see Model Discovery. Providers such as Ollama, Hugging Face or LlamaFile keep a configurable list of models in the settings. To use a specific model in your IDE, configure it on a per-agent basis in the AI Configuration view. Once you have configured at least one LLM, you can also select a default agent in the settings under "AI Features" => "Chat: Default Agent". This agent will handle your chat requests when you do not explicitly mention an agent using the @ symbol. See also: 👉 Why Theia supports any LLM! Setting API Keys There are two ways to provide API keys for LLM providers: Via Preferences (Settings UI): Enter the key directly in the Theia IDE settings under the respective AI provider section. Note that keys stored this way are saved in clear text in your settings file. Via Environment Variables: Set the appropriate environment variable for your provider (e.g. OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, HUGGINGFACE_API_KEY). The Theia IDE will automatically pick up these variables from its process environment. For Anthropic, Google AI and OpenAI, a key found in the environment is not used right away. The Theia IDE asks you once whether it may use it, and only contacts the provider after you confirm. Confirming sets ai-features.<provider>.allowEnvironmentApiKey to true; setting that preference back to false withdraws the consent, which takes effect everywhere the key would otherwise be read. See the individual provider sections below for the specific environment variable names and preference keys. Important: If you launch the Theia IDE from a desktop launcher (rather than a terminal), environment variables from your shell profile may not be available. See Environment Variables in the Theia IDE for platform-specific instructions on how to correctly set environment variables. Model Discovery For Anthropic, Google AI, OpenAI and GitHub Copilot, the Theia IDE does not ship a curated list of model IDs. Instead it asks each provider which models it currently offers — on start-up, whenever the API key changes, and on demand. Newly released models therefore become available without an update of the IDE, and retired ones disappear on their own. You can review the result in the Providers & Models category of the AI Configuration view. Every provider page has a Model Discovery section showing the current state (fetching, updated, cached, error, no API key, or manually configured), a refresh button, and the discovered models with the release date the provider reported, newest first. Each discovery is cached to <configDir>/model-snapshots/<provider>-models.json and reused when a later fetch fails, so your models stay usable offline. Anthropic and OpenAI report one entry per release, such as claude-opus-5-20260401. All of them are registered, and in addition the undated ID (claude-opus-5) that these providers accept as an alias for the newest release. Referencing the undated ID in an agent or model alias keeps your configuration on the current model when the provider ships an update. Gemini IDs carry no release date, so Google's models are listed alphabetically. Because the OpenAI and Google endpoints list every kind of model without capability information, non-chat models (audio, image, embedding, moderation, and similar) are filtered out heuristically. Favorite Models A provider can offer dozens of models, most of which are not relevant for daily work. The model selector in the chat input therefore only lists your favorites: up to five automatically featured models per provider — essentially the most recent ones — plus every model you marked on the provider's page in the AI Configuration view. The last entry of the selector, Manage models…, opens exactly that page. Nothing else is restricted. An agent's model dropdown and the model aliases still offer every discovered model, grouped per provider. Only your deviations are stored: checking a model that is not featured adds it to ai-features.modelSettings.favoriteModels, unchecking a featured one adds it to ai-features.modelSettings.hiddenModels. Models that a successful discovery no longer reports are dropped from both lists. Pinning an Explicit Model List If you need a fixed catalogue — for instance because the provider's model endpoint is not reachable in your environment, or because you want to shield your setup from provider changes — you can replace discovery with an explicit list per provider. When the list is non-empty, exactly those models are registered and discov