Add the AI Core entitlement to your BTP subaccount, create a service instance, and create a service key with the credentials your local scripts will use.
SAP AI Core is a BTP service that hosts and runs AI/ML models and pipelines.
ai-core-devWait 1-2 minutes for provisioning to complete.
ai-core-dev instanceai-core-keyClick the service key → Download or copy the JSON. It looks like:
{
"clientid": "sb-...",
"clientsecret": "...",
"url": "https://yourtenant.authentication.eu10.hana.ondemand.com",
"serviceurls": {
"AI_API_URL": "https://api.ai.prod.eu-central-1.aws.ml.hana.ondemand.com"
}
}
Keep this file safe — never commit it to git.
Create ~/.ai-core-credentials.json and paste the JSON there:
# macOS / Linux
cp ~/Downloads/ai-core-key.json ~/.ai-core-credentials.json
chmod 600 ~/.ai-core-credentials.json
Or set environment variables (better for CI/CD):
export AICORE_CLIENT_ID="sb-..."
export AICORE_CLIENT_SECRET="..."
export AICORE_AUTH_URL="https://yourtenant.authentication.eu10.hana.ondemand.com"
export AICORE_API_URL="https://api.ai.prod.eu-central-1.aws.ml.hana.ondemand.com"
Sign in for progress tracking & Q&A →