packages/kilo-docs/pages/ai-providers/sap-ai-core.md
Kilo Code supports accessing models through SAP AI Core, a service in the SAP Business Technology Platform that lets you efficiently run AI scenarios in a standardized, scalable, and hyperscaler-agnostic manner.
Website: https://help.sap.com/docs/sap-ai-core
To use SAP AI Core with Kilo Code, you'll need to create a service key for your SAP AI Core service instance:
In SAP BTP Cockpit:
Service Key Information: The service key will contain the following information you'll need:
SAP AI Core provider supports two operating modes:
Kilo Code applies the following filters when fetching models:
The exact list of available models depends on your SAP AI Core configuration and active model offerings.
{% tabs %} {% tab label="VSCode (Legacy)" %}
https://api.ai.ml.hana.ondemand.com)https://your-subdomain.authentication.sap.hana.ondemand.com){% /tab %} {% tab label="VSCode" %}
Open Settings (gear icon) and go to the Providers tab to add SAP AI Core. Enter your OAuth2 client credentials (Client ID, Client Secret, Base URL, and Auth URL) in the provider settings.
The extension stores this in your kilo.json config file. You can also edit the config file directly — see the CLI tab for the file format.
{% /tab %} {% tab label="CLI" %}
SAP AI Core uses OAuth2 client credentials for authentication. Set the credentials as environment variables or in your config file:
Environment variables:
export AICORE_SERVICE_KEY='{"your": "service-key-json"}'
export AICORE_DEPLOYMENT_ID="your-deployment-id"
export AICORE_RESOURCE_GROUP="your-resource-group"
Config file (~/.config/kilo/kilo.json or ./kilo.json):
{
"provider": {
"sap-ai-core": {},
},
}
Then set your default model:
{
"model": "sap-ai-core/model-name",
}
{% /tab %} {% /tabs %}
When using Foundation Models mode:
Authentication Failures:
No Models Available:
Deployment Issues:
Model Access:
To get started with SAP AI Core:
For detailed setup instructions and service configuration, visit the SAP AI Core documentation.