AI Integration
Onyxia's main use case is launching IDE environments such as VS Code, Jupyter, and RStudio.
Onyxia's AI integration makes users' API credentials available to these environments at launch time, so services can configure open source coding assistants such as OpenCode and Continue. These tools offer functionality similar to Claude Code and the Codex VS Code extension, respectively. Unlike their proprietary counterparts, they are not tied to a specific provider and can work with different LLM APIs, giving users a choice of providers and models.
In the Onyxia UI, users can set up their own API keys for popular AI providers: OpenAI, Anthropic, Mistral, and DeepSeek. Users' API keys are stored in Vault when Vault is configured, or in browser storage otherwise.
For organizations that host open weight LLMs on their own infrastructure through Open WebUI, Onyxia automatically obtains the API key when token exchange is configured, with no manual action required from the user.
Users can select which models to make available in their services and choose one as the default.

Services that support this feature (such as the IDEs in Onyxia's default catalog) can then provide coding assistant tools, preconfigured and ready to use with the user's chosen LLM.


API Reference
AI integration settings are defined in the region configuration:
The AI configuration object has the following shape:
Example Configurations
Disabling all AI features
By default, users can configure their API keys in their account settings. To disable this:
Allowing only a specific provider
For example, to allow your users to use only Mistral (and not OpenAI, Anthropic, or DeepSeek), use the following configuration:
Self-hosted LLMs
If your organization hosts open weight LLMs through Open WebUI, Onyxia can exchange the OpenID Connect token for an AI API token. Users do not need to go to their account settings and provide API keys. They can simply launch a service with Continue and OpenCode ready to use.
For example, an Onyxia instance at https://datalab.my-domain.net can be integrated with an Open WebUI instance at https://llm.lab.my-domain.net
The Onyxia configuration would look like this:
This is how it would appear in the UI:


Configuring Open WebUI
Let's see how to configure token exchange, assuming you are using Keycloak:
Assume your Open WebUI instance is deployed at https://llm.lab.my-domain.net
Keycloak configuration:
Server: https://auth.lab.my-domain.net, realm: datalab
Client: onyxia
Confidential:
falseAudience includes
"openwebui"Valid redirect URI:
https://datalab.my-domain.net/
This means that access tokens issued to the "onyxia" client are also intended for your Open WebUI instance. Specifically, the "aud" claim of an access token issued to "onyxia" should look like "aud": ["onyxia-api", "minio", "vault", "openwebui"]
These are the most relevant Open WebUI settings. For a complete reference, see: Open WebUI configuration
Last updated
Was this helpful?